aws-sdk-xray 1.49.0 → 1.51.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: 1fac014afc04878a034ee572afef540607ab0a0bb2aba3d9d7b1db352cb9e6cc
4
- data.tar.gz: db0556def050c7199a1c2272c7cecac4b25da5f27b92e7c9012f5868c118ca25
3
+ metadata.gz: d93d719dd0f8ed3cf09a20092fef680ab19d3c1a7098dbd2632f198a778d111e
4
+ data.tar.gz: 8ea6ce4b0393eff79a29358faa137cfc1577f613c1a1318bd09ccc9b4a9ca7b9
5
5
  SHA512:
6
- metadata.gz: 1f26cbcc3307f0f7407fd23b07d1db452bec5159931587bdee419239934f082206c9caf7f65480c39f6d54973c0bf27322d48382245c2876e86c6316a815e568
7
- data.tar.gz: 5ece9335cab9792d5188b189c8f129ef46bb53b5e0c12f421eaf61537c9cb3e892ed3851e244b9f3bcffcd21faca6743ea4db1ee4736f33da49d05a0db323c3b
6
+ metadata.gz: 98983788cbc981d794d419fa4826b7ccc1430b1d4cfda7f97cd992fa0cb11f1d4844833df92692fa75c788ffc2306e56ced5dfc9d7681c2832a5a18cd9149018
7
+ data.tar.gz: 719c63308643202299675ca6b0e59d38cb8452ab2b830c05df47ac682f7a4811efbabef6987c89be6c7371016030dc2f2ff9bedbd32ed20b0782f8d6675dee0c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.51.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
11
+ 1.50.0 (2022-11-16)
12
+ ------------------
13
+
14
+ * Feature - This release adds new APIs - PutResourcePolicy, DeleteResourcePolicy, ListResourcePolicies for supporting resource based policies for AWS X-Ray.
15
+
4
16
  1.49.0 (2022-11-14)
5
17
  ------------------
6
18
 
@@ -310,4 +322,4 @@ Unreleased Changes
310
322
  1.0.0.rc2 (2016-12-09)
311
323
  ------------------
312
324
 
313
- * Feature - Initial release of `aws-sdk-xray`.
325
+ * Feature - Initial release of `aws-sdk-xray`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.49.0
1
+ 1.51.0
@@ -430,7 +430,7 @@ module Aws::XRay
430
430
  # * The InsightsEnabled boolean can be set to true to enable insights
431
431
  # for the new group or false to disable insights for the new group.
432
432
  #
433
- # * The NotifcationsEnabled boolean can be set to true to enable
433
+ # * The NotificationsEnabled boolean can be set to true to enable
434
434
  # insights notifications for the new group. Notifications may only be
435
435
  # enabled on a group with InsightsEnabled set to true.
436
436
  #
@@ -627,6 +627,35 @@ module Aws::XRay
627
627
  req.send_request(options)
628
628
  end
629
629
 
630
+ # Deletes a resource policy from the target Amazon Web Services account.
631
+ #
632
+ # @option params [required, String] :policy_name
633
+ # The name of the resource policy to delete.
634
+ #
635
+ # @option params [String] :policy_revision_id
636
+ # Specifies a specific policy revision to delete. Provide a
637
+ # `PolicyRevisionId` to ensure an atomic delete operation. If the
638
+ # provided revision id does not match the latest policy revision id, an
639
+ # `InvalidPolicyRevisionIdException` exception is returned.
640
+ #
641
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
642
+ #
643
+ # @example Request syntax with placeholder values
644
+ #
645
+ # resp = client.delete_resource_policy({
646
+ # policy_name: "PolicyName", # required
647
+ # policy_revision_id: "PolicyRevisionId",
648
+ # })
649
+ #
650
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/DeleteResourcePolicy AWS API Documentation
651
+ #
652
+ # @overload delete_resource_policy(params = {})
653
+ # @param [Hash] params ({})
654
+ def delete_resource_policy(params = {}, options = {})
655
+ req = build_request(:delete_resource_policy, params)
656
+ req.send_request(options)
657
+ end
658
+
630
659
  # Deletes a sampling rule.
631
660
  #
632
661
  # @option params [String] :rule_name
@@ -1645,6 +1674,43 @@ module Aws::XRay
1645
1674
  req.send_request(options)
1646
1675
  end
1647
1676
 
1677
+ # Returns the list of resource policies in the target Amazon Web
1678
+ # Services account.
1679
+ #
1680
+ # @option params [String] :next_token
1681
+ # Not currently supported.
1682
+ #
1683
+ # @return [Types::ListResourcePoliciesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1684
+ #
1685
+ # * {Types::ListResourcePoliciesResult#resource_policies #resource_policies} => Array<Types::ResourcePolicy>
1686
+ # * {Types::ListResourcePoliciesResult#next_token #next_token} => String
1687
+ #
1688
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1689
+ #
1690
+ # @example Request syntax with placeholder values
1691
+ #
1692
+ # resp = client.list_resource_policies({
1693
+ # next_token: "ResourcePolicyNextToken",
1694
+ # })
1695
+ #
1696
+ # @example Response structure
1697
+ #
1698
+ # resp.resource_policies #=> Array
1699
+ # resp.resource_policies[0].policy_name #=> String
1700
+ # resp.resource_policies[0].policy_document #=> String
1701
+ # resp.resource_policies[0].policy_revision_id #=> String
1702
+ # resp.resource_policies[0].last_updated_time #=> Time
1703
+ # resp.next_token #=> String
1704
+ #
1705
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ListResourcePolicies AWS API Documentation
1706
+ #
1707
+ # @overload list_resource_policies(params = {})
1708
+ # @param [Hash] params ({})
1709
+ def list_resource_policies(params = {}, options = {})
1710
+ req = build_request(:list_resource_policies, params)
1711
+ req.send_request(options)
1712
+ end
1713
+
1648
1714
  # Returns a list of tags that are applied to the specified Amazon Web
1649
1715
  # Services X-Ray group or sampling rule.
1650
1716
  #
@@ -1661,6 +1727,8 @@ module Aws::XRay
1661
1727
  # * {Types::ListTagsForResourceResponse#tags #tags} => Array<Types::Tag>
1662
1728
  # * {Types::ListTagsForResourceResponse#next_token #next_token} => String
1663
1729
  #
1730
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1731
+ #
1664
1732
  # @example Request syntax with placeholder values
1665
1733
  #
1666
1734
  # resp = client.list_tags_for_resource({
@@ -1732,6 +1800,75 @@ module Aws::XRay
1732
1800
  req.send_request(options)
1733
1801
  end
1734
1802
 
1803
+ # Sets the resource policy to grant one or more Amazon Web Services
1804
+ # services and accounts permissions to access X-Ray. Each resource
1805
+ # policy will be associated with a specific Amazon Web Services account.
1806
+ # Each Amazon Web Services account can have a maximum of 5 resource
1807
+ # policies, and each policy name must be unique within that account. The
1808
+ # maximum size of each resource policy is 5KB.
1809
+ #
1810
+ # @option params [required, String] :policy_name
1811
+ # The name of the resource policy. Must be unique within a specific
1812
+ # Amazon Web Services account.
1813
+ #
1814
+ # @option params [required, String] :policy_document
1815
+ # The resource policy document, which can be up to 5kb in size.
1816
+ #
1817
+ # @option params [String] :policy_revision_id
1818
+ # Specifies a specific policy revision, to ensure an atomic create
1819
+ # operation. By default the resource policy is created if it does not
1820
+ # exist, or updated with an incremented revision id. The revision id is
1821
+ # unique to each policy in the account.
1822
+ #
1823
+ # If the policy revision id does not match the latest revision id, the
1824
+ # operation will fail with an `InvalidPolicyRevisionIdException`
1825
+ # exception. You can also provide a `PolicyRevisionId` of 0. In this
1826
+ # case, the operation will fail with an
1827
+ # `InvalidPolicyRevisionIdException` exception if a resource policy with
1828
+ # the same name already exists.
1829
+ #
1830
+ # @option params [Boolean] :bypass_policy_lockout_check
1831
+ # A flag to indicate whether to bypass the resource policy lockout
1832
+ # safety check.
1833
+ #
1834
+ # Setting this value to true increases the risk that the policy becomes
1835
+ # unmanageable. Do not set this value to true indiscriminately.
1836
+ #
1837
+ # Use this parameter only when you include a policy in the request and
1838
+ # you intend to prevent the principal that is making the request from
1839
+ # making a subsequent `PutResourcePolicy` request.
1840
+ #
1841
+ # The default value is false.
1842
+ #
1843
+ # @return [Types::PutResourcePolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1844
+ #
1845
+ # * {Types::PutResourcePolicyResult#resource_policy #resource_policy} => Types::ResourcePolicy
1846
+ #
1847
+ # @example Request syntax with placeholder values
1848
+ #
1849
+ # resp = client.put_resource_policy({
1850
+ # policy_name: "PolicyName", # required
1851
+ # policy_document: "PolicyDocument", # required
1852
+ # policy_revision_id: "PolicyRevisionId",
1853
+ # bypass_policy_lockout_check: false,
1854
+ # })
1855
+ #
1856
+ # @example Response structure
1857
+ #
1858
+ # resp.resource_policy.policy_name #=> String
1859
+ # resp.resource_policy.policy_document #=> String
1860
+ # resp.resource_policy.policy_revision_id #=> String
1861
+ # resp.resource_policy.last_updated_time #=> Time
1862
+ #
1863
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutResourcePolicy AWS API Documentation
1864
+ #
1865
+ # @overload put_resource_policy(params = {})
1866
+ # @param [Hash] params ({})
1867
+ def put_resource_policy(params = {}, options = {})
1868
+ req = build_request(:put_resource_policy, params)
1869
+ req.send_request(options)
1870
+ end
1871
+
1735
1872
  # Used by the Amazon Web Services X-Ray daemon to upload telemetry.
1736
1873
  #
1737
1874
  # @option params [required, Array<Types::TelemetryRecord>] :telemetry_records
@@ -1962,7 +2099,7 @@ module Aws::XRay
1962
2099
  # * The InsightsEnabled boolean can be set to true to enable insights
1963
2100
  # for the group or false to disable insights for the group.
1964
2101
  #
1965
- # * The NotifcationsEnabled boolean can be set to true to enable
2102
+ # * The NotificationsEnabled boolean can be set to true to enable
1966
2103
  # insights notifications for the group. Notifications can only be
1967
2104
  # enabled on a group with InsightsEnabled set to true.
1968
2105
  #
@@ -2070,7 +2207,7 @@ module Aws::XRay
2070
2207
  params: params,
2071
2208
  config: config)
2072
2209
  context[:gem_name] = 'aws-sdk-xray'
2073
- context[:gem_version] = '1.49.0'
2210
+ context[:gem_version] = '1.51.0'
2074
2211
  Seahorse::Client::Request.new(handlers, context)
2075
2212
  end
2076
2213
 
@@ -38,6 +38,8 @@ module Aws::XRay
38
38
  CreateSamplingRuleResult = Shapes::StructureShape.new(name: 'CreateSamplingRuleResult')
39
39
  DeleteGroupRequest = Shapes::StructureShape.new(name: 'DeleteGroupRequest')
40
40
  DeleteGroupResult = Shapes::StructureShape.new(name: 'DeleteGroupResult')
41
+ DeleteResourcePolicyRequest = Shapes::StructureShape.new(name: 'DeleteResourcePolicyRequest')
42
+ DeleteResourcePolicyResult = Shapes::StructureShape.new(name: 'DeleteResourcePolicyResult')
41
43
  DeleteSamplingRuleRequest = Shapes::StructureShape.new(name: 'DeleteSamplingRuleRequest')
42
44
  DeleteSamplingRuleResult = Shapes::StructureShape.new(name: 'DeleteSamplingRuleResult')
43
45
  Double = Shapes::FloatShape.new(name: 'Double')
@@ -129,16 +131,28 @@ module Aws::XRay
129
131
  InsightsConfiguration = Shapes::StructureShape.new(name: 'InsightsConfiguration')
130
132
  InstanceIdDetail = Shapes::StructureShape.new(name: 'InstanceIdDetail')
131
133
  Integer = Shapes::IntegerShape.new(name: 'Integer')
134
+ InvalidPolicyRevisionIdException = Shapes::StructureShape.new(name: 'InvalidPolicyRevisionIdException')
132
135
  InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
136
+ ListResourcePoliciesRequest = Shapes::StructureShape.new(name: 'ListResourcePoliciesRequest')
137
+ ListResourcePoliciesResult = Shapes::StructureShape.new(name: 'ListResourcePoliciesResult')
133
138
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
134
139
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
140
+ LockoutPreventionException = Shapes::StructureShape.new(name: 'LockoutPreventionException')
141
+ MalformedPolicyDocumentException = Shapes::StructureShape.new(name: 'MalformedPolicyDocumentException')
135
142
  NullableBoolean = Shapes::BooleanShape.new(name: 'NullableBoolean')
136
143
  NullableDouble = Shapes::FloatShape.new(name: 'NullableDouble')
137
144
  NullableInteger = Shapes::IntegerShape.new(name: 'NullableInteger')
138
145
  NullableLong = Shapes::IntegerShape.new(name: 'NullableLong')
146
+ PolicyCountLimitExceededException = Shapes::StructureShape.new(name: 'PolicyCountLimitExceededException')
147
+ PolicyDocument = Shapes::StringShape.new(name: 'PolicyDocument')
148
+ PolicyName = Shapes::StringShape.new(name: 'PolicyName')
149
+ PolicyRevisionId = Shapes::StringShape.new(name: 'PolicyRevisionId')
150
+ PolicySizeLimitExceededException = Shapes::StructureShape.new(name: 'PolicySizeLimitExceededException')
139
151
  Priority = Shapes::IntegerShape.new(name: 'Priority')
140
152
  PutEncryptionConfigRequest = Shapes::StructureShape.new(name: 'PutEncryptionConfigRequest')
141
153
  PutEncryptionConfigResult = Shapes::StructureShape.new(name: 'PutEncryptionConfigResult')
154
+ PutResourcePolicyRequest = Shapes::StructureShape.new(name: 'PutResourcePolicyRequest')
155
+ PutResourcePolicyResult = Shapes::StructureShape.new(name: 'PutResourcePolicyResult')
142
156
  PutTelemetryRecordsRequest = Shapes::StructureShape.new(name: 'PutTelemetryRecordsRequest')
143
157
  PutTelemetryRecordsResult = Shapes::StructureShape.new(name: 'PutTelemetryRecordsResult')
144
158
  PutTraceSegmentsRequest = Shapes::StructureShape.new(name: 'PutTraceSegmentsRequest')
@@ -149,6 +163,9 @@ module Aws::XRay
149
163
  ResourceARN = Shapes::StringShape.new(name: 'ResourceARN')
150
164
  ResourceARNDetail = Shapes::StructureShape.new(name: 'ResourceARNDetail')
151
165
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
166
+ ResourcePolicy = Shapes::StructureShape.new(name: 'ResourcePolicy')
167
+ ResourcePolicyList = Shapes::ListShape.new(name: 'ResourcePolicyList')
168
+ ResourcePolicyNextToken = Shapes::StringShape.new(name: 'ResourcePolicyNextToken')
152
169
  ResponseTimeRootCause = Shapes::StructureShape.new(name: 'ResponseTimeRootCause')
153
170
  ResponseTimeRootCauseEntity = Shapes::StructureShape.new(name: 'ResponseTimeRootCauseEntity')
154
171
  ResponseTimeRootCauseEntityPath = Shapes::ListShape.new(name: 'ResponseTimeRootCauseEntityPath')
@@ -297,6 +314,12 @@ module Aws::XRay
297
314
 
298
315
  DeleteGroupResult.struct_class = Types::DeleteGroupResult
299
316
 
317
+ DeleteResourcePolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, required: true, location_name: "PolicyName"))
318
+ DeleteResourcePolicyRequest.add_member(:policy_revision_id, Shapes::ShapeRef.new(shape: PolicyRevisionId, location_name: "PolicyRevisionId"))
319
+ DeleteResourcePolicyRequest.struct_class = Types::DeleteResourcePolicyRequest
320
+
321
+ DeleteResourcePolicyResult.struct_class = Types::DeleteResourcePolicyResult
322
+
300
323
  DeleteSamplingRuleRequest.add_member(:rule_name, Shapes::ShapeRef.new(shape: String, location_name: "RuleName"))
301
324
  DeleteSamplingRuleRequest.add_member(:rule_arn, Shapes::ShapeRef.new(shape: String, location_name: "RuleARN"))
302
325
  DeleteSamplingRuleRequest.struct_class = Types::DeleteSamplingRuleRequest
@@ -616,9 +639,19 @@ module Aws::XRay
616
639
  InstanceIdDetail.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
617
640
  InstanceIdDetail.struct_class = Types::InstanceIdDetail
618
641
 
642
+ InvalidPolicyRevisionIdException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
643
+ InvalidPolicyRevisionIdException.struct_class = Types::InvalidPolicyRevisionIdException
644
+
619
645
  InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
620
646
  InvalidRequestException.struct_class = Types::InvalidRequestException
621
647
 
648
+ ListResourcePoliciesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: ResourcePolicyNextToken, location_name: "NextToken"))
649
+ ListResourcePoliciesRequest.struct_class = Types::ListResourcePoliciesRequest
650
+
651
+ ListResourcePoliciesResult.add_member(:resource_policies, Shapes::ShapeRef.new(shape: ResourcePolicyList, location_name: "ResourcePolicies"))
652
+ ListResourcePoliciesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: ResourcePolicyNextToken, location_name: "NextToken"))
653
+ ListResourcePoliciesResult.struct_class = Types::ListResourcePoliciesResult
654
+
622
655
  ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
623
656
  ListTagsForResourceRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
624
657
  ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
@@ -627,6 +660,18 @@ module Aws::XRay
627
660
  ListTagsForResourceResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
628
661
  ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
629
662
 
663
+ LockoutPreventionException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
664
+ LockoutPreventionException.struct_class = Types::LockoutPreventionException
665
+
666
+ MalformedPolicyDocumentException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
667
+ MalformedPolicyDocumentException.struct_class = Types::MalformedPolicyDocumentException
668
+
669
+ PolicyCountLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
670
+ PolicyCountLimitExceededException.struct_class = Types::PolicyCountLimitExceededException
671
+
672
+ PolicySizeLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
673
+ PolicySizeLimitExceededException.struct_class = Types::PolicySizeLimitExceededException
674
+
630
675
  PutEncryptionConfigRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: EncryptionKeyId, location_name: "KeyId"))
631
676
  PutEncryptionConfigRequest.add_member(:type, Shapes::ShapeRef.new(shape: EncryptionType, required: true, location_name: "Type"))
632
677
  PutEncryptionConfigRequest.struct_class = Types::PutEncryptionConfigRequest
@@ -634,6 +679,15 @@ module Aws::XRay
634
679
  PutEncryptionConfigResult.add_member(:encryption_config, Shapes::ShapeRef.new(shape: EncryptionConfig, location_name: "EncryptionConfig"))
635
680
  PutEncryptionConfigResult.struct_class = Types::PutEncryptionConfigResult
636
681
 
682
+ PutResourcePolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, required: true, location_name: "PolicyName"))
683
+ PutResourcePolicyRequest.add_member(:policy_document, Shapes::ShapeRef.new(shape: PolicyDocument, required: true, location_name: "PolicyDocument"))
684
+ PutResourcePolicyRequest.add_member(:policy_revision_id, Shapes::ShapeRef.new(shape: PolicyRevisionId, location_name: "PolicyRevisionId"))
685
+ PutResourcePolicyRequest.add_member(:bypass_policy_lockout_check, Shapes::ShapeRef.new(shape: Boolean, location_name: "BypassPolicyLockoutCheck"))
686
+ PutResourcePolicyRequest.struct_class = Types::PutResourcePolicyRequest
687
+
688
+ PutResourcePolicyResult.add_member(:resource_policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "ResourcePolicy"))
689
+ PutResourcePolicyResult.struct_class = Types::PutResourcePolicyResult
690
+
637
691
  PutTelemetryRecordsRequest.add_member(:telemetry_records, Shapes::ShapeRef.new(shape: TelemetryRecordList, required: true, location_name: "TelemetryRecords"))
638
692
  PutTelemetryRecordsRequest.add_member(:ec2_instance_id, Shapes::ShapeRef.new(shape: EC2InstanceId, location_name: "EC2InstanceId"))
639
693
  PutTelemetryRecordsRequest.add_member(:hostname, Shapes::ShapeRef.new(shape: Hostname, location_name: "Hostname"))
@@ -660,6 +714,14 @@ module Aws::XRay
660
714
  ResourceNotFoundException.add_member(:resource_name, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ResourceName"))
661
715
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
662
716
 
717
+ ResourcePolicy.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, location_name: "PolicyName"))
718
+ ResourcePolicy.add_member(:policy_document, Shapes::ShapeRef.new(shape: PolicyDocument, location_name: "PolicyDocument"))
719
+ ResourcePolicy.add_member(:policy_revision_id, Shapes::ShapeRef.new(shape: PolicyRevisionId, location_name: "PolicyRevisionId"))
720
+ ResourcePolicy.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdatedTime"))
721
+ ResourcePolicy.struct_class = Types::ResourcePolicy
722
+
723
+ ResourcePolicyList.member = Shapes::ShapeRef.new(shape: ResourcePolicy)
724
+
663
725
  ResponseTimeRootCause.add_member(:services, Shapes::ShapeRef.new(shape: ResponseTimeRootCauseServices, location_name: "Services"))
664
726
  ResponseTimeRootCause.add_member(:client_impacting, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "ClientImpacting"))
665
727
  ResponseTimeRootCause.struct_class = Types::ResponseTimeRootCause
@@ -993,6 +1055,17 @@ module Aws::XRay
993
1055
  o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
994
1056
  end)
995
1057
 
1058
+ api.add_operation(:delete_resource_policy, Seahorse::Model::Operation.new.tap do |o|
1059
+ o.name = "DeleteResourcePolicy"
1060
+ o.http_method = "POST"
1061
+ o.http_request_uri = "/DeleteResourcePolicy"
1062
+ o.input = Shapes::ShapeRef.new(shape: DeleteResourcePolicyRequest)
1063
+ o.output = Shapes::ShapeRef.new(shape: DeleteResourcePolicyResult)
1064
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1065
+ o.errors << Shapes::ShapeRef.new(shape: InvalidPolicyRevisionIdException)
1066
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
1067
+ end)
1068
+
996
1069
  api.add_operation(:delete_sampling_rule, Seahorse::Model::Operation.new.tap do |o|
997
1070
  o.name = "DeleteSamplingRule"
998
1071
  o.http_method = "POST"
@@ -1190,6 +1263,21 @@ module Aws::XRay
1190
1263
  )
1191
1264
  end)
1192
1265
 
1266
+ api.add_operation(:list_resource_policies, Seahorse::Model::Operation.new.tap do |o|
1267
+ o.name = "ListResourcePolicies"
1268
+ o.http_method = "POST"
1269
+ o.http_request_uri = "/ListResourcePolicies"
1270
+ o.input = Shapes::ShapeRef.new(shape: ListResourcePoliciesRequest)
1271
+ o.output = Shapes::ShapeRef.new(shape: ListResourcePoliciesResult)
1272
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1273
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
1274
+ o[:pager] = Aws::Pager.new(
1275
+ tokens: {
1276
+ "next_token" => "next_token"
1277
+ }
1278
+ )
1279
+ end)
1280
+
1193
1281
  api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
1194
1282
  o.name = "ListTagsForResource"
1195
1283
  o.http_method = "POST"
@@ -1199,6 +1287,11 @@ module Aws::XRay
1199
1287
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1200
1288
  o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
1201
1289
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1290
+ o[:pager] = Aws::Pager.new(
1291
+ tokens: {
1292
+ "next_token" => "next_token"
1293
+ }
1294
+ )
1202
1295
  end)
1203
1296
 
1204
1297
  api.add_operation(:put_encryption_config, Seahorse::Model::Operation.new.tap do |o|
@@ -1211,6 +1304,20 @@ module Aws::XRay
1211
1304
  o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
1212
1305
  end)
1213
1306
 
1307
+ api.add_operation(:put_resource_policy, Seahorse::Model::Operation.new.tap do |o|
1308
+ o.name = "PutResourcePolicy"
1309
+ o.http_method = "POST"
1310
+ o.http_request_uri = "/PutResourcePolicy"
1311
+ o.input = Shapes::ShapeRef.new(shape: PutResourcePolicyRequest)
1312
+ o.output = Shapes::ShapeRef.new(shape: PutResourcePolicyResult)
1313
+ o.errors << Shapes::ShapeRef.new(shape: MalformedPolicyDocumentException)
1314
+ o.errors << Shapes::ShapeRef.new(shape: LockoutPreventionException)
1315
+ o.errors << Shapes::ShapeRef.new(shape: InvalidPolicyRevisionIdException)
1316
+ o.errors << Shapes::ShapeRef.new(shape: PolicySizeLimitExceededException)
1317
+ o.errors << Shapes::ShapeRef.new(shape: PolicyCountLimitExceededException)
1318
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
1319
+ end)
1320
+
1214
1321
  api.add_operation(:put_telemetry_records, Seahorse::Model::Operation.new.tap do |o|
1215
1322
  o.name = "PutTelemetryRecords"
1216
1323
  o.http_method = "POST"
@@ -9,103 +9,43 @@
9
9
 
10
10
  module Aws::XRay
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://xray-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://xray-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://xray.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://xray.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
- cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
- dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
36
- ZGVmYXVsdCI6ZmFsc2UsImRvY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CBidXQgdGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qgc3VwcG9ydCBEdWFsU3Rh
104
- Y2siLCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6W10sImVuZHBv
105
- aW50Ijp7InVybCI6Imh0dHBzOi8veHJheS57UmVnaW9ufS57UGFydGl0aW9u
106
- UmVzdWx0I2Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6
107
- e319LCJ0eXBlIjoiZW5kcG9pbnQifV19XX0=
108
-
109
- JSON
110
50
  end
111
51
  end
@@ -67,6 +67,20 @@ module Aws::XRay
67
67
  end
68
68
  end
69
69
 
70
+ class DeleteResourcePolicy
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::XRay::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
70
84
  class DeleteSamplingRule
71
85
  def self.build(context)
72
86
  unless context.config.regional_endpoint
@@ -277,6 +291,20 @@ module Aws::XRay
277
291
  end
278
292
  end
279
293
 
294
+ class ListResourcePolicies
295
+ def self.build(context)
296
+ unless context.config.regional_endpoint
297
+ endpoint = context.config.endpoint.to_s
298
+ end
299
+ Aws::XRay::EndpointParameters.new(
300
+ region: context.config.region,
301
+ use_dual_stack: context.config.use_dualstack_endpoint,
302
+ use_fips: context.config.use_fips_endpoint,
303
+ endpoint: endpoint,
304
+ )
305
+ end
306
+ end
307
+
280
308
  class ListTagsForResource
281
309
  def self.build(context)
282
310
  unless context.config.regional_endpoint
@@ -305,6 +333,20 @@ module Aws::XRay
305
333
  end
306
334
  end
307
335
 
336
+ class PutResourcePolicy
337
+ def self.build(context)
338
+ unless context.config.regional_endpoint
339
+ endpoint = context.config.endpoint.to_s
340
+ end
341
+ Aws::XRay::EndpointParameters.new(
342
+ region: context.config.region,
343
+ use_dual_stack: context.config.use_dualstack_endpoint,
344
+ use_fips: context.config.use_fips_endpoint,
345
+ endpoint: endpoint,
346
+ )
347
+ end
348
+ end
349
+
308
350
  class PutTelemetryRecords
309
351
  def self.build(context)
310
352
  unless context.config.regional_endpoint