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.
@@ -54,7 +54,7 @@ module Aws::CostExplorer
54
54
  autoload :EndpointProvider, 'aws-sdk-costexplorer/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-costexplorer/endpoints'
56
56
 
57
- GEM_VERSION = '1.114.0'
57
+ GEM_VERSION = '1.116.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -350,6 +350,23 @@ module Aws
350
350
  ) -> _GetApproximateUsageRecordsResponseSuccess
351
351
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetApproximateUsageRecordsResponseSuccess
352
352
 
353
+ interface _GetCommitmentPurchaseAnalysisResponseSuccess
354
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetCommitmentPurchaseAnalysisResponse]
355
+ def estimated_completion_time: () -> ::String
356
+ def analysis_completion_time: () -> ::String
357
+ def analysis_started_time: () -> ::String
358
+ def analysis_id: () -> ::String
359
+ def analysis_status: () -> ("SUCCEEDED" | "PROCESSING" | "FAILED")
360
+ def error_code: () -> ("NO_USAGE_FOUND" | "INTERNAL_FAILURE" | "INVALID_SAVINGS_PLANS_TO_ADD" | "INVALID_SAVINGS_PLANS_TO_EXCLUDE" | "INVALID_ACCOUNT_ID")
361
+ def analysis_details: () -> Types::AnalysisDetails
362
+ def commitment_purchase_analysis_configuration: () -> Types::CommitmentPurchaseAnalysisConfiguration
363
+ end
364
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostExplorer/Client.html#get_commitment_purchase_analysis-instance_method
365
+ def get_commitment_purchase_analysis: (
366
+ analysis_id: ::String
367
+ ) -> _GetCommitmentPurchaseAnalysisResponseSuccess
368
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCommitmentPurchaseAnalysisResponseSuccess
369
+
353
370
  interface _GetCostAndUsageResponseSuccess
354
371
  include ::Seahorse::Client::_ResponseSuccess[Types::GetCostAndUsageResponse]
355
372
  def next_page_token: () -> ::String
@@ -1074,6 +1091,20 @@ module Aws
1074
1091
  ) -> _GetUsageForecastResponseSuccess
1075
1092
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetUsageForecastResponseSuccess
1076
1093
 
1094
+ interface _ListCommitmentPurchaseAnalysesResponseSuccess
1095
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListCommitmentPurchaseAnalysesResponse]
1096
+ def analysis_summary_list: () -> ::Array[Types::AnalysisSummary]
1097
+ def next_page_token: () -> ::String
1098
+ end
1099
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostExplorer/Client.html#list_commitment_purchase_analyses-instance_method
1100
+ def list_commitment_purchase_analyses: (
1101
+ ?analysis_status: ("SUCCEEDED" | "PROCESSING" | "FAILED"),
1102
+ ?next_page_token: ::String,
1103
+ ?page_size: ::Integer,
1104
+ ?analysis_ids: Array[::String]
1105
+ ) -> _ListCommitmentPurchaseAnalysesResponseSuccess
1106
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCommitmentPurchaseAnalysesResponseSuccess
1107
+
1077
1108
  interface _ListCostAllocationTagBackfillHistoryResponseSuccess
1078
1109
  include ::Seahorse::Client::_ResponseSuccess[Types::ListCostAllocationTagBackfillHistoryResponse]
1079
1110
  def backfill_requests: () -> ::Array[Types::CostAllocationTagBackfillRequest]
@@ -1149,6 +1180,40 @@ module Aws
1149
1180
  ) -> _ProvideAnomalyFeedbackResponseSuccess
1150
1181
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ProvideAnomalyFeedbackResponseSuccess
1151
1182
 
1183
+ interface _StartCommitmentPurchaseAnalysisResponseSuccess
1184
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartCommitmentPurchaseAnalysisResponse]
1185
+ def analysis_id: () -> ::String
1186
+ def analysis_started_time: () -> ::String
1187
+ def estimated_completion_time: () -> ::String
1188
+ end
1189
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostExplorer/Client.html#start_commitment_purchase_analysis-instance_method
1190
+ def start_commitment_purchase_analysis: (
1191
+ commitment_purchase_analysis_configuration: {
1192
+ savings_plans_purchase_analysis_configuration: {
1193
+ account_scope: ("PAYER" | "LINKED")?,
1194
+ account_id: ::String?,
1195
+ analysis_type: ("MAX_SAVINGS" | "CUSTOM_COMMITMENT"),
1196
+ savings_plans_to_add: Array[
1197
+ {
1198
+ payment_option: ("NO_UPFRONT" | "PARTIAL_UPFRONT" | "ALL_UPFRONT" | "LIGHT_UTILIZATION" | "MEDIUM_UTILIZATION" | "HEAVY_UTILIZATION")?,
1199
+ savings_plans_type: ("COMPUTE_SP" | "EC2_INSTANCE_SP" | "SAGEMAKER_SP")?,
1200
+ region: ::String?,
1201
+ instance_family: ::String?,
1202
+ term_in_years: ("ONE_YEAR" | "THREE_YEARS")?,
1203
+ savings_plans_commitment: ::Float?,
1204
+ offering_id: ::String?
1205
+ },
1206
+ ],
1207
+ savings_plans_to_exclude: Array[::String]?,
1208
+ look_back_time_period: {
1209
+ start: ::String,
1210
+ end: ::String
1211
+ }
1212
+ }?
1213
+ }
1214
+ ) -> _StartCommitmentPurchaseAnalysisResponseSuccess
1215
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartCommitmentPurchaseAnalysisResponseSuccess
1216
+
1152
1217
  interface _StartCostAllocationTagBackfillResponseSuccess
1153
1218
  include ::Seahorse::Client::_ResponseSuccess[Types::StartCostAllocationTagBackfillResponse]
1154
1219
  def backfill_request: () -> Types::CostAllocationTagBackfillRequest
data/sig/errors.rbs CHANGED
@@ -11,6 +11,9 @@ module Aws
11
11
  class ServiceError < ::Aws::Errors::ServiceError
12
12
  end
13
13
 
14
+ class AnalysisNotFoundException < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ end
14
17
  class BackfillLimitExceededException < ::Aws::Errors::ServiceError
15
18
  def message: () -> ::String
16
19
  end
data/sig/types.rbs CHANGED
@@ -8,6 +8,27 @@
8
8
  module Aws::CostExplorer
9
9
  module Types
10
10
 
11
+ class AnalysisDetails
12
+ attr_accessor savings_plans_purchase_analysis_details: Types::SavingsPlansPurchaseAnalysisDetails
13
+ SENSITIVE: []
14
+ end
15
+
16
+ class AnalysisNotFoundException
17
+ attr_accessor message: ::String
18
+ SENSITIVE: []
19
+ end
20
+
21
+ class AnalysisSummary
22
+ attr_accessor estimated_completion_time: ::String
23
+ attr_accessor analysis_completion_time: ::String
24
+ attr_accessor analysis_started_time: ::String
25
+ attr_accessor analysis_status: ("SUCCEEDED" | "PROCESSING" | "FAILED")
26
+ attr_accessor error_code: ("NO_USAGE_FOUND" | "INTERNAL_FAILURE" | "INVALID_SAVINGS_PLANS_TO_ADD" | "INVALID_SAVINGS_PLANS_TO_EXCLUDE" | "INVALID_ACCOUNT_ID")
27
+ attr_accessor analysis_id: ::String
28
+ attr_accessor commitment_purchase_analysis_configuration: Types::CommitmentPurchaseAnalysisConfiguration
29
+ SENSITIVE: []
30
+ end
31
+
11
32
  class Anomaly
12
33
  attr_accessor anomaly_id: ::String
13
34
  attr_accessor anomaly_start_date: ::String
@@ -68,6 +89,11 @@ module Aws::CostExplorer
68
89
  SENSITIVE: []
69
90
  end
70
91
 
92
+ class CommitmentPurchaseAnalysisConfiguration
93
+ attr_accessor savings_plans_purchase_analysis_configuration: Types::SavingsPlansPurchaseAnalysisConfiguration
94
+ SENSITIVE: []
95
+ end
96
+
71
97
  class CostAllocationTag
72
98
  attr_accessor tag_key: ::String
73
99
  attr_accessor type: ("AWSGenerated" | "UserDefined")
@@ -479,6 +505,23 @@ module Aws::CostExplorer
479
505
  SENSITIVE: []
480
506
  end
481
507
 
508
+ class GetCommitmentPurchaseAnalysisRequest
509
+ attr_accessor analysis_id: ::String
510
+ SENSITIVE: []
511
+ end
512
+
513
+ class GetCommitmentPurchaseAnalysisResponse
514
+ attr_accessor estimated_completion_time: ::String
515
+ attr_accessor analysis_completion_time: ::String
516
+ attr_accessor analysis_started_time: ::String
517
+ attr_accessor analysis_id: ::String
518
+ attr_accessor analysis_status: ("SUCCEEDED" | "PROCESSING" | "FAILED")
519
+ attr_accessor error_code: ("NO_USAGE_FOUND" | "INTERNAL_FAILURE" | "INVALID_SAVINGS_PLANS_TO_ADD" | "INVALID_SAVINGS_PLANS_TO_EXCLUDE" | "INVALID_ACCOUNT_ID")
520
+ attr_accessor analysis_details: Types::AnalysisDetails
521
+ attr_accessor commitment_purchase_analysis_configuration: Types::CommitmentPurchaseAnalysisConfiguration
522
+ SENSITIVE: []
523
+ end
524
+
482
525
  class GetCostAndUsageRequest
483
526
  attr_accessor time_period: Types::DateInterval
484
527
  attr_accessor granularity: ("DAILY" | "MONTHLY" | "HOURLY")
@@ -801,6 +844,20 @@ module Aws::CostExplorer
801
844
  SENSITIVE: []
802
845
  end
803
846
 
847
+ class ListCommitmentPurchaseAnalysesRequest
848
+ attr_accessor analysis_status: ("SUCCEEDED" | "PROCESSING" | "FAILED")
849
+ attr_accessor next_page_token: ::String
850
+ attr_accessor page_size: ::Integer
851
+ attr_accessor analysis_ids: ::Array[::String]
852
+ SENSITIVE: []
853
+ end
854
+
855
+ class ListCommitmentPurchaseAnalysesResponse
856
+ attr_accessor analysis_summary_list: ::Array[Types::AnalysisSummary]
857
+ attr_accessor next_page_token: ::String
858
+ SENSITIVE: []
859
+ end
860
+
804
861
  class ListCostAllocationTagBackfillHistoryRequest
805
862
  attr_accessor next_token: ::String
806
863
  attr_accessor max_results: ::Integer
@@ -1137,6 +1194,17 @@ module Aws::CostExplorer
1137
1194
  SENSITIVE: []
1138
1195
  end
1139
1196
 
1197
+ class SavingsPlans
1198
+ attr_accessor payment_option: ("NO_UPFRONT" | "PARTIAL_UPFRONT" | "ALL_UPFRONT" | "LIGHT_UTILIZATION" | "MEDIUM_UTILIZATION" | "HEAVY_UTILIZATION")
1199
+ attr_accessor savings_plans_type: ("COMPUTE_SP" | "EC2_INSTANCE_SP" | "SAGEMAKER_SP")
1200
+ attr_accessor region: ::String
1201
+ attr_accessor instance_family: ::String
1202
+ attr_accessor term_in_years: ("ONE_YEAR" | "THREE_YEARS")
1203
+ attr_accessor savings_plans_commitment: ::Float
1204
+ attr_accessor offering_id: ::String
1205
+ SENSITIVE: []
1206
+ end
1207
+
1140
1208
  class SavingsPlansAmortizedCommitment
1141
1209
  attr_accessor amortized_recurring_commitment: ::String
1142
1210
  attr_accessor amortized_upfront_commitment: ::String
@@ -1166,6 +1234,42 @@ module Aws::CostExplorer
1166
1234
  SENSITIVE: []
1167
1235
  end
1168
1236
 
1237
+ class SavingsPlansPurchaseAnalysisConfiguration
1238
+ attr_accessor account_scope: ("PAYER" | "LINKED")
1239
+ attr_accessor account_id: ::String
1240
+ attr_accessor analysis_type: ("MAX_SAVINGS" | "CUSTOM_COMMITMENT")
1241
+ attr_accessor savings_plans_to_add: ::Array[Types::SavingsPlans]
1242
+ attr_accessor savings_plans_to_exclude: ::Array[::String]
1243
+ attr_accessor look_back_time_period: Types::DateInterval
1244
+ SENSITIVE: []
1245
+ end
1246
+
1247
+ class SavingsPlansPurchaseAnalysisDetails
1248
+ attr_accessor currency_code: ::String
1249
+ attr_accessor lookback_period_in_hours: ::String
1250
+ attr_accessor current_average_coverage: ::String
1251
+ attr_accessor current_average_hourly_on_demand_spend: ::String
1252
+ attr_accessor current_maximum_hourly_on_demand_spend: ::String
1253
+ attr_accessor current_minimum_hourly_on_demand_spend: ::String
1254
+ attr_accessor current_on_demand_spend: ::String
1255
+ attr_accessor existing_hourly_commitment: ::String
1256
+ attr_accessor hourly_commitment_to_purchase: ::String
1257
+ attr_accessor estimated_average_coverage: ::String
1258
+ attr_accessor estimated_average_utilization: ::String
1259
+ attr_accessor estimated_monthly_savings_amount: ::String
1260
+ attr_accessor estimated_on_demand_cost: ::String
1261
+ attr_accessor estimated_on_demand_cost_with_current_commitment: ::String
1262
+ attr_accessor estimated_roi: ::String
1263
+ attr_accessor estimated_savings_amount: ::String
1264
+ attr_accessor estimated_savings_percentage: ::String
1265
+ attr_accessor estimated_commitment_cost: ::String
1266
+ attr_accessor latest_usage_timestamp: ::String
1267
+ attr_accessor upfront_cost: ::String
1268
+ attr_accessor additional_metadata: ::String
1269
+ attr_accessor metrics_over_lookback_period: ::Array[Types::RecommendationDetailHourlyMetrics]
1270
+ SENSITIVE: []
1271
+ end
1272
+
1169
1273
  class SavingsPlansPurchaseRecommendation
1170
1274
  attr_accessor account_scope: ("PAYER" | "LINKED")
1171
1275
  attr_accessor savings_plans_type: ("COMPUTE_SP" | "EC2_INSTANCE_SP" | "SAGEMAKER_SP")
@@ -1274,6 +1378,18 @@ module Aws::CostExplorer
1274
1378
  SENSITIVE: []
1275
1379
  end
1276
1380
 
1381
+ class StartCommitmentPurchaseAnalysisRequest
1382
+ attr_accessor commitment_purchase_analysis_configuration: Types::CommitmentPurchaseAnalysisConfiguration
1383
+ SENSITIVE: []
1384
+ end
1385
+
1386
+ class StartCommitmentPurchaseAnalysisResponse
1387
+ attr_accessor analysis_id: ::String
1388
+ attr_accessor analysis_started_time: ::String
1389
+ attr_accessor estimated_completion_time: ::String
1390
+ SENSITIVE: []
1391
+ end
1392
+
1277
1393
  class StartCostAllocationTagBackfillRequest
1278
1394
  attr_accessor backfill_from: ::String
1279
1395
  SENSITIVE: []
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-costexplorer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.114.0
4
+ version: 1.116.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-06 00:00:00.000000000 Z
11
+ date: 2024-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core