Skip to content

Commit 52c9a37

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 b7a2a8c commit 52c9a37

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
@@ -976,6 +976,8 @@ def describe_cost_category_definition(params = {}, options = {})
976976
# * {Types::GetAnomaliesResponse#anomalies #anomalies} => Array<Types::Anomaly>
977977
# * {Types::GetAnomaliesResponse#next_page_token #next_page_token} => String
978978
#
979+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
980+
#
979981
# @example Request syntax with placeholder values
980982
#
981983
# resp = client.get_anomalies({
@@ -1047,6 +1049,8 @@ def get_anomalies(params = {}, options = {})
10471049
# * {Types::GetAnomalyMonitorsResponse#anomaly_monitors #anomaly_monitors} => Array<Types::AnomalyMonitor>
10481050
# * {Types::GetAnomalyMonitorsResponse#next_page_token #next_page_token} => String
10491051
#
1052+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1053+
#
10501054
# @example Request syntax with placeholder values
10511055
#
10521056
# resp = client.get_anomaly_monitors({
@@ -1120,6 +1124,8 @@ def get_anomaly_monitors(params = {}, options = {})
11201124
# * {Types::GetAnomalySubscriptionsResponse#anomaly_subscriptions #anomaly_subscriptions} => Array<Types::AnomalySubscription>
11211125
# * {Types::GetAnomalySubscriptionsResponse#next_page_token #next_page_token} => String
11221126
#
1127+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1128+
#
11231129
# @example Request syntax with placeholder values
11241130
#
11251131
# resp = client.get_anomaly_subscriptions({
@@ -1318,6 +1324,8 @@ def get_approximate_usage_records(params = {}, options = {})
13181324
# * {Types::GetCostAndUsageResponse#results_by_time #results_by_time} => Array<Types::ResultByTime>
13191325
# * {Types::GetCostAndUsageResponse#dimension_value_attributes #dimension_value_attributes} => Array<Types::DimensionValuesWithAttributes>
13201326
#
1327+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1328+
#
13211329
# @example Request syntax with placeholder values
13221330
#
13231331
# resp = client.get_cost_and_usage({
@@ -1501,6 +1509,8 @@ def get_cost_and_usage(params = {}, options = {})
15011509
# * {Types::GetCostAndUsageWithResourcesResponse#results_by_time #results_by_time} => Array<Types::ResultByTime>
15021510
# * {Types::GetCostAndUsageWithResourcesResponse#dimension_value_attributes #dimension_value_attributes} => Array<Types::DimensionValuesWithAttributes>
15031511
#
1512+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1513+
#
15041514
# @example Request syntax with placeholder values
15051515
#
15061516
# resp = client.get_cost_and_usage_with_resources({
@@ -1746,6 +1756,8 @@ def get_cost_and_usage_with_resources(params = {}, options = {})
17461756
# * {Types::GetCostCategoriesResponse#return_size #return_size} => Integer
17471757
# * {Types::GetCostCategoriesResponse#total_size #total_size} => Integer
17481758
#
1759+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1760+
#
17491761
# @example Request syntax with placeholder values
17501762
#
17511763
# resp = client.get_cost_categories({
@@ -2288,6 +2300,8 @@ def get_cost_forecast(params = {}, options = {})
22882300
# * {Types::GetDimensionValuesResponse#total_size #total_size} => Integer
22892301
# * {Types::GetDimensionValuesResponse#next_page_token #next_page_token} => String
22902302
#
2303+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2304+
#
22912305
# @example Request syntax with placeholder values
22922306
#
22932307
# resp = client.get_dimension_values({
@@ -2530,6 +2544,8 @@ def get_dimension_values(params = {}, options = {})
25302544
# * {Types::GetReservationCoverageResponse#total #total} => Types::Coverage
25312545
# * {Types::GetReservationCoverageResponse#next_page_token #next_page_token} => String
25322546
#
2547+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2548+
#
25332549
# @example Request syntax with placeholder values
25342550
#
25352551
# resp = client.get_reservation_coverage({
@@ -2787,6 +2803,8 @@ def get_reservation_coverage(params = {}, options = {})
27872803
# * {Types::GetReservationPurchaseRecommendationResponse#recommendations #recommendations} => Array<Types::ReservationPurchaseRecommendation>
27882804
# * {Types::GetReservationPurchaseRecommendationResponse#next_page_token #next_page_token} => String
27892805
#
2806+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2807+
#
27902808
# @example Request syntax with placeholder values
27912809
#
27922810
# resp = client.get_reservation_purchase_recommendation({
@@ -3036,6 +3054,8 @@ def get_reservation_purchase_recommendation(params = {}, options = {})
30363054
# * {Types::GetReservationUtilizationResponse#total #total} => Types::ReservationAggregates
30373055
# * {Types::GetReservationUtilizationResponse#next_page_token #next_page_token} => String
30383056
#
3057+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3058+
#
30393059
# @example Request syntax with placeholder values
30403060
#
30413061
# resp = client.get_reservation_utilization({
@@ -3294,6 +3314,8 @@ def get_reservation_utilization(params = {}, options = {})
32943314
# * {Types::GetRightsizingRecommendationResponse#next_page_token #next_page_token} => String
32953315
# * {Types::GetRightsizingRecommendationResponse#configuration #configuration} => Types::RightsizingRecommendationConfiguration
32963316
#
3317+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3318+
#
32973319
# @example Request syntax with placeholder values
32983320
#
32993321
# resp = client.get_rightsizing_recommendation({
@@ -3727,6 +3749,8 @@ def get_savings_plans_coverage(params = {}, options = {})
37273749
# * {Types::GetSavingsPlansPurchaseRecommendationResponse#savings_plans_purchase_recommendation #savings_plans_purchase_recommendation} => Types::SavingsPlansPurchaseRecommendation
37283750
# * {Types::GetSavingsPlansPurchaseRecommendationResponse#next_page_token #next_page_token} => String
37293751
#
3752+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3753+
#
37303754
# @example Request syntax with placeholder values
37313755
#
37323756
# resp = client.get_savings_plans_purchase_recommendation({
@@ -4289,6 +4313,8 @@ def get_savings_plans_utilization_details(params = {}, options = {})
42894313
# * {Types::GetTagsResponse#return_size #return_size} => Integer
42904314
# * {Types::GetTagsResponse#total_size #total_size} => Integer
42914315
#
4316+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4317+
#
42924318
# @example Request syntax with placeholder values
42934319
#
42944320
# resp = client.get_tags({
@@ -4699,6 +4725,8 @@ def list_cost_category_definitions(params = {}, options = {})
46994725
# * {Types::ListSavingsPlansPurchaseRecommendationGenerationResponse#generation_summary_list #generation_summary_list} => Array<Types::GenerationSummary>
47004726
# * {Types::ListSavingsPlansPurchaseRecommendationGenerationResponse#next_page_token #next_page_token} => String
47014727
#
4728+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4729+
#
47024730
# @example Request syntax with placeholder values
47034731
#
47044732
# 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
@@ -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)