aws-sdk-costexplorer 1.76.0 → 1.77.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,6 +32,14 @@ module Aws::CostExplorer
32
32
  Attributes = Shapes::MapShape.new(name: 'Attributes')
33
33
  BillExpirationException = Shapes::StructureShape.new(name: 'BillExpirationException')
34
34
  Context = Shapes::StringShape.new(name: 'Context')
35
+ CostAllocationTag = Shapes::StructureShape.new(name: 'CostAllocationTag')
36
+ CostAllocationTagKeyList = Shapes::ListShape.new(name: 'CostAllocationTagKeyList')
37
+ CostAllocationTagList = Shapes::ListShape.new(name: 'CostAllocationTagList')
38
+ CostAllocationTagStatus = Shapes::StringShape.new(name: 'CostAllocationTagStatus')
39
+ CostAllocationTagStatusEntry = Shapes::StructureShape.new(name: 'CostAllocationTagStatusEntry')
40
+ CostAllocationTagStatusList = Shapes::ListShape.new(name: 'CostAllocationTagStatusList')
41
+ CostAllocationTagType = Shapes::StringShape.new(name: 'CostAllocationTagType')
42
+ CostAllocationTagsMaxResults = Shapes::IntegerShape.new(name: 'CostAllocationTagsMaxResults')
35
43
  CostCategory = Shapes::StructureShape.new(name: 'CostCategory')
36
44
  CostCategoryInheritedValueDimension = Shapes::StructureShape.new(name: 'CostCategoryInheritedValueDimension')
37
45
  CostCategoryInheritedValueDimensionName = Shapes::StringShape.new(name: 'CostCategoryInheritedValueDimensionName')
@@ -157,6 +165,8 @@ module Aws::CostExplorer
157
165
  Key = Shapes::StringShape.new(name: 'Key')
158
166
  Keys = Shapes::ListShape.new(name: 'Keys')
159
167
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
168
+ ListCostAllocationTagsRequest = Shapes::StructureShape.new(name: 'ListCostAllocationTagsRequest')
169
+ ListCostAllocationTagsResponse = Shapes::StructureShape.new(name: 'ListCostAllocationTagsResponse')
160
170
  ListCostCategoryDefinitionsRequest = Shapes::StructureShape.new(name: 'ListCostCategoryDefinitionsRequest')
161
171
  ListCostCategoryDefinitionsResponse = Shapes::StructureShape.new(name: 'ListCostCategoryDefinitionsResponse')
162
172
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
@@ -298,6 +308,10 @@ module Aws::CostExplorer
298
308
  UpdateAnomalyMonitorResponse = Shapes::StructureShape.new(name: 'UpdateAnomalyMonitorResponse')
299
309
  UpdateAnomalySubscriptionRequest = Shapes::StructureShape.new(name: 'UpdateAnomalySubscriptionRequest')
300
310
  UpdateAnomalySubscriptionResponse = Shapes::StructureShape.new(name: 'UpdateAnomalySubscriptionResponse')
311
+ UpdateCostAllocationTagsStatusError = Shapes::StructureShape.new(name: 'UpdateCostAllocationTagsStatusError')
312
+ UpdateCostAllocationTagsStatusErrors = Shapes::ListShape.new(name: 'UpdateCostAllocationTagsStatusErrors')
313
+ UpdateCostAllocationTagsStatusRequest = Shapes::StructureShape.new(name: 'UpdateCostAllocationTagsStatusRequest')
314
+ UpdateCostAllocationTagsStatusResponse = Shapes::StructureShape.new(name: 'UpdateCostAllocationTagsStatusResponse')
301
315
  UpdateCostCategoryDefinitionRequest = Shapes::StructureShape.new(name: 'UpdateCostCategoryDefinitionRequest')
302
316
  UpdateCostCategoryDefinitionResponse = Shapes::StructureShape.new(name: 'UpdateCostCategoryDefinitionResponse')
303
317
  UtilizationByTime = Shapes::StructureShape.new(name: 'UtilizationByTime')
@@ -360,6 +374,21 @@ module Aws::CostExplorer
360
374
  BillExpirationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
361
375
  BillExpirationException.struct_class = Types::BillExpirationException
362
376
 
377
+ CostAllocationTag.add_member(:tag_key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "TagKey"))
378
+ CostAllocationTag.add_member(:type, Shapes::ShapeRef.new(shape: CostAllocationTagType, required: true, location_name: "Type"))
379
+ CostAllocationTag.add_member(:status, Shapes::ShapeRef.new(shape: CostAllocationTagStatus, required: true, location_name: "Status"))
380
+ CostAllocationTag.struct_class = Types::CostAllocationTag
381
+
382
+ CostAllocationTagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
383
+
384
+ CostAllocationTagList.member = Shapes::ShapeRef.new(shape: CostAllocationTag)
385
+
386
+ CostAllocationTagStatusEntry.add_member(:tag_key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "TagKey"))
387
+ CostAllocationTagStatusEntry.add_member(:status, Shapes::ShapeRef.new(shape: CostAllocationTagStatus, required: true, location_name: "Status"))
388
+ CostAllocationTagStatusEntry.struct_class = Types::CostAllocationTagStatusEntry
389
+
390
+ CostAllocationTagStatusList.member = Shapes::ShapeRef.new(shape: CostAllocationTagStatusEntry)
391
+
363
392
  CostCategory.add_member(:cost_category_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "CostCategoryArn"))
364
393
  CostCategory.add_member(:effective_start, Shapes::ShapeRef.new(shape: ZonedDateTime, required: true, location_name: "EffectiveStart"))
365
394
  CostCategory.add_member(:effective_end, Shapes::ShapeRef.new(shape: ZonedDateTime, location_name: "EffectiveEnd"))
@@ -887,6 +916,17 @@ module Aws::CostExplorer
887
916
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
888
917
  LimitExceededException.struct_class = Types::LimitExceededException
889
918
 
919
+ ListCostAllocationTagsRequest.add_member(:status, Shapes::ShapeRef.new(shape: CostAllocationTagStatus, location_name: "Status"))
920
+ ListCostAllocationTagsRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: CostAllocationTagKeyList, location_name: "TagKeys"))
921
+ ListCostAllocationTagsRequest.add_member(:type, Shapes::ShapeRef.new(shape: CostAllocationTagType, location_name: "Type"))
922
+ ListCostAllocationTagsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextToken"))
923
+ ListCostAllocationTagsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: CostAllocationTagsMaxResults, location_name: "MaxResults", metadata: {"box"=>true}))
924
+ ListCostAllocationTagsRequest.struct_class = Types::ListCostAllocationTagsRequest
925
+
926
+ ListCostAllocationTagsResponse.add_member(:cost_allocation_tags, Shapes::ShapeRef.new(shape: CostAllocationTagList, location_name: "CostAllocationTags"))
927
+ ListCostAllocationTagsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextToken"))
928
+ ListCostAllocationTagsResponse.struct_class = Types::ListCostAllocationTagsResponse
929
+
890
930
  ListCostCategoryDefinitionsRequest.add_member(:effective_on, Shapes::ShapeRef.new(shape: ZonedDateTime, location_name: "EffectiveOn"))
891
931
  ListCostCategoryDefinitionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextToken"))
892
932
  ListCostCategoryDefinitionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: CostCategoryMaxResults, location_name: "MaxResults", metadata: {"box"=>true}))
@@ -1285,6 +1325,19 @@ module Aws::CostExplorer
1285
1325
  UpdateAnomalySubscriptionResponse.add_member(:subscription_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "SubscriptionArn"))
1286
1326
  UpdateAnomalySubscriptionResponse.struct_class = Types::UpdateAnomalySubscriptionResponse
1287
1327
 
1328
+ UpdateCostAllocationTagsStatusError.add_member(:tag_key, Shapes::ShapeRef.new(shape: TagKey, location_name: "TagKey"))
1329
+ UpdateCostAllocationTagsStatusError.add_member(:code, Shapes::ShapeRef.new(shape: GenericString, location_name: "Code"))
1330
+ UpdateCostAllocationTagsStatusError.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
1331
+ UpdateCostAllocationTagsStatusError.struct_class = Types::UpdateCostAllocationTagsStatusError
1332
+
1333
+ UpdateCostAllocationTagsStatusErrors.member = Shapes::ShapeRef.new(shape: UpdateCostAllocationTagsStatusError)
1334
+
1335
+ UpdateCostAllocationTagsStatusRequest.add_member(:cost_allocation_tags_status, Shapes::ShapeRef.new(shape: CostAllocationTagStatusList, required: true, location_name: "CostAllocationTagsStatus"))
1336
+ UpdateCostAllocationTagsStatusRequest.struct_class = Types::UpdateCostAllocationTagsStatusRequest
1337
+
1338
+ UpdateCostAllocationTagsStatusResponse.add_member(:errors, Shapes::ShapeRef.new(shape: UpdateCostAllocationTagsStatusErrors, location_name: "Errors"))
1339
+ UpdateCostAllocationTagsStatusResponse.struct_class = Types::UpdateCostAllocationTagsStatusResponse
1340
+
1288
1341
  UpdateCostCategoryDefinitionRequest.add_member(:cost_category_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "CostCategoryArn"))
1289
1342
  UpdateCostCategoryDefinitionRequest.add_member(:rule_version, Shapes::ShapeRef.new(shape: CostCategoryRuleVersion, required: true, location_name: "RuleVersion"))
1290
1343
  UpdateCostCategoryDefinitionRequest.add_member(:rules, Shapes::ShapeRef.new(shape: CostCategoryRulesList, required: true, location_name: "Rules"))
@@ -1609,6 +1662,22 @@ module Aws::CostExplorer
1609
1662
  o.errors << Shapes::ShapeRef.new(shape: UnresolvableUsageUnitException)
1610
1663
  end)
1611
1664
 
1665
+ api.add_operation(:list_cost_allocation_tags, Seahorse::Model::Operation.new.tap do |o|
1666
+ o.name = "ListCostAllocationTags"
1667
+ o.http_method = "POST"
1668
+ o.http_request_uri = "/"
1669
+ o.input = Shapes::ShapeRef.new(shape: ListCostAllocationTagsRequest)
1670
+ o.output = Shapes::ShapeRef.new(shape: ListCostAllocationTagsResponse)
1671
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1672
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1673
+ o[:pager] = Aws::Pager.new(
1674
+ limit_key: "max_results",
1675
+ tokens: {
1676
+ "next_token" => "next_token"
1677
+ }
1678
+ )
1679
+ end)
1680
+
1612
1681
  api.add_operation(:list_cost_category_definitions, Seahorse::Model::Operation.new.tap do |o|
1613
1682
  o.name = "ListCostCategoryDefinitions"
1614
1683
  o.http_method = "POST"
@@ -1685,6 +1754,15 @@ module Aws::CostExplorer
1685
1754
  o.errors << Shapes::ShapeRef.new(shape: UnknownSubscriptionException)
1686
1755
  end)
1687
1756
 
1757
+ api.add_operation(:update_cost_allocation_tags_status, Seahorse::Model::Operation.new.tap do |o|
1758
+ o.name = "UpdateCostAllocationTagsStatus"
1759
+ o.http_method = "POST"
1760
+ o.http_request_uri = "/"
1761
+ o.input = Shapes::ShapeRef.new(shape: UpdateCostAllocationTagsStatusRequest)
1762
+ o.output = Shapes::ShapeRef.new(shape: UpdateCostAllocationTagsStatusResponse)
1763
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1764
+ end)
1765
+
1688
1766
  api.add_operation(:update_cost_category_definition, Seahorse::Model::Operation.new.tap do |o|
1689
1767
  o.name = "UpdateCostCategoryDefinition"
1690
1768
  o.http_method = "POST"