aws-sdk-costexplorer 1.74.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,8 +165,12 @@ 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')
172
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
173
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
162
174
  LookbackPeriodInDays = Shapes::StringShape.new(name: 'LookbackPeriodInDays')
163
175
  MatchOption = Shapes::StringShape.new(name: 'MatchOption')
164
176
  MatchOptions = Shapes::ListShape.new(name: 'MatchOptions')
@@ -217,6 +229,11 @@ module Aws::CostExplorer
217
229
  ReservedNormalizedUnits = Shapes::StringShape.new(name: 'ReservedNormalizedUnits')
218
230
  ResourceDetails = Shapes::StructureShape.new(name: 'ResourceDetails')
219
231
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
232
+ ResourceTag = Shapes::StructureShape.new(name: 'ResourceTag')
233
+ ResourceTagKey = Shapes::StringShape.new(name: 'ResourceTagKey')
234
+ ResourceTagKeyList = Shapes::ListShape.new(name: 'ResourceTagKeyList')
235
+ ResourceTagList = Shapes::ListShape.new(name: 'ResourceTagList')
236
+ ResourceTagValue = Shapes::StringShape.new(name: 'ResourceTagValue')
220
237
  ResourceUtilization = Shapes::StructureShape.new(name: 'ResourceUtilization')
221
238
  ResultByTime = Shapes::StructureShape.new(name: 'ResultByTime')
222
239
  ResultsByTime = Shapes::ListShape.new(name: 'ResultsByTime')
@@ -263,12 +280,15 @@ module Aws::CostExplorer
263
280
  SupportedSavingsPlansType = Shapes::StringShape.new(name: 'SupportedSavingsPlansType')
264
281
  TagKey = Shapes::StringShape.new(name: 'TagKey')
265
282
  TagList = Shapes::ListShape.new(name: 'TagList')
283
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
284
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
266
285
  TagValues = Shapes::StructureShape.new(name: 'TagValues')
267
286
  TagValuesList = Shapes::ListShape.new(name: 'TagValuesList')
268
287
  TargetInstance = Shapes::StructureShape.new(name: 'TargetInstance')
269
288
  TargetInstancesList = Shapes::ListShape.new(name: 'TargetInstancesList')
270
289
  TermInYears = Shapes::StringShape.new(name: 'TermInYears')
271
290
  TerminateRecommendationDetail = Shapes::StructureShape.new(name: 'TerminateRecommendationDetail')
291
+ TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
272
292
  TotalActualHours = Shapes::StringShape.new(name: 'TotalActualHours')
273
293
  TotalActualUnits = Shapes::StringShape.new(name: 'TotalActualUnits')
274
294
  TotalAmortizedFee = Shapes::StringShape.new(name: 'TotalAmortizedFee')
@@ -280,12 +300,18 @@ module Aws::CostExplorer
280
300
  UnknownSubscriptionException = Shapes::StructureShape.new(name: 'UnknownSubscriptionException')
281
301
  UnrealizedSavings = Shapes::StringShape.new(name: 'UnrealizedSavings')
282
302
  UnresolvableUsageUnitException = Shapes::StructureShape.new(name: 'UnresolvableUsageUnitException')
303
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
304
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
283
305
  UnusedHours = Shapes::StringShape.new(name: 'UnusedHours')
284
306
  UnusedUnits = Shapes::StringShape.new(name: 'UnusedUnits')
285
307
  UpdateAnomalyMonitorRequest = Shapes::StructureShape.new(name: 'UpdateAnomalyMonitorRequest')
286
308
  UpdateAnomalyMonitorResponse = Shapes::StructureShape.new(name: 'UpdateAnomalyMonitorResponse')
287
309
  UpdateAnomalySubscriptionRequest = Shapes::StructureShape.new(name: 'UpdateAnomalySubscriptionRequest')
288
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')
289
315
  UpdateCostCategoryDefinitionRequest = Shapes::StructureShape.new(name: 'UpdateCostCategoryDefinitionRequest')
290
316
  UpdateCostCategoryDefinitionResponse = Shapes::StructureShape.new(name: 'UpdateCostCategoryDefinitionResponse')
291
317
  UtilizationByTime = Shapes::StructureShape.new(name: 'UtilizationByTime')
@@ -348,6 +374,21 @@ module Aws::CostExplorer
348
374
  BillExpirationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
349
375
  BillExpirationException.struct_class = Types::BillExpirationException
350
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
+
351
392
  CostCategory.add_member(:cost_category_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "CostCategoryArn"))
352
393
  CostCategory.add_member(:effective_start, Shapes::ShapeRef.new(shape: ZonedDateTime, required: true, location_name: "EffectiveStart"))
353
394
  CostCategory.add_member(:effective_end, Shapes::ShapeRef.new(shape: ZonedDateTime, location_name: "EffectiveEnd"))
@@ -444,12 +485,14 @@ module Aws::CostExplorer
444
485
  CoveragesByTime.member = Shapes::ShapeRef.new(shape: CoverageByTime)
445
486
 
446
487
  CreateAnomalyMonitorRequest.add_member(:anomaly_monitor, Shapes::ShapeRef.new(shape: AnomalyMonitor, required: true, location_name: "AnomalyMonitor"))
488
+ CreateAnomalyMonitorRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagList, location_name: "ResourceTags"))
447
489
  CreateAnomalyMonitorRequest.struct_class = Types::CreateAnomalyMonitorRequest
448
490
 
449
491
  CreateAnomalyMonitorResponse.add_member(:monitor_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "MonitorArn"))
450
492
  CreateAnomalyMonitorResponse.struct_class = Types::CreateAnomalyMonitorResponse
451
493
 
452
494
  CreateAnomalySubscriptionRequest.add_member(:anomaly_subscription, Shapes::ShapeRef.new(shape: AnomalySubscription, required: true, location_name: "AnomalySubscription"))
495
+ CreateAnomalySubscriptionRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagList, location_name: "ResourceTags"))
453
496
  CreateAnomalySubscriptionRequest.struct_class = Types::CreateAnomalySubscriptionRequest
454
497
 
455
498
  CreateAnomalySubscriptionResponse.add_member(:subscription_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "SubscriptionArn"))
@@ -460,6 +503,7 @@ module Aws::CostExplorer
460
503
  CreateCostCategoryDefinitionRequest.add_member(:rules, Shapes::ShapeRef.new(shape: CostCategoryRulesList, required: true, location_name: "Rules"))
461
504
  CreateCostCategoryDefinitionRequest.add_member(:default_value, Shapes::ShapeRef.new(shape: CostCategoryValue, location_name: "DefaultValue"))
462
505
  CreateCostCategoryDefinitionRequest.add_member(:split_charge_rules, Shapes::ShapeRef.new(shape: CostCategorySplitChargeRulesList, location_name: "SplitChargeRules"))
506
+ CreateCostCategoryDefinitionRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagList, location_name: "ResourceTags"))
463
507
  CreateCostCategoryDefinitionRequest.struct_class = Types::CreateCostCategoryDefinitionRequest
464
508
 
465
509
  CreateCostCategoryDefinitionResponse.add_member(:cost_category_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "CostCategoryArn"))
@@ -872,6 +916,17 @@ module Aws::CostExplorer
872
916
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
873
917
  LimitExceededException.struct_class = Types::LimitExceededException
874
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
+
875
930
  ListCostCategoryDefinitionsRequest.add_member(:effective_on, Shapes::ShapeRef.new(shape: ZonedDateTime, location_name: "EffectiveOn"))
876
931
  ListCostCategoryDefinitionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextToken"))
877
932
  ListCostCategoryDefinitionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: CostCategoryMaxResults, location_name: "MaxResults", metadata: {"box"=>true}))
@@ -881,6 +936,12 @@ module Aws::CostExplorer
881
936
  ListCostCategoryDefinitionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextToken"))
882
937
  ListCostCategoryDefinitionsResponse.struct_class = Types::ListCostCategoryDefinitionsResponse
883
938
 
939
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ResourceArn"))
940
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
941
+
942
+ ListTagsForResourceResponse.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagList, location_name: "ResourceTags"))
943
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
944
+
884
945
  MatchOptions.member = Shapes::ShapeRef.new(shape: MatchOption)
885
946
 
886
947
  MetricNames.member = Shapes::ShapeRef.new(shape: MetricName)
@@ -1013,8 +1074,17 @@ module Aws::CostExplorer
1013
1074
  ResourceDetails.struct_class = Types::ResourceDetails
1014
1075
 
1015
1076
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
1077
+ ResourceNotFoundException.add_member(:resource_name, Shapes::ShapeRef.new(shape: Arn, location_name: "ResourceName"))
1016
1078
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
1017
1079
 
1080
+ ResourceTag.add_member(:key, Shapes::ShapeRef.new(shape: ResourceTagKey, required: true, location_name: "Key"))
1081
+ ResourceTag.add_member(:value, Shapes::ShapeRef.new(shape: ResourceTagValue, required: true, location_name: "Value"))
1082
+ ResourceTag.struct_class = Types::ResourceTag
1083
+
1084
+ ResourceTagKeyList.member = Shapes::ShapeRef.new(shape: ResourceTagKey)
1085
+
1086
+ ResourceTagList.member = Shapes::ShapeRef.new(shape: ResourceTag)
1087
+
1018
1088
  ResourceUtilization.add_member(:ec2_resource_utilization, Shapes::ShapeRef.new(shape: EC2ResourceUtilization, location_name: "EC2ResourceUtilization"))
1019
1089
  ResourceUtilization.struct_class = Types::ResourceUtilization
1020
1090
 
@@ -1185,6 +1255,12 @@ module Aws::CostExplorer
1185
1255
 
1186
1256
  TagList.member = Shapes::ShapeRef.new(shape: Entity)
1187
1257
 
1258
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ResourceArn"))
1259
+ TagResourceRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagList, required: true, location_name: "ResourceTags"))
1260
+ TagResourceRequest.struct_class = Types::TagResourceRequest
1261
+
1262
+ TagResourceResponse.struct_class = Types::TagResourceResponse
1263
+
1188
1264
  TagValues.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, location_name: "Key"))
1189
1265
  TagValues.add_member(:values, Shapes::ShapeRef.new(shape: Values, location_name: "Values"))
1190
1266
  TagValues.add_member(:match_options, Shapes::ShapeRef.new(shape: MatchOptions, location_name: "MatchOptions"))
@@ -1207,6 +1283,10 @@ module Aws::CostExplorer
1207
1283
  TerminateRecommendationDetail.add_member(:currency_code, Shapes::ShapeRef.new(shape: GenericString, location_name: "CurrencyCode"))
1208
1284
  TerminateRecommendationDetail.struct_class = Types::TerminateRecommendationDetail
1209
1285
 
1286
+ TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
1287
+ TooManyTagsException.add_member(:resource_name, Shapes::ShapeRef.new(shape: Arn, location_name: "ResourceName"))
1288
+ TooManyTagsException.struct_class = Types::TooManyTagsException
1289
+
1210
1290
  TotalImpactFilter.add_member(:numeric_operator, Shapes::ShapeRef.new(shape: NumericOperator, required: true, location_name: "NumericOperator"))
1211
1291
  TotalImpactFilter.add_member(:start_value, Shapes::ShapeRef.new(shape: GenericDouble, required: true, location_name: "StartValue"))
1212
1292
  TotalImpactFilter.add_member(:end_value, Shapes::ShapeRef.new(shape: GenericDouble, location_name: "EndValue"))
@@ -1221,6 +1301,12 @@ module Aws::CostExplorer
1221
1301
  UnresolvableUsageUnitException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
1222
1302
  UnresolvableUsageUnitException.struct_class = Types::UnresolvableUsageUnitException
1223
1303
 
1304
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ResourceArn"))
1305
+ UntagResourceRequest.add_member(:resource_tag_keys, Shapes::ShapeRef.new(shape: ResourceTagKeyList, required: true, location_name: "ResourceTagKeys"))
1306
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
1307
+
1308
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
1309
+
1224
1310
  UpdateAnomalyMonitorRequest.add_member(:monitor_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "MonitorArn"))
1225
1311
  UpdateAnomalyMonitorRequest.add_member(:monitor_name, Shapes::ShapeRef.new(shape: GenericString, location_name: "MonitorName"))
1226
1312
  UpdateAnomalyMonitorRequest.struct_class = Types::UpdateAnomalyMonitorRequest
@@ -1239,6 +1325,19 @@ module Aws::CostExplorer
1239
1325
  UpdateAnomalySubscriptionResponse.add_member(:subscription_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "SubscriptionArn"))
1240
1326
  UpdateAnomalySubscriptionResponse.struct_class = Types::UpdateAnomalySubscriptionResponse
1241
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
+
1242
1341
  UpdateCostCategoryDefinitionRequest.add_member(:cost_category_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "CostCategoryArn"))
1243
1342
  UpdateCostCategoryDefinitionRequest.add_member(:rule_version, Shapes::ShapeRef.new(shape: CostCategoryRuleVersion, required: true, location_name: "RuleVersion"))
1244
1343
  UpdateCostCategoryDefinitionRequest.add_member(:rules, Shapes::ShapeRef.new(shape: CostCategoryRulesList, required: true, location_name: "Rules"))
@@ -1563,6 +1662,22 @@ module Aws::CostExplorer
1563
1662
  o.errors << Shapes::ShapeRef.new(shape: UnresolvableUsageUnitException)
1564
1663
  end)
1565
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
+
1566
1681
  api.add_operation(:list_cost_category_definitions, Seahorse::Model::Operation.new.tap do |o|
1567
1682
  o.name = "ListCostCategoryDefinitions"
1568
1683
  o.http_method = "POST"
@@ -1578,6 +1693,16 @@ module Aws::CostExplorer
1578
1693
  )
1579
1694
  end)
1580
1695
 
1696
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
1697
+ o.name = "ListTagsForResource"
1698
+ o.http_method = "POST"
1699
+ o.http_request_uri = "/"
1700
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
1701
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
1702
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1703
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1704
+ end)
1705
+
1581
1706
  api.add_operation(:provide_anomaly_feedback, Seahorse::Model::Operation.new.tap do |o|
1582
1707
  o.name = "ProvideAnomalyFeedback"
1583
1708
  o.http_method = "POST"
@@ -1587,6 +1712,27 @@ module Aws::CostExplorer
1587
1712
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1588
1713
  end)
1589
1714
 
1715
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
1716
+ o.name = "TagResource"
1717
+ o.http_method = "POST"
1718
+ o.http_request_uri = "/"
1719
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
1720
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
1721
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1722
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
1723
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1724
+ end)
1725
+
1726
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
1727
+ o.name = "UntagResource"
1728
+ o.http_method = "POST"
1729
+ o.http_request_uri = "/"
1730
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
1731
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
1732
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1733
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1734
+ end)
1735
+
1590
1736
  api.add_operation(:update_anomaly_monitor, Seahorse::Model::Operation.new.tap do |o|
1591
1737
  o.name = "UpdateAnomalyMonitor"
1592
1738
  o.http_method = "POST"
@@ -1608,6 +1754,15 @@ module Aws::CostExplorer
1608
1754
  o.errors << Shapes::ShapeRef.new(shape: UnknownSubscriptionException)
1609
1755
  end)
1610
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
+
1611
1766
  api.add_operation(:update_cost_category_definition, Seahorse::Model::Operation.new.tap do |o|
1612
1767
  o.name = "UpdateCostCategoryDefinition"
1613
1768
  o.http_method = "POST"
@@ -34,6 +34,7 @@ module Aws::CostExplorer
34
34
  # * {RequestChangedException}
35
35
  # * {ResourceNotFoundException}
36
36
  # * {ServiceQuotaExceededException}
37
+ # * {TooManyTagsException}
37
38
  # * {UnknownMonitorException}
38
39
  # * {UnknownSubscriptionException}
39
40
  # * {UnresolvableUsageUnitException}
@@ -132,6 +133,11 @@ module Aws::CostExplorer
132
133
  def message
133
134
  @message || @data[:message]
134
135
  end
136
+
137
+ # @return [String]
138
+ def resource_name
139
+ @data[:resource_name]
140
+ end
135
141
  end
136
142
 
137
143
  class ServiceQuotaExceededException < ServiceError
@@ -149,6 +155,26 @@ module Aws::CostExplorer
149
155
  end
150
156
  end
151
157
 
158
+ class TooManyTagsException < ServiceError
159
+
160
+ # @param [Seahorse::Client::RequestContext] context
161
+ # @param [String] message
162
+ # @param [Aws::CostExplorer::Types::TooManyTagsException] data
163
+ def initialize(context, message, data = Aws::EmptyStructure.new)
164
+ super(context, message, data)
165
+ end
166
+
167
+ # @return [String]
168
+ def message
169
+ @message || @data[:message]
170
+ end
171
+
172
+ # @return [String]
173
+ def resource_name
174
+ @data[:resource_name]
175
+ end
176
+ end
177
+
152
178
  class UnknownMonitorException < ServiceError
153
179
 
154
180
  # @param [Seahorse::Client::RequestContext] context