aws-sdk-costexplorer 1.114.0 → 1.116.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-costexplorer/client.rb +218 -24
- data/lib/aws-sdk-costexplorer/client_api.rb +156 -0
- data/lib/aws-sdk-costexplorer/errors.rb +16 -0
- data/lib/aws-sdk-costexplorer/types.rb +459 -36
- data/lib/aws-sdk-costexplorer.rb +1 -1
- data/sig/client.rbs +65 -0
- data/sig/errors.rbs +3 -0
- data/sig/types.rbs +116 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 532d5413e63d82cd1abba1cde6c96a177dd2220c3d2e8f7a9183a1e19b0ec742
|
4
|
+
data.tar.gz: a557f4f05fcda73f505c69a5b9ff77588d3903b8f341bd4e848477b40a8bf573
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c4d20b9e0dc733e0f818b70415d2cb64a32e1a079c3cb7019512b2fceaf5cef56f923a90e7f7434fed09587bbbe521fb32c9f5f8b49b7f3e159978bb9b4bcde
|
7
|
+
data.tar.gz: a1077204bd7b8fbda78837c115bc76957d0bfca9a2851f0f8b46b4595ad1f89e6f13b49d551c0476555dc8bf1080d0d9af567082436d733c0c48f9dc91944084
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.116.0 (2024-11-21)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release introduces three new APIs that enable you to estimate the cost, coverage, and utilization impact of Savings Plans you plan to purchase. The three APIs are StartCommitmentPurchaseAnalysis, GetCommitmentPurchaseAnalysis, and ListCommitmentPurchaseAnalyses.
|
8
|
+
|
9
|
+
1.115.0 (2024-11-18)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.114.0 (2024-11-06)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.116.0
|
@@ -1252,6 +1252,90 @@ module Aws::CostExplorer
|
|
1252
1252
|
req.send_request(options)
|
1253
1253
|
end
|
1254
1254
|
|
1255
|
+
# Retrieves a commitment purchase analysis result based on the
|
1256
|
+
# `AnalysisId`.
|
1257
|
+
#
|
1258
|
+
# @option params [required, String] :analysis_id
|
1259
|
+
# The analysis ID that's associated with the commitment purchase
|
1260
|
+
# analysis.
|
1261
|
+
#
|
1262
|
+
# @return [Types::GetCommitmentPurchaseAnalysisResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1263
|
+
#
|
1264
|
+
# * {Types::GetCommitmentPurchaseAnalysisResponse#estimated_completion_time #estimated_completion_time} => String
|
1265
|
+
# * {Types::GetCommitmentPurchaseAnalysisResponse#analysis_completion_time #analysis_completion_time} => String
|
1266
|
+
# * {Types::GetCommitmentPurchaseAnalysisResponse#analysis_started_time #analysis_started_time} => String
|
1267
|
+
# * {Types::GetCommitmentPurchaseAnalysisResponse#analysis_id #analysis_id} => String
|
1268
|
+
# * {Types::GetCommitmentPurchaseAnalysisResponse#analysis_status #analysis_status} => String
|
1269
|
+
# * {Types::GetCommitmentPurchaseAnalysisResponse#error_code #error_code} => String
|
1270
|
+
# * {Types::GetCommitmentPurchaseAnalysisResponse#analysis_details #analysis_details} => Types::AnalysisDetails
|
1271
|
+
# * {Types::GetCommitmentPurchaseAnalysisResponse#commitment_purchase_analysis_configuration #commitment_purchase_analysis_configuration} => Types::CommitmentPurchaseAnalysisConfiguration
|
1272
|
+
#
|
1273
|
+
# @example Request syntax with placeholder values
|
1274
|
+
#
|
1275
|
+
# resp = client.get_commitment_purchase_analysis({
|
1276
|
+
# analysis_id: "AnalysisId", # required
|
1277
|
+
# })
|
1278
|
+
#
|
1279
|
+
# @example Response structure
|
1280
|
+
#
|
1281
|
+
# resp.estimated_completion_time #=> String
|
1282
|
+
# resp.analysis_completion_time #=> String
|
1283
|
+
# resp.analysis_started_time #=> String
|
1284
|
+
# resp.analysis_id #=> String
|
1285
|
+
# resp.analysis_status #=> String, one of "SUCCEEDED", "PROCESSING", "FAILED"
|
1286
|
+
# resp.error_code #=> String, one of "NO_USAGE_FOUND", "INTERNAL_FAILURE", "INVALID_SAVINGS_PLANS_TO_ADD", "INVALID_SAVINGS_PLANS_TO_EXCLUDE", "INVALID_ACCOUNT_ID"
|
1287
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.currency_code #=> String
|
1288
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.lookback_period_in_hours #=> String
|
1289
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.current_average_coverage #=> String
|
1290
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.current_average_hourly_on_demand_spend #=> String
|
1291
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.current_maximum_hourly_on_demand_spend #=> String
|
1292
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.current_minimum_hourly_on_demand_spend #=> String
|
1293
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.current_on_demand_spend #=> String
|
1294
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.existing_hourly_commitment #=> String
|
1295
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.hourly_commitment_to_purchase #=> String
|
1296
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.estimated_average_coverage #=> String
|
1297
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.estimated_average_utilization #=> String
|
1298
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.estimated_monthly_savings_amount #=> String
|
1299
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.estimated_on_demand_cost #=> String
|
1300
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.estimated_on_demand_cost_with_current_commitment #=> String
|
1301
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.estimated_roi #=> String
|
1302
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.estimated_savings_amount #=> String
|
1303
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.estimated_savings_percentage #=> String
|
1304
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.estimated_commitment_cost #=> String
|
1305
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.latest_usage_timestamp #=> String
|
1306
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.upfront_cost #=> String
|
1307
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.additional_metadata #=> String
|
1308
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.metrics_over_lookback_period #=> Array
|
1309
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.metrics_over_lookback_period[0].start_time #=> String
|
1310
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.metrics_over_lookback_period[0].estimated_on_demand_cost #=> String
|
1311
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.metrics_over_lookback_period[0].current_coverage #=> String
|
1312
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.metrics_over_lookback_period[0].estimated_coverage #=> String
|
1313
|
+
# resp.analysis_details.savings_plans_purchase_analysis_details.metrics_over_lookback_period[0].estimated_new_commitment_utilization #=> String
|
1314
|
+
# resp.commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.account_scope #=> String, one of "PAYER", "LINKED"
|
1315
|
+
# resp.commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.account_id #=> String
|
1316
|
+
# resp.commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.analysis_type #=> String, one of "MAX_SAVINGS", "CUSTOM_COMMITMENT"
|
1317
|
+
# resp.commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_add #=> Array
|
1318
|
+
# resp.commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_add[0].payment_option #=> String, one of "NO_UPFRONT", "PARTIAL_UPFRONT", "ALL_UPFRONT", "LIGHT_UTILIZATION", "MEDIUM_UTILIZATION", "HEAVY_UTILIZATION"
|
1319
|
+
# resp.commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_add[0].savings_plans_type #=> String, one of "COMPUTE_SP", "EC2_INSTANCE_SP", "SAGEMAKER_SP"
|
1320
|
+
# resp.commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_add[0].region #=> String
|
1321
|
+
# resp.commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_add[0].instance_family #=> String
|
1322
|
+
# resp.commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_add[0].term_in_years #=> String, one of "ONE_YEAR", "THREE_YEARS"
|
1323
|
+
# resp.commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_add[0].savings_plans_commitment #=> Float
|
1324
|
+
# resp.commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_add[0].offering_id #=> String
|
1325
|
+
# resp.commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_exclude #=> Array
|
1326
|
+
# resp.commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_exclude[0] #=> String
|
1327
|
+
# resp.commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.look_back_time_period.start #=> String
|
1328
|
+
# resp.commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.look_back_time_period.end #=> String
|
1329
|
+
#
|
1330
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetCommitmentPurchaseAnalysis AWS API Documentation
|
1331
|
+
#
|
1332
|
+
# @overload get_commitment_purchase_analysis(params = {})
|
1333
|
+
# @param [Hash] params ({})
|
1334
|
+
def get_commitment_purchase_analysis(params = {}, options = {})
|
1335
|
+
req = build_request(:get_commitment_purchase_analysis, params)
|
1336
|
+
req.send_request(options)
|
1337
|
+
end
|
1338
|
+
|
1255
1339
|
# Retrieves cost and usage metrics for your account. You can specify
|
1256
1340
|
# which cost and usage-related metric that you want the request to
|
1257
1341
|
# return. For example, you can specify `BlendedCosts` or
|
@@ -1655,7 +1739,6 @@ module Aws::CostExplorer
|
|
1655
1739
|
#
|
1656
1740
|
# * Specify the `Dimensions` field to define a filter that acts on
|
1657
1741
|
# the [ `DimensionValues` ][1].
|
1658
|
-
#
|
1659
1742
|
# * For each filter type, you can set the dimension name and values
|
1660
1743
|
# for the filters that you plan to use.
|
1661
1744
|
#
|
@@ -1670,7 +1753,6 @@ module Aws::CostExplorer
|
|
1670
1753
|
#
|
1671
1754
|
# * As shown in the previous example, lists of dimension values are
|
1672
1755
|
# combined with `OR` when applying the filter.
|
1673
|
-
#
|
1674
1756
|
# * You can also set different match options to further control how
|
1675
1757
|
# the filter behaves. Not all APIs support match options. Refer to
|
1676
1758
|
# the documentation for each specific API to see what is supported.
|
@@ -1681,7 +1763,6 @@ module Aws::CostExplorer
|
|
1681
1763
|
# * The corresponding `Expression` for this example is as follows:
|
1682
1764
|
# `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions":
|
1683
1765
|
# [ "STARTS_WITH" ], "Values": [ "a" ] } }`
|
1684
|
-
#
|
1685
1766
|
# * Compound `Expression` types with logical operations.
|
1686
1767
|
#
|
1687
1768
|
# * You can use multiple `Expression` types and the logical operators
|
@@ -1697,7 +1778,6 @@ module Aws::CostExplorer
|
|
1697
1778
|
# "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName",
|
1698
1779
|
# "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key":
|
1699
1780
|
# "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } `
|
1700
|
-
#
|
1701
1781
|
# <note markdown="1"> Because each `Expression` can have only one operator, the service
|
1702
1782
|
# returns an error if more than one is specified. The following
|
1703
1783
|
# example shows an `Expression` object that creates an error: ` {
|
@@ -2049,11 +2129,11 @@ module Aws::CostExplorer
|
|
2049
2129
|
# is with. Possible values are the following:
|
2050
2130
|
#
|
2051
2131
|
# \- Amazon Web Services(Amazon Web Services): The entity that sells
|
2052
|
-
# Amazon Web
|
2132
|
+
# Amazon Web Services services.
|
2053
2133
|
#
|
2054
2134
|
# \- AISPL (Amazon Internet Services Pvt. Ltd.): The local Indian
|
2055
|
-
# entity that's an acting reseller for Amazon Web
|
2056
|
-
# India.
|
2135
|
+
# entity that's an acting reseller for Amazon Web Services services
|
2136
|
+
# in India.
|
2057
2137
|
#
|
2058
2138
|
# \- Amazon Web Services Marketplace: The entity that supports the sale
|
2059
2139
|
# of solutions that are built on Amazon Web Services by third-party
|
@@ -2201,7 +2281,6 @@ module Aws::CostExplorer
|
|
2201
2281
|
#
|
2202
2282
|
# * Specify the `Dimensions` field to define a filter that acts on
|
2203
2283
|
# the [ `DimensionValues` ][1].
|
2204
|
-
#
|
2205
2284
|
# * For each filter type, you can set the dimension name and values
|
2206
2285
|
# for the filters that you plan to use.
|
2207
2286
|
#
|
@@ -2216,7 +2295,6 @@ module Aws::CostExplorer
|
|
2216
2295
|
#
|
2217
2296
|
# * As shown in the previous example, lists of dimension values are
|
2218
2297
|
# combined with `OR` when applying the filter.
|
2219
|
-
#
|
2220
2298
|
# * You can also set different match options to further control how
|
2221
2299
|
# the filter behaves. Not all APIs support match options. Refer to
|
2222
2300
|
# the documentation for each specific API to see what is supported.
|
@@ -2227,7 +2305,6 @@ module Aws::CostExplorer
|
|
2227
2305
|
# * The corresponding `Expression` for this example is as follows:
|
2228
2306
|
# `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions":
|
2229
2307
|
# [ "STARTS_WITH" ], "Values": [ "a" ] } }`
|
2230
|
-
#
|
2231
2308
|
# * Compound `Expression` types with logical operations.
|
2232
2309
|
#
|
2233
2310
|
# * You can use multiple `Expression` types and the logical operators
|
@@ -2243,7 +2320,6 @@ module Aws::CostExplorer
|
|
2243
2320
|
# "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName",
|
2244
2321
|
# "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key":
|
2245
2322
|
# "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } `
|
2246
|
-
#
|
2247
2323
|
# <note markdown="1"> Because each `Expression` can have only one operator, the service
|
2248
2324
|
# returns an error if more than one is specified. The following
|
2249
2325
|
# example shows an `Expression` object that creates an error: ` {
|
@@ -2711,7 +2787,6 @@ module Aws::CostExplorer
|
|
2711
2787
|
#
|
2712
2788
|
# * Specify the `Dimensions` field to define a filter that acts on
|
2713
2789
|
# the [ `DimensionValues` ][1].
|
2714
|
-
#
|
2715
2790
|
# * For each filter type, you can set the dimension name and values
|
2716
2791
|
# for the filters that you plan to use.
|
2717
2792
|
#
|
@@ -2726,7 +2801,6 @@ module Aws::CostExplorer
|
|
2726
2801
|
#
|
2727
2802
|
# * As shown in the previous example, lists of dimension values are
|
2728
2803
|
# combined with `OR` when applying the filter.
|
2729
|
-
#
|
2730
2804
|
# * You can also set different match options to further control how
|
2731
2805
|
# the filter behaves. Not all APIs support match options. Refer to
|
2732
2806
|
# the documentation for each specific API to see what is supported.
|
@@ -2737,7 +2811,6 @@ module Aws::CostExplorer
|
|
2737
2811
|
# * The corresponding `Expression` for this example is as follows:
|
2738
2812
|
# `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions":
|
2739
2813
|
# [ "STARTS_WITH" ], "Values": [ "a" ] } }`
|
2740
|
-
#
|
2741
2814
|
# * Compound `Expression` types with logical operations.
|
2742
2815
|
#
|
2743
2816
|
# * You can use multiple `Expression` types and the logical operators
|
@@ -2753,7 +2826,6 @@ module Aws::CostExplorer
|
|
2753
2826
|
# "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName",
|
2754
2827
|
# "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key":
|
2755
2828
|
# "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } `
|
2756
|
-
#
|
2757
2829
|
# <note markdown="1"> Because each `Expression` can have only one operator, the service
|
2758
2830
|
# returns an error if more than one is specified. The following
|
2759
2831
|
# example shows an `Expression` object that creates an error: ` {
|
@@ -3003,6 +3075,14 @@ module Aws::CostExplorer
|
|
3003
3075
|
#
|
3004
3076
|
# * SERVICE
|
3005
3077
|
#
|
3078
|
+
# <note markdown="1"> If not specified, the `SERVICE` filter defaults to Amazon Elastic
|
3079
|
+
# Compute Cloud - Compute. Supported values for `SERVICE` are Amazon
|
3080
|
+
# Elastic Compute Cloud - Compute, Amazon Relational Database Service,
|
3081
|
+
# Amazon ElastiCache, Amazon Redshift, and Amazon Elasticsearch
|
3082
|
+
# Service. The value for the `SERVICE` filter should not exceed "1".
|
3083
|
+
#
|
3084
|
+
# </note>
|
3085
|
+
#
|
3006
3086
|
# * SCOPE
|
3007
3087
|
#
|
3008
3088
|
# * TENANCY
|
@@ -3232,7 +3312,6 @@ module Aws::CostExplorer
|
|
3232
3312
|
#
|
3233
3313
|
# * Specify the `Dimensions` field to define a filter that acts on
|
3234
3314
|
# the [ `DimensionValues` ][1].
|
3235
|
-
#
|
3236
3315
|
# * For each filter type, you can set the dimension name and values
|
3237
3316
|
# for the filters that you plan to use.
|
3238
3317
|
#
|
@@ -3247,7 +3326,6 @@ module Aws::CostExplorer
|
|
3247
3326
|
#
|
3248
3327
|
# * As shown in the previous example, lists of dimension values are
|
3249
3328
|
# combined with `OR` when applying the filter.
|
3250
|
-
#
|
3251
3329
|
# * You can also set different match options to further control how
|
3252
3330
|
# the filter behaves. Not all APIs support match options. Refer to
|
3253
3331
|
# the documentation for each specific API to see what is supported.
|
@@ -3258,7 +3336,6 @@ module Aws::CostExplorer
|
|
3258
3336
|
# * The corresponding `Expression` for this example is as follows:
|
3259
3337
|
# `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions":
|
3260
3338
|
# [ "STARTS_WITH" ], "Values": [ "a" ] } }`
|
3261
|
-
#
|
3262
3339
|
# * Compound `Expression` types with logical operations.
|
3263
3340
|
#
|
3264
3341
|
# * You can use multiple `Expression` types and the logical operators
|
@@ -3274,7 +3351,6 @@ module Aws::CostExplorer
|
|
3274
3351
|
# "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName",
|
3275
3352
|
# "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key":
|
3276
3353
|
# "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } `
|
3277
|
-
#
|
3278
3354
|
# <note markdown="1"> Because each `Expression` can have only one operator, the service
|
3279
3355
|
# returns an error if more than one is specified. The following
|
3280
3356
|
# example shows an `Expression` object that creates an error: ` {
|
@@ -4210,7 +4286,6 @@ module Aws::CostExplorer
|
|
4210
4286
|
#
|
4211
4287
|
# * Specify the `Dimensions` field to define a filter that acts on
|
4212
4288
|
# the [ `DimensionValues` ][1].
|
4213
|
-
#
|
4214
4289
|
# * For each filter type, you can set the dimension name and values
|
4215
4290
|
# for the filters that you plan to use.
|
4216
4291
|
#
|
@@ -4225,7 +4300,6 @@ module Aws::CostExplorer
|
|
4225
4300
|
#
|
4226
4301
|
# * As shown in the previous example, lists of dimension values are
|
4227
4302
|
# combined with `OR` when applying the filter.
|
4228
|
-
#
|
4229
4303
|
# * You can also set different match options to further control how
|
4230
4304
|
# the filter behaves. Not all APIs support match options. Refer to
|
4231
4305
|
# the documentation for each specific API to see what is supported.
|
@@ -4236,7 +4310,6 @@ module Aws::CostExplorer
|
|
4236
4310
|
# * The corresponding `Expression` for this example is as follows:
|
4237
4311
|
# `{ "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions":
|
4238
4312
|
# [ "STARTS_WITH" ], "Values": [ "a" ] } }`
|
4239
|
-
#
|
4240
4313
|
# * Compound `Expression` types with logical operations.
|
4241
4314
|
#
|
4242
4315
|
# * You can use multiple `Expression` types and the logical operators
|
@@ -4252,7 +4325,6 @@ module Aws::CostExplorer
|
|
4252
4325
|
# "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName",
|
4253
4326
|
# "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key":
|
4254
4327
|
# "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] } `
|
4255
|
-
#
|
4256
4328
|
# <note markdown="1"> Because each `Expression` can have only one operator, the service
|
4257
4329
|
# returns an error if more than one is specified. The following
|
4258
4330
|
# example shows an `Expression` object that creates an error: ` {
|
@@ -4547,6 +4619,71 @@ module Aws::CostExplorer
|
|
4547
4619
|
req.send_request(options)
|
4548
4620
|
end
|
4549
4621
|
|
4622
|
+
# Lists the commitment purchase analyses for your account based on the
|
4623
|
+
# last 30 days.
|
4624
|
+
#
|
4625
|
+
# @option params [String] :analysis_status
|
4626
|
+
# The status of the analysis.
|
4627
|
+
#
|
4628
|
+
# @option params [String] :next_page_token
|
4629
|
+
# The token to retrieve the next set of results.
|
4630
|
+
#
|
4631
|
+
# @option params [Integer] :page_size
|
4632
|
+
# The number of analyses that you want returned in a single response
|
4633
|
+
# object.
|
4634
|
+
#
|
4635
|
+
# @option params [Array<String>] :analysis_ids
|
4636
|
+
# The analysis IDs associated with the commitment purchase analyses.
|
4637
|
+
#
|
4638
|
+
# @return [Types::ListCommitmentPurchaseAnalysesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4639
|
+
#
|
4640
|
+
# * {Types::ListCommitmentPurchaseAnalysesResponse#analysis_summary_list #analysis_summary_list} => Array<Types::AnalysisSummary>
|
4641
|
+
# * {Types::ListCommitmentPurchaseAnalysesResponse#next_page_token #next_page_token} => String
|
4642
|
+
#
|
4643
|
+
# @example Request syntax with placeholder values
|
4644
|
+
#
|
4645
|
+
# resp = client.list_commitment_purchase_analyses({
|
4646
|
+
# analysis_status: "SUCCEEDED", # accepts SUCCEEDED, PROCESSING, FAILED
|
4647
|
+
# next_page_token: "NextPageToken",
|
4648
|
+
# page_size: 1,
|
4649
|
+
# analysis_ids: ["AnalysisId"],
|
4650
|
+
# })
|
4651
|
+
#
|
4652
|
+
# @example Response structure
|
4653
|
+
#
|
4654
|
+
# resp.analysis_summary_list #=> Array
|
4655
|
+
# resp.analysis_summary_list[0].estimated_completion_time #=> String
|
4656
|
+
# resp.analysis_summary_list[0].analysis_completion_time #=> String
|
4657
|
+
# resp.analysis_summary_list[0].analysis_started_time #=> String
|
4658
|
+
# resp.analysis_summary_list[0].analysis_status #=> String, one of "SUCCEEDED", "PROCESSING", "FAILED"
|
4659
|
+
# resp.analysis_summary_list[0].error_code #=> String, one of "NO_USAGE_FOUND", "INTERNAL_FAILURE", "INVALID_SAVINGS_PLANS_TO_ADD", "INVALID_SAVINGS_PLANS_TO_EXCLUDE", "INVALID_ACCOUNT_ID"
|
4660
|
+
# resp.analysis_summary_list[0].analysis_id #=> String
|
4661
|
+
# resp.analysis_summary_list[0].commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.account_scope #=> String, one of "PAYER", "LINKED"
|
4662
|
+
# resp.analysis_summary_list[0].commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.account_id #=> String
|
4663
|
+
# resp.analysis_summary_list[0].commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.analysis_type #=> String, one of "MAX_SAVINGS", "CUSTOM_COMMITMENT"
|
4664
|
+
# resp.analysis_summary_list[0].commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_add #=> Array
|
4665
|
+
# resp.analysis_summary_list[0].commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_add[0].payment_option #=> String, one of "NO_UPFRONT", "PARTIAL_UPFRONT", "ALL_UPFRONT", "LIGHT_UTILIZATION", "MEDIUM_UTILIZATION", "HEAVY_UTILIZATION"
|
4666
|
+
# resp.analysis_summary_list[0].commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_add[0].savings_plans_type #=> String, one of "COMPUTE_SP", "EC2_INSTANCE_SP", "SAGEMAKER_SP"
|
4667
|
+
# resp.analysis_summary_list[0].commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_add[0].region #=> String
|
4668
|
+
# resp.analysis_summary_list[0].commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_add[0].instance_family #=> String
|
4669
|
+
# resp.analysis_summary_list[0].commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_add[0].term_in_years #=> String, one of "ONE_YEAR", "THREE_YEARS"
|
4670
|
+
# resp.analysis_summary_list[0].commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_add[0].savings_plans_commitment #=> Float
|
4671
|
+
# resp.analysis_summary_list[0].commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_add[0].offering_id #=> String
|
4672
|
+
# resp.analysis_summary_list[0].commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_exclude #=> Array
|
4673
|
+
# resp.analysis_summary_list[0].commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.savings_plans_to_exclude[0] #=> String
|
4674
|
+
# resp.analysis_summary_list[0].commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.look_back_time_period.start #=> String
|
4675
|
+
# resp.analysis_summary_list[0].commitment_purchase_analysis_configuration.savings_plans_purchase_analysis_configuration.look_back_time_period.end #=> String
|
4676
|
+
# resp.next_page_token #=> String
|
4677
|
+
#
|
4678
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/ListCommitmentPurchaseAnalyses AWS API Documentation
|
4679
|
+
#
|
4680
|
+
# @overload list_commitment_purchase_analyses(params = {})
|
4681
|
+
# @param [Hash] params ({})
|
4682
|
+
def list_commitment_purchase_analyses(params = {}, options = {})
|
4683
|
+
req = build_request(:list_commitment_purchase_analyses, params)
|
4684
|
+
req.send_request(options)
|
4685
|
+
end
|
4686
|
+
|
4550
4687
|
# Retrieves a list of your historical cost allocation tag backfill
|
4551
4688
|
# requests.
|
4552
4689
|
#
|
@@ -4834,6 +4971,63 @@ module Aws::CostExplorer
|
|
4834
4971
|
req.send_request(options)
|
4835
4972
|
end
|
4836
4973
|
|
4974
|
+
# Specifies the parameters of a planned commitment purchase and starts
|
4975
|
+
# the generation of the analysis. This enables you to estimate the cost,
|
4976
|
+
# coverage, and utilization impact of your planned commitment purchases.
|
4977
|
+
# You can request up to 20 analysis runs per day.
|
4978
|
+
#
|
4979
|
+
# @option params [required, Types::CommitmentPurchaseAnalysisConfiguration] :commitment_purchase_analysis_configuration
|
4980
|
+
# The configuration for the commitment purchase analysis.
|
4981
|
+
#
|
4982
|
+
# @return [Types::StartCommitmentPurchaseAnalysisResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4983
|
+
#
|
4984
|
+
# * {Types::StartCommitmentPurchaseAnalysisResponse#analysis_id #analysis_id} => String
|
4985
|
+
# * {Types::StartCommitmentPurchaseAnalysisResponse#analysis_started_time #analysis_started_time} => String
|
4986
|
+
# * {Types::StartCommitmentPurchaseAnalysisResponse#estimated_completion_time #estimated_completion_time} => String
|
4987
|
+
#
|
4988
|
+
# @example Request syntax with placeholder values
|
4989
|
+
#
|
4990
|
+
# resp = client.start_commitment_purchase_analysis({
|
4991
|
+
# commitment_purchase_analysis_configuration: { # required
|
4992
|
+
# savings_plans_purchase_analysis_configuration: {
|
4993
|
+
# account_scope: "PAYER", # accepts PAYER, LINKED
|
4994
|
+
# account_id: "AccountId",
|
4995
|
+
# analysis_type: "MAX_SAVINGS", # required, accepts MAX_SAVINGS, CUSTOM_COMMITMENT
|
4996
|
+
# savings_plans_to_add: [ # required
|
4997
|
+
# {
|
4998
|
+
# payment_option: "NO_UPFRONT", # accepts NO_UPFRONT, PARTIAL_UPFRONT, ALL_UPFRONT, LIGHT_UTILIZATION, MEDIUM_UTILIZATION, HEAVY_UTILIZATION
|
4999
|
+
# savings_plans_type: "COMPUTE_SP", # accepts COMPUTE_SP, EC2_INSTANCE_SP, SAGEMAKER_SP
|
5000
|
+
# region: "GenericString",
|
5001
|
+
# instance_family: "GenericString",
|
5002
|
+
# term_in_years: "ONE_YEAR", # accepts ONE_YEAR, THREE_YEARS
|
5003
|
+
# savings_plans_commitment: 1.0,
|
5004
|
+
# offering_id: "GenericString",
|
5005
|
+
# },
|
5006
|
+
# ],
|
5007
|
+
# savings_plans_to_exclude: ["SavingsPlansId"],
|
5008
|
+
# look_back_time_period: { # required
|
5009
|
+
# start: "YearMonthDay", # required
|
5010
|
+
# end: "YearMonthDay", # required
|
5011
|
+
# },
|
5012
|
+
# },
|
5013
|
+
# },
|
5014
|
+
# })
|
5015
|
+
#
|
5016
|
+
# @example Response structure
|
5017
|
+
#
|
5018
|
+
# resp.analysis_id #=> String
|
5019
|
+
# resp.analysis_started_time #=> String
|
5020
|
+
# resp.estimated_completion_time #=> String
|
5021
|
+
#
|
5022
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/StartCommitmentPurchaseAnalysis AWS API Documentation
|
5023
|
+
#
|
5024
|
+
# @overload start_commitment_purchase_analysis(params = {})
|
5025
|
+
# @param [Hash] params ({})
|
5026
|
+
def start_commitment_purchase_analysis(params = {}, options = {})
|
5027
|
+
req = build_request(:start_commitment_purchase_analysis, params)
|
5028
|
+
req.send_request(options)
|
5029
|
+
end
|
5030
|
+
|
4837
5031
|
# Request a cost allocation tag backfill. This will backfill the
|
4838
5032
|
# activation status (either `active` or `inactive`) for all tag keys
|
4839
5033
|
# from `para:BackfillFrom` up to the when this request is made.
|
@@ -5356,7 +5550,7 @@ module Aws::CostExplorer
|
|
5356
5550
|
tracer: tracer
|
5357
5551
|
)
|
5358
5552
|
context[:gem_name] = 'aws-sdk-costexplorer'
|
5359
|
-
context[:gem_version] = '1.
|
5553
|
+
context[:gem_version] = '1.116.0'
|
5360
5554
|
Seahorse::Client::Request.new(handlers, context)
|
5361
5555
|
end
|
5362
5556
|
|