aws-sdk-costexplorer 1.73.0 → 1.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -159,6 +159,8 @@ module Aws::CostExplorer
159
159
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
160
160
  ListCostCategoryDefinitionsRequest = Shapes::StructureShape.new(name: 'ListCostCategoryDefinitionsRequest')
161
161
  ListCostCategoryDefinitionsResponse = Shapes::StructureShape.new(name: 'ListCostCategoryDefinitionsResponse')
162
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
163
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
162
164
  LookbackPeriodInDays = Shapes::StringShape.new(name: 'LookbackPeriodInDays')
163
165
  MatchOption = Shapes::StringShape.new(name: 'MatchOption')
164
166
  MatchOptions = Shapes::ListShape.new(name: 'MatchOptions')
@@ -217,6 +219,11 @@ module Aws::CostExplorer
217
219
  ReservedNormalizedUnits = Shapes::StringShape.new(name: 'ReservedNormalizedUnits')
218
220
  ResourceDetails = Shapes::StructureShape.new(name: 'ResourceDetails')
219
221
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
222
+ ResourceTag = Shapes::StructureShape.new(name: 'ResourceTag')
223
+ ResourceTagKey = Shapes::StringShape.new(name: 'ResourceTagKey')
224
+ ResourceTagKeyList = Shapes::ListShape.new(name: 'ResourceTagKeyList')
225
+ ResourceTagList = Shapes::ListShape.new(name: 'ResourceTagList')
226
+ ResourceTagValue = Shapes::StringShape.new(name: 'ResourceTagValue')
220
227
  ResourceUtilization = Shapes::StructureShape.new(name: 'ResourceUtilization')
221
228
  ResultByTime = Shapes::StructureShape.new(name: 'ResultByTime')
222
229
  ResultsByTime = Shapes::ListShape.new(name: 'ResultsByTime')
@@ -263,12 +270,15 @@ module Aws::CostExplorer
263
270
  SupportedSavingsPlansType = Shapes::StringShape.new(name: 'SupportedSavingsPlansType')
264
271
  TagKey = Shapes::StringShape.new(name: 'TagKey')
265
272
  TagList = Shapes::ListShape.new(name: 'TagList')
273
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
274
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
266
275
  TagValues = Shapes::StructureShape.new(name: 'TagValues')
267
276
  TagValuesList = Shapes::ListShape.new(name: 'TagValuesList')
268
277
  TargetInstance = Shapes::StructureShape.new(name: 'TargetInstance')
269
278
  TargetInstancesList = Shapes::ListShape.new(name: 'TargetInstancesList')
270
279
  TermInYears = Shapes::StringShape.new(name: 'TermInYears')
271
280
  TerminateRecommendationDetail = Shapes::StructureShape.new(name: 'TerminateRecommendationDetail')
281
+ TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
272
282
  TotalActualHours = Shapes::StringShape.new(name: 'TotalActualHours')
273
283
  TotalActualUnits = Shapes::StringShape.new(name: 'TotalActualUnits')
274
284
  TotalAmortizedFee = Shapes::StringShape.new(name: 'TotalAmortizedFee')
@@ -280,6 +290,8 @@ module Aws::CostExplorer
280
290
  UnknownSubscriptionException = Shapes::StructureShape.new(name: 'UnknownSubscriptionException')
281
291
  UnrealizedSavings = Shapes::StringShape.new(name: 'UnrealizedSavings')
282
292
  UnresolvableUsageUnitException = Shapes::StructureShape.new(name: 'UnresolvableUsageUnitException')
293
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
294
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
283
295
  UnusedHours = Shapes::StringShape.new(name: 'UnusedHours')
284
296
  UnusedUnits = Shapes::StringShape.new(name: 'UnusedUnits')
285
297
  UpdateAnomalyMonitorRequest = Shapes::StructureShape.new(name: 'UpdateAnomalyMonitorRequest')
@@ -444,12 +456,14 @@ module Aws::CostExplorer
444
456
  CoveragesByTime.member = Shapes::ShapeRef.new(shape: CoverageByTime)
445
457
 
446
458
  CreateAnomalyMonitorRequest.add_member(:anomaly_monitor, Shapes::ShapeRef.new(shape: AnomalyMonitor, required: true, location_name: "AnomalyMonitor"))
459
+ CreateAnomalyMonitorRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagList, location_name: "ResourceTags"))
447
460
  CreateAnomalyMonitorRequest.struct_class = Types::CreateAnomalyMonitorRequest
448
461
 
449
462
  CreateAnomalyMonitorResponse.add_member(:monitor_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "MonitorArn"))
450
463
  CreateAnomalyMonitorResponse.struct_class = Types::CreateAnomalyMonitorResponse
451
464
 
452
465
  CreateAnomalySubscriptionRequest.add_member(:anomaly_subscription, Shapes::ShapeRef.new(shape: AnomalySubscription, required: true, location_name: "AnomalySubscription"))
466
+ CreateAnomalySubscriptionRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagList, location_name: "ResourceTags"))
453
467
  CreateAnomalySubscriptionRequest.struct_class = Types::CreateAnomalySubscriptionRequest
454
468
 
455
469
  CreateAnomalySubscriptionResponse.add_member(:subscription_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "SubscriptionArn"))
@@ -460,6 +474,7 @@ module Aws::CostExplorer
460
474
  CreateCostCategoryDefinitionRequest.add_member(:rules, Shapes::ShapeRef.new(shape: CostCategoryRulesList, required: true, location_name: "Rules"))
461
475
  CreateCostCategoryDefinitionRequest.add_member(:default_value, Shapes::ShapeRef.new(shape: CostCategoryValue, location_name: "DefaultValue"))
462
476
  CreateCostCategoryDefinitionRequest.add_member(:split_charge_rules, Shapes::ShapeRef.new(shape: CostCategorySplitChargeRulesList, location_name: "SplitChargeRules"))
477
+ CreateCostCategoryDefinitionRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagList, location_name: "ResourceTags"))
463
478
  CreateCostCategoryDefinitionRequest.struct_class = Types::CreateCostCategoryDefinitionRequest
464
479
 
465
480
  CreateCostCategoryDefinitionResponse.add_member(:cost_category_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "CostCategoryArn"))
@@ -881,6 +896,12 @@ module Aws::CostExplorer
881
896
  ListCostCategoryDefinitionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextToken"))
882
897
  ListCostCategoryDefinitionsResponse.struct_class = Types::ListCostCategoryDefinitionsResponse
883
898
 
899
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ResourceArn"))
900
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
901
+
902
+ ListTagsForResourceResponse.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagList, location_name: "ResourceTags"))
903
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
904
+
884
905
  MatchOptions.member = Shapes::ShapeRef.new(shape: MatchOption)
885
906
 
886
907
  MetricNames.member = Shapes::ShapeRef.new(shape: MetricName)
@@ -1013,8 +1034,17 @@ module Aws::CostExplorer
1013
1034
  ResourceDetails.struct_class = Types::ResourceDetails
1014
1035
 
1015
1036
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
1037
+ ResourceNotFoundException.add_member(:resource_name, Shapes::ShapeRef.new(shape: Arn, location_name: "ResourceName"))
1016
1038
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
1017
1039
 
1040
+ ResourceTag.add_member(:key, Shapes::ShapeRef.new(shape: ResourceTagKey, required: true, location_name: "Key"))
1041
+ ResourceTag.add_member(:value, Shapes::ShapeRef.new(shape: ResourceTagValue, required: true, location_name: "Value"))
1042
+ ResourceTag.struct_class = Types::ResourceTag
1043
+
1044
+ ResourceTagKeyList.member = Shapes::ShapeRef.new(shape: ResourceTagKey)
1045
+
1046
+ ResourceTagList.member = Shapes::ShapeRef.new(shape: ResourceTag)
1047
+
1018
1048
  ResourceUtilization.add_member(:ec2_resource_utilization, Shapes::ShapeRef.new(shape: EC2ResourceUtilization, location_name: "EC2ResourceUtilization"))
1019
1049
  ResourceUtilization.struct_class = Types::ResourceUtilization
1020
1050
 
@@ -1185,6 +1215,12 @@ module Aws::CostExplorer
1185
1215
 
1186
1216
  TagList.member = Shapes::ShapeRef.new(shape: Entity)
1187
1217
 
1218
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ResourceArn"))
1219
+ TagResourceRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagList, required: true, location_name: "ResourceTags"))
1220
+ TagResourceRequest.struct_class = Types::TagResourceRequest
1221
+
1222
+ TagResourceResponse.struct_class = Types::TagResourceResponse
1223
+
1188
1224
  TagValues.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, location_name: "Key"))
1189
1225
  TagValues.add_member(:values, Shapes::ShapeRef.new(shape: Values, location_name: "Values"))
1190
1226
  TagValues.add_member(:match_options, Shapes::ShapeRef.new(shape: MatchOptions, location_name: "MatchOptions"))
@@ -1207,6 +1243,10 @@ module Aws::CostExplorer
1207
1243
  TerminateRecommendationDetail.add_member(:currency_code, Shapes::ShapeRef.new(shape: GenericString, location_name: "CurrencyCode"))
1208
1244
  TerminateRecommendationDetail.struct_class = Types::TerminateRecommendationDetail
1209
1245
 
1246
+ TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
1247
+ TooManyTagsException.add_member(:resource_name, Shapes::ShapeRef.new(shape: Arn, location_name: "ResourceName"))
1248
+ TooManyTagsException.struct_class = Types::TooManyTagsException
1249
+
1210
1250
  TotalImpactFilter.add_member(:numeric_operator, Shapes::ShapeRef.new(shape: NumericOperator, required: true, location_name: "NumericOperator"))
1211
1251
  TotalImpactFilter.add_member(:start_value, Shapes::ShapeRef.new(shape: GenericDouble, required: true, location_name: "StartValue"))
1212
1252
  TotalImpactFilter.add_member(:end_value, Shapes::ShapeRef.new(shape: GenericDouble, location_name: "EndValue"))
@@ -1221,6 +1261,12 @@ module Aws::CostExplorer
1221
1261
  UnresolvableUsageUnitException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
1222
1262
  UnresolvableUsageUnitException.struct_class = Types::UnresolvableUsageUnitException
1223
1263
 
1264
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ResourceArn"))
1265
+ UntagResourceRequest.add_member(:resource_tag_keys, Shapes::ShapeRef.new(shape: ResourceTagKeyList, required: true, location_name: "ResourceTagKeys"))
1266
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
1267
+
1268
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
1269
+
1224
1270
  UpdateAnomalyMonitorRequest.add_member(:monitor_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "MonitorArn"))
1225
1271
  UpdateAnomalyMonitorRequest.add_member(:monitor_name, Shapes::ShapeRef.new(shape: GenericString, location_name: "MonitorName"))
1226
1272
  UpdateAnomalyMonitorRequest.struct_class = Types::UpdateAnomalyMonitorRequest
@@ -1578,6 +1624,16 @@ module Aws::CostExplorer
1578
1624
  )
1579
1625
  end)
1580
1626
 
1627
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
1628
+ o.name = "ListTagsForResource"
1629
+ o.http_method = "POST"
1630
+ o.http_request_uri = "/"
1631
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
1632
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
1633
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1634
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1635
+ end)
1636
+
1581
1637
  api.add_operation(:provide_anomaly_feedback, Seahorse::Model::Operation.new.tap do |o|
1582
1638
  o.name = "ProvideAnomalyFeedback"
1583
1639
  o.http_method = "POST"
@@ -1587,6 +1643,27 @@ module Aws::CostExplorer
1587
1643
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1588
1644
  end)
1589
1645
 
1646
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
1647
+ o.name = "TagResource"
1648
+ o.http_method = "POST"
1649
+ o.http_request_uri = "/"
1650
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
1651
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
1652
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1653
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
1654
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1655
+ end)
1656
+
1657
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
1658
+ o.name = "UntagResource"
1659
+ o.http_method = "POST"
1660
+ o.http_request_uri = "/"
1661
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
1662
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
1663
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1664
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1665
+ end)
1666
+
1590
1667
  api.add_operation(:update_anomaly_monitor, Seahorse::Model::Operation.new.tap do |o|
1591
1668
  o.name = "UpdateAnomalyMonitor"
1592
1669
  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