aws-sdk-costexplorer 1.96.0 → 1.97.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: fa401a291a4cb06b7610b0a680387854d703d0acd9f0c8de5148797d6683ac99
4
+ data.tar.gz: d3a51e31510606319d1923fc9bdd4fa9e3146e00e002417cdf003750c0f2217d
5
5
  SHA512:
6
- metadata.gz: f0b82b6b18c6d083511abda764d438e8eb3677c5a9d73c18959cae738e975c63aa352a4e99fc2122158fc4c4537343a8c6473bad29b092abb8bd27101ae8783f
7
- data.tar.gz: c275f3f46e6a7f9d04104bf3ad523182b48f255ee9da717757acdd34c38bfc664776fac20f94f6b36f91006e209cf6ebdc40e726480daddb440666d80e9241f2
6
+ metadata.gz: 45bccfa686ba9221a27e93d282919e567331d6bccf21ce2e510a223bfe1b25498f2df38b2e18525c397b7dd4799dfa9eba1c50fb74a1214a4ff734c56ba446e3
7
+ data.tar.gz: f51426d95c19e7ba45f29a24007ff735358c2e45770767e6096631892a582aca3a605acdad93681c0ac56bc057a38a6e01dceb0b108a7123370094a532cd7389
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.97.0 (2024-03-26)
5
+ ------------------
6
+
7
+ * Feature - Adds support for backfill of cost allocation tags, with new StartCostAllocationTagBackfill and ListCostAllocationTagBackfillHistory API.
8
+
4
9
  1.96.0 (2024-02-28)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.96.0
1
+ 1.97.0
@@ -4480,6 +4480,50 @@ module Aws::CostExplorer
4480
4480
  req.send_request(options)
4481
4481
  end
4482
4482
 
4483
+ # Retrieves a list of your historical cost allocation tag backfill
4484
+ # requests.
4485
+ #
4486
+ # @option params [String] :next_token
4487
+ # The token to retrieve the next set of results. Amazon Web Services
4488
+ # provides the token when the response from a previous call has more
4489
+ # results than the maximum page size.
4490
+ #
4491
+ # @option params [Integer] :max_results
4492
+ # The maximum number of objects that are returned for this request.
4493
+ #
4494
+ # @return [Types::ListCostAllocationTagBackfillHistoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4495
+ #
4496
+ # * {Types::ListCostAllocationTagBackfillHistoryResponse#backfill_requests #backfill_requests} => Array<Types::CostAllocationTagBackfillRequest>
4497
+ # * {Types::ListCostAllocationTagBackfillHistoryResponse#next_token #next_token} => String
4498
+ #
4499
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4500
+ #
4501
+ # @example Request syntax with placeholder values
4502
+ #
4503
+ # resp = client.list_cost_allocation_tag_backfill_history({
4504
+ # next_token: "NextPageToken",
4505
+ # max_results: 1,
4506
+ # })
4507
+ #
4508
+ # @example Response structure
4509
+ #
4510
+ # resp.backfill_requests #=> Array
4511
+ # resp.backfill_requests[0].backfill_from #=> String
4512
+ # resp.backfill_requests[0].requested_at #=> String
4513
+ # resp.backfill_requests[0].completed_at #=> String
4514
+ # resp.backfill_requests[0].backfill_status #=> String, one of "SUCCEEDED", "PROCESSING", "FAILED"
4515
+ # resp.backfill_requests[0].last_updated_at #=> String
4516
+ # resp.next_token #=> String
4517
+ #
4518
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/ListCostAllocationTagBackfillHistory AWS API Documentation
4519
+ #
4520
+ # @overload list_cost_allocation_tag_backfill_history(params = {})
4521
+ # @param [Hash] params ({})
4522
+ def list_cost_allocation_tag_backfill_history(params = {}, options = {})
4523
+ req = build_request(:list_cost_allocation_tag_backfill_history, params)
4524
+ req.send_request(options)
4525
+ end
4526
+
4483
4527
  # Get a list of cost allocation tags. All inputs in the API are optional
4484
4528
  # and serve as filters. By default, all cost allocation tags are
4485
4529
  # returned.
@@ -4723,6 +4767,44 @@ module Aws::CostExplorer
4723
4767
  req.send_request(options)
4724
4768
  end
4725
4769
 
4770
+ # Request a cost allocation tag backfill. This will backfill the
4771
+ # activation status (either `active` or `inactive`) for all tag keys
4772
+ # from `para:BackfillFrom` up to the when this request is made.
4773
+ #
4774
+ # You can request a backfill once every 24 hours.
4775
+ #
4776
+ # @option params [required, String] :backfill_from
4777
+ # The date you want the backfill to start from. The date can only be a
4778
+ # first day of the month (a billing start date). Dates can't precede
4779
+ # the previous twelve months, or in the future.
4780
+ #
4781
+ # @return [Types::StartCostAllocationTagBackfillResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4782
+ #
4783
+ # * {Types::StartCostAllocationTagBackfillResponse#backfill_request #backfill_request} => Types::CostAllocationTagBackfillRequest
4784
+ #
4785
+ # @example Request syntax with placeholder values
4786
+ #
4787
+ # resp = client.start_cost_allocation_tag_backfill({
4788
+ # backfill_from: "ZonedDateTime", # required
4789
+ # })
4790
+ #
4791
+ # @example Response structure
4792
+ #
4793
+ # resp.backfill_request.backfill_from #=> String
4794
+ # resp.backfill_request.requested_at #=> String
4795
+ # resp.backfill_request.completed_at #=> String
4796
+ # resp.backfill_request.backfill_status #=> String, one of "SUCCEEDED", "PROCESSING", "FAILED"
4797
+ # resp.backfill_request.last_updated_at #=> String
4798
+ #
4799
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/StartCostAllocationTagBackfill AWS API Documentation
4800
+ #
4801
+ # @overload start_cost_allocation_tag_backfill(params = {})
4802
+ # @param [Hash] params ({})
4803
+ def start_cost_allocation_tag_backfill(params = {}, options = {})
4804
+ req = build_request(:start_cost_allocation_tag_backfill, params)
4805
+ req.send_request(options)
4806
+ end
4807
+
4726
4808
  # Requests a Savings Plans recommendation generation. This enables you
4727
4809
  # to calculate a fresh set of Savings Plans recommendations that takes
4728
4810
  # your latest usage data and current Savings Plans inventory into
@@ -5204,7 +5286,7 @@ module Aws::CostExplorer
5204
5286
  params: params,
5205
5287
  config: config)
5206
5288
  context[:gem_name] = 'aws-sdk-costexplorer'
5207
- context[:gem_version] = '1.96.0'
5289
+ context[:gem_version] = '1.97.0'
5208
5290
  Seahorse::Client::Request.new(handlers, context)
5209
5291
  end
5210
5292
 
@@ -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"))
@@ -1370,6 +1398,12 @@ module Aws::CostExplorer
1370
1398
 
1371
1399
  SortDefinitions.member = Shapes::ShapeRef.new(shape: SortDefinition)
1372
1400
 
1401
+ StartCostAllocationTagBackfillRequest.add_member(:backfill_from, Shapes::ShapeRef.new(shape: ZonedDateTime, required: true, location_name: "BackfillFrom"))
1402
+ StartCostAllocationTagBackfillRequest.struct_class = Types::StartCostAllocationTagBackfillRequest
1403
+
1404
+ StartCostAllocationTagBackfillResponse.add_member(:backfill_request, Shapes::ShapeRef.new(shape: CostAllocationTagBackfillRequest, location_name: "BackfillRequest"))
1405
+ StartCostAllocationTagBackfillResponse.struct_class = Types::StartCostAllocationTagBackfillResponse
1406
+
1373
1407
  StartSavingsPlansPurchaseRecommendationGenerationRequest.struct_class = Types::StartSavingsPlansPurchaseRecommendationGenerationRequest
1374
1408
 
1375
1409
  StartSavingsPlansPurchaseRecommendationGenerationResponse.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: RecommendationId, location_name: "RecommendationId"))
@@ -1817,6 +1851,22 @@ module Aws::CostExplorer
1817
1851
  o.errors << Shapes::ShapeRef.new(shape: UnresolvableUsageUnitException)
1818
1852
  end)
1819
1853
 
1854
+ api.add_operation(:list_cost_allocation_tag_backfill_history, Seahorse::Model::Operation.new.tap do |o|
1855
+ o.name = "ListCostAllocationTagBackfillHistory"
1856
+ o.http_method = "POST"
1857
+ o.http_request_uri = "/"
1858
+ o.input = Shapes::ShapeRef.new(shape: ListCostAllocationTagBackfillHistoryRequest)
1859
+ o.output = Shapes::ShapeRef.new(shape: ListCostAllocationTagBackfillHistoryResponse)
1860
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1861
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1862
+ o[:pager] = Aws::Pager.new(
1863
+ limit_key: "max_results",
1864
+ tokens: {
1865
+ "next_token" => "next_token"
1866
+ }
1867
+ )
1868
+ end)
1869
+
1820
1870
  api.add_operation(:list_cost_allocation_tags, Seahorse::Model::Operation.new.tap do |o|
1821
1871
  o.name = "ListCostAllocationTags"
1822
1872
  o.http_method = "POST"
@@ -1878,6 +1928,16 @@ module Aws::CostExplorer
1878
1928
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1879
1929
  end)
1880
1930
 
1931
+ api.add_operation(:start_cost_allocation_tag_backfill, Seahorse::Model::Operation.new.tap do |o|
1932
+ o.name = "StartCostAllocationTagBackfill"
1933
+ o.http_method = "POST"
1934
+ o.http_request_uri = "/"
1935
+ o.input = Shapes::ShapeRef.new(shape: StartCostAllocationTagBackfillRequest)
1936
+ o.output = Shapes::ShapeRef.new(shape: StartCostAllocationTagBackfillResponse)
1937
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1938
+ o.errors << Shapes::ShapeRef.new(shape: BackfillLimitExceededException)
1939
+ end)
1940
+
1881
1941
  api.add_operation(:start_savings_plans_purchase_recommendation_generation, Seahorse::Model::Operation.new.tap do |o|
1882
1942
  o.name = "StartSavingsPlansPurchaseRecommendationGeneration"
1883
1943
  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.
@@ -6662,6 +6749,32 @@ module Aws::CostExplorer
6662
6749
  include Aws::Structure
6663
6750
  end
6664
6751
 
6752
+ # @!attribute [rw] backfill_from
6753
+ # The date you want the backfill to start from. The date can only be a
6754
+ # first day of the month (a billing start date). Dates can't precede
6755
+ # the previous twelve months, or in the future.
6756
+ # @return [String]
6757
+ #
6758
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/StartCostAllocationTagBackfillRequest AWS API Documentation
6759
+ #
6760
+ class StartCostAllocationTagBackfillRequest < Struct.new(
6761
+ :backfill_from)
6762
+ SENSITIVE = []
6763
+ include Aws::Structure
6764
+ end
6765
+
6766
+ # @!attribute [rw] backfill_request
6767
+ # An object containing detailed metadata of your new backfill request.
6768
+ # @return [Types::CostAllocationTagBackfillRequest]
6769
+ #
6770
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/StartCostAllocationTagBackfillResponse AWS API Documentation
6771
+ #
6772
+ class StartCostAllocationTagBackfillResponse < Struct.new(
6773
+ :backfill_request)
6774
+ SENSITIVE = []
6775
+ include Aws::Structure
6776
+ end
6777
+
6665
6778
  # @api private
6666
6779
  #
6667
6780
  # @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.97.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]
@@ -1231,6 +1257,16 @@ module Aws::CostExplorer
1231
1257
  SENSITIVE: []
1232
1258
  end
1233
1259
 
1260
+ class StartCostAllocationTagBackfillRequest
1261
+ attr_accessor backfill_from: ::String
1262
+ SENSITIVE: []
1263
+ end
1264
+
1265
+ class StartCostAllocationTagBackfillResponse
1266
+ attr_accessor backfill_request: Types::CostAllocationTagBackfillRequest
1267
+ SENSITIVE: []
1268
+ end
1269
+
1234
1270
  class StartSavingsPlansPurchaseRecommendationGenerationRequest < Aws::EmptyStructure
1235
1271
  end
1236
1272
 
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.97.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-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core