aws-sdk-xray 1.28.0 → 1.34.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: b4b6cfa688df8a7338ddba4e159d4e9e1cddc264d6b3221f1089d0b43991de20
4
+ data.tar.gz: 0e4239ba337f4417a819334279620c7db4a5db0f5368ccc24d53b03dc7ba3eb4
5
5
  SHA512:
6
- metadata.gz: 73feeec840386ca30598f54a3ce15d53a8efb9a1777e5d18eb1628b5b56a2fe8f1a0b37cdaf000c87b3b325b8b05e0424c239def70942d70e634fc1afe6ce50b
7
- data.tar.gz: 4794472807ba98d9df54226d3de05eec263986b980feea23fd025710b0e7f437541ddd15051492bdebba5d747e0b7689ae44bbdf7a98f5a74f1440004b58fb94
6
+ metadata.gz: f5b744df9fb0deb0c1b45d20e95bcd844f566737df6202b163f9217e67c6ef9bc419b4a832144958bc05f54e036e70797ac3bc8e5e03ffdf2fb4768bf89116ac
7
+ data.tar.gz: 405c78cfceaaece86e1187b97cb702d83b453eb6bb86f0b5d43986ec217709cba15331307cca4b87ec01a5558f25715e14c1c7d2fa2ac33a9f295945d9231444
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-xray/customizations'
44
45
  #
45
46
  # See {Errors} for more information.
46
47
  #
47
- # @service
48
+ # @!group service
48
49
  module Aws::XRay
49
50
 
50
- GEM_VERSION = '1.28.0'
51
+ GEM_VERSION = '1.34.0'
51
52
 
52
53
  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
@@ -342,6 +357,7 @@ module Aws::XRay
342
357
  # resp.traces #=> Array
343
358
  # resp.traces[0].id #=> String
344
359
  # resp.traces[0].duration #=> Float
360
+ # resp.traces[0].limit_exceeded #=> Boolean
345
361
  # resp.traces[0].segments #=> Array
346
362
  # resp.traces[0].segments[0].id #=> String
347
363
  # resp.traces[0].segments[0].document #=> String
@@ -367,6 +383,40 @@ module Aws::XRay
367
383
  # @option params [String] :filter_expression
368
384
  # The filter expression defining criteria by which to group traces.
369
385
  #
386
+ # @option params [Types::InsightsConfiguration] :insights_configuration
387
+ # The structure containing configurations related to insights.
388
+ #
389
+ # * The InsightsEnabled boolean can be set to true to enable insights
390
+ # for the new group or false to disable insights for the new group.
391
+ #
392
+ # * The NotifcationsEnabled boolean can be set to true to enable
393
+ # insights notifications for the new group. Notifications may only be
394
+ # enabled on a group with InsightsEnabled set to true.
395
+ #
396
+ # @option params [Array<Types::Tag>] :tags
397
+ # A map that contains one or more tag keys and tag values to attach to
398
+ # an X-Ray group. For more information about ways to use tags, see
399
+ # [Tagging AWS resources][1] in the *AWS General Reference*.
400
+ #
401
+ # The following restrictions apply to tags:
402
+ #
403
+ # * Maximum number of user-applied tags per resource: 50
404
+ #
405
+ # * Maximum tag key length: 128 Unicode characters
406
+ #
407
+ # * Maximum tag value length: 256 Unicode characters
408
+ #
409
+ # * Valid values for key and value: a-z, A-Z, 0-9, space, and the
410
+ # following characters: \_ . : / = + - and @
411
+ #
412
+ # * Tag keys and values are case sensitive.
413
+ #
414
+ # * Don't use `aws:` as a prefix for keys; it's reserved for AWS use.
415
+ #
416
+ #
417
+ #
418
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
419
+ #
370
420
  # @return [Types::CreateGroupResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
371
421
  #
372
422
  # * {Types::CreateGroupResult#group #group} => Types::Group
@@ -376,6 +426,16 @@ module Aws::XRay
376
426
  # resp = client.create_group({
377
427
  # group_name: "GroupName", # required
378
428
  # filter_expression: "FilterExpression",
429
+ # insights_configuration: {
430
+ # insights_enabled: false,
431
+ # notifications_enabled: false,
432
+ # },
433
+ # tags: [
434
+ # {
435
+ # key: "TagKey", # required
436
+ # value: "TagValue", # required
437
+ # },
438
+ # ],
379
439
  # })
380
440
  #
381
441
  # @example Response structure
@@ -383,6 +443,8 @@ module Aws::XRay
383
443
  # resp.group.group_name #=> String
384
444
  # resp.group.group_arn #=> String
385
445
  # resp.group.filter_expression #=> String
446
+ # resp.group.insights_configuration.insights_enabled #=> Boolean
447
+ # resp.group.insights_configuration.notifications_enabled #=> Boolean
386
448
  #
387
449
  # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/CreateGroup AWS API Documentation
388
450
  #
@@ -405,6 +467,30 @@ module Aws::XRay
405
467
  # @option params [required, Types::SamplingRule] :sampling_rule
406
468
  # The rule definition.
407
469
  #
470
+ # @option params [Array<Types::Tag>] :tags
471
+ # A map that contains one or more tag keys and tag values to attach to
472
+ # an X-Ray sampling rule. For more information about ways to use tags,
473
+ # see [Tagging AWS resources][1] in the *AWS General Reference*.
474
+ #
475
+ # The following restrictions apply to tags:
476
+ #
477
+ # * Maximum number of user-applied tags per resource: 50
478
+ #
479
+ # * Maximum tag key length: 128 Unicode characters
480
+ #
481
+ # * Maximum tag value length: 256 Unicode characters
482
+ #
483
+ # * Valid values for key and value: a-z, A-Z, 0-9, space, and the
484
+ # following characters: \_ . : / = + - and @
485
+ #
486
+ # * Tag keys and values are case sensitive.
487
+ #
488
+ # * Don't use `aws:` as a prefix for keys; it's reserved for AWS use.
489
+ #
490
+ #
491
+ #
492
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
493
+ #
408
494
  # @return [Types::CreateSamplingRuleResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
409
495
  #
410
496
  # * {Types::CreateSamplingRuleResult#sampling_rule_record #sampling_rule_record} => Types::SamplingRuleRecord
@@ -429,6 +515,12 @@ module Aws::XRay
429
515
  # "AttributeKey" => "AttributeValue",
430
516
  # },
431
517
  # },
518
+ # tags: [
519
+ # {
520
+ # key: "TagKey", # required
521
+ # value: "TagValue", # required
522
+ # },
523
+ # ],
432
524
  # })
433
525
  #
434
526
  # @example Response structure
@@ -579,6 +671,8 @@ module Aws::XRay
579
671
  # resp.group.group_name #=> String
580
672
  # resp.group.group_arn #=> String
581
673
  # resp.group.filter_expression #=> String
674
+ # resp.group.insights_configuration.insights_enabled #=> Boolean
675
+ # resp.group.insights_configuration.notifications_enabled #=> Boolean
582
676
  #
583
677
  # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetGroup AWS API Documentation
584
678
  #
@@ -613,6 +707,8 @@ module Aws::XRay
613
707
  # resp.groups[0].group_name #=> String
614
708
  # resp.groups[0].group_arn #=> String
615
709
  # resp.groups[0].filter_expression #=> String
710
+ # resp.groups[0].insights_configuration.insights_enabled #=> Boolean
711
+ # resp.groups[0].insights_configuration.notifications_enabled #=> Boolean
616
712
  # resp.next_token #=> String
617
713
  #
618
714
  # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetGroups AWS API Documentation
@@ -778,10 +874,11 @@ module Aws::XRay
778
874
  # The end of the timeframe for which to generate a graph.
779
875
  #
780
876
  # @option params [String] :group_name
781
- # The name of a group to generate a graph based on.
877
+ # The name of a group based on which you want to generate a graph.
782
878
  #
783
879
  # @option params [String] :group_arn
784
- # The ARN of a group to generate a graph based on.
880
+ # The Amazon Resource Name (ARN) of a group based on which you want to
881
+ # generate a graph.
785
882
  #
786
883
  # @option params [String] :next_token
787
884
  # Pagination token.
@@ -881,7 +978,8 @@ module Aws::XRay
881
978
  # from.
882
979
  #
883
980
  # @option params [String] :group_arn
884
- # The ARN of the group for which to pull statistics from.
981
+ # The Amazon Resource Name (ARN) of the group for which to pull
982
+ # statistics from.
885
983
  #
886
984
  # @option params [String] :entity_selector_expression
887
985
  # A filter expression defining entities that will be aggregated for
@@ -1067,7 +1165,7 @@ module Aws::XRay
1067
1165
  # Set to `true` to get summaries for only a subset of available traces.
1068
1166
  #
1069
1167
  # @option params [Types::SamplingStrategy] :sampling_strategy
1070
- # A paramater to indicate whether to enable sampling on trace summaries.
1168
+ # A parameter to indicate whether to enable sampling on trace summaries.
1071
1169
  # Input parameters are Name and Value.
1072
1170
  #
1073
1171
  # @option params [String] :filter_expression
@@ -1211,6 +1309,45 @@ module Aws::XRay
1211
1309
  req.send_request(options)
1212
1310
  end
1213
1311
 
1312
+ # Returns a list of tags that are applied to the specified AWS X-Ray
1313
+ # group or sampling rule.
1314
+ #
1315
+ # @option params [required, String] :resource_arn
1316
+ # The Amazon Resource Number (ARN) of an X-Ray group or sampling rule.
1317
+ #
1318
+ # @option params [String] :next_token
1319
+ # A pagination token. If multiple pages of results are returned, use the
1320
+ # `NextToken` value returned with the current page of results as the
1321
+ # value of this parameter to get the next page of results.
1322
+ #
1323
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1324
+ #
1325
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Array&lt;Types::Tag&gt;
1326
+ # * {Types::ListTagsForResourceResponse#next_token #next_token} => String
1327
+ #
1328
+ # @example Request syntax with placeholder values
1329
+ #
1330
+ # resp = client.list_tags_for_resource({
1331
+ # resource_arn: "AmazonResourceName", # required
1332
+ # next_token: "String",
1333
+ # })
1334
+ #
1335
+ # @example Response structure
1336
+ #
1337
+ # resp.tags #=> Array
1338
+ # resp.tags[0].key #=> String
1339
+ # resp.tags[0].value #=> String
1340
+ # resp.next_token #=> String
1341
+ #
1342
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ListTagsForResource AWS API Documentation
1343
+ #
1344
+ # @overload list_tags_for_resource(params = {})
1345
+ # @param [Hash] params ({})
1346
+ def list_tags_for_resource(params = {}, options = {})
1347
+ req = build_request(:list_tags_for_resource, params)
1348
+ req.send_request(options)
1349
+ end
1350
+
1214
1351
  # Updates the encryption configuration for X-Ray data.
1215
1352
  #
1216
1353
  # @option params [String] :key_id
@@ -1314,7 +1451,7 @@ module Aws::XRay
1314
1451
  # document schema, see [AWS X-Ray Segment Documents][2] in the *AWS
1315
1452
  # X-Ray Developer Guide*.
1316
1453
  #
1317
- # **Required Segment Document Fields**
1454
+ # **Required segment document fields**
1318
1455
  #
1319
1456
  # * `name` - The name of the service that handled the request.
1320
1457
  #
@@ -1334,17 +1471,17 @@ module Aws::XRay
1334
1471
  #
1335
1472
  # * `in_progress` - Set to `true` instead of specifying an `end_time` to
1336
1473
  # record that a segment has been started, but is not complete. Send an
1337
- # in progress segment when your application receives a request that
1338
- # will take a long time to serve, to trace the fact that the request
1339
- # was received. When the response is sent, send the complete segment
1340
- # to overwrite the in-progress segment.
1474
+ # in-progress segment when your application receives a request that
1475
+ # will take a long time to serve, to trace that the request was
1476
+ # received. When the response is sent, send the complete segment to
1477
+ # overwrite the in-progress segment.
1341
1478
  #
1342
1479
  # A `trace_id` consists of three numbers separated by hyphens. For
1343
1480
  # example, 1-58406520-a006649127e371903a2de979. This includes:
1344
1481
  #
1345
1482
  # **Trace ID Format**
1346
1483
  #
1347
- # * The version number, i.e. `1`.
1484
+ # * The version number, for instance, `1`.
1348
1485
  #
1349
1486
  # * The time of the original request, in Unix epoch time, in 8
1350
1487
  # hexadecimal digits. For example, 10:00AM December 2nd, 2016 PST in
@@ -1388,6 +1525,88 @@ module Aws::XRay
1388
1525
  req.send_request(options)
1389
1526
  end
1390
1527
 
1528
+ # Applies tags to an existing AWS X-Ray group or sampling rule.
1529
+ #
1530
+ # @option params [required, String] :resource_arn
1531
+ # The Amazon Resource Number (ARN) of an X-Ray group or sampling rule.
1532
+ #
1533
+ # @option params [required, Array<Types::Tag>] :tags
1534
+ # A map that contains one or more tag keys and tag values to attach to
1535
+ # an X-Ray group or sampling rule. For more information about ways to
1536
+ # use tags, see [Tagging AWS resources][1] in the *AWS General
1537
+ # Reference*.
1538
+ #
1539
+ # The following restrictions apply to tags:
1540
+ #
1541
+ # * Maximum number of user-applied tags per resource: 50
1542
+ #
1543
+ # * Maximum tag key length: 128 Unicode characters
1544
+ #
1545
+ # * Maximum tag value length: 256 Unicode characters
1546
+ #
1547
+ # * Valid values for key and value: a-z, A-Z, 0-9, space, and the
1548
+ # following characters: \_ . : / = + - and @
1549
+ #
1550
+ # * Tag keys and values are case sensitive.
1551
+ #
1552
+ # * Don't use `aws:` as a prefix for keys; it's reserved for AWS use.
1553
+ # You cannot edit or delete system tags.
1554
+ #
1555
+ #
1556
+ #
1557
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
1558
+ #
1559
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1560
+ #
1561
+ # @example Request syntax with placeholder values
1562
+ #
1563
+ # resp = client.tag_resource({
1564
+ # resource_arn: "AmazonResourceName", # required
1565
+ # tags: [ # required
1566
+ # {
1567
+ # key: "TagKey", # required
1568
+ # value: "TagValue", # required
1569
+ # },
1570
+ # ],
1571
+ # })
1572
+ #
1573
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/TagResource AWS API Documentation
1574
+ #
1575
+ # @overload tag_resource(params = {})
1576
+ # @param [Hash] params ({})
1577
+ def tag_resource(params = {}, options = {})
1578
+ req = build_request(:tag_resource, params)
1579
+ req.send_request(options)
1580
+ end
1581
+
1582
+ # Removes tags from an AWS X-Ray group or sampling rule. You cannot edit
1583
+ # or delete system tags (those with an `aws:` prefix).
1584
+ #
1585
+ # @option params [required, String] :resource_arn
1586
+ # The Amazon Resource Number (ARN) of an X-Ray group or sampling rule.
1587
+ #
1588
+ # @option params [required, Array<String>] :tag_keys
1589
+ # Keys for one or more tags that you want to remove from an X-Ray group
1590
+ # or sampling rule.
1591
+ #
1592
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1593
+ #
1594
+ # @example Request syntax with placeholder values
1595
+ #
1596
+ # resp = client.untag_resource({
1597
+ # resource_arn: "AmazonResourceName", # required
1598
+ # tag_keys: ["TagKey"], # required
1599
+ # })
1600
+ #
1601
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UntagResource AWS API Documentation
1602
+ #
1603
+ # @overload untag_resource(params = {})
1604
+ # @param [Hash] params ({})
1605
+ def untag_resource(params = {}, options = {})
1606
+ req = build_request(:untag_resource, params)
1607
+ req.send_request(options)
1608
+ end
1609
+
1391
1610
  # Updates a group resource.
1392
1611
  #
1393
1612
  # @option params [String] :group_name
@@ -1400,6 +1619,16 @@ module Aws::XRay
1400
1619
  # The updated filter expression defining criteria by which to group
1401
1620
  # traces.
1402
1621
  #
1622
+ # @option params [Types::InsightsConfiguration] :insights_configuration
1623
+ # The structure containing configurations related to insights.
1624
+ #
1625
+ # * The InsightsEnabled boolean can be set to true to enable insights
1626
+ # for the group or false to disable insights for the group.
1627
+ #
1628
+ # * The NotifcationsEnabled boolean can be set to true to enable
1629
+ # insights notifications for the group. Notifications can only be
1630
+ # enabled on a group with InsightsEnabled set to true.
1631
+ #
1403
1632
  # @return [Types::UpdateGroupResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1404
1633
  #
1405
1634
  # * {Types::UpdateGroupResult#group #group} => Types::Group
@@ -1410,6 +1639,10 @@ module Aws::XRay
1410
1639
  # group_name: "GroupName",
1411
1640
  # group_arn: "GroupARN",
1412
1641
  # filter_expression: "FilterExpression",
1642
+ # insights_configuration: {
1643
+ # insights_enabled: false,
1644
+ # notifications_enabled: false,
1645
+ # },
1413
1646
  # })
1414
1647
  #
1415
1648
  # @example Response structure
@@ -1417,6 +1650,8 @@ module Aws::XRay
1417
1650
  # resp.group.group_name #=> String
1418
1651
  # resp.group.group_arn #=> String
1419
1652
  # resp.group.filter_expression #=> String
1653
+ # resp.group.insights_configuration.insights_enabled #=> Boolean
1654
+ # resp.group.insights_configuration.notifications_enabled #=> Boolean
1420
1655
  #
1421
1656
  # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UpdateGroup AWS API Documentation
1422
1657
  #
@@ -1498,7 +1733,7 @@ module Aws::XRay
1498
1733
  params: params,
1499
1734
  config: config)
1500
1735
  context[:gem_name] = 'aws-sdk-xray'
1501
- context[:gem_version] = '1.28.0'
1736
+ context[:gem_version] = '1.34.0'
1502
1737
  Seahorse::Client::Request.new(handlers, context)
1503
1738
  end
1504
1739