aws-sdk-xray 1.28.0 → 1.30.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: 5571bfaaba06d1bfeba874705b082671517517a1fefeb79672ada2a76ffa9553
4
- data.tar.gz: b97078aa19e2eb61b4f195dec5e287b18acd56c378cfbe8e3f861575aabd30d7
3
+ metadata.gz: 148e67874ae72172fec882d39a03713374f1d4d58fb7a6495db6e6fa897ff7ed
4
+ data.tar.gz: 9cc7515f5d69b5697cbd04f03caa70ac3993ea75a83eaac0dc033c13f824843f
5
5
  SHA512:
6
- metadata.gz: 73feeec840386ca30598f54a3ce15d53a8efb9a1777e5d18eb1628b5b56a2fe8f1a0b37cdaf000c87b3b325b8b05e0424c239def70942d70e634fc1afe6ce50b
7
- data.tar.gz: 4794472807ba98d9df54226d3de05eec263986b980feea23fd025710b0e7f437541ddd15051492bdebba5d747e0b7689ae44bbdf7a98f5a74f1440004b58fb94
6
+ metadata.gz: b2bf67c93f7496342d677d288e5dce6d6589f2dcd38007ab965ad756e331954f5e918811a8c2d3058028e961d9ff08351bd01cde3ace0068c092cf076eb0e86a
7
+ data.tar.gz: aae18e051156876ae0e544241e1a7ec49c2bb0dcaf53c101aedee3c456e69c06875ece78425c3bc6e8fa2c21c1da8bd9bc7a13c8f6a0d5771802a9be8ceddcb8
@@ -44,9 +44,9 @@ require_relative 'aws-sdk-xray/customizations'
44
44
  #
45
45
  # See {Errors} for more information.
46
46
  #
47
- # @service
47
+ # @!group service
48
48
  module Aws::XRay
49
49
 
50
- GEM_VERSION = '1.28.0'
50
+ GEM_VERSION = '1.30.0'
51
51
 
52
52
  end
@@ -85,13 +85,28 @@ module Aws::XRay
85
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
86
  # credentials.
87
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
88
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
89
103
  # from an EC2 IMDS on an EC2 instance.
90
104
  #
91
- # * `Aws::SharedCredentials` - Used for loading credentials from a
92
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
93
107
  #
94
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
95
110
  #
96
111
  # When `:credentials` are not configured directly, the following
97
112
  # locations will be searched for credentials:
@@ -101,10 +116,10 @@ module Aws::XRay
101
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
102
117
  # * `~/.aws/credentials`
103
118
  # * `~/.aws/config`
104
- # * EC2 IMDS instance profile - When used by default, the timeouts are
105
- # very aggressive. Construct and pass an instance of
106
- # `Aws::InstanceProfileCredentails` to enable retries and extended
107
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
108
123
  #
109
124
  # @option options [required, String] :region
110
125
  # The AWS region to connect to. The configured `:region` is
@@ -367,6 +382,8 @@ module Aws::XRay
367
382
  # @option params [String] :filter_expression
368
383
  # The filter expression defining criteria by which to group traces.
369
384
  #
385
+ # @option params [Array<Types::Tag>] :tags
386
+ #
370
387
  # @return [Types::CreateGroupResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
371
388
  #
372
389
  # * {Types::CreateGroupResult#group #group} => Types::Group
@@ -376,6 +393,12 @@ module Aws::XRay
376
393
  # resp = client.create_group({
377
394
  # group_name: "GroupName", # required
378
395
  # filter_expression: "FilterExpression",
396
+ # tags: [
397
+ # {
398
+ # key: "TagKey", # required
399
+ # value: "TagValue", # required
400
+ # },
401
+ # ],
379
402
  # })
380
403
  #
381
404
  # @example Response structure
@@ -405,6 +428,8 @@ module Aws::XRay
405
428
  # @option params [required, Types::SamplingRule] :sampling_rule
406
429
  # The rule definition.
407
430
  #
431
+ # @option params [Array<Types::Tag>] :tags
432
+ #
408
433
  # @return [Types::CreateSamplingRuleResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
409
434
  #
410
435
  # * {Types::CreateSamplingRuleResult#sampling_rule_record #sampling_rule_record} => Types::SamplingRuleRecord
@@ -429,6 +454,12 @@ module Aws::XRay
429
454
  # "AttributeKey" => "AttributeValue",
430
455
  # },
431
456
  # },
457
+ # tags: [
458
+ # {
459
+ # key: "TagKey", # required
460
+ # value: "TagValue", # required
461
+ # },
462
+ # ],
432
463
  # })
433
464
  #
434
465
  # @example Response structure
@@ -1211,6 +1242,38 @@ module Aws::XRay
1211
1242
  req.send_request(options)
1212
1243
  end
1213
1244
 
1245
+ # @option params [required, String] :resource_arn
1246
+ #
1247
+ # @option params [String] :next_token
1248
+ #
1249
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1250
+ #
1251
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Array&lt;Types::Tag&gt;
1252
+ # * {Types::ListTagsForResourceResponse#next_token #next_token} => String
1253
+ #
1254
+ # @example Request syntax with placeholder values
1255
+ #
1256
+ # resp = client.list_tags_for_resource({
1257
+ # resource_arn: "AmazonResourceName", # required
1258
+ # next_token: "String",
1259
+ # })
1260
+ #
1261
+ # @example Response structure
1262
+ #
1263
+ # resp.tags #=> Array
1264
+ # resp.tags[0].key #=> String
1265
+ # resp.tags[0].value #=> String
1266
+ # resp.next_token #=> String
1267
+ #
1268
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ListTagsForResource AWS API Documentation
1269
+ #
1270
+ # @overload list_tags_for_resource(params = {})
1271
+ # @param [Hash] params ({})
1272
+ def list_tags_for_resource(params = {}, options = {})
1273
+ req = build_request(:list_tags_for_resource, params)
1274
+ req.send_request(options)
1275
+ end
1276
+
1214
1277
  # Updates the encryption configuration for X-Ray data.
1215
1278
  #
1216
1279
  # @option params [String] :key_id
@@ -1388,6 +1451,55 @@ module Aws::XRay
1388
1451
  req.send_request(options)
1389
1452
  end
1390
1453
 
1454
+ # @option params [required, String] :resource_arn
1455
+ #
1456
+ # @option params [required, Array<Types::Tag>] :tags
1457
+ #
1458
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1459
+ #
1460
+ # @example Request syntax with placeholder values
1461
+ #
1462
+ # resp = client.tag_resource({
1463
+ # resource_arn: "AmazonResourceName", # required
1464
+ # tags: [ # required
1465
+ # {
1466
+ # key: "TagKey", # required
1467
+ # value: "TagValue", # required
1468
+ # },
1469
+ # ],
1470
+ # })
1471
+ #
1472
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/TagResource AWS API Documentation
1473
+ #
1474
+ # @overload tag_resource(params = {})
1475
+ # @param [Hash] params ({})
1476
+ def tag_resource(params = {}, options = {})
1477
+ req = build_request(:tag_resource, params)
1478
+ req.send_request(options)
1479
+ end
1480
+
1481
+ # @option params [required, String] :resource_arn
1482
+ #
1483
+ # @option params [required, Array<String>] :tag_keys
1484
+ #
1485
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1486
+ #
1487
+ # @example Request syntax with placeholder values
1488
+ #
1489
+ # resp = client.untag_resource({
1490
+ # resource_arn: "AmazonResourceName", # required
1491
+ # tag_keys: ["TagKey"], # required
1492
+ # })
1493
+ #
1494
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UntagResource AWS API Documentation
1495
+ #
1496
+ # @overload untag_resource(params = {})
1497
+ # @param [Hash] params ({})
1498
+ def untag_resource(params = {}, options = {})
1499
+ req = build_request(:untag_resource, params)
1500
+ req.send_request(options)
1501
+ end
1502
+
1391
1503
  # Updates a group resource.
1392
1504
  #
1393
1505
  # @option params [String] :group_name
@@ -1498,7 +1610,7 @@ module Aws::XRay
1498
1610
  params: params,
1499
1611
  config: config)
1500
1612
  context[:gem_name] = 'aws-sdk-xray'
1501
- context[:gem_version] = '1.28.0'
1613
+ context[:gem_version] = '1.30.0'
1502
1614
  Seahorse::Client::Request.new(handlers, context)
1503
1615
  end
1504
1616
 
@@ -16,6 +16,7 @@ module Aws::XRay
16
16
  Alias = Shapes::StructureShape.new(name: 'Alias')
17
17
  AliasList = Shapes::ListShape.new(name: 'AliasList')
18
18
  AliasNames = Shapes::ListShape.new(name: 'AliasNames')
19
+ AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
19
20
  AnnotationKey = Shapes::StringShape.new(name: 'AnnotationKey')
20
21
  AnnotationValue = Shapes::StructureShape.new(name: 'AnnotationValue')
21
22
  Annotations = Shapes::MapShape.new(name: 'Annotations')
@@ -99,6 +100,8 @@ module Aws::XRay
99
100
  InstanceIdDetail = Shapes::StructureShape.new(name: 'InstanceIdDetail')
100
101
  Integer = Shapes::IntegerShape.new(name: 'Integer')
101
102
  InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
103
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
104
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
102
105
  NullableBoolean = Shapes::BooleanShape.new(name: 'NullableBoolean')
103
106
  NullableDouble = Shapes::FloatShape.new(name: 'NullableDouble')
104
107
  NullableInteger = Shapes::IntegerShape.new(name: 'NullableInteger')
@@ -114,6 +117,7 @@ module Aws::XRay
114
117
  ReservoirSize = Shapes::IntegerShape.new(name: 'ReservoirSize')
115
118
  ResourceARN = Shapes::StringShape.new(name: 'ResourceARN')
116
119
  ResourceARNDetail = Shapes::StructureShape.new(name: 'ResourceARNDetail')
120
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
117
121
  ResponseTimeRootCause = Shapes::StructureShape.new(name: 'ResponseTimeRootCause')
118
122
  ResponseTimeRootCauseEntity = Shapes::StructureShape.new(name: 'ResponseTimeRootCauseEntity')
119
123
  ResponseTimeRootCauseEntityPath = Shapes::ListShape.new(name: 'ResponseTimeRootCauseEntityPath')
@@ -150,6 +154,13 @@ module Aws::XRay
150
154
  ServiceStatistics = Shapes::StructureShape.new(name: 'ServiceStatistics')
151
155
  ServiceType = Shapes::StringShape.new(name: 'ServiceType')
152
156
  String = Shapes::StringShape.new(name: 'String')
157
+ Tag = Shapes::StructureShape.new(name: 'Tag')
158
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
159
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
160
+ TagList = Shapes::ListShape.new(name: 'TagList')
161
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
162
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
163
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
153
164
  TelemetryRecord = Shapes::StructureShape.new(name: 'TelemetryRecord')
154
165
  TelemetryRecordList = Shapes::ListShape.new(name: 'TelemetryRecordList')
155
166
  ThrottledException = Shapes::StructureShape.new(name: 'ThrottledException')
@@ -157,6 +168,7 @@ module Aws::XRay
157
168
  TimeSeriesServiceStatistics = Shapes::StructureShape.new(name: 'TimeSeriesServiceStatistics')
158
169
  TimeSeriesServiceStatisticsList = Shapes::ListShape.new(name: 'TimeSeriesServiceStatisticsList')
159
170
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
171
+ TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
160
172
  Trace = Shapes::StructureShape.new(name: 'Trace')
161
173
  TraceAvailabilityZones = Shapes::ListShape.new(name: 'TraceAvailabilityZones')
162
174
  TraceId = Shapes::StringShape.new(name: 'TraceId')
@@ -176,6 +188,8 @@ module Aws::XRay
176
188
  UnprocessedTraceIdList = Shapes::ListShape.new(name: 'UnprocessedTraceIdList')
177
189
  UnprocessedTraceSegment = Shapes::StructureShape.new(name: 'UnprocessedTraceSegment')
178
190
  UnprocessedTraceSegmentList = Shapes::ListShape.new(name: 'UnprocessedTraceSegmentList')
191
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
192
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
179
193
  UpdateGroupRequest = Shapes::StructureShape.new(name: 'UpdateGroupRequest')
180
194
  UpdateGroupResult = Shapes::StructureShape.new(name: 'UpdateGroupResult')
181
195
  UpdateSamplingRuleRequest = Shapes::StructureShape.new(name: 'UpdateSamplingRuleRequest')
@@ -226,12 +240,14 @@ module Aws::XRay
226
240
 
227
241
  CreateGroupRequest.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, required: true, location_name: "GroupName"))
228
242
  CreateGroupRequest.add_member(:filter_expression, Shapes::ShapeRef.new(shape: FilterExpression, location_name: "FilterExpression"))
243
+ CreateGroupRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
229
244
  CreateGroupRequest.struct_class = Types::CreateGroupRequest
230
245
 
231
246
  CreateGroupResult.add_member(:group, Shapes::ShapeRef.new(shape: Group, location_name: "Group"))
232
247
  CreateGroupResult.struct_class = Types::CreateGroupResult
233
248
 
234
249
  CreateSamplingRuleRequest.add_member(:sampling_rule, Shapes::ShapeRef.new(shape: SamplingRule, required: true, location_name: "SamplingRule"))
250
+ CreateSamplingRuleRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
235
251
  CreateSamplingRuleRequest.struct_class = Types::CreateSamplingRuleRequest
236
252
 
237
253
  CreateSamplingRuleResult.add_member(:sampling_rule_record, Shapes::ShapeRef.new(shape: SamplingRuleRecord, location_name: "SamplingRuleRecord"))
@@ -450,6 +466,14 @@ module Aws::XRay
450
466
  InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
451
467
  InvalidRequestException.struct_class = Types::InvalidRequestException
452
468
 
469
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
470
+ ListTagsForResourceRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
471
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
472
+
473
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
474
+ ListTagsForResourceResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
475
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
476
+
453
477
  PutEncryptionConfigRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: EncryptionKeyId, location_name: "KeyId"))
454
478
  PutEncryptionConfigRequest.add_member(:type, Shapes::ShapeRef.new(shape: EncryptionType, required: true, location_name: "Type"))
455
479
  PutEncryptionConfigRequest.struct_class = Types::PutEncryptionConfigRequest
@@ -474,6 +498,10 @@ module Aws::XRay
474
498
  ResourceARNDetail.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "ARN"))
475
499
  ResourceARNDetail.struct_class = Types::ResourceARNDetail
476
500
 
501
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
502
+ ResourceNotFoundException.add_member(:resource_name, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ResourceName"))
503
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
504
+
477
505
  ResponseTimeRootCause.add_member(:services, Shapes::ShapeRef.new(shape: ResponseTimeRootCauseServices, location_name: "Services"))
478
506
  ResponseTimeRootCause.add_member(:client_impacting, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "ClientImpacting"))
479
507
  ResponseTimeRootCause.struct_class = Types::ResponseTimeRootCause
@@ -614,6 +642,20 @@ module Aws::XRay
614
642
  ServiceStatistics.add_member(:total_response_time, Shapes::ShapeRef.new(shape: NullableDouble, location_name: "TotalResponseTime"))
615
643
  ServiceStatistics.struct_class = Types::ServiceStatistics
616
644
 
645
+ Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
646
+ Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
647
+ Tag.struct_class = Types::Tag
648
+
649
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
650
+
651
+ TagList.member = Shapes::ShapeRef.new(shape: Tag)
652
+
653
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
654
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
655
+ TagResourceRequest.struct_class = Types::TagResourceRequest
656
+
657
+ TagResourceResponse.struct_class = Types::TagResourceResponse
658
+
617
659
  TelemetryRecord.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "Timestamp"))
618
660
  TelemetryRecord.add_member(:segments_received_count, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "SegmentsReceivedCount"))
619
661
  TelemetryRecord.add_member(:segments_sent_count, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "SegmentsSentCount"))
@@ -635,6 +677,10 @@ module Aws::XRay
635
677
 
636
678
  TimeSeriesServiceStatisticsList.member = Shapes::ShapeRef.new(shape: TimeSeriesServiceStatistics)
637
679
 
680
+ TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
681
+ TooManyTagsException.add_member(:resource_name, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ResourceName"))
682
+ TooManyTagsException.struct_class = Types::TooManyTagsException
683
+
638
684
  Trace.add_member(:id, Shapes::ShapeRef.new(shape: TraceId, location_name: "Id"))
639
685
  Trace.add_member(:duration, Shapes::ShapeRef.new(shape: NullableDouble, location_name: "Duration"))
640
686
  Trace.add_member(:segments, Shapes::ShapeRef.new(shape: SegmentList, location_name: "Segments"))
@@ -698,6 +744,12 @@ module Aws::XRay
698
744
 
699
745
  UnprocessedTraceSegmentList.member = Shapes::ShapeRef.new(shape: UnprocessedTraceSegment)
700
746
 
747
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
748
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
749
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
750
+
751
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
752
+
701
753
  UpdateGroupRequest.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, location_name: "GroupName"))
702
754
  UpdateGroupRequest.add_member(:group_arn, Shapes::ShapeRef.new(shape: GroupARN, location_name: "GroupARN"))
703
755
  UpdateGroupRequest.add_member(:filter_expression, Shapes::ShapeRef.new(shape: FilterExpression, location_name: "FilterExpression"))
@@ -925,6 +977,17 @@ module Aws::XRay
925
977
  )
926
978
  end)
927
979
 
980
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
981
+ o.name = "ListTagsForResource"
982
+ o.http_method = "POST"
983
+ o.http_request_uri = "/ListTagsForResource"
984
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
985
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
986
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
987
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
988
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
989
+ end)
990
+
928
991
  api.add_operation(:put_encryption_config, Seahorse::Model::Operation.new.tap do |o|
929
992
  o.name = "PutEncryptionConfig"
930
993
  o.http_method = "POST"
@@ -955,6 +1018,29 @@ module Aws::XRay
955
1018
  o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
956
1019
  end)
957
1020
 
1021
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
1022
+ o.name = "TagResource"
1023
+ o.http_method = "POST"
1024
+ o.http_request_uri = "/TagResource"
1025
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
1026
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
1027
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1028
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
1029
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1030
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
1031
+ end)
1032
+
1033
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
1034
+ o.name = "UntagResource"
1035
+ o.http_method = "POST"
1036
+ o.http_request_uri = "/UntagResource"
1037
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
1038
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
1039
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1040
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
1041
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1042
+ end)
1043
+
958
1044
  api.add_operation(:update_group, Seahorse::Model::Operation.new.tap do |o|
959
1045
  o.name = "UpdateGroup"
960
1046
  o.http_method = "POST"
@@ -28,8 +28,10 @@ module Aws::XRay
28
28
  #
29
29
  # ## Error Classes
30
30
  # * {InvalidRequestException}
31
+ # * {ResourceNotFoundException}
31
32
  # * {RuleLimitExceededException}
32
33
  # * {ThrottledException}
34
+ # * {TooManyTagsException}
33
35
  #
34
36
  # Additionally, error classes are dynamically generated for service errors based on the error code
35
37
  # if they are not defined above.
@@ -52,6 +54,26 @@ module Aws::XRay
52
54
  end
53
55
  end
54
56
 
57
+ class ResourceNotFoundException < ServiceError
58
+
59
+ # @param [Seahorse::Client::RequestContext] context
60
+ # @param [String] message
61
+ # @param [Aws::XRay::Types::ResourceNotFoundException] data
62
+ def initialize(context, message, data = Aws::EmptyStructure.new)
63
+ super(context, message, data)
64
+ end
65
+
66
+ # @return [String]
67
+ def message
68
+ @message || @data[:message]
69
+ end
70
+
71
+ # @return [String]
72
+ def resource_name
73
+ @data[:resource_name]
74
+ end
75
+ end
76
+
55
77
  class RuleLimitExceededException < ServiceError
56
78
 
57
79
  # @param [Seahorse::Client::RequestContext] context
@@ -82,5 +104,25 @@ module Aws::XRay
82
104
  end
83
105
  end
84
106
 
107
+ class TooManyTagsException < ServiceError
108
+
109
+ # @param [Seahorse::Client::RequestContext] context
110
+ # @param [String] message
111
+ # @param [Aws::XRay::Types::TooManyTagsException] data
112
+ def initialize(context, message, data = Aws::EmptyStructure.new)
113
+ super(context, message, data)
114
+ end
115
+
116
+ # @return [String]
117
+ def message
118
+ @message || @data[:message]
119
+ end
120
+
121
+ # @return [String]
122
+ def resource_name
123
+ @data[:resource_name]
124
+ end
125
+ end
126
+
85
127
  end
86
128
  end
@@ -169,6 +169,12 @@ module Aws::XRay
169
169
  # {
170
170
  # group_name: "GroupName", # required
171
171
  # filter_expression: "FilterExpression",
172
+ # tags: [
173
+ # {
174
+ # key: "TagKey", # required
175
+ # value: "TagValue", # required
176
+ # },
177
+ # ],
172
178
  # }
173
179
  #
174
180
  # @!attribute [rw] group_name
@@ -180,11 +186,15 @@ module Aws::XRay
180
186
  # The filter expression defining criteria by which to group traces.
181
187
  # @return [String]
182
188
  #
189
+ # @!attribute [rw] tags
190
+ # @return [Array<Types::Tag>]
191
+ #
183
192
  # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/CreateGroupRequest AWS API Documentation
184
193
  #
185
194
  class CreateGroupRequest < Struct.new(
186
195
  :group_name,
187
- :filter_expression)
196
+ :filter_expression,
197
+ :tags)
188
198
  SENSITIVE = []
189
199
  include Aws::Structure
190
200
  end
@@ -224,16 +234,26 @@ module Aws::XRay
224
234
  # "AttributeKey" => "AttributeValue",
225
235
  # },
226
236
  # },
237
+ # tags: [
238
+ # {
239
+ # key: "TagKey", # required
240
+ # value: "TagValue", # required
241
+ # },
242
+ # ],
227
243
  # }
228
244
  #
229
245
  # @!attribute [rw] sampling_rule
230
246
  # The rule definition.
231
247
  # @return [Types::SamplingRule]
232
248
  #
249
+ # @!attribute [rw] tags
250
+ # @return [Array<Types::Tag>]
251
+ #
233
252
  # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/CreateSamplingRuleRequest AWS API Documentation
234
253
  #
235
254
  class CreateSamplingRuleRequest < Struct.new(
236
- :sampling_rule)
255
+ :sampling_rule,
256
+ :tags)
237
257
  SENSITIVE = []
238
258
  include Aws::Structure
239
259
  end
@@ -1293,6 +1313,44 @@ module Aws::XRay
1293
1313
  include Aws::Structure
1294
1314
  end
1295
1315
 
1316
+ # @note When making an API call, you may pass ListTagsForResourceRequest
1317
+ # data as a hash:
1318
+ #
1319
+ # {
1320
+ # resource_arn: "AmazonResourceName", # required
1321
+ # next_token: "String",
1322
+ # }
1323
+ #
1324
+ # @!attribute [rw] resource_arn
1325
+ # @return [String]
1326
+ #
1327
+ # @!attribute [rw] next_token
1328
+ # @return [String]
1329
+ #
1330
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ListTagsForResourceRequest AWS API Documentation
1331
+ #
1332
+ class ListTagsForResourceRequest < Struct.new(
1333
+ :resource_arn,
1334
+ :next_token)
1335
+ SENSITIVE = []
1336
+ include Aws::Structure
1337
+ end
1338
+
1339
+ # @!attribute [rw] tags
1340
+ # @return [Array<Types::Tag>]
1341
+ #
1342
+ # @!attribute [rw] next_token
1343
+ # @return [String]
1344
+ #
1345
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ListTagsForResourceResponse AWS API Documentation
1346
+ #
1347
+ class ListTagsForResourceResponse < Struct.new(
1348
+ :tags,
1349
+ :next_token)
1350
+ SENSITIVE = []
1351
+ include Aws::Structure
1352
+ end
1353
+
1296
1354
  # @note When making an API call, you may pass PutEncryptionConfigRequest
1297
1355
  # data as a hash:
1298
1356
  #
@@ -1444,6 +1502,21 @@ module Aws::XRay
1444
1502
  include Aws::Structure
1445
1503
  end
1446
1504
 
1505
+ # @!attribute [rw] message
1506
+ # @return [String]
1507
+ #
1508
+ # @!attribute [rw] resource_name
1509
+ # @return [String]
1510
+ #
1511
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ResourceNotFoundException AWS API Documentation
1512
+ #
1513
+ class ResourceNotFoundException < Struct.new(
1514
+ :message,
1515
+ :resource_name)
1516
+ SENSITIVE = []
1517
+ include Aws::Structure
1518
+ end
1519
+
1447
1520
  # The root cause information for a response time warning.
1448
1521
  #
1449
1522
  # @!attribute [rw] services
@@ -2121,6 +2194,61 @@ module Aws::XRay
2121
2194
  include Aws::Structure
2122
2195
  end
2123
2196
 
2197
+ # @note When making an API call, you may pass Tag
2198
+ # data as a hash:
2199
+ #
2200
+ # {
2201
+ # key: "TagKey", # required
2202
+ # value: "TagValue", # required
2203
+ # }
2204
+ #
2205
+ # @!attribute [rw] key
2206
+ # @return [String]
2207
+ #
2208
+ # @!attribute [rw] value
2209
+ # @return [String]
2210
+ #
2211
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/Tag AWS API Documentation
2212
+ #
2213
+ class Tag < Struct.new(
2214
+ :key,
2215
+ :value)
2216
+ SENSITIVE = []
2217
+ include Aws::Structure
2218
+ end
2219
+
2220
+ # @note When making an API call, you may pass TagResourceRequest
2221
+ # data as a hash:
2222
+ #
2223
+ # {
2224
+ # resource_arn: "AmazonResourceName", # required
2225
+ # tags: [ # required
2226
+ # {
2227
+ # key: "TagKey", # required
2228
+ # value: "TagValue", # required
2229
+ # },
2230
+ # ],
2231
+ # }
2232
+ #
2233
+ # @!attribute [rw] resource_arn
2234
+ # @return [String]
2235
+ #
2236
+ # @!attribute [rw] tags
2237
+ # @return [Array<Types::Tag>]
2238
+ #
2239
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/TagResourceRequest AWS API Documentation
2240
+ #
2241
+ class TagResourceRequest < Struct.new(
2242
+ :resource_arn,
2243
+ :tags)
2244
+ SENSITIVE = []
2245
+ include Aws::Structure
2246
+ end
2247
+
2248
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/TagResourceResponse AWS API Documentation
2249
+ #
2250
+ class TagResourceResponse < Aws::EmptyStructure; end
2251
+
2124
2252
  # @note When making an API call, you may pass TelemetryRecord
2125
2253
  # data as a hash:
2126
2254
  #
@@ -2213,6 +2341,21 @@ module Aws::XRay
2213
2341
  include Aws::Structure
2214
2342
  end
2215
2343
 
2344
+ # @!attribute [rw] message
2345
+ # @return [String]
2346
+ #
2347
+ # @!attribute [rw] resource_name
2348
+ # @return [String]
2349
+ #
2350
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/TooManyTagsException AWS API Documentation
2351
+ #
2352
+ class TooManyTagsException < Struct.new(
2353
+ :message,
2354
+ :resource_name)
2355
+ SENSITIVE = []
2356
+ include Aws::Structure
2357
+ end
2358
+
2216
2359
  # A collection of segment documents with matching trace IDs.
2217
2360
  #
2218
2361
  # @!attribute [rw] id
@@ -2429,6 +2572,33 @@ module Aws::XRay
2429
2572
  include Aws::Structure
2430
2573
  end
2431
2574
 
2575
+ # @note When making an API call, you may pass UntagResourceRequest
2576
+ # data as a hash:
2577
+ #
2578
+ # {
2579
+ # resource_arn: "AmazonResourceName", # required
2580
+ # tag_keys: ["TagKey"], # required
2581
+ # }
2582
+ #
2583
+ # @!attribute [rw] resource_arn
2584
+ # @return [String]
2585
+ #
2586
+ # @!attribute [rw] tag_keys
2587
+ # @return [Array<String>]
2588
+ #
2589
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UntagResourceRequest AWS API Documentation
2590
+ #
2591
+ class UntagResourceRequest < Struct.new(
2592
+ :resource_arn,
2593
+ :tag_keys)
2594
+ SENSITIVE = []
2595
+ include Aws::Structure
2596
+ end
2597
+
2598
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UntagResourceResponse AWS API Documentation
2599
+ #
2600
+ class UntagResourceResponse < Aws::EmptyStructure; end
2601
+
2432
2602
  # @note When making an API call, you may pass UpdateGroupRequest
2433
2603
  # data as a hash:
2434
2604
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-xray
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.28.0
4
+ version: 1.30.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: 2020-06-23 00:00:00.000000000 Z
11
+ date: 2020-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core