aws-sdk-costexplorer 1.96.0 → 1.98.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3fdd409a26c89a2394e1f677f2baa41de66ca907d3417a251dd662a05053f1b7
4
- data.tar.gz: db264641a62cb382a9b6ab324b335099bb63c25a0ccbeb4c78e66d1da613f0ea
3
+ metadata.gz: e09ea918c7b05d06c258c5d0ca7e64b0d67cd94a2fb07619f3ec091ca483de81
4
+ data.tar.gz: d8d92c37af3892842cd23de9de3f06130150bea3c47c0e3b00eb96cc348a11fa
5
5
  SHA512:
6
- metadata.gz: f0b82b6b18c6d083511abda764d438e8eb3677c5a9d73c18959cae738e975c63aa352a4e99fc2122158fc4c4537343a8c6473bad29b092abb8bd27101ae8783f
7
- data.tar.gz: c275f3f46e6a7f9d04104bf3ad523182b48f255ee9da717757acdd34c38bfc664776fac20f94f6b36f91006e209cf6ebdc40e726480daddb440666d80e9241f2
6
+ metadata.gz: 98937feb9a9be1c7f326b50b06720e5fca2e8026257c4b81608042c4808d9a579d2ffbc3721931d1a922e0e57163d55093aeb2107b22cd88d6554d6f7840b7fb
7
+ data.tar.gz: 587ed46a54167be712115a4ef85c0ecf9d69d68abfcf2fd7fa637bbc136dfc3632c573a4092a3555579a4ea233f0f400c760d59e0f64a7b39ea7eafaa3deefc3
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.98.0 (2024-04-23)
5
+ ------------------
6
+
7
+ * Feature - Added additional metadata that might be applicable to your reservation recommendations.
8
+
9
+ 1.97.0 (2024-03-26)
10
+ ------------------
11
+
12
+ * Feature - Adds support for backfill of cost allocation tags, with new StartCostAllocationTagBackfill and ListCostAllocationTagBackfillHistory API.
13
+
4
14
  1.96.0 (2024-02-28)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.96.0
1
+ 1.98.0
@@ -1381,8 +1381,11 @@ module Aws::CostExplorer
1381
1381
  # such as `SERVICE` or `AZ`, in a specific time range. For a complete
1382
1382
  # list of valid dimensions, see the [GetDimensionValues][1] operation.
1383
1383
  # Management account in an organization in Organizations have access to
1384
- # all member accounts. This API is currently available for the Amazon
1385
- # Elastic Compute Cloud – Compute service only.
1384
+ # all member accounts.
1385
+ #
1386
+ # Hourly granularity is only available for EC2-Instances (Elastic
1387
+ # Compute Cloud) resource-level data. All other resource-level data is
1388
+ # available at daily granularity.
1386
1389
  #
1387
1390
  # <note markdown="1"> This is an opt-in only feature. You can enable this feature from the
1388
1391
  # Cost Explorer Settings page. For information about how to access the
@@ -2811,6 +2814,7 @@ module Aws::CostExplorer
2811
2814
  #
2812
2815
  # resp.metadata.recommendation_id #=> String
2813
2816
  # resp.metadata.generation_timestamp #=> String
2817
+ # resp.metadata.additional_metadata #=> String
2814
2818
  # resp.recommendations #=> Array
2815
2819
  # resp.recommendations[0].account_scope #=> String, one of "PAYER", "LINKED"
2816
2820
  # resp.recommendations[0].lookback_period_in_days #=> String, one of "SEVEN_DAYS", "THIRTY_DAYS", "SIXTY_DAYS"
@@ -4480,6 +4484,50 @@ module Aws::CostExplorer
4480
4484
  req.send_request(options)
4481
4485
  end
4482
4486
 
4487
+ # Retrieves a list of your historical cost allocation tag backfill
4488
+ # requests.
4489
+ #
4490
+ # @option params [String] :next_token
4491
+ # The token to retrieve the next set of results. Amazon Web Services
4492
+ # provides the token when the response from a previous call has more
4493
+ # results than the maximum page size.
4494
+ #
4495
+ # @option params [Integer] :max_results
4496
+ # The maximum number of objects that are returned for this request.
4497
+ #
4498
+ # @return [Types::ListCostAllocationTagBackfillHistoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4499
+ #
4500
+ # * {Types::ListCostAllocationTagBackfillHistoryResponse#backfill_requests #backfill_requests} => Array&lt;Types::CostAllocationTagBackfillRequest&gt;
4501
+ # * {Types::ListCostAllocationTagBackfillHistoryResponse#next_token #next_token} => String
4502
+ #
4503
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4504
+ #
4505
+ # @example Request syntax with placeholder values
4506
+ #
4507
+ # resp = client.list_cost_allocation_tag_backfill_history({
4508
+ # next_token: "NextPageToken",
4509
+ # max_results: 1,
4510
+ # })
4511
+ #
4512
+ # @example Response structure
4513
+ #
4514
+ # resp.backfill_requests #=> Array
4515
+ # resp.backfill_requests[0].backfill_from #=> String
4516
+ # resp.backfill_requests[0].requested_at #=> String
4517
+ # resp.backfill_requests[0].completed_at #=> String
4518
+ # resp.backfill_requests[0].backfill_status #=> String, one of "SUCCEEDED", "PROCESSING", "FAILED"
4519
+ # resp.backfill_requests[0].last_updated_at #=> String
4520
+ # resp.next_token #=> String
4521
+ #
4522
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/ListCostAllocationTagBackfillHistory AWS API Documentation
4523
+ #
4524
+ # @overload list_cost_allocation_tag_backfill_history(params = {})
4525
+ # @param [Hash] params ({})
4526
+ def list_cost_allocation_tag_backfill_history(params = {}, options = {})
4527
+ req = build_request(:list_cost_allocation_tag_backfill_history, params)
4528
+ req.send_request(options)
4529
+ end
4530
+
4483
4531
  # Get a list of cost allocation tags. All inputs in the API are optional
4484
4532
  # and serve as filters. By default, all cost allocation tags are
4485
4533
  # returned.
@@ -4723,6 +4771,44 @@ module Aws::CostExplorer
4723
4771
  req.send_request(options)
4724
4772
  end
4725
4773
 
4774
+ # Request a cost allocation tag backfill. This will backfill the
4775
+ # activation status (either `active` or `inactive`) for all tag keys
4776
+ # from `para:BackfillFrom` up to the when this request is made.
4777
+ #
4778
+ # You can request a backfill once every 24 hours.
4779
+ #
4780
+ # @option params [required, String] :backfill_from
4781
+ # The date you want the backfill to start from. The date can only be a
4782
+ # first day of the month (a billing start date). Dates can't precede
4783
+ # the previous twelve months, or in the future.
4784
+ #
4785
+ # @return [Types::StartCostAllocationTagBackfillResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4786
+ #
4787
+ # * {Types::StartCostAllocationTagBackfillResponse#backfill_request #backfill_request} => Types::CostAllocationTagBackfillRequest
4788
+ #
4789
+ # @example Request syntax with placeholder values
4790
+ #
4791
+ # resp = client.start_cost_allocation_tag_backfill({
4792
+ # backfill_from: "ZonedDateTime", # required
4793
+ # })
4794
+ #
4795
+ # @example Response structure
4796
+ #
4797
+ # resp.backfill_request.backfill_from #=> String
4798
+ # resp.backfill_request.requested_at #=> String
4799
+ # resp.backfill_request.completed_at #=> String
4800
+ # resp.backfill_request.backfill_status #=> String, one of "SUCCEEDED", "PROCESSING", "FAILED"
4801
+ # resp.backfill_request.last_updated_at #=> String
4802
+ #
4803
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/StartCostAllocationTagBackfill AWS API Documentation
4804
+ #
4805
+ # @overload start_cost_allocation_tag_backfill(params = {})
4806
+ # @param [Hash] params ({})
4807
+ def start_cost_allocation_tag_backfill(params = {}, options = {})
4808
+ req = build_request(:start_cost_allocation_tag_backfill, params)
4809
+ req.send_request(options)
4810
+ end
4811
+
4726
4812
  # Requests a Savings Plans recommendation generation. This enables you
4727
4813
  # to calculate a fresh set of Savings Plans recommendations that takes
4728
4814
  # your latest usage data and current Savings Plans inventory into
@@ -5204,7 +5290,7 @@ module Aws::CostExplorer
5204
5290
  params: params,
5205
5291
  config: config)
5206
5292
  context[:gem_name] = 'aws-sdk-costexplorer'
5207
- context[:gem_version] = '1.96.0'
5293
+ context[:gem_version] = '1.98.0'
5208
5294
  Seahorse::Client::Request.new(handlers, context)
5209
5295
  end
5210
5296
 
@@ -32,9 +32,13 @@ module Aws::CostExplorer
32
32
  AttributeType = Shapes::StringShape.new(name: 'AttributeType')
33
33
  AttributeValue = Shapes::StringShape.new(name: 'AttributeValue')
34
34
  Attributes = Shapes::MapShape.new(name: 'Attributes')
35
+ BackfillLimitExceededException = Shapes::StructureShape.new(name: 'BackfillLimitExceededException')
35
36
  BillExpirationException = Shapes::StructureShape.new(name: 'BillExpirationException')
36
37
  Context = Shapes::StringShape.new(name: 'Context')
37
38
  CostAllocationTag = Shapes::StructureShape.new(name: 'CostAllocationTag')
39
+ CostAllocationTagBackfillRequest = Shapes::StructureShape.new(name: 'CostAllocationTagBackfillRequest')
40
+ CostAllocationTagBackfillRequestList = Shapes::ListShape.new(name: 'CostAllocationTagBackfillRequestList')
41
+ CostAllocationTagBackfillStatus = Shapes::StringShape.new(name: 'CostAllocationTagBackfillStatus')
38
42
  CostAllocationTagKeyList = Shapes::ListShape.new(name: 'CostAllocationTagKeyList')
39
43
  CostAllocationTagList = Shapes::ListShape.new(name: 'CostAllocationTagList')
40
44
  CostAllocationTagStatus = Shapes::StringShape.new(name: 'CostAllocationTagStatus')
@@ -175,6 +179,8 @@ module Aws::CostExplorer
175
179
  Key = Shapes::StringShape.new(name: 'Key')
176
180
  Keys = Shapes::ListShape.new(name: 'Keys')
177
181
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
182
+ ListCostAllocationTagBackfillHistoryRequest = Shapes::StructureShape.new(name: 'ListCostAllocationTagBackfillHistoryRequest')
183
+ ListCostAllocationTagBackfillHistoryResponse = Shapes::StructureShape.new(name: 'ListCostAllocationTagBackfillHistoryResponse')
178
184
  ListCostAllocationTagsRequest = Shapes::StructureShape.new(name: 'ListCostAllocationTagsRequest')
179
185
  ListCostAllocationTagsResponse = Shapes::StructureShape.new(name: 'ListCostAllocationTagsResponse')
180
186
  ListCostCategoryDefinitionsRequest = Shapes::StructureShape.new(name: 'ListCostCategoryDefinitionsRequest')
@@ -292,6 +298,8 @@ module Aws::CostExplorer
292
298
  SortDefinitionKey = Shapes::StringShape.new(name: 'SortDefinitionKey')
293
299
  SortDefinitions = Shapes::ListShape.new(name: 'SortDefinitions')
294
300
  SortOrder = Shapes::StringShape.new(name: 'SortOrder')
301
+ StartCostAllocationTagBackfillRequest = Shapes::StructureShape.new(name: 'StartCostAllocationTagBackfillRequest')
302
+ StartCostAllocationTagBackfillResponse = Shapes::StructureShape.new(name: 'StartCostAllocationTagBackfillResponse')
295
303
  StartSavingsPlansPurchaseRecommendationGenerationRequest = Shapes::StructureShape.new(name: 'StartSavingsPlansPurchaseRecommendationGenerationRequest')
296
304
  StartSavingsPlansPurchaseRecommendationGenerationResponse = Shapes::StructureShape.new(name: 'StartSavingsPlansPurchaseRecommendationGenerationResponse')
297
305
  Subscriber = Shapes::StructureShape.new(name: 'Subscriber')
@@ -398,6 +406,9 @@ module Aws::CostExplorer
398
406
  Attributes.key = Shapes::ShapeRef.new(shape: AttributeType)
399
407
  Attributes.value = Shapes::ShapeRef.new(shape: AttributeValue)
400
408
 
409
+ BackfillLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
410
+ BackfillLimitExceededException.struct_class = Types::BackfillLimitExceededException
411
+
401
412
  BillExpirationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
402
413
  BillExpirationException.struct_class = Types::BillExpirationException
403
414
 
@@ -408,6 +419,15 @@ module Aws::CostExplorer
408
419
  CostAllocationTag.add_member(:last_used_date, Shapes::ShapeRef.new(shape: ZonedDateTime, location_name: "LastUsedDate"))
409
420
  CostAllocationTag.struct_class = Types::CostAllocationTag
410
421
 
422
+ CostAllocationTagBackfillRequest.add_member(:backfill_from, Shapes::ShapeRef.new(shape: ZonedDateTime, location_name: "BackfillFrom"))
423
+ CostAllocationTagBackfillRequest.add_member(:requested_at, Shapes::ShapeRef.new(shape: ZonedDateTime, location_name: "RequestedAt"))
424
+ CostAllocationTagBackfillRequest.add_member(:completed_at, Shapes::ShapeRef.new(shape: ZonedDateTime, location_name: "CompletedAt"))
425
+ CostAllocationTagBackfillRequest.add_member(:backfill_status, Shapes::ShapeRef.new(shape: CostAllocationTagBackfillStatus, location_name: "BackfillStatus"))
426
+ CostAllocationTagBackfillRequest.add_member(:last_updated_at, Shapes::ShapeRef.new(shape: ZonedDateTime, location_name: "LastUpdatedAt"))
427
+ CostAllocationTagBackfillRequest.struct_class = Types::CostAllocationTagBackfillRequest
428
+
429
+ CostAllocationTagBackfillRequestList.member = Shapes::ShapeRef.new(shape: CostAllocationTagBackfillRequest)
430
+
411
431
  CostAllocationTagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
412
432
 
413
433
  CostAllocationTagList.member = Shapes::ShapeRef.new(shape: CostAllocationTag)
@@ -979,6 +999,14 @@ module Aws::CostExplorer
979
999
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
980
1000
  LimitExceededException.struct_class = Types::LimitExceededException
981
1001
 
1002
+ ListCostAllocationTagBackfillHistoryRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextToken"))
1003
+ ListCostAllocationTagBackfillHistoryRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: CostAllocationTagsMaxResults, location_name: "MaxResults", metadata: {"box"=>true}))
1004
+ ListCostAllocationTagBackfillHistoryRequest.struct_class = Types::ListCostAllocationTagBackfillHistoryRequest
1005
+
1006
+ ListCostAllocationTagBackfillHistoryResponse.add_member(:backfill_requests, Shapes::ShapeRef.new(shape: CostAllocationTagBackfillRequestList, location_name: "BackfillRequests"))
1007
+ ListCostAllocationTagBackfillHistoryResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextToken"))
1008
+ ListCostAllocationTagBackfillHistoryResponse.struct_class = Types::ListCostAllocationTagBackfillHistoryResponse
1009
+
982
1010
  ListCostAllocationTagsRequest.add_member(:status, Shapes::ShapeRef.new(shape: CostAllocationTagStatus, location_name: "Status"))
983
1011
  ListCostAllocationTagsRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: CostAllocationTagKeyList, location_name: "TagKeys"))
984
1012
  ListCostAllocationTagsRequest.add_member(:type, Shapes::ShapeRef.new(shape: CostAllocationTagType, location_name: "Type"))
@@ -1175,6 +1203,7 @@ module Aws::CostExplorer
1175
1203
 
1176
1204
  ReservationPurchaseRecommendationMetadata.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: GenericString, location_name: "RecommendationId"))
1177
1205
  ReservationPurchaseRecommendationMetadata.add_member(:generation_timestamp, Shapes::ShapeRef.new(shape: GenericString, location_name: "GenerationTimestamp"))
1206
+ ReservationPurchaseRecommendationMetadata.add_member(:additional_metadata, Shapes::ShapeRef.new(shape: GenericString, location_name: "AdditionalMetadata"))
1178
1207
  ReservationPurchaseRecommendationMetadata.struct_class = Types::ReservationPurchaseRecommendationMetadata
1179
1208
 
1180
1209
  ReservationPurchaseRecommendationSummary.add_member(:total_estimated_monthly_savings_amount, Shapes::ShapeRef.new(shape: GenericString, location_name: "TotalEstimatedMonthlySavingsAmount"))
@@ -1370,6 +1399,12 @@ module Aws::CostExplorer
1370
1399
 
1371
1400
  SortDefinitions.member = Shapes::ShapeRef.new(shape: SortDefinition)
1372
1401
 
1402
+ StartCostAllocationTagBackfillRequest.add_member(:backfill_from, Shapes::ShapeRef.new(shape: ZonedDateTime, required: true, location_name: "BackfillFrom"))
1403
+ StartCostAllocationTagBackfillRequest.struct_class = Types::StartCostAllocationTagBackfillRequest
1404
+
1405
+ StartCostAllocationTagBackfillResponse.add_member(:backfill_request, Shapes::ShapeRef.new(shape: CostAllocationTagBackfillRequest, location_name: "BackfillRequest"))
1406
+ StartCostAllocationTagBackfillResponse.struct_class = Types::StartCostAllocationTagBackfillResponse
1407
+
1373
1408
  StartSavingsPlansPurchaseRecommendationGenerationRequest.struct_class = Types::StartSavingsPlansPurchaseRecommendationGenerationRequest
1374
1409
 
1375
1410
  StartSavingsPlansPurchaseRecommendationGenerationResponse.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: RecommendationId, location_name: "RecommendationId"))
@@ -1817,6 +1852,22 @@ module Aws::CostExplorer
1817
1852
  o.errors << Shapes::ShapeRef.new(shape: UnresolvableUsageUnitException)
1818
1853
  end)
1819
1854
 
1855
+ api.add_operation(:list_cost_allocation_tag_backfill_history, Seahorse::Model::Operation.new.tap do |o|
1856
+ o.name = "ListCostAllocationTagBackfillHistory"
1857
+ o.http_method = "POST"
1858
+ o.http_request_uri = "/"
1859
+ o.input = Shapes::ShapeRef.new(shape: ListCostAllocationTagBackfillHistoryRequest)
1860
+ o.output = Shapes::ShapeRef.new(shape: ListCostAllocationTagBackfillHistoryResponse)
1861
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1862
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1863
+ o[:pager] = Aws::Pager.new(
1864
+ limit_key: "max_results",
1865
+ tokens: {
1866
+ "next_token" => "next_token"
1867
+ }
1868
+ )
1869
+ end)
1870
+
1820
1871
  api.add_operation(:list_cost_allocation_tags, Seahorse::Model::Operation.new.tap do |o|
1821
1872
  o.name = "ListCostAllocationTags"
1822
1873
  o.http_method = "POST"
@@ -1878,6 +1929,16 @@ module Aws::CostExplorer
1878
1929
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1879
1930
  end)
1880
1931
 
1932
+ api.add_operation(:start_cost_allocation_tag_backfill, Seahorse::Model::Operation.new.tap do |o|
1933
+ o.name = "StartCostAllocationTagBackfill"
1934
+ o.http_method = "POST"
1935
+ o.http_request_uri = "/"
1936
+ o.input = Shapes::ShapeRef.new(shape: StartCostAllocationTagBackfillRequest)
1937
+ o.output = Shapes::ShapeRef.new(shape: StartCostAllocationTagBackfillResponse)
1938
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1939
+ o.errors << Shapes::ShapeRef.new(shape: BackfillLimitExceededException)
1940
+ end)
1941
+
1881
1942
  api.add_operation(:start_savings_plans_purchase_recommendation_generation, Seahorse::Model::Operation.new.tap do |o|
1882
1943
  o.name = "StartSavingsPlansPurchaseRecommendationGeneration"
1883
1944
  o.http_method = "POST"
@@ -390,6 +390,20 @@ module Aws::CostExplorer
390
390
  end
391
391
  end
392
392
 
393
+ class ListCostAllocationTagBackfillHistory
394
+ def self.build(context)
395
+ unless context.config.regional_endpoint
396
+ endpoint = context.config.endpoint.to_s
397
+ end
398
+ Aws::CostExplorer::EndpointParameters.new(
399
+ region: context.config.region,
400
+ use_dual_stack: context.config.use_dualstack_endpoint,
401
+ use_fips: context.config.use_fips_endpoint,
402
+ endpoint: endpoint,
403
+ )
404
+ end
405
+ end
406
+
393
407
  class ListCostAllocationTags
394
408
  def self.build(context)
395
409
  unless context.config.regional_endpoint
@@ -460,6 +474,20 @@ module Aws::CostExplorer
460
474
  end
461
475
  end
462
476
 
477
+ class StartCostAllocationTagBackfill
478
+ def self.build(context)
479
+ unless context.config.regional_endpoint
480
+ endpoint = context.config.endpoint.to_s
481
+ end
482
+ Aws::CostExplorer::EndpointParameters.new(
483
+ region: context.config.region,
484
+ use_dual_stack: context.config.use_dualstack_endpoint,
485
+ use_fips: context.config.use_fips_endpoint,
486
+ endpoint: endpoint,
487
+ )
488
+ end
489
+ end
490
+
463
491
  class StartSavingsPlansPurchaseRecommendationGeneration
464
492
  def self.build(context)
465
493
  unless context.config.regional_endpoint
@@ -27,6 +27,7 @@ module Aws::CostExplorer
27
27
  # See {Seahorse::Client::RequestContext} for more information.
28
28
  #
29
29
  # ## Error Classes
30
+ # * {BackfillLimitExceededException}
30
31
  # * {BillExpirationException}
31
32
  # * {DataUnavailableException}
32
33
  # * {GenerationExistsException}
@@ -46,6 +47,21 @@ module Aws::CostExplorer
46
47
 
47
48
  extend Aws::Errors::DynamicErrors
48
49
 
50
+ class BackfillLimitExceededException < ServiceError
51
+
52
+ # @param [Seahorse::Client::RequestContext] context
53
+ # @param [String] message
54
+ # @param [Aws::CostExplorer::Types::BackfillLimitExceededException] data
55
+ def initialize(context, message, data = Aws::EmptyStructure.new)
56
+ super(context, message, data)
57
+ end
58
+
59
+ # @return [String]
60
+ def message
61
+ @message || @data[:message]
62
+ end
63
+ end
64
+
49
65
  class BillExpirationException < ServiceError
50
66
 
51
67
  # @param [Seahorse::Client::RequestContext] context
@@ -112,6 +112,8 @@ module Aws::CostExplorer
112
112
  Aws::CostExplorer::Endpoints::GetTags.build(context)
113
113
  when :get_usage_forecast
114
114
  Aws::CostExplorer::Endpoints::GetUsageForecast.build(context)
115
+ when :list_cost_allocation_tag_backfill_history
116
+ Aws::CostExplorer::Endpoints::ListCostAllocationTagBackfillHistory.build(context)
115
117
  when :list_cost_allocation_tags
116
118
  Aws::CostExplorer::Endpoints::ListCostAllocationTags.build(context)
117
119
  when :list_cost_category_definitions
@@ -122,6 +124,8 @@ module Aws::CostExplorer
122
124
  Aws::CostExplorer::Endpoints::ListTagsForResource.build(context)
123
125
  when :provide_anomaly_feedback
124
126
  Aws::CostExplorer::Endpoints::ProvideAnomalyFeedback.build(context)
127
+ when :start_cost_allocation_tag_backfill
128
+ Aws::CostExplorer::Endpoints::StartCostAllocationTagBackfill.build(context)
125
129
  when :start_savings_plans_purchase_recommendation_generation
126
130
  Aws::CostExplorer::Endpoints::StartSavingsPlansPurchaseRecommendationGeneration.build(context)
127
131
  when :tag_resource
@@ -388,6 +388,20 @@ module Aws::CostExplorer
388
388
  include Aws::Structure
389
389
  end
390
390
 
391
+ # A request to backfill is already in progress. Once the previous
392
+ # request is complete, you can create another request.
393
+ #
394
+ # @!attribute [rw] message
395
+ # @return [String]
396
+ #
397
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/BackfillLimitExceededException AWS API Documentation
398
+ #
399
+ class BackfillLimitExceededException < Struct.new(
400
+ :message)
401
+ SENSITIVE = []
402
+ include Aws::Structure
403
+ end
404
+
391
405
  # The requested report expired. Update the date interval and try again.
392
406
  #
393
407
  # @!attribute [rw] message
@@ -441,6 +455,41 @@ module Aws::CostExplorer
441
455
  include Aws::Structure
442
456
  end
443
457
 
458
+ # The cost allocation tag backfill request structure that contains
459
+ # metadata and details of a certain backfill.
460
+ #
461
+ # @!attribute [rw] backfill_from
462
+ # The date the backfill starts from.
463
+ # @return [String]
464
+ #
465
+ # @!attribute [rw] requested_at
466
+ # The time when the backfill was requested.
467
+ # @return [String]
468
+ #
469
+ # @!attribute [rw] completed_at
470
+ # The backfill completion time.
471
+ # @return [String]
472
+ #
473
+ # @!attribute [rw] backfill_status
474
+ # The status of the cost allocation tag backfill request.
475
+ # @return [String]
476
+ #
477
+ # @!attribute [rw] last_updated_at
478
+ # The time when the backfill status was last updated.
479
+ # @return [String]
480
+ #
481
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/CostAllocationTagBackfillRequest AWS API Documentation
482
+ #
483
+ class CostAllocationTagBackfillRequest < Struct.new(
484
+ :backfill_from,
485
+ :requested_at,
486
+ :completed_at,
487
+ :backfill_status,
488
+ :last_updated_at)
489
+ SENSITIVE = []
490
+ include Aws::Structure
491
+ end
492
+
444
493
  # The cost allocation tag status. The status of a key can either be
445
494
  # active or inactive.
446
495
  #
@@ -4774,6 +4823,44 @@ module Aws::CostExplorer
4774
4823
  include Aws::Structure
4775
4824
  end
4776
4825
 
4826
+ # @!attribute [rw] next_token
4827
+ # The token to retrieve the next set of results. Amazon Web Services
4828
+ # provides the token when the response from a previous call has more
4829
+ # results than the maximum page size.
4830
+ # @return [String]
4831
+ #
4832
+ # @!attribute [rw] max_results
4833
+ # The maximum number of objects that are returned for this request.
4834
+ # @return [Integer]
4835
+ #
4836
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/ListCostAllocationTagBackfillHistoryRequest AWS API Documentation
4837
+ #
4838
+ class ListCostAllocationTagBackfillHistoryRequest < Struct.new(
4839
+ :next_token,
4840
+ :max_results)
4841
+ SENSITIVE = []
4842
+ include Aws::Structure
4843
+ end
4844
+
4845
+ # @!attribute [rw] backfill_requests
4846
+ # The list of historical cost allocation tag backfill requests.
4847
+ # @return [Array<Types::CostAllocationTagBackfillRequest>]
4848
+ #
4849
+ # @!attribute [rw] next_token
4850
+ # The token to retrieve the next set of results. Amazon Web Services
4851
+ # provides the token when the response from a previous call has more
4852
+ # results than the maximum page size.
4853
+ # @return [String]
4854
+ #
4855
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/ListCostAllocationTagBackfillHistoryResponse AWS API Documentation
4856
+ #
4857
+ class ListCostAllocationTagBackfillHistoryResponse < Struct.new(
4858
+ :backfill_requests,
4859
+ :next_token)
4860
+ SENSITIVE = []
4861
+ include Aws::Structure
4862
+ end
4863
+
4777
4864
  # @!attribute [rw] status
4778
4865
  # The status of cost allocation tag keys that are returned for this
4779
4866
  # request.
@@ -5716,22 +5803,27 @@ module Aws::CostExplorer
5716
5803
  include Aws::Structure
5717
5804
  end
5718
5805
 
5719
- # Information about this specific recommendation, such as the timestamp
5720
- # for when Amazon Web Services made a specific recommendation.
5806
+ # Information about a recommendation, such as the timestamp for when
5807
+ # Amazon Web Services made a specific recommendation.
5721
5808
  #
5722
5809
  # @!attribute [rw] recommendation_id
5723
- # The ID for this specific recommendation.
5810
+ # The ID for the recommendation.
5724
5811
  # @return [String]
5725
5812
  #
5726
5813
  # @!attribute [rw] generation_timestamp
5727
- # The timestamp for when Amazon Web Services made this recommendation.
5814
+ # The timestamp for when Amazon Web Services made the recommendation.
5815
+ # @return [String]
5816
+ #
5817
+ # @!attribute [rw] additional_metadata
5818
+ # Additional metadata that might be applicable to the recommendation.
5728
5819
  # @return [String]
5729
5820
  #
5730
5821
  # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/ReservationPurchaseRecommendationMetadata AWS API Documentation
5731
5822
  #
5732
5823
  class ReservationPurchaseRecommendationMetadata < Struct.new(
5733
5824
  :recommendation_id,
5734
- :generation_timestamp)
5825
+ :generation_timestamp,
5826
+ :additional_metadata)
5735
5827
  SENSITIVE = []
5736
5828
  include Aws::Structure
5737
5829
  end
@@ -5968,19 +6060,19 @@ module Aws::CostExplorer
5968
6060
  include Aws::Structure
5969
6061
  end
5970
6062
 
5971
- # Metadata for this recommendation set.
6063
+ # Metadata for a recommendation set.
5972
6064
  #
5973
6065
  # @!attribute [rw] recommendation_id
5974
- # The ID for this specific recommendation.
6066
+ # The ID for the recommendation.
5975
6067
  # @return [String]
5976
6068
  #
5977
6069
  # @!attribute [rw] generation_timestamp
5978
- # The timestamp for when Amazon Web Services made this recommendation.
6070
+ # The timestamp for when Amazon Web Services made the recommendation.
5979
6071
  # @return [String]
5980
6072
  #
5981
6073
  # @!attribute [rw] lookback_period_in_days
5982
6074
  # The number of days of previous usage that Amazon Web Services
5983
- # considers when making this recommendation.
6075
+ # considers when making the recommendation.
5984
6076
  # @return [String]
5985
6077
  #
5986
6078
  # @!attribute [rw] additional_metadata
@@ -6662,6 +6754,32 @@ module Aws::CostExplorer
6662
6754
  include Aws::Structure
6663
6755
  end
6664
6756
 
6757
+ # @!attribute [rw] backfill_from
6758
+ # The date you want the backfill to start from. The date can only be a
6759
+ # first day of the month (a billing start date). Dates can't precede
6760
+ # the previous twelve months, or in the future.
6761
+ # @return [String]
6762
+ #
6763
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/StartCostAllocationTagBackfillRequest AWS API Documentation
6764
+ #
6765
+ class StartCostAllocationTagBackfillRequest < Struct.new(
6766
+ :backfill_from)
6767
+ SENSITIVE = []
6768
+ include Aws::Structure
6769
+ end
6770
+
6771
+ # @!attribute [rw] backfill_request
6772
+ # An object containing detailed metadata of your new backfill request.
6773
+ # @return [Types::CostAllocationTagBackfillRequest]
6774
+ #
6775
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/StartCostAllocationTagBackfillResponse AWS API Documentation
6776
+ #
6777
+ class StartCostAllocationTagBackfillResponse < Struct.new(
6778
+ :backfill_request)
6779
+ SENSITIVE = []
6780
+ include Aws::Structure
6781
+ end
6782
+
6665
6783
  # @api private
6666
6784
  #
6667
6785
  # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/StartSavingsPlansPurchaseRecommendationGenerationRequest AWS API Documentation
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-costexplorer/customizations'
52
52
  # @!group service
53
53
  module Aws::CostExplorer
54
54
 
55
- GEM_VERSION = '1.96.0'
55
+ GEM_VERSION = '1.98.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -1071,6 +1071,18 @@ module Aws
1071
1071
  ) -> _GetUsageForecastResponseSuccess
1072
1072
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetUsageForecastResponseSuccess
1073
1073
 
1074
+ interface _ListCostAllocationTagBackfillHistoryResponseSuccess
1075
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListCostAllocationTagBackfillHistoryResponse]
1076
+ def backfill_requests: () -> ::Array[Types::CostAllocationTagBackfillRequest]
1077
+ def next_token: () -> ::String
1078
+ end
1079
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostExplorer/Client.html#list_cost_allocation_tag_backfill_history-instance_method
1080
+ def list_cost_allocation_tag_backfill_history: (
1081
+ ?next_token: ::String,
1082
+ ?max_results: ::Integer
1083
+ ) -> _ListCostAllocationTagBackfillHistoryResponseSuccess
1084
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCostAllocationTagBackfillHistoryResponseSuccess
1085
+
1074
1086
  interface _ListCostAllocationTagsResponseSuccess
1075
1087
  include ::Seahorse::Client::_ResponseSuccess[Types::ListCostAllocationTagsResponse]
1076
1088
  def cost_allocation_tags: () -> ::Array[Types::CostAllocationTag]
@@ -1134,6 +1146,16 @@ module Aws
1134
1146
  ) -> _ProvideAnomalyFeedbackResponseSuccess
1135
1147
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ProvideAnomalyFeedbackResponseSuccess
1136
1148
 
1149
+ interface _StartCostAllocationTagBackfillResponseSuccess
1150
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartCostAllocationTagBackfillResponse]
1151
+ def backfill_request: () -> Types::CostAllocationTagBackfillRequest
1152
+ end
1153
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostExplorer/Client.html#start_cost_allocation_tag_backfill-instance_method
1154
+ def start_cost_allocation_tag_backfill: (
1155
+ backfill_from: ::String
1156
+ ) -> _StartCostAllocationTagBackfillResponseSuccess
1157
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartCostAllocationTagBackfillResponseSuccess
1158
+
1137
1159
  interface _StartSavingsPlansPurchaseRecommendationGenerationResponseSuccess
1138
1160
  include ::Seahorse::Client::_ResponseSuccess[Types::StartSavingsPlansPurchaseRecommendationGenerationResponse]
1139
1161
  def recommendation_id: () -> ::String
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 BackfillLimitExceededException < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ end
14
17
  class BillExpirationException < ::Aws::Errors::ServiceError
15
18
  def message: () -> ::String
16
19
  end
data/sig/types.rbs CHANGED
@@ -58,6 +58,11 @@ module Aws::CostExplorer
58
58
  SENSITIVE: []
59
59
  end
60
60
 
61
+ class BackfillLimitExceededException
62
+ attr_accessor message: ::String
63
+ SENSITIVE: []
64
+ end
65
+
61
66
  class BillExpirationException
62
67
  attr_accessor message: ::String
63
68
  SENSITIVE: []
@@ -72,6 +77,15 @@ module Aws::CostExplorer
72
77
  SENSITIVE: []
73
78
  end
74
79
 
80
+ class CostAllocationTagBackfillRequest
81
+ attr_accessor backfill_from: ::String
82
+ attr_accessor requested_at: ::String
83
+ attr_accessor completed_at: ::String
84
+ attr_accessor backfill_status: ("SUCCEEDED" | "PROCESSING" | "FAILED")
85
+ attr_accessor last_updated_at: ::String
86
+ SENSITIVE: []
87
+ end
88
+
75
89
  class CostAllocationTagStatusEntry
76
90
  attr_accessor tag_key: ::String
77
91
  attr_accessor status: ("Active" | "Inactive")
@@ -781,6 +795,18 @@ module Aws::CostExplorer
781
795
  SENSITIVE: []
782
796
  end
783
797
 
798
+ class ListCostAllocationTagBackfillHistoryRequest
799
+ attr_accessor next_token: ::String
800
+ attr_accessor max_results: ::Integer
801
+ SENSITIVE: []
802
+ end
803
+
804
+ class ListCostAllocationTagBackfillHistoryResponse
805
+ attr_accessor backfill_requests: ::Array[Types::CostAllocationTagBackfillRequest]
806
+ attr_accessor next_token: ::String
807
+ SENSITIVE: []
808
+ end
809
+
784
810
  class ListCostAllocationTagsRequest
785
811
  attr_accessor status: ("Active" | "Inactive")
786
812
  attr_accessor tag_keys: ::Array[::String]
@@ -1005,6 +1031,7 @@ module Aws::CostExplorer
1005
1031
  class ReservationPurchaseRecommendationMetadata
1006
1032
  attr_accessor recommendation_id: ::String
1007
1033
  attr_accessor generation_timestamp: ::String
1034
+ attr_accessor additional_metadata: ::String
1008
1035
  SENSITIVE: []
1009
1036
  end
1010
1037
 
@@ -1231,6 +1258,16 @@ module Aws::CostExplorer
1231
1258
  SENSITIVE: []
1232
1259
  end
1233
1260
 
1261
+ class StartCostAllocationTagBackfillRequest
1262
+ attr_accessor backfill_from: ::String
1263
+ SENSITIVE: []
1264
+ end
1265
+
1266
+ class StartCostAllocationTagBackfillResponse
1267
+ attr_accessor backfill_request: Types::CostAllocationTagBackfillRequest
1268
+ SENSITIVE: []
1269
+ end
1270
+
1234
1271
  class StartSavingsPlansPurchaseRecommendationGenerationRequest < Aws::EmptyStructure
1235
1272
  end
1236
1273
 
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.96.0
4
+ version: 1.98.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-02-28 00:00:00.000000000 Z
11
+ date: 2024-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core