aws-sdk-costexplorer 1.115.0 → 1.117.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 -5
- data/lib/aws-sdk-costexplorer/client_api.rb +162 -1
- data/lib/aws-sdk-costexplorer/errors.rb +16 -0
- data/lib/aws-sdk-costexplorer/types.rb +495 -23
- data/lib/aws-sdk-costexplorer.rb +1 -1
- data/sig/client.rbs +65 -0
- data/sig/errors.rbs +3 -0
- data/sig/types.rbs +123 -1
- metadata +2 -2
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
|
@@ -1132,8 +1189,25 @@ module Aws::CostExplorer
|
|
1132
1189
|
attr_accessor service: ::String
|
1133
1190
|
attr_accessor region: ::String
|
1134
1191
|
attr_accessor linked_account: ::String
|
1135
|
-
attr_accessor usage_type: ::String
|
1136
1192
|
attr_accessor linked_account_name: ::String
|
1193
|
+
attr_accessor usage_type: ::String
|
1194
|
+
attr_accessor impact: Types::RootCauseImpact
|
1195
|
+
SENSITIVE: []
|
1196
|
+
end
|
1197
|
+
|
1198
|
+
class RootCauseImpact
|
1199
|
+
attr_accessor contribution: ::Float
|
1200
|
+
SENSITIVE: []
|
1201
|
+
end
|
1202
|
+
|
1203
|
+
class SavingsPlans
|
1204
|
+
attr_accessor payment_option: ("NO_UPFRONT" | "PARTIAL_UPFRONT" | "ALL_UPFRONT" | "LIGHT_UTILIZATION" | "MEDIUM_UTILIZATION" | "HEAVY_UTILIZATION")
|
1205
|
+
attr_accessor savings_plans_type: ("COMPUTE_SP" | "EC2_INSTANCE_SP" | "SAGEMAKER_SP")
|
1206
|
+
attr_accessor region: ::String
|
1207
|
+
attr_accessor instance_family: ::String
|
1208
|
+
attr_accessor term_in_years: ("ONE_YEAR" | "THREE_YEARS")
|
1209
|
+
attr_accessor savings_plans_commitment: ::Float
|
1210
|
+
attr_accessor offering_id: ::String
|
1137
1211
|
SENSITIVE: []
|
1138
1212
|
end
|
1139
1213
|
|
@@ -1166,6 +1240,42 @@ module Aws::CostExplorer
|
|
1166
1240
|
SENSITIVE: []
|
1167
1241
|
end
|
1168
1242
|
|
1243
|
+
class SavingsPlansPurchaseAnalysisConfiguration
|
1244
|
+
attr_accessor account_scope: ("PAYER" | "LINKED")
|
1245
|
+
attr_accessor account_id: ::String
|
1246
|
+
attr_accessor analysis_type: ("MAX_SAVINGS" | "CUSTOM_COMMITMENT")
|
1247
|
+
attr_accessor savings_plans_to_add: ::Array[Types::SavingsPlans]
|
1248
|
+
attr_accessor savings_plans_to_exclude: ::Array[::String]
|
1249
|
+
attr_accessor look_back_time_period: Types::DateInterval
|
1250
|
+
SENSITIVE: []
|
1251
|
+
end
|
1252
|
+
|
1253
|
+
class SavingsPlansPurchaseAnalysisDetails
|
1254
|
+
attr_accessor currency_code: ::String
|
1255
|
+
attr_accessor lookback_period_in_hours: ::String
|
1256
|
+
attr_accessor current_average_coverage: ::String
|
1257
|
+
attr_accessor current_average_hourly_on_demand_spend: ::String
|
1258
|
+
attr_accessor current_maximum_hourly_on_demand_spend: ::String
|
1259
|
+
attr_accessor current_minimum_hourly_on_demand_spend: ::String
|
1260
|
+
attr_accessor current_on_demand_spend: ::String
|
1261
|
+
attr_accessor existing_hourly_commitment: ::String
|
1262
|
+
attr_accessor hourly_commitment_to_purchase: ::String
|
1263
|
+
attr_accessor estimated_average_coverage: ::String
|
1264
|
+
attr_accessor estimated_average_utilization: ::String
|
1265
|
+
attr_accessor estimated_monthly_savings_amount: ::String
|
1266
|
+
attr_accessor estimated_on_demand_cost: ::String
|
1267
|
+
attr_accessor estimated_on_demand_cost_with_current_commitment: ::String
|
1268
|
+
attr_accessor estimated_roi: ::String
|
1269
|
+
attr_accessor estimated_savings_amount: ::String
|
1270
|
+
attr_accessor estimated_savings_percentage: ::String
|
1271
|
+
attr_accessor estimated_commitment_cost: ::String
|
1272
|
+
attr_accessor latest_usage_timestamp: ::String
|
1273
|
+
attr_accessor upfront_cost: ::String
|
1274
|
+
attr_accessor additional_metadata: ::String
|
1275
|
+
attr_accessor metrics_over_lookback_period: ::Array[Types::RecommendationDetailHourlyMetrics]
|
1276
|
+
SENSITIVE: []
|
1277
|
+
end
|
1278
|
+
|
1169
1279
|
class SavingsPlansPurchaseRecommendation
|
1170
1280
|
attr_accessor account_scope: ("PAYER" | "LINKED")
|
1171
1281
|
attr_accessor savings_plans_type: ("COMPUTE_SP" | "EC2_INSTANCE_SP" | "SAGEMAKER_SP")
|
@@ -1274,6 +1384,18 @@ module Aws::CostExplorer
|
|
1274
1384
|
SENSITIVE: []
|
1275
1385
|
end
|
1276
1386
|
|
1387
|
+
class StartCommitmentPurchaseAnalysisRequest
|
1388
|
+
attr_accessor commitment_purchase_analysis_configuration: Types::CommitmentPurchaseAnalysisConfiguration
|
1389
|
+
SENSITIVE: []
|
1390
|
+
end
|
1391
|
+
|
1392
|
+
class StartCommitmentPurchaseAnalysisResponse
|
1393
|
+
attr_accessor analysis_id: ::String
|
1394
|
+
attr_accessor analysis_started_time: ::String
|
1395
|
+
attr_accessor estimated_completion_time: ::String
|
1396
|
+
SENSITIVE: []
|
1397
|
+
end
|
1398
|
+
|
1277
1399
|
class StartCostAllocationTagBackfillRequest
|
1278
1400
|
attr_accessor backfill_from: ::String
|
1279
1401
|
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.
|
4
|
+
version: 1.117.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-
|
11
|
+
date: 2024-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|