Skip to content

Commit 9819bc5

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 8a99278 commit 9819bc5

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
@@ -1003,6 +1003,8 @@ def describe_cost_category_definition(params = {}, options = {})
10031003
# * {Types::GetAnomaliesResponse#anomalies #anomalies} => Array<Types::Anomaly>
10041004
# * {Types::GetAnomaliesResponse#next_page_token #next_page_token} => String
10051005
#
1006+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1007+
#
10061008
# @example Request syntax with placeholder values
10071009
#
10081010
# resp = client.get_anomalies({
@@ -1074,6 +1076,8 @@ def get_anomalies(params = {}, options = {})
10741076
# * {Types::GetAnomalyMonitorsResponse#anomaly_monitors #anomaly_monitors} => Array<Types::AnomalyMonitor>
10751077
# * {Types::GetAnomalyMonitorsResponse#next_page_token #next_page_token} => String
10761078
#
1079+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1080+
#
10771081
# @example Request syntax with placeholder values
10781082
#
10791083
# resp = client.get_anomaly_monitors({
@@ -1147,6 +1151,8 @@ def get_anomaly_monitors(params = {}, options = {})
11471151
# * {Types::GetAnomalySubscriptionsResponse#anomaly_subscriptions #anomaly_subscriptions} => Array<Types::AnomalySubscription>
11481152
# * {Types::GetAnomalySubscriptionsResponse#next_page_token #next_page_token} => String
11491153
#
1154+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1155+
#
11501156
# @example Request syntax with placeholder values
11511157
#
11521158
# resp = client.get_anomaly_subscriptions({
@@ -1345,6 +1351,8 @@ def get_approximate_usage_records(params = {}, options = {})
13451351
# * {Types::GetCostAndUsageResponse#results_by_time #results_by_time} => Array<Types::ResultByTime>
13461352
# * {Types::GetCostAndUsageResponse#dimension_value_attributes #dimension_value_attributes} => Array<Types::DimensionValuesWithAttributes>
13471353
#
1354+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1355+
#
13481356
# @example Request syntax with placeholder values
13491357
#
13501358
# resp = client.get_cost_and_usage({
@@ -1528,6 +1536,8 @@ def get_cost_and_usage(params = {}, options = {})
15281536
# * {Types::GetCostAndUsageWithResourcesResponse#results_by_time #results_by_time} => Array<Types::ResultByTime>
15291537
# * {Types::GetCostAndUsageWithResourcesResponse#dimension_value_attributes #dimension_value_attributes} => Array<Types::DimensionValuesWithAttributes>
15301538
#
1539+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1540+
#
15311541
# @example Request syntax with placeholder values
15321542
#
15331543
# resp = client.get_cost_and_usage_with_resources({
@@ -1773,6 +1783,8 @@ def get_cost_and_usage_with_resources(params = {}, options = {})
17731783
# * {Types::GetCostCategoriesResponse#return_size #return_size} => Integer
17741784
# * {Types::GetCostCategoriesResponse#total_size #total_size} => Integer
17751785
#
1786+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1787+
#
17761788
# @example Request syntax with placeholder values
17771789
#
17781790
# resp = client.get_cost_categories({
@@ -2315,6 +2327,8 @@ def get_cost_forecast(params = {}, options = {})
23152327
# * {Types::GetDimensionValuesResponse#total_size #total_size} => Integer
23162328
# * {Types::GetDimensionValuesResponse#next_page_token #next_page_token} => String
23172329
#
2330+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2331+
#
23182332
# @example Request syntax with placeholder values
23192333
#
23202334
# resp = client.get_dimension_values({
@@ -2557,6 +2571,8 @@ def get_dimension_values(params = {}, options = {})
25572571
# * {Types::GetReservationCoverageResponse#total #total} => Types::Coverage
25582572
# * {Types::GetReservationCoverageResponse#next_page_token #next_page_token} => String
25592573
#
2574+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2575+
#
25602576
# @example Request syntax with placeholder values
25612577
#
25622578
# resp = client.get_reservation_coverage({
@@ -2814,6 +2830,8 @@ def get_reservation_coverage(params = {}, options = {})
28142830
# * {Types::GetReservationPurchaseRecommendationResponse#recommendations #recommendations} => Array<Types::ReservationPurchaseRecommendation>
28152831
# * {Types::GetReservationPurchaseRecommendationResponse#next_page_token #next_page_token} => String
28162832
#
2833+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2834+
#
28172835
# @example Request syntax with placeholder values
28182836
#
28192837
# resp = client.get_reservation_purchase_recommendation({
@@ -3063,6 +3081,8 @@ def get_reservation_purchase_recommendation(params = {}, options = {})
30633081
# * {Types::GetReservationUtilizationResponse#total #total} => Types::ReservationAggregates
30643082
# * {Types::GetReservationUtilizationResponse#next_page_token #next_page_token} => String
30653083
#
3084+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3085+
#
30663086
# @example Request syntax with placeholder values
30673087
#
30683088
# resp = client.get_reservation_utilization({
@@ -3321,6 +3341,8 @@ def get_reservation_utilization(params = {}, options = {})
33213341
# * {Types::GetRightsizingRecommendationResponse#next_page_token #next_page_token} => String
33223342
# * {Types::GetRightsizingRecommendationResponse#configuration #configuration} => Types::RightsizingRecommendationConfiguration
33233343
#
3344+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3345+
#
33243346
# @example Request syntax with placeholder values
33253347
#
33263348
# resp = client.get_rightsizing_recommendation({
@@ -3754,6 +3776,8 @@ def get_savings_plans_coverage(params = {}, options = {})
37543776
# * {Types::GetSavingsPlansPurchaseRecommendationResponse#savings_plans_purchase_recommendation #savings_plans_purchase_recommendation} => Types::SavingsPlansPurchaseRecommendation
37553777
# * {Types::GetSavingsPlansPurchaseRecommendationResponse#next_page_token #next_page_token} => String
37563778
#
3779+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3780+
#
37573781
# @example Request syntax with placeholder values
37583782
#
37593783
# resp = client.get_savings_plans_purchase_recommendation({
@@ -4316,6 +4340,8 @@ def get_savings_plans_utilization_details(params = {}, options = {})
43164340
# * {Types::GetTagsResponse#return_size #return_size} => Integer
43174341
# * {Types::GetTagsResponse#total_size #total_size} => Integer
43184342
#
4343+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4344+
#
43194345
# @example Request syntax with placeholder values
43204346
#
43214347
# resp = client.get_tags({
@@ -4726,6 +4752,8 @@ def list_cost_category_definitions(params = {}, options = {})
47264752
# * {Types::ListSavingsPlansPurchaseRecommendationGenerationResponse#generation_summary_list #generation_summary_list} => Array<Types::GenerationSummary>
47274753
# * {Types::ListSavingsPlansPurchaseRecommendationGenerationResponse#next_page_token #next_page_token} => String
47284754
#
4755+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4756+
#
47294757
# @example Request syntax with placeholder values
47304758
#
47314759
# 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
@@ -1627,6 +1627,12 @@ module ClientApi
16271627
o.output = Shapes::ShapeRef.new(shape: GetAnomaliesResponse)
16281628
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
16291629
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1630+
o[:pager] = Aws::Pager.new(
1631+
limit_key: "max_results",
1632+
tokens: {
1633+
"next_page_token" => "next_page_token"
1634+
}
1635+
)
16301636
end)
16311637

16321638
api.add_operation(:get_anomaly_monitors, Seahorse::Model::Operation.new.tap do |o|
@@ -1638,6 +1644,12 @@ module ClientApi
16381644
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
16391645
o.errors << Shapes::ShapeRef.new(shape: UnknownMonitorException)
16401646
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1647+
o[:pager] = Aws::Pager.new(
1648+
limit_key: "max_results",
1649+
tokens: {
1650+
"next_page_token" => "next_page_token"
1651+
}
1652+
)
16411653
end)
16421654

16431655
api.add_operation(:get_anomaly_subscriptions, Seahorse::Model::Operation.new.tap do |o|
@@ -1649,6 +1661,12 @@ module ClientApi
16491661
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
16501662
o.errors << Shapes::ShapeRef.new(shape: UnknownSubscriptionException)
16511663
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1664+
o[:pager] = Aws::Pager.new(
1665+
limit_key: "max_results",
1666+
tokens: {
1667+
"next_page_token" => "next_page_token"
1668+
}
1669+
)
16521670
end)
16531671

16541672
api.add_operation(:get_approximate_usage_records, Seahorse::Model::Operation.new.tap do |o|
@@ -1672,6 +1690,11 @@ module ClientApi
16721690
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
16731691
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
16741692
o.errors << Shapes::ShapeRef.new(shape: RequestChangedException)
1693+
o[:pager] = Aws::Pager.new(
1694+
tokens: {
1695+
"next_page_token" => "next_page_token"
1696+
}
1697+
)
16751698
end)
16761699

16771700
api.add_operation(:get_cost_and_usage_with_resources, Seahorse::Model::Operation.new.tap do |o|
@@ -1685,6 +1708,11 @@ module ClientApi
16851708
o.errors << Shapes::ShapeRef.new(shape: BillExpirationException)
16861709
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
16871710
o.errors << Shapes::ShapeRef.new(shape: RequestChangedException)
1711+
o[:pager] = Aws::Pager.new(
1712+
tokens: {
1713+
"next_page_token" => "next_page_token"
1714+
}
1715+
)
16881716
end)
16891717

16901718
api.add_operation(:get_cost_categories, Seahorse::Model::Operation.new.tap do |o|
@@ -1698,6 +1726,12 @@ module ClientApi
16981726
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
16991727
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
17001728
o.errors << Shapes::ShapeRef.new(shape: RequestChangedException)
1729+
o[:pager] = Aws::Pager.new(
1730+
limit_key: "max_results",
1731+
tokens: {
1732+
"next_page_token" => "next_page_token"
1733+
}
1734+
)
17011735
end)
17021736

17031737
api.add_operation(:get_cost_forecast, Seahorse::Model::Operation.new.tap do |o|
@@ -1721,6 +1755,12 @@ module ClientApi
17211755
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
17221756
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
17231757
o.errors << Shapes::ShapeRef.new(shape: RequestChangedException)
1758+
o[:pager] = Aws::Pager.new(
1759+
limit_key: "max_results",
1760+
tokens: {
1761+
"next_page_token" => "next_page_token"
1762+
}
1763+
)
17241764
end)
17251765

17261766
api.add_operation(:get_reservation_coverage, Seahorse::Model::Operation.new.tap do |o|
@@ -1732,6 +1772,12 @@ module ClientApi
17321772
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
17331773
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
17341774
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1775+
o[:pager] = Aws::Pager.new(
1776+
limit_key: "max_results",
1777+
tokens: {
1778+
"next_page_token" => "next_page_token"
1779+
}
1780+
)
17351781
end)
17361782

17371783
api.add_operation(:get_reservation_purchase_recommendation, Seahorse::Model::Operation.new.tap do |o|
@@ -1743,6 +1789,12 @@ module ClientApi
17431789
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
17441790
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
17451791
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1792+
o[:pager] = Aws::Pager.new(
1793+
limit_key: "page_size",
1794+
tokens: {
1795+
"next_page_token" => "next_page_token"
1796+
}
1797+
)
17461798
end)
17471799

17481800
api.add_operation(:get_reservation_utilization, Seahorse::Model::Operation.new.tap do |o|
@@ -1754,6 +1806,12 @@ module ClientApi
17541806
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
17551807
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
17561808
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1809+
o[:pager] = Aws::Pager.new(
1810+
limit_key: "max_results",
1811+
tokens: {
1812+
"next_page_token" => "next_page_token"
1813+
}
1814+
)
17571815
end)
17581816

17591817
api.add_operation(:get_rightsizing_recommendation, Seahorse::Model::Operation.new.tap do |o|
@@ -1764,6 +1822,12 @@ module ClientApi
17641822
o.output = Shapes::ShapeRef.new(shape: GetRightsizingRecommendationResponse)
17651823
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
17661824
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1825+
o[:pager] = Aws::Pager.new(
1826+
limit_key: "page_size",
1827+
tokens: {
1828+
"next_page_token" => "next_page_token"
1829+
}
1830+
)
17671831
end)
17681832

17691833
api.add_operation(:get_savings_plan_purchase_recommendation_details, Seahorse::Model::Operation.new.tap do |o|
@@ -1801,6 +1865,12 @@ module ClientApi
18011865
o.output = Shapes::ShapeRef.new(shape: GetSavingsPlansPurchaseRecommendationResponse)
18021866
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
18031867
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1868+
o[:pager] = Aws::Pager.new(
1869+
limit_key: "page_size",
1870+
tokens: {
1871+
"next_token" => "next_token"
1872+
}
1873+
)
18041874
end)
18051875

18061876
api.add_operation(:get_savings_plans_utilization, Seahorse::Model::Operation.new.tap do |o|
@@ -1841,6 +1911,12 @@ module ClientApi
18411911
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
18421912
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
18431913
o.errors << Shapes::ShapeRef.new(shape: RequestChangedException)
1914+
o[:pager] = Aws::Pager.new(
1915+
limit_key: "max_results",
1916+
tokens: {
1917+
"next_page_token" => "next_page_token"
1918+
}
1919+
)
18441920
end)
18451921

18461922
api.add_operation(:get_usage_forecast, Seahorse::Model::Operation.new.tap do |o|
@@ -1910,6 +1986,12 @@ module ClientApi
19101986
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
19111987
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
19121988
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
1989+
o[:pager] = Aws::Pager.new(
1990+
limit_key: "page_size",
1991+
tokens: {
1992+
"next_token" => "next_token"
1993+
}
1994+
)
19131995
end)
19141996

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

0 commit comments

Comments
 (0)