aws-sdk-xray 1.48.0 → 1.50.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-xray/client.rb +148 -3
- data/lib/aws-sdk-xray/client_api.rb +109 -0
- data/lib/aws-sdk-xray/endpoints.rb +42 -0
- data/lib/aws-sdk-xray/errors.rb +80 -0
- data/lib/aws-sdk-xray/plugins/endpoints.rb +6 -0
- data/lib/aws-sdk-xray/types.rb +267 -8
- data/lib/aws-sdk-xray.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f614c8fff6ba223e72272efa8bb0819ffe99cf4a6c1a94d83590ac2339a51a94
|
4
|
+
data.tar.gz: 8a1e4080ab68b6817c1ff43352551686b37881993139c3d7e33aa2d563bb2cd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: debb6bc27d1a39829fd77f7de2cf13a1d4d5ef2c7ad893ce4e1df79bb55250e8e50eb92494adc88ef93b14bad066a59b600ac869771da433e275bf2ed2383d5d
|
7
|
+
data.tar.gz: e4ae1a41b33b3797546a38a5dcf9aaffb2b07359e191c55ad498998c279c72e89dbf3e2823c8c3e0eaf25389e06751fc69872d6a60e250f39cee941876727a25
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.50.0 (2022-11-16)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds new APIs - PutResourcePolicy, DeleteResourcePolicy, ListResourcePolicies for supporting resource based policies for AWS X-Ray.
|
8
|
+
|
9
|
+
1.49.0 (2022-11-14)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release enhances GetServiceGraph API to support new type of edge to represent links between SQS and Lambda in event-driven applications.
|
13
|
+
|
4
14
|
1.48.0 (2022-10-25)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.50.0
|
data/lib/aws-sdk-xray/client.rb
CHANGED
@@ -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
|
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
|
@@ -1259,6 +1288,10 @@ module Aws::XRay
|
|
1259
1288
|
# resp.services[0].edges[0].aliases[0].names #=> Array
|
1260
1289
|
# resp.services[0].edges[0].aliases[0].names[0] #=> String
|
1261
1290
|
# resp.services[0].edges[0].aliases[0].type #=> String
|
1291
|
+
# resp.services[0].edges[0].edge_type #=> String
|
1292
|
+
# resp.services[0].edges[0].received_event_age_histogram #=> Array
|
1293
|
+
# resp.services[0].edges[0].received_event_age_histogram[0].value #=> Float
|
1294
|
+
# resp.services[0].edges[0].received_event_age_histogram[0].count #=> Integer
|
1262
1295
|
# resp.services[0].summary_statistics.ok_count #=> Integer
|
1263
1296
|
# resp.services[0].summary_statistics.error_statistics.throttle_count #=> Integer
|
1264
1297
|
# resp.services[0].summary_statistics.error_statistics.other_count #=> Integer
|
@@ -1430,6 +1463,10 @@ module Aws::XRay
|
|
1430
1463
|
# resp.services[0].edges[0].aliases[0].names #=> Array
|
1431
1464
|
# resp.services[0].edges[0].aliases[0].names[0] #=> String
|
1432
1465
|
# resp.services[0].edges[0].aliases[0].type #=> String
|
1466
|
+
# resp.services[0].edges[0].edge_type #=> String
|
1467
|
+
# resp.services[0].edges[0].received_event_age_histogram #=> Array
|
1468
|
+
# resp.services[0].edges[0].received_event_age_histogram[0].value #=> Float
|
1469
|
+
# resp.services[0].edges[0].received_event_age_histogram[0].count #=> Integer
|
1433
1470
|
# resp.services[0].summary_statistics.ok_count #=> Integer
|
1434
1471
|
# resp.services[0].summary_statistics.error_statistics.throttle_count #=> Integer
|
1435
1472
|
# resp.services[0].summary_statistics.error_statistics.other_count #=> Integer
|
@@ -1637,6 +1674,43 @@ module Aws::XRay
|
|
1637
1674
|
req.send_request(options)
|
1638
1675
|
end
|
1639
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
|
+
|
1640
1714
|
# Returns a list of tags that are applied to the specified Amazon Web
|
1641
1715
|
# Services X-Ray group or sampling rule.
|
1642
1716
|
#
|
@@ -1653,6 +1727,8 @@ module Aws::XRay
|
|
1653
1727
|
# * {Types::ListTagsForResourceResponse#tags #tags} => Array<Types::Tag>
|
1654
1728
|
# * {Types::ListTagsForResourceResponse#next_token #next_token} => String
|
1655
1729
|
#
|
1730
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1731
|
+
#
|
1656
1732
|
# @example Request syntax with placeholder values
|
1657
1733
|
#
|
1658
1734
|
# resp = client.list_tags_for_resource({
|
@@ -1724,6 +1800,75 @@ module Aws::XRay
|
|
1724
1800
|
req.send_request(options)
|
1725
1801
|
end
|
1726
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
|
+
|
1727
1872
|
# Used by the Amazon Web Services X-Ray daemon to upload telemetry.
|
1728
1873
|
#
|
1729
1874
|
# @option params [required, Array<Types::TelemetryRecord>] :telemetry_records
|
@@ -1954,7 +2099,7 @@ module Aws::XRay
|
|
1954
2099
|
# * The InsightsEnabled boolean can be set to true to enable insights
|
1955
2100
|
# for the group or false to disable insights for the group.
|
1956
2101
|
#
|
1957
|
-
# * The
|
2102
|
+
# * The NotificationsEnabled boolean can be set to true to enable
|
1958
2103
|
# insights notifications for the group. Notifications can only be
|
1959
2104
|
# enabled on a group with InsightsEnabled set to true.
|
1960
2105
|
#
|
@@ -2062,7 +2207,7 @@ module Aws::XRay
|
|
2062
2207
|
params: params,
|
2063
2208
|
config: config)
|
2064
2209
|
context[:gem_name] = 'aws-sdk-xray'
|
2065
|
-
context[:gem_version] = '1.
|
2210
|
+
context[:gem_version] = '1.50.0'
|
2066
2211
|
Seahorse::Client::Request.new(handlers, context)
|
2067
2212
|
end
|
2068
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
|
@@ -310,6 +333,8 @@ module Aws::XRay
|
|
310
333
|
Edge.add_member(:summary_statistics, Shapes::ShapeRef.new(shape: EdgeStatistics, location_name: "SummaryStatistics"))
|
311
334
|
Edge.add_member(:response_time_histogram, Shapes::ShapeRef.new(shape: Histogram, location_name: "ResponseTimeHistogram"))
|
312
335
|
Edge.add_member(:aliases, Shapes::ShapeRef.new(shape: AliasList, location_name: "Aliases"))
|
336
|
+
Edge.add_member(:edge_type, Shapes::ShapeRef.new(shape: String, location_name: "EdgeType"))
|
337
|
+
Edge.add_member(:received_event_age_histogram, Shapes::ShapeRef.new(shape: Histogram, location_name: "ReceivedEventAgeHistogram"))
|
313
338
|
Edge.struct_class = Types::Edge
|
314
339
|
|
315
340
|
EdgeList.member = Shapes::ShapeRef.new(shape: Edge)
|
@@ -614,9 +639,19 @@ module Aws::XRay
|
|
614
639
|
InstanceIdDetail.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
|
615
640
|
InstanceIdDetail.struct_class = Types::InstanceIdDetail
|
616
641
|
|
642
|
+
InvalidPolicyRevisionIdException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
643
|
+
InvalidPolicyRevisionIdException.struct_class = Types::InvalidPolicyRevisionIdException
|
644
|
+
|
617
645
|
InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
618
646
|
InvalidRequestException.struct_class = Types::InvalidRequestException
|
619
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
|
+
|
620
655
|
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
621
656
|
ListTagsForResourceRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
622
657
|
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
@@ -625,6 +660,18 @@ module Aws::XRay
|
|
625
660
|
ListTagsForResourceResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
626
661
|
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
627
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
|
+
|
628
675
|
PutEncryptionConfigRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: EncryptionKeyId, location_name: "KeyId"))
|
629
676
|
PutEncryptionConfigRequest.add_member(:type, Shapes::ShapeRef.new(shape: EncryptionType, required: true, location_name: "Type"))
|
630
677
|
PutEncryptionConfigRequest.struct_class = Types::PutEncryptionConfigRequest
|
@@ -632,6 +679,15 @@ module Aws::XRay
|
|
632
679
|
PutEncryptionConfigResult.add_member(:encryption_config, Shapes::ShapeRef.new(shape: EncryptionConfig, location_name: "EncryptionConfig"))
|
633
680
|
PutEncryptionConfigResult.struct_class = Types::PutEncryptionConfigResult
|
634
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
|
+
|
635
691
|
PutTelemetryRecordsRequest.add_member(:telemetry_records, Shapes::ShapeRef.new(shape: TelemetryRecordList, required: true, location_name: "TelemetryRecords"))
|
636
692
|
PutTelemetryRecordsRequest.add_member(:ec2_instance_id, Shapes::ShapeRef.new(shape: EC2InstanceId, location_name: "EC2InstanceId"))
|
637
693
|
PutTelemetryRecordsRequest.add_member(:hostname, Shapes::ShapeRef.new(shape: Hostname, location_name: "Hostname"))
|
@@ -658,6 +714,14 @@ module Aws::XRay
|
|
658
714
|
ResourceNotFoundException.add_member(:resource_name, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ResourceName"))
|
659
715
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
660
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
|
+
|
661
725
|
ResponseTimeRootCause.add_member(:services, Shapes::ShapeRef.new(shape: ResponseTimeRootCauseServices, location_name: "Services"))
|
662
726
|
ResponseTimeRootCause.add_member(:client_impacting, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "ClientImpacting"))
|
663
727
|
ResponseTimeRootCause.struct_class = Types::ResponseTimeRootCause
|
@@ -991,6 +1055,17 @@ module Aws::XRay
|
|
991
1055
|
o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
|
992
1056
|
end)
|
993
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
|
+
|
994
1069
|
api.add_operation(:delete_sampling_rule, Seahorse::Model::Operation.new.tap do |o|
|
995
1070
|
o.name = "DeleteSamplingRule"
|
996
1071
|
o.http_method = "POST"
|
@@ -1188,6 +1263,21 @@ module Aws::XRay
|
|
1188
1263
|
)
|
1189
1264
|
end)
|
1190
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
|
+
|
1191
1281
|
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
1192
1282
|
o.name = "ListTagsForResource"
|
1193
1283
|
o.http_method = "POST"
|
@@ -1197,6 +1287,11 @@ module Aws::XRay
|
|
1197
1287
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
1198
1288
|
o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
|
1199
1289
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1290
|
+
o[:pager] = Aws::Pager.new(
|
1291
|
+
tokens: {
|
1292
|
+
"next_token" => "next_token"
|
1293
|
+
}
|
1294
|
+
)
|
1200
1295
|
end)
|
1201
1296
|
|
1202
1297
|
api.add_operation(:put_encryption_config, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1209,6 +1304,20 @@ module Aws::XRay
|
|
1209
1304
|
o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
|
1210
1305
|
end)
|
1211
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
|
+
|
1212
1321
|
api.add_operation(:put_telemetry_records, Seahorse::Model::Operation.new.tap do |o|
|
1213
1322
|
o.name = "PutTelemetryRecords"
|
1214
1323
|
o.http_method = "POST"
|
@@ -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
|
data/lib/aws-sdk-xray/errors.rb
CHANGED
@@ -27,7 +27,12 @@ module Aws::XRay
|
|
27
27
|
# See {Seahorse::Client::RequestContext} for more information.
|
28
28
|
#
|
29
29
|
# ## Error Classes
|
30
|
+
# * {InvalidPolicyRevisionIdException}
|
30
31
|
# * {InvalidRequestException}
|
32
|
+
# * {LockoutPreventionException}
|
33
|
+
# * {MalformedPolicyDocumentException}
|
34
|
+
# * {PolicyCountLimitExceededException}
|
35
|
+
# * {PolicySizeLimitExceededException}
|
31
36
|
# * {ResourceNotFoundException}
|
32
37
|
# * {RuleLimitExceededException}
|
33
38
|
# * {ThrottledException}
|
@@ -39,6 +44,21 @@ module Aws::XRay
|
|
39
44
|
|
40
45
|
extend Aws::Errors::DynamicErrors
|
41
46
|
|
47
|
+
class InvalidPolicyRevisionIdException < ServiceError
|
48
|
+
|
49
|
+
# @param [Seahorse::Client::RequestContext] context
|
50
|
+
# @param [String] message
|
51
|
+
# @param [Aws::XRay::Types::InvalidPolicyRevisionIdException] data
|
52
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
53
|
+
super(context, message, data)
|
54
|
+
end
|
55
|
+
|
56
|
+
# @return [String]
|
57
|
+
def message
|
58
|
+
@message || @data[:message]
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
42
62
|
class InvalidRequestException < ServiceError
|
43
63
|
|
44
64
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -54,6 +74,66 @@ module Aws::XRay
|
|
54
74
|
end
|
55
75
|
end
|
56
76
|
|
77
|
+
class LockoutPreventionException < ServiceError
|
78
|
+
|
79
|
+
# @param [Seahorse::Client::RequestContext] context
|
80
|
+
# @param [String] message
|
81
|
+
# @param [Aws::XRay::Types::LockoutPreventionException] data
|
82
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
83
|
+
super(context, message, data)
|
84
|
+
end
|
85
|
+
|
86
|
+
# @return [String]
|
87
|
+
def message
|
88
|
+
@message || @data[:message]
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
class MalformedPolicyDocumentException < ServiceError
|
93
|
+
|
94
|
+
# @param [Seahorse::Client::RequestContext] context
|
95
|
+
# @param [String] message
|
96
|
+
# @param [Aws::XRay::Types::MalformedPolicyDocumentException] data
|
97
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
98
|
+
super(context, message, data)
|
99
|
+
end
|
100
|
+
|
101
|
+
# @return [String]
|
102
|
+
def message
|
103
|
+
@message || @data[:message]
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
class PolicyCountLimitExceededException < ServiceError
|
108
|
+
|
109
|
+
# @param [Seahorse::Client::RequestContext] context
|
110
|
+
# @param [String] message
|
111
|
+
# @param [Aws::XRay::Types::PolicyCountLimitExceededException] 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
|
+
end
|
121
|
+
|
122
|
+
class PolicySizeLimitExceededException < ServiceError
|
123
|
+
|
124
|
+
# @param [Seahorse::Client::RequestContext] context
|
125
|
+
# @param [String] message
|
126
|
+
# @param [Aws::XRay::Types::PolicySizeLimitExceededException] data
|
127
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
128
|
+
super(context, message, data)
|
129
|
+
end
|
130
|
+
|
131
|
+
# @return [String]
|
132
|
+
def message
|
133
|
+
@message || @data[:message]
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
57
137
|
class ResourceNotFoundException < ServiceError
|
58
138
|
|
59
139
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -64,6 +64,8 @@ module Aws::XRay
|
|
64
64
|
Aws::XRay::Endpoints::CreateSamplingRule.build(context)
|
65
65
|
when :delete_group
|
66
66
|
Aws::XRay::Endpoints::DeleteGroup.build(context)
|
67
|
+
when :delete_resource_policy
|
68
|
+
Aws::XRay::Endpoints::DeleteResourcePolicy.build(context)
|
67
69
|
when :delete_sampling_rule
|
68
70
|
Aws::XRay::Endpoints::DeleteSamplingRule.build(context)
|
69
71
|
when :get_encryption_config
|
@@ -94,10 +96,14 @@ module Aws::XRay
|
|
94
96
|
Aws::XRay::Endpoints::GetTraceGraph.build(context)
|
95
97
|
when :get_trace_summaries
|
96
98
|
Aws::XRay::Endpoints::GetTraceSummaries.build(context)
|
99
|
+
when :list_resource_policies
|
100
|
+
Aws::XRay::Endpoints::ListResourcePolicies.build(context)
|
97
101
|
when :list_tags_for_resource
|
98
102
|
Aws::XRay::Endpoints::ListTagsForResource.build(context)
|
99
103
|
when :put_encryption_config
|
100
104
|
Aws::XRay::Endpoints::PutEncryptionConfig.build(context)
|
105
|
+
when :put_resource_policy
|
106
|
+
Aws::XRay::Endpoints::PutResourcePolicy.build(context)
|
101
107
|
when :put_telemetry_records
|
102
108
|
Aws::XRay::Endpoints::PutTelemetryRecords.build(context)
|
103
109
|
when :put_trace_segments
|
data/lib/aws-sdk-xray/types.rb
CHANGED
@@ -210,7 +210,7 @@ module Aws::XRay
|
|
210
210
|
# * The InsightsEnabled boolean can be set to true to enable insights
|
211
211
|
# for the new group or false to disable insights for the new group.
|
212
212
|
#
|
213
|
-
# * The
|
213
|
+
# * The NotificationsEnabled boolean can be set to true to enable
|
214
214
|
# insights notifications for the new group. Notifications may only
|
215
215
|
# be enabled on a group with InsightsEnabled set to true.
|
216
216
|
# @return [Types::InsightsConfiguration]
|
@@ -378,6 +378,38 @@ module Aws::XRay
|
|
378
378
|
#
|
379
379
|
class DeleteGroupResult < Aws::EmptyStructure; end
|
380
380
|
|
381
|
+
# @note When making an API call, you may pass DeleteResourcePolicyRequest
|
382
|
+
# data as a hash:
|
383
|
+
#
|
384
|
+
# {
|
385
|
+
# policy_name: "PolicyName", # required
|
386
|
+
# policy_revision_id: "PolicyRevisionId",
|
387
|
+
# }
|
388
|
+
#
|
389
|
+
# @!attribute [rw] policy_name
|
390
|
+
# The name of the resource policy to delete.
|
391
|
+
# @return [String]
|
392
|
+
#
|
393
|
+
# @!attribute [rw] policy_revision_id
|
394
|
+
# Specifies a specific policy revision to delete. Provide a
|
395
|
+
# `PolicyRevisionId` to ensure an atomic delete operation. If the
|
396
|
+
# provided revision id does not match the latest policy revision id,
|
397
|
+
# an `InvalidPolicyRevisionIdException` exception is returned.
|
398
|
+
# @return [String]
|
399
|
+
#
|
400
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/DeleteResourcePolicyRequest AWS API Documentation
|
401
|
+
#
|
402
|
+
class DeleteResourcePolicyRequest < Struct.new(
|
403
|
+
:policy_name,
|
404
|
+
:policy_revision_id)
|
405
|
+
SENSITIVE = []
|
406
|
+
include Aws::Structure
|
407
|
+
end
|
408
|
+
|
409
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/DeleteResourcePolicyResult AWS API Documentation
|
410
|
+
#
|
411
|
+
class DeleteResourcePolicyResult < Aws::EmptyStructure; end
|
412
|
+
|
381
413
|
# @note When making an API call, you may pass DeleteSamplingRuleRequest
|
382
414
|
# data as a hash:
|
383
415
|
#
|
@@ -417,7 +449,10 @@ module Aws::XRay
|
|
417
449
|
include Aws::Structure
|
418
450
|
end
|
419
451
|
|
420
|
-
# Information about a connection between two services.
|
452
|
+
# Information about a connection between two services. An edge can be a
|
453
|
+
# synchronous connection, such as typical call between client and
|
454
|
+
# service, or an asynchronous link, such as a Lambda function which
|
455
|
+
# retrieves an event from an SNS queue.
|
421
456
|
#
|
422
457
|
# @!attribute [rw] reference_id
|
423
458
|
# Identifier of the edge. Unique within a service map.
|
@@ -437,13 +472,23 @@ module Aws::XRay
|
|
437
472
|
#
|
438
473
|
# @!attribute [rw] response_time_histogram
|
439
474
|
# A histogram that maps the spread of client response times on an
|
440
|
-
# edge.
|
475
|
+
# edge. Only populated for synchronous edges.
|
441
476
|
# @return [Array<Types::HistogramEntry>]
|
442
477
|
#
|
443
478
|
# @!attribute [rw] aliases
|
444
479
|
# Aliases for the edge.
|
445
480
|
# @return [Array<Types::Alias>]
|
446
481
|
#
|
482
|
+
# @!attribute [rw] edge_type
|
483
|
+
# Describes an asynchronous connection, with a value of `link`.
|
484
|
+
# @return [String]
|
485
|
+
#
|
486
|
+
# @!attribute [rw] received_event_age_histogram
|
487
|
+
# A histogram that maps the spread of event age when received by
|
488
|
+
# consumers. Age is calculated each time an event is received. Only
|
489
|
+
# populated when *EdgeType* is `link`.
|
490
|
+
# @return [Array<Types::HistogramEntry>]
|
491
|
+
#
|
447
492
|
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/Edge AWS API Documentation
|
448
493
|
#
|
449
494
|
class Edge < Struct.new(
|
@@ -452,7 +497,9 @@ module Aws::XRay
|
|
452
497
|
:end_time,
|
453
498
|
:summary_statistics,
|
454
499
|
:response_time_histogram,
|
455
|
-
:aliases
|
500
|
+
:aliases,
|
501
|
+
:edge_type,
|
502
|
+
:received_event_age_histogram)
|
456
503
|
SENSITIVE = []
|
457
504
|
include Aws::Structure
|
458
505
|
end
|
@@ -1984,6 +2031,22 @@ module Aws::XRay
|
|
1984
2031
|
include Aws::Structure
|
1985
2032
|
end
|
1986
2033
|
|
2034
|
+
# A policy revision id was provided which does not match the latest
|
2035
|
+
# policy revision. This exception is also if a policy revision id of 0
|
2036
|
+
# is provided via `PutResourcePolicy` and a policy with the same name
|
2037
|
+
# already exists.
|
2038
|
+
#
|
2039
|
+
# @!attribute [rw] message
|
2040
|
+
# @return [String]
|
2041
|
+
#
|
2042
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/InvalidPolicyRevisionIdException AWS API Documentation
|
2043
|
+
#
|
2044
|
+
class InvalidPolicyRevisionIdException < Struct.new(
|
2045
|
+
:message)
|
2046
|
+
SENSITIVE = []
|
2047
|
+
include Aws::Structure
|
2048
|
+
end
|
2049
|
+
|
1987
2050
|
# The request is missing required parameters or has invalid parameters.
|
1988
2051
|
#
|
1989
2052
|
# @!attribute [rw] message
|
@@ -1997,6 +2060,43 @@ module Aws::XRay
|
|
1997
2060
|
include Aws::Structure
|
1998
2061
|
end
|
1999
2062
|
|
2063
|
+
# @note When making an API call, you may pass ListResourcePoliciesRequest
|
2064
|
+
# data as a hash:
|
2065
|
+
#
|
2066
|
+
# {
|
2067
|
+
# next_token: "ResourcePolicyNextToken",
|
2068
|
+
# }
|
2069
|
+
#
|
2070
|
+
# @!attribute [rw] next_token
|
2071
|
+
# Not currently supported.
|
2072
|
+
# @return [String]
|
2073
|
+
#
|
2074
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ListResourcePoliciesRequest AWS API Documentation
|
2075
|
+
#
|
2076
|
+
class ListResourcePoliciesRequest < Struct.new(
|
2077
|
+
:next_token)
|
2078
|
+
SENSITIVE = []
|
2079
|
+
include Aws::Structure
|
2080
|
+
end
|
2081
|
+
|
2082
|
+
# @!attribute [rw] resource_policies
|
2083
|
+
# The list of resource policies in the target Amazon Web Services
|
2084
|
+
# account.
|
2085
|
+
# @return [Array<Types::ResourcePolicy>]
|
2086
|
+
#
|
2087
|
+
# @!attribute [rw] next_token
|
2088
|
+
# Pagination token. Not currently supported.
|
2089
|
+
# @return [String]
|
2090
|
+
#
|
2091
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ListResourcePoliciesResult AWS API Documentation
|
2092
|
+
#
|
2093
|
+
class ListResourcePoliciesResult < Struct.new(
|
2094
|
+
:resource_policies,
|
2095
|
+
:next_token)
|
2096
|
+
SENSITIVE = []
|
2097
|
+
include Aws::Structure
|
2098
|
+
end
|
2099
|
+
|
2000
2100
|
# @note When making an API call, you may pass ListTagsForResourceRequest
|
2001
2101
|
# data as a hash:
|
2002
2102
|
#
|
@@ -2044,6 +2144,60 @@ module Aws::XRay
|
|
2044
2144
|
include Aws::Structure
|
2045
2145
|
end
|
2046
2146
|
|
2147
|
+
# The provided resource policy would prevent the caller of this request
|
2148
|
+
# from calling PutResourcePolicy in the future.
|
2149
|
+
#
|
2150
|
+
# @!attribute [rw] message
|
2151
|
+
# @return [String]
|
2152
|
+
#
|
2153
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/LockoutPreventionException AWS API Documentation
|
2154
|
+
#
|
2155
|
+
class LockoutPreventionException < Struct.new(
|
2156
|
+
:message)
|
2157
|
+
SENSITIVE = []
|
2158
|
+
include Aws::Structure
|
2159
|
+
end
|
2160
|
+
|
2161
|
+
# Invalid policy document provided in request.
|
2162
|
+
#
|
2163
|
+
# @!attribute [rw] message
|
2164
|
+
# @return [String]
|
2165
|
+
#
|
2166
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/MalformedPolicyDocumentException AWS API Documentation
|
2167
|
+
#
|
2168
|
+
class MalformedPolicyDocumentException < Struct.new(
|
2169
|
+
:message)
|
2170
|
+
SENSITIVE = []
|
2171
|
+
include Aws::Structure
|
2172
|
+
end
|
2173
|
+
|
2174
|
+
# Exceeded the maximum number of resource policies for a target Amazon
|
2175
|
+
# Web Services account.
|
2176
|
+
#
|
2177
|
+
# @!attribute [rw] message
|
2178
|
+
# @return [String]
|
2179
|
+
#
|
2180
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PolicyCountLimitExceededException AWS API Documentation
|
2181
|
+
#
|
2182
|
+
class PolicyCountLimitExceededException < Struct.new(
|
2183
|
+
:message)
|
2184
|
+
SENSITIVE = []
|
2185
|
+
include Aws::Structure
|
2186
|
+
end
|
2187
|
+
|
2188
|
+
# Exceeded the maximum size for a resource policy.
|
2189
|
+
#
|
2190
|
+
# @!attribute [rw] message
|
2191
|
+
# @return [String]
|
2192
|
+
#
|
2193
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PolicySizeLimitExceededException AWS API Documentation
|
2194
|
+
#
|
2195
|
+
class PolicySizeLimitExceededException < Struct.new(
|
2196
|
+
:message)
|
2197
|
+
SENSITIVE = []
|
2198
|
+
include Aws::Structure
|
2199
|
+
end
|
2200
|
+
|
2047
2201
|
# @note When making an API call, you may pass PutEncryptionConfigRequest
|
2048
2202
|
# data as a hash:
|
2049
2203
|
#
|
@@ -2095,6 +2249,78 @@ module Aws::XRay
|
|
2095
2249
|
include Aws::Structure
|
2096
2250
|
end
|
2097
2251
|
|
2252
|
+
# @note When making an API call, you may pass PutResourcePolicyRequest
|
2253
|
+
# data as a hash:
|
2254
|
+
#
|
2255
|
+
# {
|
2256
|
+
# policy_name: "PolicyName", # required
|
2257
|
+
# policy_document: "PolicyDocument", # required
|
2258
|
+
# policy_revision_id: "PolicyRevisionId",
|
2259
|
+
# bypass_policy_lockout_check: false,
|
2260
|
+
# }
|
2261
|
+
#
|
2262
|
+
# @!attribute [rw] policy_name
|
2263
|
+
# The name of the resource policy. Must be unique within a specific
|
2264
|
+
# Amazon Web Services account.
|
2265
|
+
# @return [String]
|
2266
|
+
#
|
2267
|
+
# @!attribute [rw] policy_document
|
2268
|
+
# The resource policy document, which can be up to 5kb in size.
|
2269
|
+
# @return [String]
|
2270
|
+
#
|
2271
|
+
# @!attribute [rw] policy_revision_id
|
2272
|
+
# Specifies a specific policy revision, to ensure an atomic create
|
2273
|
+
# operation. By default the resource policy is created if it does not
|
2274
|
+
# exist, or updated with an incremented revision id. The revision id
|
2275
|
+
# is unique to each policy in the account.
|
2276
|
+
#
|
2277
|
+
# If the policy revision id does not match the latest revision id, the
|
2278
|
+
# operation will fail with an `InvalidPolicyRevisionIdException`
|
2279
|
+
# exception. You can also provide a `PolicyRevisionId` of 0. In this
|
2280
|
+
# case, the operation will fail with an
|
2281
|
+
# `InvalidPolicyRevisionIdException` exception if a resource policy
|
2282
|
+
# with the same name already exists.
|
2283
|
+
# @return [String]
|
2284
|
+
#
|
2285
|
+
# @!attribute [rw] bypass_policy_lockout_check
|
2286
|
+
# A flag to indicate whether to bypass the resource policy lockout
|
2287
|
+
# safety check.
|
2288
|
+
#
|
2289
|
+
# Setting this value to true increases the risk that the policy
|
2290
|
+
# becomes unmanageable. Do not set this value to true
|
2291
|
+
# indiscriminately.
|
2292
|
+
#
|
2293
|
+
# Use this parameter only when you include a policy in the request and
|
2294
|
+
# you intend to prevent the principal that is making the request from
|
2295
|
+
# making a subsequent `PutResourcePolicy` request.
|
2296
|
+
#
|
2297
|
+
# The default value is false.
|
2298
|
+
# @return [Boolean]
|
2299
|
+
#
|
2300
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutResourcePolicyRequest AWS API Documentation
|
2301
|
+
#
|
2302
|
+
class PutResourcePolicyRequest < Struct.new(
|
2303
|
+
:policy_name,
|
2304
|
+
:policy_document,
|
2305
|
+
:policy_revision_id,
|
2306
|
+
:bypass_policy_lockout_check)
|
2307
|
+
SENSITIVE = []
|
2308
|
+
include Aws::Structure
|
2309
|
+
end
|
2310
|
+
|
2311
|
+
# @!attribute [rw] resource_policy
|
2312
|
+
# The resource policy document, as provided in the
|
2313
|
+
# `PutResourcePolicyRequest`.
|
2314
|
+
# @return [Types::ResourcePolicy]
|
2315
|
+
#
|
2316
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutResourcePolicyResult AWS API Documentation
|
2317
|
+
#
|
2318
|
+
class PutResourcePolicyResult < Struct.new(
|
2319
|
+
:resource_policy)
|
2320
|
+
SENSITIVE = []
|
2321
|
+
include Aws::Structure
|
2322
|
+
end
|
2323
|
+
|
2098
2324
|
# @note When making an API call, you may pass PutTelemetryRecordsRequest
|
2099
2325
|
# data as a hash:
|
2100
2326
|
#
|
@@ -2236,6 +2462,38 @@ module Aws::XRay
|
|
2236
2462
|
include Aws::Structure
|
2237
2463
|
end
|
2238
2464
|
|
2465
|
+
# A resource policy grants one or more Amazon Web Services services and
|
2466
|
+
# accounts permissions to access X-Ray. Each resource policy is
|
2467
|
+
# associated with a specific Amazon Web Services account.
|
2468
|
+
#
|
2469
|
+
# @!attribute [rw] policy_name
|
2470
|
+
# The name of the resource policy. Must be unique within a specific
|
2471
|
+
# Amazon Web Services account.
|
2472
|
+
# @return [String]
|
2473
|
+
#
|
2474
|
+
# @!attribute [rw] policy_document
|
2475
|
+
# The resource policy document, which can be up to 5kb in size.
|
2476
|
+
# @return [String]
|
2477
|
+
#
|
2478
|
+
# @!attribute [rw] policy_revision_id
|
2479
|
+
# Returns the current policy revision id for this policy name.
|
2480
|
+
# @return [String]
|
2481
|
+
#
|
2482
|
+
# @!attribute [rw] last_updated_time
|
2483
|
+
# When the policy was last updated, in Unix time seconds.
|
2484
|
+
# @return [Time]
|
2485
|
+
#
|
2486
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ResourcePolicy AWS API Documentation
|
2487
|
+
#
|
2488
|
+
class ResourcePolicy < Struct.new(
|
2489
|
+
:policy_name,
|
2490
|
+
:policy_document,
|
2491
|
+
:policy_revision_id,
|
2492
|
+
:last_updated_time)
|
2493
|
+
SENSITIVE = []
|
2494
|
+
include Aws::Structure
|
2495
|
+
end
|
2496
|
+
|
2239
2497
|
# The root cause information for a response time warning.
|
2240
2498
|
#
|
2241
2499
|
# @!attribute [rw] services
|
@@ -3166,9 +3424,10 @@ module Aws::XRay
|
|
3166
3424
|
# @return [Float]
|
3167
3425
|
#
|
3168
3426
|
# @!attribute [rw] limit_exceeded
|
3169
|
-
# LimitExceeded is set to true when the trace has exceeded
|
3170
|
-
#
|
3171
|
-
#
|
3427
|
+
# LimitExceeded is set to true when the trace has exceeded the `Trace
|
3428
|
+
# document size` limit. For more information about this limit and
|
3429
|
+
# other X-Ray limits and quotas, see [Amazon Web Services X-Ray
|
3430
|
+
# endpoints and quotas][1].
|
3172
3431
|
#
|
3173
3432
|
#
|
3174
3433
|
#
|
@@ -3446,7 +3705,7 @@ module Aws::XRay
|
|
3446
3705
|
# * The InsightsEnabled boolean can be set to true to enable insights
|
3447
3706
|
# for the group or false to disable insights for the group.
|
3448
3707
|
#
|
3449
|
-
# * The
|
3708
|
+
# * The NotificationsEnabled boolean can be set to true to enable
|
3450
3709
|
# insights notifications for the group. Notifications can only be
|
3451
3710
|
# enabled on a group with InsightsEnabled set to true.
|
3452
3711
|
# @return [Types::InsightsConfiguration]
|
data/lib/aws-sdk-xray.rb
CHANGED
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.
|
4
|
+
version: 1.50.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: 2022-
|
11
|
+
date: 2022-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|