Skip to content

Commit 9497202

Browse files
committed
Rebuild CostExplorer SDK
- Includes the new paginator definitions for the Cost Explorer API, so #next_page?, #next_page and other pagination methods are now properly working on the response
1 parent 0ac6c23 commit 9497202

File tree

2 files changed

+110
-0
lines changed

2 files changed

+110
-0
lines changed

gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/client.rb

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,8 @@ def describe_cost_category_definition(params = {}, options = {})
10091009
# * {Types::GetAnomaliesResponse#anomalies #anomalies} => Array<Types::Anomaly>
10101010
# * {Types::GetAnomaliesResponse#next_page_token #next_page_token} => String
10111011
#
1012+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1013+
#
10121014
# @example Request syntax with placeholder values
10131015
#
10141016
# resp = client.get_anomalies({
@@ -1080,6 +1082,8 @@ def get_anomalies(params = {}, options = {})
10801082
# * {Types::GetAnomalyMonitorsResponse#anomaly_monitors #anomaly_monitors} => Array<Types::AnomalyMonitor>
10811083
# * {Types::GetAnomalyMonitorsResponse#next_page_token #next_page_token} => String
10821084
#
1085+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1086+
#
10831087
# @example Request syntax with placeholder values
10841088
#
10851089
# resp = client.get_anomaly_monitors({
@@ -1153,6 +1157,8 @@ def get_anomaly_monitors(params = {}, options = {})
11531157
# * {Types::GetAnomalySubscriptionsResponse#anomaly_subscriptions #anomaly_subscriptions} => Array<Types::AnomalySubscription>
11541158
# * {Types::GetAnomalySubscriptionsResponse#next_page_token #next_page_token} => String
11551159
#
1160+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1161+
#
11561162
# @example Request syntax with placeholder values
11571163
#
11581164
# resp = client.get_anomaly_subscriptions({
@@ -1351,6 +1357,8 @@ def get_approximate_usage_records(params = {}, options = {})
13511357
# * {Types::GetCostAndUsageResponse#results_by_time #results_by_time} => Array<Types::ResultByTime>
13521358
# * {Types::GetCostAndUsageResponse#dimension_value_attributes #dimension_value_attributes} => Array<Types::DimensionValuesWithAttributes>
13531359
#
1360+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1361+
#
13541362
# @example Request syntax with placeholder values
13551363
#
13561364
# resp = client.get_cost_and_usage({
@@ -1534,6 +1542,8 @@ def get_cost_and_usage(params = {}, options = {})
15341542
# * {Types::GetCostAndUsageWithResourcesResponse#results_by_time #results_by_time} => Array<Types::ResultByTime>
15351543
# * {Types::GetCostAndUsageWithResourcesResponse#dimension_value_attributes #dimension_value_attributes} => Array<Types::DimensionValuesWithAttributes>
15361544
#
1545+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1546+
#
15371547
# @example Request syntax with placeholder values
15381548
#
15391549
# resp = client.get_cost_and_usage_with_resources({
@@ -1779,6 +1789,8 @@ def get_cost_and_usage_with_resources(params = {}, options = {})
17791789
# * {Types::GetCostCategoriesResponse#return_size #return_size} => Integer
17801790
# * {Types::GetCostCategoriesResponse#total_size #total_size} => Integer
17811791
#
1792+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1793+
#
17821794
# @example Request syntax with placeholder values
17831795
#
17841796
# resp = client.get_cost_categories({
@@ -2322,6 +2334,8 @@ def get_cost_forecast(params = {}, options = {})
23222334
# * {Types::GetDimensionValuesResponse#total_size #total_size} => Integer
23232335
# * {Types::GetDimensionValuesResponse#next_page_token #next_page_token} => String
23242336
#
2337+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2338+
#
23252339
# @example Request syntax with placeholder values
23262340
#
23272341
# resp = client.get_dimension_values({
@@ -2564,6 +2578,8 @@ def get_dimension_values(params = {}, options = {})
25642578
# * {Types::GetReservationCoverageResponse#total #total} => Types::Coverage
25652579
# * {Types::GetReservationCoverageResponse#next_page_token #next_page_token} => String
25662580
#
2581+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2582+
#
25672583
# @example Request syntax with placeholder values
25682584
#
25692585
# resp = client.get_reservation_coverage({
@@ -2821,6 +2837,8 @@ def get_reservation_coverage(params = {}, options = {})
28212837
# * {Types::GetReservationPurchaseRecommendationResponse#recommendations #recommendations} => Array<Types::ReservationPurchaseRecommendation>
28222838
# * {Types::GetReservationPurchaseRecommendationResponse#next_page_token #next_page_token} => String
28232839
#
2840+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2841+
#
28242842
# @example Request syntax with placeholder values
28252843
#
28262844
# resp = client.get_reservation_purchase_recommendation({
@@ -3076,6 +3094,8 @@ def get_reservation_purchase_recommendation(params = {}, options = {})
30763094
# * {Types::GetReservationUtilizationResponse#total #total} => Types::ReservationAggregates
30773095
# * {Types::GetReservationUtilizationResponse#next_page_token #next_page_token} => String
30783096
#
3097+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3098+
#
30793099
# @example Request syntax with placeholder values
30803100
#
30813101
# resp = client.get_reservation_utilization({
@@ -3334,6 +3354,8 @@ def get_reservation_utilization(params = {}, options = {})
33343354
# * {Types::GetRightsizingRecommendationResponse#next_page_token #next_page_token} => String
33353355
# * {Types::GetRightsizingRecommendationResponse#configuration #configuration} => Types::RightsizingRecommendationConfiguration
33363356
#
3357+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3358+
#
33373359
# @example Request syntax with placeholder values
33383360
#
33393361
# resp = client.get_rightsizing_recommendation({
@@ -3767,6 +3789,8 @@ def get_savings_plans_coverage(params = {}, options = {})
37673789
# * {Types::GetSavingsPlansPurchaseRecommendationResponse#savings_plans_purchase_recommendation #savings_plans_purchase_recommendation} => Types::SavingsPlansPurchaseRecommendation
37683790
# * {Types::GetSavingsPlansPurchaseRecommendationResponse#next_page_token #next_page_token} => String
37693791
#
3792+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3793+
#
37703794
# @example Request syntax with placeholder values
37713795
#
37723796
# resp = client.get_savings_plans_purchase_recommendation({
@@ -4329,6 +4353,8 @@ def get_savings_plans_utilization_details(params = {}, options = {})
43294353
# * {Types::GetTagsResponse#return_size #return_size} => Integer
43304354
# * {Types::GetTagsResponse#total_size #total_size} => Integer
43314355
#
4356+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4357+
#
43324358
# @example Request syntax with placeholder values
43334359
#
43344360
# resp = client.get_tags({
@@ -4739,6 +4765,8 @@ def list_cost_category_definitions(params = {}, options = {})
47394765
# * {Types::ListSavingsPlansPurchaseRecommendationGenerationResponse#generation_summary_list #generation_summary_list} => Array<Types::GenerationSummary>
47404766
# * {Types::ListSavingsPlansPurchaseRecommendationGenerationResponse#next_page_token #next_page_token} => String
47414767
#
4768+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4769+
#
47424770
# @example Request syntax with placeholder values
47434771
#
47444772
# resp = client.list_savings_plans_purchase_recommendation_generation({

gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/client_api.rb

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,6 +1641,12 @@ module ClientApi
16411641
o.output = Shapes::ShapeRef.new(shape: GetAnomaliesResponse)
16421642
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
16431643
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1644+
o[:pager] = Aws::Pager.new(
1645+
limit_key: "max_results",
1646+
tokens: {
1647+
"next_page_token" => "next_page_token"
1648+
}
1649+
)
16441650
end)
16451651

16461652
api.add_operation(:get_anomaly_monitors, Seahorse::Model::Operation.new.tap do |o|
@@ -1652,6 +1658,12 @@ module ClientApi
16521658
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
16531659
o.errors << Shapes::ShapeRef.new(shape: UnknownMonitorException)
16541660
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1661+
o[:pager] = Aws::Pager.new(
1662+
limit_key: "max_results",
1663+
tokens: {
1664+
"next_page_token" => "next_page_token"
1665+
}
1666+
)
16551667
end)
16561668

16571669
api.add_operation(:get_anomaly_subscriptions, Seahorse::Model::Operation.new.tap do |o|
@@ -1663,6 +1675,12 @@ module ClientApi
16631675
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
16641676
o.errors << Shapes::ShapeRef.new(shape: UnknownSubscriptionException)
16651677
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1678+
o[:pager] = Aws::Pager.new(
1679+
limit_key: "max_results",
1680+
tokens: {
1681+
"next_page_token" => "next_page_token"
1682+
}
1683+
)
16661684
end)
16671685

16681686
api.add_operation(:get_approximate_usage_records, Seahorse::Model::Operation.new.tap do |o|
@@ -1686,6 +1704,11 @@ module ClientApi
16861704
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
16871705
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
16881706
o.errors << Shapes::ShapeRef.new(shape: RequestChangedException)
1707+
o[:pager] = Aws::Pager.new(
1708+
tokens: {
1709+
"next_page_token" => "next_page_token"
1710+
}
1711+
)
16891712
end)
16901713

16911714
api.add_operation(:get_cost_and_usage_with_resources, Seahorse::Model::Operation.new.tap do |o|
@@ -1699,6 +1722,11 @@ module ClientApi
16991722
o.errors << Shapes::ShapeRef.new(shape: BillExpirationException)
17001723
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
17011724
o.errors << Shapes::ShapeRef.new(shape: RequestChangedException)
1725+
o[:pager] = Aws::Pager.new(
1726+
tokens: {
1727+
"next_page_token" => "next_page_token"
1728+
}
1729+
)
17021730
end)
17031731

17041732
api.add_operation(:get_cost_categories, Seahorse::Model::Operation.new.tap do |o|
@@ -1712,6 +1740,12 @@ module ClientApi
17121740
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
17131741
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
17141742
o.errors << Shapes::ShapeRef.new(shape: RequestChangedException)
1743+
o[:pager] = Aws::Pager.new(
1744+
limit_key: "max_results",
1745+
tokens: {
1746+
"next_page_token" => "next_page_token"
1747+
}
1748+
)
17151749
end)
17161750

17171751
api.add_operation(:get_cost_forecast, Seahorse::Model::Operation.new.tap do |o|
@@ -1735,6 +1769,12 @@ module ClientApi
17351769
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
17361770
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
17371771
o.errors << Shapes::ShapeRef.new(shape: RequestChangedException)
1772+
o[:pager] = Aws::Pager.new(
1773+
limit_key: "max_results",
1774+
tokens: {
1775+
"next_page_token" => "next_page_token"
1776+
}
1777+
)
17381778
end)
17391779

17401780
api.add_operation(:get_reservation_coverage, Seahorse::Model::Operation.new.tap do |o|
@@ -1746,6 +1786,12 @@ module ClientApi
17461786
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
17471787
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
17481788
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1789+
o[:pager] = Aws::Pager.new(
1790+
limit_key: "max_results",
1791+
tokens: {
1792+
"next_page_token" => "next_page_token"
1793+
}
1794+
)
17491795
end)
17501796

17511797
api.add_operation(:get_reservation_purchase_recommendation, Seahorse::Model::Operation.new.tap do |o|
@@ -1757,6 +1803,12 @@ module ClientApi
17571803
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
17581804
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
17591805
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1806+
o[:pager] = Aws::Pager.new(
1807+
limit_key: "page_size",
1808+
tokens: {
1809+
"next_page_token" => "next_page_token"
1810+
}
1811+
)
17601812
end)
17611813

17621814
api.add_operation(:get_reservation_utilization, Seahorse::Model::Operation.new.tap do |o|
@@ -1768,6 +1820,12 @@ module ClientApi
17681820
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
17691821
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
17701822
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1823+
o[:pager] = Aws::Pager.new(
1824+
limit_key: "max_results",
1825+
tokens: {
1826+
"next_page_token" => "next_page_token"
1827+
}
1828+
)
17711829
end)
17721830

17731831
api.add_operation(:get_rightsizing_recommendation, Seahorse::Model::Operation.new.tap do |o|
@@ -1778,6 +1836,12 @@ module ClientApi
17781836
o.output = Shapes::ShapeRef.new(shape: GetRightsizingRecommendationResponse)
17791837
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
17801838
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1839+
o[:pager] = Aws::Pager.new(
1840+
limit_key: "page_size",
1841+
tokens: {
1842+
"next_page_token" => "next_page_token"
1843+
}
1844+
)
17811845
end)
17821846

17831847
api.add_operation(:get_savings_plan_purchase_recommendation_details, Seahorse::Model::Operation.new.tap do |o|
@@ -1815,6 +1879,12 @@ module ClientApi
18151879
o.output = Shapes::ShapeRef.new(shape: GetSavingsPlansPurchaseRecommendationResponse)
18161880
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
18171881
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1882+
o[:pager] = Aws::Pager.new(
1883+
limit_key: "page_size",
1884+
tokens: {
1885+
"next_token" => "next_token"
1886+
}
1887+
)
18181888
end)
18191889

18201890
api.add_operation(:get_savings_plans_utilization, Seahorse::Model::Operation.new.tap do |o|
@@ -1855,6 +1925,12 @@ module ClientApi
18551925
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
18561926
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
18571927
o.errors << Shapes::ShapeRef.new(shape: RequestChangedException)
1928+
o[:pager] = Aws::Pager.new(
1929+
limit_key: "max_results",
1930+
tokens: {
1931+
"next_page_token" => "next_page_token"
1932+
}
1933+
)
18581934
end)
18591935

18601936
api.add_operation(:get_usage_forecast, Seahorse::Model::Operation.new.tap do |o|
@@ -1924,6 +2000,12 @@ module ClientApi
19242000
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
19252001
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
19262002
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
2003+
o[:pager] = Aws::Pager.new(
2004+
limit_key: "page_size",
2005+
tokens: {
2006+
"next_token" => "next_token"
2007+
}
2008+
)
19272009
end)
19282010

19292011
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|

0 commit comments

Comments
 (0)