Skip to content

Commit 3388120

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 a8d539d commit 3388120

File tree

5 files changed

+239
-81
lines changed

5 files changed

+239
-81
lines changed

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

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,6 +1470,8 @@ def get_commitment_purchase_analysis(params = {}, options = {})
14701470
# * {Types::GetCostAndUsageResponse#results_by_time #results_by_time} => Array<Types::ResultByTime>
14711471
# * {Types::GetCostAndUsageResponse#dimension_value_attributes #dimension_value_attributes} => Array<Types::DimensionValuesWithAttributes>
14721472
#
1473+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1474+
#
14731475
# @example Request syntax with placeholder values
14741476
#
14751477
# resp = client.get_cost_and_usage({
@@ -1603,6 +1605,7 @@ def get_cost_and_usage(params = {}, options = {})
16031605
#
16041606
# * Specify the `Dimensions` field to define a filter that acts on
16051607
# the [ `DimensionValues` ][1].
1608+
#
16061609
# * For each filter type, you can set the dimension name and values
16071610
# for the filters that you plan to use.
16081611
#
@@ -1617,6 +1620,7 @@ def get_cost_and_usage(params = {}, options = {})
16171620
#
16181621
# * As shown in the previous example, lists of dimension values are
16191622
# combined with `OR` when applying the filter.
1623+
#
16201624
# * You can also set different match options to further control how
16211625
# the filter behaves. Not all APIs support match options. Refer to
16221626
# the documentation for each specific API to see what is supported.
@@ -1627,6 +1631,7 @@ def get_cost_and_usage(params = {}, options = {})
16271631
# * The corresponding `Expression` for this example is as follows:
16281632
# `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions":
16291633
# [ "STARTS_WITH" ], "Values": [ "a" ] } }`
1634+
#
16301635
# * Compound `Expression` types with logical operations.
16311636
#
16321637
# * You can use multiple `Expression` types and the logical operators
@@ -1642,6 +1647,7 @@ def get_cost_and_usage(params = {}, options = {})
16421647
# "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName",
16431648
# "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key":
16441649
# "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } `
1650+
#
16451651
# <note markdown="1"> Because each `Expression` can have only one operator, the service
16461652
# returns an error if more than one is specified. The following
16471653
# example shows an `Expression` object that creates an error: ` {
@@ -1892,6 +1898,8 @@ def get_cost_and_usage_comparisons(params = {}, options = {})
18921898
# * {Types::GetCostAndUsageWithResourcesResponse#results_by_time #results_by_time} => Array&lt;Types::ResultByTime&gt;
18931899
# * {Types::GetCostAndUsageWithResourcesResponse#dimension_value_attributes #dimension_value_attributes} => Array&lt;Types::DimensionValuesWithAttributes&gt;
18941900
#
1901+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1902+
#
18951903
# @example Request syntax with placeholder values
18961904
#
18971905
# resp = client.get_cost_and_usage_with_resources({
@@ -2016,6 +2024,7 @@ def get_cost_and_usage_with_resources(params = {}, options = {})
20162024
#
20172025
# * Specify the `Dimensions` field to define a filter that acts on
20182026
# the [ `DimensionValues` ][1].
2027+
#
20192028
# * For each filter type, you can set the dimension name and values
20202029
# for the filters that you plan to use.
20212030
#
@@ -2030,6 +2039,7 @@ def get_cost_and_usage_with_resources(params = {}, options = {})
20302039
#
20312040
# * As shown in the previous example, lists of dimension values are
20322041
# combined with `OR` when applying the filter.
2042+
#
20332043
# * You can also set different match options to further control how
20342044
# the filter behaves. Not all APIs support match options. Refer to
20352045
# the documentation for each specific API to see what is supported.
@@ -2040,6 +2050,7 @@ def get_cost_and_usage_with_resources(params = {}, options = {})
20402050
# * The corresponding `Expression` for this example is as follows:
20412051
# `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions":
20422052
# [ "STARTS_WITH" ], "Values": [ "a" ] } }`
2053+
#
20432054
# * Compound `Expression` types with logical operations.
20442055
#
20452056
# * You can use multiple `Expression` types and the logical operators
@@ -2055,6 +2066,7 @@ def get_cost_and_usage_with_resources(params = {}, options = {})
20552066
# "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName",
20562067
# "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key":
20572068
# "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } `
2069+
#
20582070
# <note markdown="1"> Because each `Expression` can have only one operator, the service
20592071
# returns an error if more than one is specified. The following
20602072
# example shows an `Expression` object that creates an error: ` {
@@ -2142,6 +2154,8 @@ def get_cost_and_usage_with_resources(params = {}, options = {})
21422154
# * {Types::GetCostCategoriesResponse#return_size #return_size} => Integer
21432155
# * {Types::GetCostCategoriesResponse#total_size #total_size} => Integer
21442156
#
2157+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2158+
#
21452159
# @example Request syntax with placeholder values
21462160
#
21472161
# resp = client.get_cost_categories({
@@ -2263,6 +2277,7 @@ def get_cost_categories(params = {}, options = {})
22632277
#
22642278
# * Specify the `Dimensions` field to define a filter that acts on
22652279
# the [ `DimensionValues` ][1].
2280+
#
22662281
# * For each filter type, you can set the dimension name and values
22672282
# for the filters that you plan to use.
22682283
#
@@ -2277,6 +2292,7 @@ def get_cost_categories(params = {}, options = {})
22772292
#
22782293
# * As shown in the previous example, lists of dimension values are
22792294
# combined with `OR` when applying the filter.
2295+
#
22802296
# * You can also set different match options to further control how
22812297
# the filter behaves. Not all APIs support match options. Refer to
22822298
# the documentation for each specific API to see what is supported.
@@ -2287,6 +2303,7 @@ def get_cost_categories(params = {}, options = {})
22872303
# * The corresponding `Expression` for this example is as follows:
22882304
# `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions":
22892305
# [ "STARTS_WITH" ], "Values": [ "a" ] } }`
2306+
#
22902307
# * Compound `Expression` types with logical operations.
22912308
#
22922309
# * You can use multiple `Expression` types and the logical operators
@@ -2302,6 +2319,7 @@ def get_cost_categories(params = {}, options = {})
23022319
# "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName",
23032320
# "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key":
23042321
# "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } `
2322+
#
23052323
# <note markdown="1"> Because each `Expression` can have only one operator, the service
23062324
# returns an error if more than one is specified. The following
23072325
# example shows an `Expression` object that creates an error: ` {
@@ -2812,6 +2830,7 @@ def get_cost_forecast(params = {}, options = {})
28122830
#
28132831
# * Specify the `Dimensions` field to define a filter that acts on
28142832
# the [ `DimensionValues` ][1].
2833+
#
28152834
# * For each filter type, you can set the dimension name and values
28162835
# for the filters that you plan to use.
28172836
#
@@ -2826,6 +2845,7 @@ def get_cost_forecast(params = {}, options = {})
28262845
#
28272846
# * As shown in the previous example, lists of dimension values are
28282847
# combined with `OR` when applying the filter.
2848+
#
28292849
# * You can also set different match options to further control how
28302850
# the filter behaves. Not all APIs support match options. Refer to
28312851
# the documentation for each specific API to see what is supported.
@@ -2836,6 +2856,7 @@ def get_cost_forecast(params = {}, options = {})
28362856
# * The corresponding `Expression` for this example is as follows:
28372857
# `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions":
28382858
# [ "STARTS_WITH" ], "Values": [ "a" ] } }`
2859+
#
28392860
# * Compound `Expression` types with logical operations.
28402861
#
28412862
# * You can use multiple `Expression` types and the logical operators
@@ -2851,6 +2872,7 @@ def get_cost_forecast(params = {}, options = {})
28512872
# "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName",
28522873
# "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key":
28532874
# "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } `
2875+
#
28542876
# <note markdown="1"> Because each `Expression` can have only one operator, the service
28552877
# returns an error if more than one is specified. The following
28562878
# example shows an `Expression` object that creates an error: ` {
@@ -2935,6 +2957,8 @@ def get_cost_forecast(params = {}, options = {})
29352957
# * {Types::GetDimensionValuesResponse#total_size #total_size} => Integer
29362958
# * {Types::GetDimensionValuesResponse#next_page_token #next_page_token} => String
29372959
#
2960+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2961+
#
29382962
# @example Request syntax with placeholder values
29392963
#
29402964
# resp = client.get_dimension_values({
@@ -3178,6 +3202,8 @@ def get_dimension_values(params = {}, options = {})
31783202
# * {Types::GetReservationCoverageResponse#total #total} => Types::Coverage
31793203
# * {Types::GetReservationCoverageResponse#next_page_token #next_page_token} => String
31803204
#
3205+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3206+
#
31813207
# @example Request syntax with placeholder values
31823208
#
31833209
# resp = client.get_reservation_coverage({
@@ -3327,6 +3353,7 @@ def get_reservation_coverage(params = {}, options = {})
33273353
#
33283354
# * Specify the `Dimensions` field to define a filter that acts on
33293355
# the [ `DimensionValues` ][1].
3356+
#
33303357
# * For each filter type, you can set the dimension name and values
33313358
# for the filters that you plan to use.
33323359
#
@@ -3341,6 +3368,7 @@ def get_reservation_coverage(params = {}, options = {})
33413368
#
33423369
# * As shown in the previous example, lists of dimension values are
33433370
# combined with `OR` when applying the filter.
3371+
#
33443372
# * You can also set different match options to further control how
33453373
# the filter behaves. Not all APIs support match options. Refer to
33463374
# the documentation for each specific API to see what is supported.
@@ -3351,6 +3379,7 @@ def get_reservation_coverage(params = {}, options = {})
33513379
# * The corresponding `Expression` for this example is as follows:
33523380
# `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions":
33533381
# [ "STARTS_WITH" ], "Values": [ "a" ] } }`
3382+
#
33543383
# * Compound `Expression` types with logical operations.
33553384
#
33563385
# * You can use multiple `Expression` types and the logical operators
@@ -3366,6 +3395,7 @@ def get_reservation_coverage(params = {}, options = {})
33663395
# "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName",
33673396
# "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key":
33683397
# "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } `
3398+
#
33693399
# <note markdown="1"> Because each `Expression` can have only one operator, the service
33703400
# returns an error if more than one is specified. The following
33713401
# example shows an `Expression` object that creates an error: ` {
@@ -3431,6 +3461,8 @@ def get_reservation_coverage(params = {}, options = {})
34313461
# * {Types::GetReservationPurchaseRecommendationResponse#recommendations #recommendations} => Array&lt;Types::ReservationPurchaseRecommendation&gt;
34323462
# * {Types::GetReservationPurchaseRecommendationResponse#next_page_token #next_page_token} => String
34333463
#
3464+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3465+
#
34343466
# @example Request syntax with placeholder values
34353467
#
34363468
# resp = client.get_reservation_purchase_recommendation({
@@ -3694,6 +3726,8 @@ def get_reservation_purchase_recommendation(params = {}, options = {})
36943726
# * {Types::GetReservationUtilizationResponse#total #total} => Types::ReservationAggregates
36953727
# * {Types::GetReservationUtilizationResponse#next_page_token #next_page_token} => String
36963728
#
3729+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3730+
#
36973731
# @example Request syntax with placeholder values
36983732
#
36993733
# resp = client.get_reservation_utilization({
@@ -3852,6 +3886,7 @@ def get_reservation_utilization(params = {}, options = {})
38523886
#
38533887
# * Specify the `Dimensions` field to define a filter that acts on
38543888
# the [ `DimensionValues` ][1].
3889+
#
38553890
# * For each filter type, you can set the dimension name and values
38563891
# for the filters that you plan to use.
38573892
#
@@ -3866,6 +3901,7 @@ def get_reservation_utilization(params = {}, options = {})
38663901
#
38673902
# * As shown in the previous example, lists of dimension values are
38683903
# combined with `OR` when applying the filter.
3904+
#
38693905
# * You can also set different match options to further control how
38703906
# the filter behaves. Not all APIs support match options. Refer to
38713907
# the documentation for each specific API to see what is supported.
@@ -3876,6 +3912,7 @@ def get_reservation_utilization(params = {}, options = {})
38763912
# * The corresponding `Expression` for this example is as follows:
38773913
# `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions":
38783914
# [ "STARTS_WITH" ], "Values": [ "a" ] } }`
3915+
#
38793916
# * Compound `Expression` types with logical operations.
38803917
#
38813918
# * You can use multiple `Expression` types and the logical operators
@@ -3891,6 +3928,7 @@ def get_reservation_utilization(params = {}, options = {})
38913928
# "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName",
38923929
# "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key":
38933930
# "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } `
3931+
#
38943932
# <note markdown="1"> Because each `Expression` can have only one operator, the service
38953933
# returns an error if more than one is specified. The following
38963934
# example shows an `Expression` object that creates an error: ` {
@@ -3948,6 +3986,8 @@ def get_reservation_utilization(params = {}, options = {})
39483986
# * {Types::GetRightsizingRecommendationResponse#next_page_token #next_page_token} => String
39493987
# * {Types::GetRightsizingRecommendationResponse#configuration #configuration} => Types::RightsizingRecommendationConfiguration
39503988
#
3989+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3990+
#
39513991
# @example Request syntax with placeholder values
39523992
#
39533993
# resp = client.get_rightsizing_recommendation({
@@ -4381,6 +4421,8 @@ def get_savings_plans_coverage(params = {}, options = {})
43814421
# * {Types::GetSavingsPlansPurchaseRecommendationResponse#savings_plans_purchase_recommendation #savings_plans_purchase_recommendation} => Types::SavingsPlansPurchaseRecommendation
43824422
# * {Types::GetSavingsPlansPurchaseRecommendationResponse#next_page_token #next_page_token} => String
43834423
#
4424+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4425+
#
43844426
# @example Request syntax with placeholder values
43854427
#
43864428
# resp = client.get_savings_plans_purchase_recommendation({
@@ -4826,6 +4868,7 @@ def get_savings_plans_utilization_details(params = {}, options = {})
48264868
#
48274869
# * Specify the `Dimensions` field to define a filter that acts on
48284870
# the [ `DimensionValues` ][1].
4871+
#
48294872
# * For each filter type, you can set the dimension name and values
48304873
# for the filters that you plan to use.
48314874
#
@@ -4840,6 +4883,7 @@ def get_savings_plans_utilization_details(params = {}, options = {})
48404883
#
48414884
# * As shown in the previous example, lists of dimension values are
48424885
# combined with `OR` when applying the filter.
4886+
#
48434887
# * You can also set different match options to further control how
48444888
# the filter behaves. Not all APIs support match options. Refer to
48454889
# the documentation for each specific API to see what is supported.
@@ -4850,6 +4894,7 @@ def get_savings_plans_utilization_details(params = {}, options = {})
48504894
# * The corresponding `Expression` for this example is as follows:
48514895
# `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions":
48524896
# [ "STARTS_WITH" ], "Values": [ "a" ] } }`
4897+
#
48534898
# * Compound `Expression` types with logical operations.
48544899
#
48554900
# * You can use multiple `Expression` types and the logical operators
@@ -4865,6 +4910,7 @@ def get_savings_plans_utilization_details(params = {}, options = {})
48654910
# "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName",
48664911
# "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key":
48674912
# "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } `
4913+
#
48684914
# <note markdown="1"> Because each `Expression` can have only one operator, the service
48694915
# returns an error if more than one is specified. The following
48704916
# example shows an `Expression` object that creates an error: ` {
@@ -4947,6 +4993,8 @@ def get_savings_plans_utilization_details(params = {}, options = {})
49474993
# * {Types::GetTagsResponse#return_size #return_size} => Integer
49484994
# * {Types::GetTagsResponse#total_size #total_size} => Integer
49494995
#
4996+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4997+
#
49504998
# @example Request syntax with placeholder values
49514999
#
49525000
# resp = client.get_tags({
@@ -5431,6 +5479,8 @@ def list_cost_category_definitions(params = {}, options = {})
54315479
# * {Types::ListSavingsPlansPurchaseRecommendationGenerationResponse#generation_summary_list #generation_summary_list} => Array&lt;Types::GenerationSummary&gt;
54325480
# * {Types::ListSavingsPlansPurchaseRecommendationGenerationResponse#next_page_token #next_page_token} => String
54335481
#
5482+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
5483+
#
54345484
# @example Request syntax with placeholder values
54355485
#
54365486
# resp = client.list_savings_plans_purchase_recommendation_generation({

0 commit comments

Comments
 (0)