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.
@@ -87,18 +87,6 @@ module Aws::XRay
87
87
  include Aws::Structure
88
88
  end
89
89
 
90
- # @note When making an API call, you may pass BackendConnectionErrors
91
- # data as a hash:
92
- #
93
- # {
94
- # timeout_count: 1,
95
- # connection_refused_count: 1,
96
- # http_code_4_xx_count: 1,
97
- # http_code_5_xx_count: 1,
98
- # unknown_host_count: 1,
99
- # other_count: 1,
100
- # }
101
- #
102
90
  # @!attribute [rw] timeout_count
103
91
  # @return [Integer]
104
92
  #
@@ -130,14 +118,6 @@ module Aws::XRay
130
118
  include Aws::Structure
131
119
  end
132
120
 
133
- # @note When making an API call, you may pass BatchGetTracesRequest
134
- # data as a hash:
135
- #
136
- # {
137
- # trace_ids: ["TraceId"], # required
138
- # next_token: "String",
139
- # }
140
- #
141
121
  # @!attribute [rw] trace_ids
142
122
  # Specify the trace IDs of requests for which to retrieve segments.
143
123
  # @return [Array<String>]
@@ -177,24 +157,6 @@ module Aws::XRay
177
157
  include Aws::Structure
178
158
  end
179
159
 
180
- # @note When making an API call, you may pass CreateGroupRequest
181
- # data as a hash:
182
- #
183
- # {
184
- # group_name: "GroupName", # required
185
- # filter_expression: "FilterExpression",
186
- # insights_configuration: {
187
- # insights_enabled: false,
188
- # notifications_enabled: false,
189
- # },
190
- # tags: [
191
- # {
192
- # key: "TagKey", # required
193
- # value: "TagValue", # required
194
- # },
195
- # ],
196
- # }
197
- #
198
160
  # @!attribute [rw] group_name
199
161
  # The case-sensitive name of the new group. Default is a reserved name
200
162
  # and names must be unique.
@@ -210,7 +172,7 @@ module Aws::XRay
210
172
  # * The InsightsEnabled boolean can be set to true to enable insights
211
173
  # for the new group or false to disable insights for the new group.
212
174
  #
213
- # * The NotifcationsEnabled boolean can be set to true to enable
175
+ # * The NotificationsEnabled boolean can be set to true to enable
214
176
  # insights notifications for the new group. Notifications may only
215
177
  # be enabled on a group with InsightsEnabled set to true.
216
178
  # @return [Types::InsightsConfiguration]
@@ -268,35 +230,6 @@ module Aws::XRay
268
230
  include Aws::Structure
269
231
  end
270
232
 
271
- # @note When making an API call, you may pass CreateSamplingRuleRequest
272
- # data as a hash:
273
- #
274
- # {
275
- # sampling_rule: { # required
276
- # rule_name: "RuleName",
277
- # rule_arn: "String",
278
- # resource_arn: "ResourceARN", # required
279
- # priority: 1, # required
280
- # fixed_rate: 1.0, # required
281
- # reservoir_size: 1, # required
282
- # service_name: "ServiceName", # required
283
- # service_type: "ServiceType", # required
284
- # host: "Host", # required
285
- # http_method: "HTTPMethod", # required
286
- # url_path: "URLPath", # required
287
- # version: 1, # required
288
- # attributes: {
289
- # "AttributeKey" => "AttributeValue",
290
- # },
291
- # },
292
- # tags: [
293
- # {
294
- # key: "TagKey", # required
295
- # value: "TagValue", # required
296
- # },
297
- # ],
298
- # }
299
- #
300
233
  # @!attribute [rw] sampling_rule
301
234
  # The rule definition.
302
235
  # @return [Types::SamplingRule]
@@ -349,14 +282,6 @@ module Aws::XRay
349
282
  include Aws::Structure
350
283
  end
351
284
 
352
- # @note When making an API call, you may pass DeleteGroupRequest
353
- # data as a hash:
354
- #
355
- # {
356
- # group_name: "GroupName",
357
- # group_arn: "GroupARN",
358
- # }
359
- #
360
285
  # @!attribute [rw] group_name
361
286
  # The case-sensitive name of the group.
362
287
  # @return [String]
@@ -378,14 +303,30 @@ module Aws::XRay
378
303
  #
379
304
  class DeleteGroupResult < Aws::EmptyStructure; end
380
305
 
381
- # @note When making an API call, you may pass DeleteSamplingRuleRequest
382
- # data as a hash:
306
+ # @!attribute [rw] policy_name
307
+ # The name of the resource policy to delete.
308
+ # @return [String]
383
309
  #
384
- # {
385
- # rule_name: "String",
386
- # rule_arn: "String",
387
- # }
310
+ # @!attribute [rw] policy_revision_id
311
+ # Specifies a specific policy revision to delete. Provide a
312
+ # `PolicyRevisionId` to ensure an atomic delete operation. If the
313
+ # provided revision id does not match the latest policy revision id,
314
+ # an `InvalidPolicyRevisionIdException` exception is returned.
315
+ # @return [String]
388
316
  #
317
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/DeleteResourcePolicyRequest AWS API Documentation
318
+ #
319
+ class DeleteResourcePolicyRequest < Struct.new(
320
+ :policy_name,
321
+ :policy_revision_id)
322
+ SENSITIVE = []
323
+ include Aws::Structure
324
+ end
325
+
326
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/DeleteResourcePolicyResult AWS API Documentation
327
+ #
328
+ class DeleteResourcePolicyResult < Aws::EmptyStructure; end
329
+
389
330
  # @!attribute [rw] rule_name
390
331
  # The name of the sampling rule. Specify a rule by either name or ARN,
391
332
  # but not both.
@@ -796,14 +737,6 @@ module Aws::XRay
796
737
  include Aws::Structure
797
738
  end
798
739
 
799
- # @note When making an API call, you may pass GetGroupRequest
800
- # data as a hash:
801
- #
802
- # {
803
- # group_name: "GroupName",
804
- # group_arn: "GroupARN",
805
- # }
806
- #
807
740
  # @!attribute [rw] group_name
808
741
  # The case-sensitive name of the group.
809
742
  # @return [String]
@@ -835,13 +768,6 @@ module Aws::XRay
835
768
  include Aws::Structure
836
769
  end
837
770
 
838
- # @note When making an API call, you may pass GetGroupsRequest
839
- # data as a hash:
840
- #
841
- # {
842
- # next_token: "GetGroupsNextToken",
843
- # }
844
- #
845
771
  # @!attribute [rw] next_token
846
772
  # Pagination token.
847
773
  # @return [String]
@@ -871,15 +797,6 @@ module Aws::XRay
871
797
  include Aws::Structure
872
798
  end
873
799
 
874
- # @note When making an API call, you may pass GetInsightEventsRequest
875
- # data as a hash:
876
- #
877
- # {
878
- # insight_id: "InsightId", # required
879
- # max_results: 1,
880
- # next_token: "Token",
881
- # }
882
- #
883
800
  # @!attribute [rw] insight_id
884
801
  # The insight's unique identifier. Use the GetInsightSummaries action
885
802
  # to retrieve an InsightId.
@@ -923,16 +840,6 @@ module Aws::XRay
923
840
  include Aws::Structure
924
841
  end
925
842
 
926
- # @note When making an API call, you may pass GetInsightImpactGraphRequest
927
- # data as a hash:
928
- #
929
- # {
930
- # insight_id: "InsightId", # required
931
- # start_time: Time.now, # required
932
- # end_time: Time.now, # required
933
- # next_token: "Token",
934
- # }
935
- #
936
843
  # @!attribute [rw] insight_id
937
844
  # The insight's unique identifier. Use the GetInsightSummaries action
938
845
  # to retrieve an InsightId.
@@ -1009,13 +916,6 @@ module Aws::XRay
1009
916
  include Aws::Structure
1010
917
  end
1011
918
 
1012
- # @note When making an API call, you may pass GetInsightRequest
1013
- # data as a hash:
1014
- #
1015
- # {
1016
- # insight_id: "InsightId", # required
1017
- # }
1018
- #
1019
919
  # @!attribute [rw] insight_id
1020
920
  # The insight's unique identifier. Use the GetInsightSummaries action
1021
921
  # to retrieve an InsightId.
@@ -1041,19 +941,6 @@ module Aws::XRay
1041
941
  include Aws::Structure
1042
942
  end
1043
943
 
1044
- # @note When making an API call, you may pass GetInsightSummariesRequest
1045
- # data as a hash:
1046
- #
1047
- # {
1048
- # states: ["ACTIVE"], # accepts ACTIVE, CLOSED
1049
- # group_arn: "GroupARN",
1050
- # group_name: "GroupName",
1051
- # start_time: Time.now, # required
1052
- # end_time: Time.now, # required
1053
- # max_results: 1,
1054
- # next_token: "Token",
1055
- # }
1056
- #
1057
944
  # @!attribute [rw] states
1058
945
  # The list of insight states.
1059
946
  # @return [Array<String>]
@@ -1119,13 +1006,6 @@ module Aws::XRay
1119
1006
  include Aws::Structure
1120
1007
  end
1121
1008
 
1122
- # @note When making an API call, you may pass GetSamplingRulesRequest
1123
- # data as a hash:
1124
- #
1125
- # {
1126
- # next_token: "String",
1127
- # }
1128
- #
1129
1009
  # @!attribute [rw] next_token
1130
1010
  # Pagination token.
1131
1011
  # @return [String]
@@ -1155,13 +1035,6 @@ module Aws::XRay
1155
1035
  include Aws::Structure
1156
1036
  end
1157
1037
 
1158
- # @note When making an API call, you may pass GetSamplingStatisticSummariesRequest
1159
- # data as a hash:
1160
- #
1161
- # {
1162
- # next_token: "String",
1163
- # }
1164
- #
1165
1038
  # @!attribute [rw] next_token
1166
1039
  # Pagination token.
1167
1040
  # @return [String]
@@ -1192,22 +1065,6 @@ module Aws::XRay
1192
1065
  include Aws::Structure
1193
1066
  end
1194
1067
 
1195
- # @note When making an API call, you may pass GetSamplingTargetsRequest
1196
- # data as a hash:
1197
- #
1198
- # {
1199
- # sampling_statistics_documents: [ # required
1200
- # {
1201
- # rule_name: "RuleName", # required
1202
- # client_id: "ClientID", # required
1203
- # timestamp: Time.now, # required
1204
- # request_count: 1, # required
1205
- # sampled_count: 1, # required
1206
- # borrow_count: 1,
1207
- # },
1208
- # ],
1209
- # }
1210
- #
1211
1068
  # @!attribute [rw] sampling_statistics_documents
1212
1069
  # Information about rules that the service is using to sample
1213
1070
  # requests.
@@ -1255,17 +1112,6 @@ module Aws::XRay
1255
1112
  include Aws::Structure
1256
1113
  end
1257
1114
 
1258
- # @note When making an API call, you may pass GetServiceGraphRequest
1259
- # data as a hash:
1260
- #
1261
- # {
1262
- # start_time: Time.now, # required
1263
- # end_time: Time.now, # required
1264
- # group_name: "GroupName",
1265
- # group_arn: "GroupARN",
1266
- # next_token: "String",
1267
- # }
1268
- #
1269
1115
  # @!attribute [rw] start_time
1270
1116
  # The start of the time frame for which to generate a graph.
1271
1117
  # @return [Time]
@@ -1334,20 +1180,6 @@ module Aws::XRay
1334
1180
  include Aws::Structure
1335
1181
  end
1336
1182
 
1337
- # @note When making an API call, you may pass GetTimeSeriesServiceStatisticsRequest
1338
- # data as a hash:
1339
- #
1340
- # {
1341
- # start_time: Time.now, # required
1342
- # end_time: Time.now, # required
1343
- # group_name: "GroupName",
1344
- # group_arn: "GroupARN",
1345
- # entity_selector_expression: "EntitySelectorExpression",
1346
- # period: 1,
1347
- # forecast_statistics: false,
1348
- # next_token: "String",
1349
- # }
1350
- #
1351
1183
  # @!attribute [rw] start_time
1352
1184
  # The start of the time frame for which to aggregate statistics.
1353
1185
  # @return [Time]
@@ -1424,14 +1256,6 @@ module Aws::XRay
1424
1256
  include Aws::Structure
1425
1257
  end
1426
1258
 
1427
- # @note When making an API call, you may pass GetTraceGraphRequest
1428
- # data as a hash:
1429
- #
1430
- # {
1431
- # trace_ids: ["TraceId"], # required
1432
- # next_token: "String",
1433
- # }
1434
- #
1435
1259
  # @!attribute [rw] trace_ids
1436
1260
  # Trace IDs of requests for which to generate a service graph.
1437
1261
  # @return [Array<String>]
@@ -1466,22 +1290,6 @@ module Aws::XRay
1466
1290
  include Aws::Structure
1467
1291
  end
1468
1292
 
1469
- # @note When making an API call, you may pass GetTraceSummariesRequest
1470
- # data as a hash:
1471
- #
1472
- # {
1473
- # start_time: Time.now, # required
1474
- # end_time: Time.now, # required
1475
- # time_range_type: "TraceId", # accepts TraceId, Event
1476
- # sampling: false,
1477
- # sampling_strategy: {
1478
- # name: "PartialScan", # accepts PartialScan, FixedRate
1479
- # value: 1.0,
1480
- # },
1481
- # filter_expression: "FilterExpression",
1482
- # next_token: "String",
1483
- # }
1484
- #
1485
1293
  # @!attribute [rw] start_time
1486
1294
  # The start of the time frame for which to retrieve traces.
1487
1295
  # @return [Time]
@@ -1957,14 +1765,6 @@ module Aws::XRay
1957
1765
 
1958
1766
  # The structure containing configurations related to insights.
1959
1767
  #
1960
- # @note When making an API call, you may pass InsightsConfiguration
1961
- # data as a hash:
1962
- #
1963
- # {
1964
- # insights_enabled: false,
1965
- # notifications_enabled: false,
1966
- # }
1967
- #
1968
1768
  # @!attribute [rw] insights_enabled
1969
1769
  # Set the InsightsEnabled value to true to enable insights or false to
1970
1770
  # disable insights.
@@ -1999,6 +1799,22 @@ module Aws::XRay
1999
1799
  include Aws::Structure
2000
1800
  end
2001
1801
 
1802
+ # A policy revision id was provided which does not match the latest
1803
+ # policy revision. This exception is also if a policy revision id of 0
1804
+ # is provided via `PutResourcePolicy` and a policy with the same name
1805
+ # already exists.
1806
+ #
1807
+ # @!attribute [rw] message
1808
+ # @return [String]
1809
+ #
1810
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/InvalidPolicyRevisionIdException AWS API Documentation
1811
+ #
1812
+ class InvalidPolicyRevisionIdException < Struct.new(
1813
+ :message)
1814
+ SENSITIVE = []
1815
+ include Aws::Structure
1816
+ end
1817
+
2002
1818
  # The request is missing required parameters or has invalid parameters.
2003
1819
  #
2004
1820
  # @!attribute [rw] message
@@ -2012,14 +1828,36 @@ module Aws::XRay
2012
1828
  include Aws::Structure
2013
1829
  end
2014
1830
 
2015
- # @note When making an API call, you may pass ListTagsForResourceRequest
2016
- # data as a hash:
1831
+ # @!attribute [rw] next_token
1832
+ # Not currently supported.
1833
+ # @return [String]
1834
+ #
1835
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ListResourcePoliciesRequest AWS API Documentation
1836
+ #
1837
+ class ListResourcePoliciesRequest < Struct.new(
1838
+ :next_token)
1839
+ SENSITIVE = []
1840
+ include Aws::Structure
1841
+ end
1842
+
1843
+ # @!attribute [rw] resource_policies
1844
+ # The list of resource policies in the target Amazon Web Services
1845
+ # account.
1846
+ # @return [Array<Types::ResourcePolicy>]
1847
+ #
1848
+ # @!attribute [rw] next_token
1849
+ # Pagination token. Not currently supported.
1850
+ # @return [String]
2017
1851
  #
2018
- # {
2019
- # resource_arn: "AmazonResourceName", # required
2020
- # next_token: "String",
2021
- # }
1852
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ListResourcePoliciesResult AWS API Documentation
2022
1853
  #
1854
+ class ListResourcePoliciesResult < Struct.new(
1855
+ :resource_policies,
1856
+ :next_token)
1857
+ SENSITIVE = []
1858
+ include Aws::Structure
1859
+ end
1860
+
2023
1861
  # @!attribute [rw] resource_arn
2024
1862
  # The Amazon Resource Number (ARN) of an X-Ray group or sampling rule.
2025
1863
  # @return [String]
@@ -2059,14 +1897,60 @@ module Aws::XRay
2059
1897
  include Aws::Structure
2060
1898
  end
2061
1899
 
2062
- # @note When making an API call, you may pass PutEncryptionConfigRequest
2063
- # data as a hash:
1900
+ # The provided resource policy would prevent the caller of this request
1901
+ # from calling PutResourcePolicy in the future.
2064
1902
  #
2065
- # {
2066
- # key_id: "EncryptionKeyId",
2067
- # type: "NONE", # required, accepts NONE, KMS
2068
- # }
1903
+ # @!attribute [rw] message
1904
+ # @return [String]
1905
+ #
1906
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/LockoutPreventionException AWS API Documentation
1907
+ #
1908
+ class LockoutPreventionException < Struct.new(
1909
+ :message)
1910
+ SENSITIVE = []
1911
+ include Aws::Structure
1912
+ end
1913
+
1914
+ # Invalid policy document provided in request.
2069
1915
  #
1916
+ # @!attribute [rw] message
1917
+ # @return [String]
1918
+ #
1919
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/MalformedPolicyDocumentException AWS API Documentation
1920
+ #
1921
+ class MalformedPolicyDocumentException < Struct.new(
1922
+ :message)
1923
+ SENSITIVE = []
1924
+ include Aws::Structure
1925
+ end
1926
+
1927
+ # Exceeded the maximum number of resource policies for a target Amazon
1928
+ # Web Services account.
1929
+ #
1930
+ # @!attribute [rw] message
1931
+ # @return [String]
1932
+ #
1933
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PolicyCountLimitExceededException AWS API Documentation
1934
+ #
1935
+ class PolicyCountLimitExceededException < Struct.new(
1936
+ :message)
1937
+ SENSITIVE = []
1938
+ include Aws::Structure
1939
+ end
1940
+
1941
+ # Exceeded the maximum size for a resource policy.
1942
+ #
1943
+ # @!attribute [rw] message
1944
+ # @return [String]
1945
+ #
1946
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PolicySizeLimitExceededException AWS API Documentation
1947
+ #
1948
+ class PolicySizeLimitExceededException < Struct.new(
1949
+ :message)
1950
+ SENSITIVE = []
1951
+ include Aws::Structure
1952
+ end
1953
+
2070
1954
  # @!attribute [rw] key_id
2071
1955
  # An Amazon Web Services KMS key in one of the following formats:
2072
1956
  #
@@ -2110,32 +1994,68 @@ module Aws::XRay
2110
1994
  include Aws::Structure
2111
1995
  end
2112
1996
 
2113
- # @note When making an API call, you may pass PutTelemetryRecordsRequest
2114
- # data as a hash:
2115
- #
2116
- # {
2117
- # telemetry_records: [ # required
2118
- # {
2119
- # timestamp: Time.now, # required
2120
- # segments_received_count: 1,
2121
- # segments_sent_count: 1,
2122
- # segments_spillover_count: 1,
2123
- # segments_rejected_count: 1,
2124
- # backend_connection_errors: {
2125
- # timeout_count: 1,
2126
- # connection_refused_count: 1,
2127
- # http_code_4_xx_count: 1,
2128
- # http_code_5_xx_count: 1,
2129
- # unknown_host_count: 1,
2130
- # other_count: 1,
2131
- # },
2132
- # },
2133
- # ],
2134
- # ec2_instance_id: "EC2InstanceId",
2135
- # hostname: "Hostname",
2136
- # resource_arn: "ResourceARN",
2137
- # }
1997
+ # @!attribute [rw] policy_name
1998
+ # The name of the resource policy. Must be unique within a specific
1999
+ # Amazon Web Services account.
2000
+ # @return [String]
2001
+ #
2002
+ # @!attribute [rw] policy_document
2003
+ # The resource policy document, which can be up to 5kb in size.
2004
+ # @return [String]
2138
2005
  #
2006
+ # @!attribute [rw] policy_revision_id
2007
+ # Specifies a specific policy revision, to ensure an atomic create
2008
+ # operation. By default the resource policy is created if it does not
2009
+ # exist, or updated with an incremented revision id. The revision id
2010
+ # is unique to each policy in the account.
2011
+ #
2012
+ # If the policy revision id does not match the latest revision id, the
2013
+ # operation will fail with an `InvalidPolicyRevisionIdException`
2014
+ # exception. You can also provide a `PolicyRevisionId` of 0. In this
2015
+ # case, the operation will fail with an
2016
+ # `InvalidPolicyRevisionIdException` exception if a resource policy
2017
+ # with the same name already exists.
2018
+ # @return [String]
2019
+ #
2020
+ # @!attribute [rw] bypass_policy_lockout_check
2021
+ # A flag to indicate whether to bypass the resource policy lockout
2022
+ # safety check.
2023
+ #
2024
+ # Setting this value to true increases the risk that the policy
2025
+ # becomes unmanageable. Do not set this value to true
2026
+ # indiscriminately.
2027
+ #
2028
+ # Use this parameter only when you include a policy in the request and
2029
+ # you intend to prevent the principal that is making the request from
2030
+ # making a subsequent `PutResourcePolicy` request.
2031
+ #
2032
+ # The default value is false.
2033
+ # @return [Boolean]
2034
+ #
2035
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutResourcePolicyRequest AWS API Documentation
2036
+ #
2037
+ class PutResourcePolicyRequest < Struct.new(
2038
+ :policy_name,
2039
+ :policy_document,
2040
+ :policy_revision_id,
2041
+ :bypass_policy_lockout_check)
2042
+ SENSITIVE = []
2043
+ include Aws::Structure
2044
+ end
2045
+
2046
+ # @!attribute [rw] resource_policy
2047
+ # The resource policy document, as provided in the
2048
+ # `PutResourcePolicyRequest`.
2049
+ # @return [Types::ResourcePolicy]
2050
+ #
2051
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutResourcePolicyResult AWS API Documentation
2052
+ #
2053
+ class PutResourcePolicyResult < Struct.new(
2054
+ :resource_policy)
2055
+ SENSITIVE = []
2056
+ include Aws::Structure
2057
+ end
2058
+
2139
2059
  # @!attribute [rw] telemetry_records
2140
2060
  # @return [Array<Types::TelemetryRecord>]
2141
2061
  #
@@ -2163,13 +2083,6 @@ module Aws::XRay
2163
2083
  #
2164
2084
  class PutTelemetryRecordsResult < Aws::EmptyStructure; end
2165
2085
 
2166
- # @note When making an API call, you may pass PutTraceSegmentsRequest
2167
- # data as a hash:
2168
- #
2169
- # {
2170
- # trace_segment_documents: ["TraceSegmentDocument"], # required
2171
- # }
2172
- #
2173
2086
  # @!attribute [rw] trace_segment_documents
2174
2087
  # A string containing a JSON document defining one or more segments or
2175
2088
  # subsegments.
@@ -2251,6 +2164,38 @@ module Aws::XRay
2251
2164
  include Aws::Structure
2252
2165
  end
2253
2166
 
2167
+ # A resource policy grants one or more Amazon Web Services services and
2168
+ # accounts permissions to access X-Ray. Each resource policy is
2169
+ # associated with a specific Amazon Web Services account.
2170
+ #
2171
+ # @!attribute [rw] policy_name
2172
+ # The name of the resource policy. Must be unique within a specific
2173
+ # Amazon Web Services account.
2174
+ # @return [String]
2175
+ #
2176
+ # @!attribute [rw] policy_document
2177
+ # The resource policy document, which can be up to 5kb in size.
2178
+ # @return [String]
2179
+ #
2180
+ # @!attribute [rw] policy_revision_id
2181
+ # Returns the current policy revision id for this policy name.
2182
+ # @return [String]
2183
+ #
2184
+ # @!attribute [rw] last_updated_time
2185
+ # When the policy was last updated, in Unix time seconds.
2186
+ # @return [Time]
2187
+ #
2188
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ResourcePolicy AWS API Documentation
2189
+ #
2190
+ class ResourcePolicy < Struct.new(
2191
+ :policy_name,
2192
+ :policy_document,
2193
+ :policy_revision_id,
2194
+ :last_updated_time)
2195
+ SENSITIVE = []
2196
+ include Aws::Structure
2197
+ end
2198
+
2254
2199
  # The root cause information for a response time warning.
2255
2200
  #
2256
2201
  # @!attribute [rw] services
@@ -2374,27 +2319,6 @@ module Aws::XRay
2374
2319
  # properties of a request. The service can ignore rules that don't
2375
2320
  # match its properties.
2376
2321
  #
2377
- # @note When making an API call, you may pass SamplingRule
2378
- # data as a hash:
2379
- #
2380
- # {
2381
- # rule_name: "RuleName",
2382
- # rule_arn: "String",
2383
- # resource_arn: "ResourceARN", # required
2384
- # priority: 1, # required
2385
- # fixed_rate: 1.0, # required
2386
- # reservoir_size: 1, # required
2387
- # service_name: "ServiceName", # required
2388
- # service_type: "ServiceType", # required
2389
- # host: "Host", # required
2390
- # http_method: "HTTPMethod", # required
2391
- # url_path: "URLPath", # required
2392
- # version: 1, # required
2393
- # attributes: {
2394
- # "AttributeKey" => "AttributeValue",
2395
- # },
2396
- # }
2397
- #
2398
2322
  # @!attribute [rw] rule_name
2399
2323
  # The name of the sampling rule. Specify a rule by either name or ARN,
2400
2324
  # but not both.
@@ -2505,26 +2429,6 @@ module Aws::XRay
2505
2429
 
2506
2430
  # A document specifying changes to a sampling rule's configuration.
2507
2431
  #
2508
- # @note When making an API call, you may pass SamplingRuleUpdate
2509
- # data as a hash:
2510
- #
2511
- # {
2512
- # rule_name: "RuleName",
2513
- # rule_arn: "String",
2514
- # resource_arn: "ResourceARN",
2515
- # priority: 1,
2516
- # fixed_rate: 1.0,
2517
- # reservoir_size: 1,
2518
- # host: "Host",
2519
- # service_name: "ServiceName",
2520
- # service_type: "ServiceType",
2521
- # http_method: "HTTPMethod",
2522
- # url_path: "URLPath",
2523
- # attributes: {
2524
- # "AttributeKey" => "AttributeValue",
2525
- # },
2526
- # }
2527
- #
2528
2432
  # @!attribute [rw] rule_name
2529
2433
  # The name of the sampling rule. Specify a rule by either name or ARN,
2530
2434
  # but not both.
@@ -2643,18 +2547,6 @@ module Aws::XRay
2643
2547
  #
2644
2548
  # [1]: https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingTargets.html
2645
2549
  #
2646
- # @note When making an API call, you may pass SamplingStatisticsDocument
2647
- # data as a hash:
2648
- #
2649
- # {
2650
- # rule_name: "RuleName", # required
2651
- # client_id: "ClientID", # required
2652
- # timestamp: Time.now, # required
2653
- # request_count: 1, # required
2654
- # sampled_count: 1, # required
2655
- # borrow_count: 1,
2656
- # }
2657
- #
2658
2550
  # @!attribute [rw] rule_name
2659
2551
  # The name of the sampling rule.
2660
2552
  # @return [String]
@@ -2694,14 +2586,6 @@ module Aws::XRay
2694
2586
 
2695
2587
  # The name and value of a sampling rule to apply to a trace summary.
2696
2588
  #
2697
- # @note When making an API call, you may pass SamplingStrategy
2698
- # data as a hash:
2699
- #
2700
- # {
2701
- # name: "PartialScan", # accepts PartialScan, FixedRate
2702
- # value: 1.0,
2703
- # }
2704
- #
2705
2589
  # @!attribute [rw] name
2706
2590
  # The name of a sampling rule.
2707
2591
  # @return [String]
@@ -2965,14 +2849,6 @@ module Aws::XRay
2965
2849
  #
2966
2850
  # [1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
2967
2851
  #
2968
- # @note When making an API call, you may pass Tag
2969
- # data as a hash:
2970
- #
2971
- # {
2972
- # key: "TagKey", # required
2973
- # value: "TagValue", # required
2974
- # }
2975
- #
2976
2852
  # @!attribute [rw] key
2977
2853
  # A tag key, such as `Stage` or `Name`. A tag key cannot be empty. The
2978
2854
  # key can be a maximum of 128 characters, and can contain only Unicode
@@ -2996,19 +2872,6 @@ module Aws::XRay
2996
2872
  include Aws::Structure
2997
2873
  end
2998
2874
 
2999
- # @note When making an API call, you may pass TagResourceRequest
3000
- # data as a hash:
3001
- #
3002
- # {
3003
- # resource_arn: "AmazonResourceName", # required
3004
- # tags: [ # required
3005
- # {
3006
- # key: "TagKey", # required
3007
- # value: "TagValue", # required
3008
- # },
3009
- # ],
3010
- # }
3011
- #
3012
2875
  # @!attribute [rw] resource_arn
3013
2876
  # The Amazon Resource Number (ARN) of an X-Ray group or sampling rule.
3014
2877
  # @return [String]
@@ -3053,25 +2916,6 @@ module Aws::XRay
3053
2916
  #
3054
2917
  class TagResourceResponse < Aws::EmptyStructure; end
3055
2918
 
3056
- # @note When making an API call, you may pass TelemetryRecord
3057
- # data as a hash:
3058
- #
3059
- # {
3060
- # timestamp: Time.now, # required
3061
- # segments_received_count: 1,
3062
- # segments_sent_count: 1,
3063
- # segments_spillover_count: 1,
3064
- # segments_rejected_count: 1,
3065
- # backend_connection_errors: {
3066
- # timeout_count: 1,
3067
- # connection_refused_count: 1,
3068
- # http_code_4_xx_count: 1,
3069
- # http_code_5_xx_count: 1,
3070
- # unknown_host_count: 1,
3071
- # other_count: 1,
3072
- # },
3073
- # }
3074
- #
3075
2919
  # @!attribute [rw] timestamp
3076
2920
  # @return [Time]
3077
2921
  #
@@ -3400,14 +3244,6 @@ module Aws::XRay
3400
3244
  include Aws::Structure
3401
3245
  end
3402
3246
 
3403
- # @note When making an API call, you may pass UntagResourceRequest
3404
- # data as a hash:
3405
- #
3406
- # {
3407
- # resource_arn: "AmazonResourceName", # required
3408
- # tag_keys: ["TagKey"], # required
3409
- # }
3410
- #
3411
3247
  # @!attribute [rw] resource_arn
3412
3248
  # The Amazon Resource Number (ARN) of an X-Ray group or sampling rule.
3413
3249
  # @return [String]
@@ -3430,19 +3266,6 @@ module Aws::XRay
3430
3266
  #
3431
3267
  class UntagResourceResponse < Aws::EmptyStructure; end
3432
3268
 
3433
- # @note When making an API call, you may pass UpdateGroupRequest
3434
- # data as a hash:
3435
- #
3436
- # {
3437
- # group_name: "GroupName",
3438
- # group_arn: "GroupARN",
3439
- # filter_expression: "FilterExpression",
3440
- # insights_configuration: {
3441
- # insights_enabled: false,
3442
- # notifications_enabled: false,
3443
- # },
3444
- # }
3445
- #
3446
3269
  # @!attribute [rw] group_name
3447
3270
  # The case-sensitive name of the group.
3448
3271
  # @return [String]
@@ -3462,7 +3285,7 @@ module Aws::XRay
3462
3285
  # * The InsightsEnabled boolean can be set to true to enable insights
3463
3286
  # for the group or false to disable insights for the group.
3464
3287
  #
3465
- # * The NotifcationsEnabled boolean can be set to true to enable
3288
+ # * The NotificationsEnabled boolean can be set to true to enable
3466
3289
  # insights notifications for the group. Notifications can only be
3467
3290
  # enabled on a group with InsightsEnabled set to true.
3468
3291
  # @return [Types::InsightsConfiguration]
@@ -3493,28 +3316,6 @@ module Aws::XRay
3493
3316
  include Aws::Structure
3494
3317
  end
3495
3318
 
3496
- # @note When making an API call, you may pass UpdateSamplingRuleRequest
3497
- # data as a hash:
3498
- #
3499
- # {
3500
- # sampling_rule_update: { # required
3501
- # rule_name: "RuleName",
3502
- # rule_arn: "String",
3503
- # resource_arn: "ResourceARN",
3504
- # priority: 1,
3505
- # fixed_rate: 1.0,
3506
- # reservoir_size: 1,
3507
- # host: "Host",
3508
- # service_name: "ServiceName",
3509
- # service_type: "ServiceType",
3510
- # http_method: "HTTPMethod",
3511
- # url_path: "URLPath",
3512
- # attributes: {
3513
- # "AttributeKey" => "AttributeValue",
3514
- # },
3515
- # },
3516
- # }
3517
- #
3518
3319
  # @!attribute [rw] sampling_rule_update
3519
3320
  # The rule and fields to change.
3520
3321
  # @return [Types::SamplingRuleUpdate]