Skip to content

Commit fcb7f38

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 db8191c commit fcb7f38

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
@@ -1625,6 +1625,12 @@ module ClientApi
16251625
o.output = Shapes::ShapeRef.new(shape: GetAnomaliesResponse)
16261626
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
16271627
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1628+
o[:pager] = Aws::Pager.new(
1629+
limit_key: "max_results",
1630+
tokens: {
1631+
"next_page_token" => "next_page_token"
1632+
}
1633+
)
16281634
end)
16291635

16301636
api.add_operation(:get_anomaly_monitors, Seahorse::Model::Operation.new.tap do |o|
@@ -1636,6 +1642,12 @@ module ClientApi
16361642
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
16371643
o.errors << Shapes::ShapeRef.new(shape: UnknownMonitorException)
16381644
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+
)
16391651
end)
16401652

16411653
api.add_operation(:get_anomaly_subscriptions, Seahorse::Model::Operation.new.tap do |o|
@@ -1647,6 +1659,12 @@ module ClientApi
16471659
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
16481660
o.errors << Shapes::ShapeRef.new(shape: UnknownSubscriptionException)
16491661
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+
)
16501668
end)
16511669

16521670
api.add_operation(:get_approximate_usage_records, Seahorse::Model::Operation.new.tap do |o|
@@ -1670,6 +1688,11 @@ module ClientApi
16701688
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
16711689
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
16721690
o.errors << Shapes::ShapeRef.new(shape: RequestChangedException)
1691+
o[:pager] = Aws::Pager.new(
1692+
tokens: {
1693+
"next_page_token" => "next_page_token"
1694+
}
1695+
)
16731696
end)
16741697

16751698
api.add_operation(:get_cost_and_usage_with_resources, Seahorse::Model::Operation.new.tap do |o|
@@ -1683,6 +1706,11 @@ module ClientApi
16831706
o.errors << Shapes::ShapeRef.new(shape: BillExpirationException)
16841707
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
16851708
o.errors << Shapes::ShapeRef.new(shape: RequestChangedException)
1709+
o[:pager] = Aws::Pager.new(
1710+
tokens: {
1711+
"next_page_token" => "next_page_token"
1712+
}
1713+
)
16861714
end)
16871715

16881716
api.add_operation(:get_cost_categories, Seahorse::Model::Operation.new.tap do |o|
@@ -1696,6 +1724,12 @@ module ClientApi
16961724
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
16971725
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
16981726
o.errors << Shapes::ShapeRef.new(shape: RequestChangedException)
1727+
o[:pager] = Aws::Pager.new(
1728+
limit_key: "max_results",
1729+
tokens: {
1730+
"next_page_token" => "next_page_token"
1731+
}
1732+
)
16991733
end)
17001734

17011735
api.add_operation(:get_cost_forecast, Seahorse::Model::Operation.new.tap do |o|
@@ -1719,6 +1753,12 @@ module ClientApi
17191753
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
17201754
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
17211755
o.errors << Shapes::ShapeRef.new(shape: RequestChangedException)
1756+
o[:pager] = Aws::Pager.new(
1757+
limit_key: "max_results",
1758+
tokens: {
1759+
"next_page_token" => "next_page_token"
1760+
}
1761+
)
17221762
end)
17231763

17241764
api.add_operation(:get_reservation_coverage, Seahorse::Model::Operation.new.tap do |o|
@@ -1730,6 +1770,12 @@ module ClientApi
17301770
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
17311771
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
17321772
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1773+
o[:pager] = Aws::Pager.new(
1774+
limit_key: "max_results",
1775+
tokens: {
1776+
"next_page_token" => "next_page_token"
1777+
}
1778+
)
17331779
end)
17341780

17351781
api.add_operation(:get_reservation_purchase_recommendation, Seahorse::Model::Operation.new.tap do |o|
@@ -1741,6 +1787,12 @@ module ClientApi
17411787
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
17421788
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
17431789
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1790+
o[:pager] = Aws::Pager.new(
1791+
limit_key: "page_size",
1792+
tokens: {
1793+
"next_page_token" => "next_page_token"
1794+
}
1795+
)
17441796
end)
17451797

17461798
api.add_operation(:get_reservation_utilization, Seahorse::Model::Operation.new.tap do |o|
@@ -1752,6 +1804,12 @@ module ClientApi
17521804
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
17531805
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
17541806
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1807+
o[:pager] = Aws::Pager.new(
1808+
limit_key: "max_results",
1809+
tokens: {
1810+
"next_page_token" => "next_page_token"
1811+
}
1812+
)
17551813
end)
17561814

17571815
api.add_operation(:get_rightsizing_recommendation, Seahorse::Model::Operation.new.tap do |o|
@@ -1762,6 +1820,12 @@ module ClientApi
17621820
o.output = Shapes::ShapeRef.new(shape: GetRightsizingRecommendationResponse)
17631821
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
17641822
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1823+
o[:pager] = Aws::Pager.new(
1824+
limit_key: "page_size",
1825+
tokens: {
1826+
"next_page_token" => "next_page_token"
1827+
}
1828+
)
17651829
end)
17661830

17671831
api.add_operation(:get_savings_plan_purchase_recommendation_details, Seahorse::Model::Operation.new.tap do |o|
@@ -1799,6 +1863,12 @@ module ClientApi
17991863
o.output = Shapes::ShapeRef.new(shape: GetSavingsPlansPurchaseRecommendationResponse)
18001864
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
18011865
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1866+
o[:pager] = Aws::Pager.new(
1867+
limit_key: "page_size",
1868+
tokens: {
1869+
"next_token" => "next_token"
1870+
}
1871+
)
18021872
end)
18031873

18041874
api.add_operation(:get_savings_plans_utilization, Seahorse::Model::Operation.new.tap do |o|
@@ -1839,6 +1909,12 @@ module ClientApi
18391909
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
18401910
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
18411911
o.errors << Shapes::ShapeRef.new(shape: RequestChangedException)
1912+
o[:pager] = Aws::Pager.new(
1913+
limit_key: "max_results",
1914+
tokens: {
1915+
"next_page_token" => "next_page_token"
1916+
}
1917+
)
18421918
end)
18431919

18441920
api.add_operation(:get_usage_forecast, Seahorse::Model::Operation.new.tap do |o|
@@ -1908,6 +1984,12 @@ module ClientApi
19081984
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
19091985
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
19101986
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
1987+
o[:pager] = Aws::Pager.new(
1988+
limit_key: "page_size",
1989+
tokens: {
1990+
"next_token" => "next_token"
1991+
}
1992+
)
19111993
end)
19121994

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

0 commit comments

Comments
 (0)