Skip to content

Commit fc4dff2

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 10a8ee5 commit fc4dff2

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

+28
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,8 @@ def describe_cost_category_definition(params = {}, options = {})
10071007
# * {Types::GetAnomaliesResponse#anomalies #anomalies} => Array<Types::Anomaly>
10081008
# * {Types::GetAnomaliesResponse#next_page_token #next_page_token} => String
10091009
#
1010+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1011+
#
10101012
# @example Request syntax with placeholder values
10111013
#
10121014
# resp = client.get_anomalies({
@@ -1078,6 +1080,8 @@ def get_anomalies(params = {}, options = {})
10781080
# * {Types::GetAnomalyMonitorsResponse#anomaly_monitors #anomaly_monitors} => Array<Types::AnomalyMonitor>
10791081
# * {Types::GetAnomalyMonitorsResponse#next_page_token #next_page_token} => String
10801082
#
1083+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1084+
#
10811085
# @example Request syntax with placeholder values
10821086
#
10831087
# resp = client.get_anomaly_monitors({
@@ -1151,6 +1155,8 @@ def get_anomaly_monitors(params = {}, options = {})
11511155
# * {Types::GetAnomalySubscriptionsResponse#anomaly_subscriptions #anomaly_subscriptions} => Array<Types::AnomalySubscription>
11521156
# * {Types::GetAnomalySubscriptionsResponse#next_page_token #next_page_token} => String
11531157
#
1158+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1159+
#
11541160
# @example Request syntax with placeholder values
11551161
#
11561162
# resp = client.get_anomaly_subscriptions({
@@ -1349,6 +1355,8 @@ def get_approximate_usage_records(params = {}, options = {})
13491355
# * {Types::GetCostAndUsageResponse#results_by_time #results_by_time} => Array<Types::ResultByTime>
13501356
# * {Types::GetCostAndUsageResponse#dimension_value_attributes #dimension_value_attributes} => Array<Types::DimensionValuesWithAttributes>
13511357
#
1358+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1359+
#
13521360
# @example Request syntax with placeholder values
13531361
#
13541362
# resp = client.get_cost_and_usage({
@@ -1532,6 +1540,8 @@ def get_cost_and_usage(params = {}, options = {})
15321540
# * {Types::GetCostAndUsageWithResourcesResponse#results_by_time #results_by_time} => Array<Types::ResultByTime>
15331541
# * {Types::GetCostAndUsageWithResourcesResponse#dimension_value_attributes #dimension_value_attributes} => Array<Types::DimensionValuesWithAttributes>
15341542
#
1543+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1544+
#
15351545
# @example Request syntax with placeholder values
15361546
#
15371547
# resp = client.get_cost_and_usage_with_resources({
@@ -1777,6 +1787,8 @@ def get_cost_and_usage_with_resources(params = {}, options = {})
17771787
# * {Types::GetCostCategoriesResponse#return_size #return_size} => Integer
17781788
# * {Types::GetCostCategoriesResponse#total_size #total_size} => Integer
17791789
#
1790+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1791+
#
17801792
# @example Request syntax with placeholder values
17811793
#
17821794
# resp = client.get_cost_categories({
@@ -2320,6 +2332,8 @@ def get_cost_forecast(params = {}, options = {})
23202332
# * {Types::GetDimensionValuesResponse#total_size #total_size} => Integer
23212333
# * {Types::GetDimensionValuesResponse#next_page_token #next_page_token} => String
23222334
#
2335+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2336+
#
23232337
# @example Request syntax with placeholder values
23242338
#
23252339
# resp = client.get_dimension_values({
@@ -2562,6 +2576,8 @@ def get_dimension_values(params = {}, options = {})
25622576
# * {Types::GetReservationCoverageResponse#total #total} => Types::Coverage
25632577
# * {Types::GetReservationCoverageResponse#next_page_token #next_page_token} => String
25642578
#
2579+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2580+
#
25652581
# @example Request syntax with placeholder values
25662582
#
25672583
# resp = client.get_reservation_coverage({
@@ -2819,6 +2835,8 @@ def get_reservation_coverage(params = {}, options = {})
28192835
# * {Types::GetReservationPurchaseRecommendationResponse#recommendations #recommendations} => Array<Types::ReservationPurchaseRecommendation>
28202836
# * {Types::GetReservationPurchaseRecommendationResponse#next_page_token #next_page_token} => String
28212837
#
2838+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2839+
#
28222840
# @example Request syntax with placeholder values
28232841
#
28242842
# resp = client.get_reservation_purchase_recommendation({
@@ -3074,6 +3092,8 @@ def get_reservation_purchase_recommendation(params = {}, options = {})
30743092
# * {Types::GetReservationUtilizationResponse#total #total} => Types::ReservationAggregates
30753093
# * {Types::GetReservationUtilizationResponse#next_page_token #next_page_token} => String
30763094
#
3095+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3096+
#
30773097
# @example Request syntax with placeholder values
30783098
#
30793099
# resp = client.get_reservation_utilization({
@@ -3332,6 +3352,8 @@ def get_reservation_utilization(params = {}, options = {})
33323352
# * {Types::GetRightsizingRecommendationResponse#next_page_token #next_page_token} => String
33333353
# * {Types::GetRightsizingRecommendationResponse#configuration #configuration} => Types::RightsizingRecommendationConfiguration
33343354
#
3355+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3356+
#
33353357
# @example Request syntax with placeholder values
33363358
#
33373359
# resp = client.get_rightsizing_recommendation({
@@ -3765,6 +3787,8 @@ def get_savings_plans_coverage(params = {}, options = {})
37653787
# * {Types::GetSavingsPlansPurchaseRecommendationResponse#savings_plans_purchase_recommendation #savings_plans_purchase_recommendation} => Types::SavingsPlansPurchaseRecommendation
37663788
# * {Types::GetSavingsPlansPurchaseRecommendationResponse#next_page_token #next_page_token} => String
37673789
#
3790+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3791+
#
37683792
# @example Request syntax with placeholder values
37693793
#
37703794
# resp = client.get_savings_plans_purchase_recommendation({
@@ -4327,6 +4351,8 @@ def get_savings_plans_utilization_details(params = {}, options = {})
43274351
# * {Types::GetTagsResponse#return_size #return_size} => Integer
43284352
# * {Types::GetTagsResponse#total_size #total_size} => Integer
43294353
#
4354+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4355+
#
43304356
# @example Request syntax with placeholder values
43314357
#
43324358
# resp = client.get_tags({
@@ -4737,6 +4763,8 @@ def list_cost_category_definitions(params = {}, options = {})
47374763
# * {Types::ListSavingsPlansPurchaseRecommendationGenerationResponse#generation_summary_list #generation_summary_list} => Array<Types::GenerationSummary>
47384764
# * {Types::ListSavingsPlansPurchaseRecommendationGenerationResponse#next_page_token #next_page_token} => String
47394765
#
4766+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4767+
#
47404768
# @example Request syntax with placeholder values
47414769
#
47424770
# resp = client.list_savings_plans_purchase_recommendation_generation({

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

+82
Original file line numberDiff line numberDiff line change
@@ -1642,6 +1642,12 @@ module ClientApi
16421642
o.output = Shapes::ShapeRef.new(shape: GetAnomaliesResponse)
16431643
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
16441644
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1645+
o[:pager] = Aws::Pager.new(
1646+
limit_key: "max_results",
1647+
tokens: {
1648+
"next_page_token" => "next_page_token"
1649+
}
1650+
)
16451651
end)
16461652

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

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

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

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

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

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

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

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)