Skip to content

Commit e23d71d

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 27142a4 commit e23d71d

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
@@ -985,6 +985,8 @@ def describe_cost_category_definition(params = {}, options = {})
985985
# * {Types::GetAnomaliesResponse#anomalies #anomalies} => Array<Types::Anomaly>
986986
# * {Types::GetAnomaliesResponse#next_page_token #next_page_token} => String
987987
#
988+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
989+
#
988990
# @example Request syntax with placeholder values
989991
#
990992
# resp = client.get_anomalies({
@@ -1056,6 +1058,8 @@ def get_anomalies(params = {}, options = {})
10561058
# * {Types::GetAnomalyMonitorsResponse#anomaly_monitors #anomaly_monitors} => Array<Types::AnomalyMonitor>
10571059
# * {Types::GetAnomalyMonitorsResponse#next_page_token #next_page_token} => String
10581060
#
1061+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1062+
#
10591063
# @example Request syntax with placeholder values
10601064
#
10611065
# resp = client.get_anomaly_monitors({
@@ -1129,6 +1133,8 @@ def get_anomaly_monitors(params = {}, options = {})
11291133
# * {Types::GetAnomalySubscriptionsResponse#anomaly_subscriptions #anomaly_subscriptions} => Array<Types::AnomalySubscription>
11301134
# * {Types::GetAnomalySubscriptionsResponse#next_page_token #next_page_token} => String
11311135
#
1136+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1137+
#
11321138
# @example Request syntax with placeholder values
11331139
#
11341140
# resp = client.get_anomaly_subscriptions({
@@ -1327,6 +1333,8 @@ def get_approximate_usage_records(params = {}, options = {})
13271333
# * {Types::GetCostAndUsageResponse#results_by_time #results_by_time} => Array<Types::ResultByTime>
13281334
# * {Types::GetCostAndUsageResponse#dimension_value_attributes #dimension_value_attributes} => Array<Types::DimensionValuesWithAttributes>
13291335
#
1336+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1337+
#
13301338
# @example Request syntax with placeholder values
13311339
#
13321340
# resp = client.get_cost_and_usage({
@@ -1510,6 +1518,8 @@ def get_cost_and_usage(params = {}, options = {})
15101518
# * {Types::GetCostAndUsageWithResourcesResponse#results_by_time #results_by_time} => Array<Types::ResultByTime>
15111519
# * {Types::GetCostAndUsageWithResourcesResponse#dimension_value_attributes #dimension_value_attributes} => Array<Types::DimensionValuesWithAttributes>
15121520
#
1521+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1522+
#
15131523
# @example Request syntax with placeholder values
15141524
#
15151525
# resp = client.get_cost_and_usage_with_resources({
@@ -1755,6 +1765,8 @@ def get_cost_and_usage_with_resources(params = {}, options = {})
17551765
# * {Types::GetCostCategoriesResponse#return_size #return_size} => Integer
17561766
# * {Types::GetCostCategoriesResponse#total_size #total_size} => Integer
17571767
#
1768+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1769+
#
17581770
# @example Request syntax with placeholder values
17591771
#
17601772
# resp = client.get_cost_categories({
@@ -2297,6 +2309,8 @@ def get_cost_forecast(params = {}, options = {})
22972309
# * {Types::GetDimensionValuesResponse#total_size #total_size} => Integer
22982310
# * {Types::GetDimensionValuesResponse#next_page_token #next_page_token} => String
22992311
#
2312+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2313+
#
23002314
# @example Request syntax with placeholder values
23012315
#
23022316
# resp = client.get_dimension_values({
@@ -2539,6 +2553,8 @@ def get_dimension_values(params = {}, options = {})
25392553
# * {Types::GetReservationCoverageResponse#total #total} => Types::Coverage
25402554
# * {Types::GetReservationCoverageResponse#next_page_token #next_page_token} => String
25412555
#
2556+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2557+
#
25422558
# @example Request syntax with placeholder values
25432559
#
25442560
# resp = client.get_reservation_coverage({
@@ -2796,6 +2812,8 @@ def get_reservation_coverage(params = {}, options = {})
27962812
# * {Types::GetReservationPurchaseRecommendationResponse#recommendations #recommendations} => Array<Types::ReservationPurchaseRecommendation>
27972813
# * {Types::GetReservationPurchaseRecommendationResponse#next_page_token #next_page_token} => String
27982814
#
2815+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2816+
#
27992817
# @example Request syntax with placeholder values
28002818
#
28012819
# resp = client.get_reservation_purchase_recommendation({
@@ -3045,6 +3063,8 @@ def get_reservation_purchase_recommendation(params = {}, options = {})
30453063
# * {Types::GetReservationUtilizationResponse#total #total} => Types::ReservationAggregates
30463064
# * {Types::GetReservationUtilizationResponse#next_page_token #next_page_token} => String
30473065
#
3066+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3067+
#
30483068
# @example Request syntax with placeholder values
30493069
#
30503070
# resp = client.get_reservation_utilization({
@@ -3303,6 +3323,8 @@ def get_reservation_utilization(params = {}, options = {})
33033323
# * {Types::GetRightsizingRecommendationResponse#next_page_token #next_page_token} => String
33043324
# * {Types::GetRightsizingRecommendationResponse#configuration #configuration} => Types::RightsizingRecommendationConfiguration
33053325
#
3326+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3327+
#
33063328
# @example Request syntax with placeholder values
33073329
#
33083330
# resp = client.get_rightsizing_recommendation({
@@ -3736,6 +3758,8 @@ def get_savings_plans_coverage(params = {}, options = {})
37363758
# * {Types::GetSavingsPlansPurchaseRecommendationResponse#savings_plans_purchase_recommendation #savings_plans_purchase_recommendation} => Types::SavingsPlansPurchaseRecommendation
37373759
# * {Types::GetSavingsPlansPurchaseRecommendationResponse#next_page_token #next_page_token} => String
37383760
#
3761+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3762+
#
37393763
# @example Request syntax with placeholder values
37403764
#
37413765
# resp = client.get_savings_plans_purchase_recommendation({
@@ -4298,6 +4322,8 @@ def get_savings_plans_utilization_details(params = {}, options = {})
42984322
# * {Types::GetTagsResponse#return_size #return_size} => Integer
42994323
# * {Types::GetTagsResponse#total_size #total_size} => Integer
43004324
#
4325+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4326+
#
43014327
# @example Request syntax with placeholder values
43024328
#
43034329
# resp = client.get_tags({
@@ -4708,6 +4734,8 @@ def list_cost_category_definitions(params = {}, options = {})
47084734
# * {Types::ListSavingsPlansPurchaseRecommendationGenerationResponse#generation_summary_list #generation_summary_list} => Array<Types::GenerationSummary>
47094735
# * {Types::ListSavingsPlansPurchaseRecommendationGenerationResponse#next_page_token #next_page_token} => String
47104736
#
4737+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4738+
#
47114739
# @example Request syntax with placeholder values
47124740
#
47134741
# 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)