aws-sdk-xray 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fcc96e439b62fcd979877bfebcf038df6239ad8c
4
- data.tar.gz: 66a78e96452c70374a661f3fa9765cde0a742514
3
+ metadata.gz: 0b0b7a232a50ec2d546153de909942195b1e9cd0
4
+ data.tar.gz: ed60119b79f47155094e1e70038fbef135a71719
5
5
  SHA512:
6
- metadata.gz: a4ead7fca25b46d60ef34e34f49cf89a6fe496170f95781c25d5945447ac902fa1c77618aa42cd60fabe54031755d4b25021fe3c126eb27bc2b0601f11b630c6
7
- data.tar.gz: c5d415b9670b4e2dc6bcb38534f60e190e39c208cd3587066468e2932eb94ef437d59f61032c791d31c434b086f894200dcd076b5fe9602b89058491bf1e0640
6
+ metadata.gz: '08423c30302c854021188ff699dd8d8d21aae50955e9290ccc9dd2512bb089afa5737b4b4eb119df2d9f9cae4d7c07a6ed0e09b47af246543cc609c6446a4fbf'
7
+ data.tar.gz: fc7dcd9b585ae70c5cd19ed2b1c1725bd66a312b3fa7afa8c3b43dec62dd8cd2bfe3e5308a3f3f264049faedb3aee87bbb444ea7809815836b3c803b099fed10
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-xray/customizations'
42
42
  # @service
43
43
  module Aws::XRay
44
44
 
45
- GEM_VERSION = '1.3.0'
45
+ GEM_VERSION = '1.4.0'
46
46
 
47
47
  end
@@ -200,6 +200,121 @@ module Aws::XRay
200
200
  req.send_request(options)
201
201
  end
202
202
 
203
+ # Creates a rule to control sampling behavior for instrumented
204
+ # applications. Services retrieve rules with GetSamplingRules, and
205
+ # evaluate each rule in ascending order of *priority* for each request.
206
+ # If a rule matches, the service records a trace, borrowing it from the
207
+ # reservoir size. After 10 seconds, the service reports back to X-Ray
208
+ # with GetSamplingTargets to get updated versions of each in-use rule.
209
+ # The updated rule contains a trace quota that the service can use
210
+ # instead of borrowing from the reservoir.
211
+ #
212
+ # @option params [required, Types::SamplingRule] :sampling_rule
213
+ # The rule definition.
214
+ #
215
+ # @return [Types::CreateSamplingRuleResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
216
+ #
217
+ # * {Types::CreateSamplingRuleResult#sampling_rule_record #sampling_rule_record} => Types::SamplingRuleRecord
218
+ #
219
+ # @example Request syntax with placeholder values
220
+ #
221
+ # resp = client.create_sampling_rule({
222
+ # sampling_rule: { # required
223
+ # rule_name: "RuleName",
224
+ # rule_arn: "String",
225
+ # resource_arn: "ResourceARN", # required
226
+ # priority: 1, # required
227
+ # fixed_rate: 1.0, # required
228
+ # reservoir_size: 1, # required
229
+ # service_name: "ServiceName", # required
230
+ # service_type: "ServiceType", # required
231
+ # host: "Host", # required
232
+ # http_method: "HTTPMethod", # required
233
+ # url_path: "URLPath", # required
234
+ # version: 1, # required
235
+ # attributes: {
236
+ # "AttributeKey" => "AttributeValue",
237
+ # },
238
+ # },
239
+ # })
240
+ #
241
+ # @example Response structure
242
+ #
243
+ # resp.sampling_rule_record.sampling_rule.rule_name #=> String
244
+ # resp.sampling_rule_record.sampling_rule.rule_arn #=> String
245
+ # resp.sampling_rule_record.sampling_rule.resource_arn #=> String
246
+ # resp.sampling_rule_record.sampling_rule.priority #=> Integer
247
+ # resp.sampling_rule_record.sampling_rule.fixed_rate #=> Float
248
+ # resp.sampling_rule_record.sampling_rule.reservoir_size #=> Integer
249
+ # resp.sampling_rule_record.sampling_rule.service_name #=> String
250
+ # resp.sampling_rule_record.sampling_rule.service_type #=> String
251
+ # resp.sampling_rule_record.sampling_rule.host #=> String
252
+ # resp.sampling_rule_record.sampling_rule.http_method #=> String
253
+ # resp.sampling_rule_record.sampling_rule.url_path #=> String
254
+ # resp.sampling_rule_record.sampling_rule.version #=> Integer
255
+ # resp.sampling_rule_record.sampling_rule.attributes #=> Hash
256
+ # resp.sampling_rule_record.sampling_rule.attributes["AttributeKey"] #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
257
+ # resp.sampling_rule_record.created_at #=> Time
258
+ # resp.sampling_rule_record.modified_at #=> Time
259
+ #
260
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/CreateSamplingRule AWS API Documentation
261
+ #
262
+ # @overload create_sampling_rule(params = {})
263
+ # @param [Hash] params ({})
264
+ def create_sampling_rule(params = {}, options = {})
265
+ req = build_request(:create_sampling_rule, params)
266
+ req.send_request(options)
267
+ end
268
+
269
+ # Deletes a sampling rule.
270
+ #
271
+ # @option params [String] :rule_name
272
+ # The name of the sampling rule. Specify a rule by either name or ARN,
273
+ # but not both.
274
+ #
275
+ # @option params [String] :rule_arn
276
+ # The ARN of the sampling rule. Specify a rule by either name or ARN,
277
+ # but not both.
278
+ #
279
+ # @return [Types::DeleteSamplingRuleResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
280
+ #
281
+ # * {Types::DeleteSamplingRuleResult#sampling_rule_record #sampling_rule_record} => Types::SamplingRuleRecord
282
+ #
283
+ # @example Request syntax with placeholder values
284
+ #
285
+ # resp = client.delete_sampling_rule({
286
+ # rule_name: "String",
287
+ # rule_arn: "String",
288
+ # })
289
+ #
290
+ # @example Response structure
291
+ #
292
+ # resp.sampling_rule_record.sampling_rule.rule_name #=> String
293
+ # resp.sampling_rule_record.sampling_rule.rule_arn #=> String
294
+ # resp.sampling_rule_record.sampling_rule.resource_arn #=> String
295
+ # resp.sampling_rule_record.sampling_rule.priority #=> Integer
296
+ # resp.sampling_rule_record.sampling_rule.fixed_rate #=> Float
297
+ # resp.sampling_rule_record.sampling_rule.reservoir_size #=> Integer
298
+ # resp.sampling_rule_record.sampling_rule.service_name #=> String
299
+ # resp.sampling_rule_record.sampling_rule.service_type #=> String
300
+ # resp.sampling_rule_record.sampling_rule.host #=> String
301
+ # resp.sampling_rule_record.sampling_rule.http_method #=> String
302
+ # resp.sampling_rule_record.sampling_rule.url_path #=> String
303
+ # resp.sampling_rule_record.sampling_rule.version #=> Integer
304
+ # resp.sampling_rule_record.sampling_rule.attributes #=> Hash
305
+ # resp.sampling_rule_record.sampling_rule.attributes["AttributeKey"] #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
306
+ # resp.sampling_rule_record.created_at #=> Time
307
+ # resp.sampling_rule_record.modified_at #=> Time
308
+ #
309
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/DeleteSamplingRule AWS API Documentation
310
+ #
311
+ # @overload delete_sampling_rule(params = {})
312
+ # @param [Hash] params ({})
313
+ def delete_sampling_rule(params = {}, options = {})
314
+ req = build_request(:delete_sampling_rule, params)
315
+ req.send_request(options)
316
+ end
317
+
203
318
  # Retrieves the current encryption configuration for X-Ray data.
204
319
  #
205
320
  # @return [Types::GetEncryptionConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -221,6 +336,138 @@ module Aws::XRay
221
336
  req.send_request(options)
222
337
  end
223
338
 
339
+ # Retrieves all sampling rules.
340
+ #
341
+ # @option params [String] :next_token
342
+ # Pagination token. Not used.
343
+ #
344
+ # @return [Types::GetSamplingRulesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
345
+ #
346
+ # * {Types::GetSamplingRulesResult#sampling_rule_records #sampling_rule_records} => Array&lt;Types::SamplingRuleRecord&gt;
347
+ # * {Types::GetSamplingRulesResult#next_token #next_token} => String
348
+ #
349
+ # @example Request syntax with placeholder values
350
+ #
351
+ # resp = client.get_sampling_rules({
352
+ # next_token: "String",
353
+ # })
354
+ #
355
+ # @example Response structure
356
+ #
357
+ # resp.sampling_rule_records #=> Array
358
+ # resp.sampling_rule_records[0].sampling_rule.rule_name #=> String
359
+ # resp.sampling_rule_records[0].sampling_rule.rule_arn #=> String
360
+ # resp.sampling_rule_records[0].sampling_rule.resource_arn #=> String
361
+ # resp.sampling_rule_records[0].sampling_rule.priority #=> Integer
362
+ # resp.sampling_rule_records[0].sampling_rule.fixed_rate #=> Float
363
+ # resp.sampling_rule_records[0].sampling_rule.reservoir_size #=> Integer
364
+ # resp.sampling_rule_records[0].sampling_rule.service_name #=> String
365
+ # resp.sampling_rule_records[0].sampling_rule.service_type #=> String
366
+ # resp.sampling_rule_records[0].sampling_rule.host #=> String
367
+ # resp.sampling_rule_records[0].sampling_rule.http_method #=> String
368
+ # resp.sampling_rule_records[0].sampling_rule.url_path #=> String
369
+ # resp.sampling_rule_records[0].sampling_rule.version #=> Integer
370
+ # resp.sampling_rule_records[0].sampling_rule.attributes #=> Hash
371
+ # resp.sampling_rule_records[0].sampling_rule.attributes["AttributeKey"] #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
372
+ # resp.sampling_rule_records[0].created_at #=> Time
373
+ # resp.sampling_rule_records[0].modified_at #=> Time
374
+ # resp.next_token #=> String
375
+ #
376
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetSamplingRules AWS API Documentation
377
+ #
378
+ # @overload get_sampling_rules(params = {})
379
+ # @param [Hash] params ({})
380
+ def get_sampling_rules(params = {}, options = {})
381
+ req = build_request(:get_sampling_rules, params)
382
+ req.send_request(options)
383
+ end
384
+
385
+ # Retrieves information about recent sampling results for all sampling
386
+ # rules.
387
+ #
388
+ # @option params [String] :next_token
389
+ # Pagination token. Not used.
390
+ #
391
+ # @return [Types::GetSamplingStatisticSummariesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
392
+ #
393
+ # * {Types::GetSamplingStatisticSummariesResult#sampling_statistic_summaries #sampling_statistic_summaries} => Array&lt;Types::SamplingStatisticSummary&gt;
394
+ # * {Types::GetSamplingStatisticSummariesResult#next_token #next_token} => String
395
+ #
396
+ # @example Request syntax with placeholder values
397
+ #
398
+ # resp = client.get_sampling_statistic_summaries({
399
+ # next_token: "String",
400
+ # })
401
+ #
402
+ # @example Response structure
403
+ #
404
+ # resp.sampling_statistic_summaries #=> Array
405
+ # resp.sampling_statistic_summaries[0].rule_name #=> String
406
+ # resp.sampling_statistic_summaries[0].timestamp #=> Time
407
+ # resp.sampling_statistic_summaries[0].request_count #=> Integer
408
+ # resp.sampling_statistic_summaries[0].borrow_count #=> Integer
409
+ # resp.sampling_statistic_summaries[0].sampled_count #=> Integer
410
+ # resp.next_token #=> String
411
+ #
412
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetSamplingStatisticSummaries AWS API Documentation
413
+ #
414
+ # @overload get_sampling_statistic_summaries(params = {})
415
+ # @param [Hash] params ({})
416
+ def get_sampling_statistic_summaries(params = {}, options = {})
417
+ req = build_request(:get_sampling_statistic_summaries, params)
418
+ req.send_request(options)
419
+ end
420
+
421
+ # Requests a sampling quota for rules that the service is using to
422
+ # sample requests.
423
+ #
424
+ # @option params [required, Array<Types::SamplingStatisticsDocument>] :sampling_statistics_documents
425
+ # Information about rules that the service is using to sample requests.
426
+ #
427
+ # @return [Types::GetSamplingTargetsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
428
+ #
429
+ # * {Types::GetSamplingTargetsResult#sampling_target_documents #sampling_target_documents} => Array&lt;Types::SamplingTargetDocument&gt;
430
+ # * {Types::GetSamplingTargetsResult#last_rule_modification #last_rule_modification} => Time
431
+ # * {Types::GetSamplingTargetsResult#unprocessed_statistics #unprocessed_statistics} => Array&lt;Types::UnprocessedStatistics&gt;
432
+ #
433
+ # @example Request syntax with placeholder values
434
+ #
435
+ # resp = client.get_sampling_targets({
436
+ # sampling_statistics_documents: [ # required
437
+ # {
438
+ # rule_name: "RuleName", # required
439
+ # client_id: "ClientID", # required
440
+ # timestamp: Time.now, # required
441
+ # request_count: 1, # required
442
+ # sampled_count: 1, # required
443
+ # borrow_count: 1,
444
+ # },
445
+ # ],
446
+ # })
447
+ #
448
+ # @example Response structure
449
+ #
450
+ # resp.sampling_target_documents #=> Array
451
+ # resp.sampling_target_documents[0].rule_name #=> String
452
+ # resp.sampling_target_documents[0].fixed_rate #=> Float
453
+ # resp.sampling_target_documents[0].reservoir_quota #=> Integer
454
+ # resp.sampling_target_documents[0].reservoir_quota_ttl #=> Time
455
+ # resp.sampling_target_documents[0].interval #=> Integer
456
+ # resp.last_rule_modification #=> Time
457
+ # resp.unprocessed_statistics #=> Array
458
+ # resp.unprocessed_statistics[0].rule_name #=> String
459
+ # resp.unprocessed_statistics[0].error_code #=> String
460
+ # resp.unprocessed_statistics[0].message #=> String
461
+ #
462
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetSamplingTargets AWS API Documentation
463
+ #
464
+ # @overload get_sampling_targets(params = {})
465
+ # @param [Hash] params ({})
466
+ def get_sampling_targets(params = {}, options = {})
467
+ req = build_request(:get_sampling_targets, params)
468
+ req.send_request(options)
469
+ end
470
+
224
471
  # Retrieves a document that describes services that process incoming
225
472
  # requests, and downstream services that they call as a result. Root
226
473
  # services process incoming requests and make calls to downstream
@@ -676,6 +923,64 @@ module Aws::XRay
676
923
  req.send_request(options)
677
924
  end
678
925
 
926
+ # Modifies a sampling rule's configuration.
927
+ #
928
+ # @option params [required, Types::SamplingRuleUpdate] :sampling_rule_update
929
+ # The rule and fields to change.
930
+ #
931
+ # @return [Types::UpdateSamplingRuleResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
932
+ #
933
+ # * {Types::UpdateSamplingRuleResult#sampling_rule_record #sampling_rule_record} => Types::SamplingRuleRecord
934
+ #
935
+ # @example Request syntax with placeholder values
936
+ #
937
+ # resp = client.update_sampling_rule({
938
+ # sampling_rule_update: { # required
939
+ # rule_name: "RuleName",
940
+ # rule_arn: "String",
941
+ # resource_arn: "ResourceARN",
942
+ # priority: 1,
943
+ # fixed_rate: 1.0,
944
+ # reservoir_size: 1,
945
+ # host: "Host",
946
+ # service_name: "ServiceName",
947
+ # service_type: "ServiceType",
948
+ # http_method: "HTTPMethod",
949
+ # url_path: "URLPath",
950
+ # attributes: {
951
+ # "AttributeKey" => "AttributeValue",
952
+ # },
953
+ # },
954
+ # })
955
+ #
956
+ # @example Response structure
957
+ #
958
+ # resp.sampling_rule_record.sampling_rule.rule_name #=> String
959
+ # resp.sampling_rule_record.sampling_rule.rule_arn #=> String
960
+ # resp.sampling_rule_record.sampling_rule.resource_arn #=> String
961
+ # resp.sampling_rule_record.sampling_rule.priority #=> Integer
962
+ # resp.sampling_rule_record.sampling_rule.fixed_rate #=> Float
963
+ # resp.sampling_rule_record.sampling_rule.reservoir_size #=> Integer
964
+ # resp.sampling_rule_record.sampling_rule.service_name #=> String
965
+ # resp.sampling_rule_record.sampling_rule.service_type #=> String
966
+ # resp.sampling_rule_record.sampling_rule.host #=> String
967
+ # resp.sampling_rule_record.sampling_rule.http_method #=> String
968
+ # resp.sampling_rule_record.sampling_rule.url_path #=> String
969
+ # resp.sampling_rule_record.sampling_rule.version #=> Integer
970
+ # resp.sampling_rule_record.sampling_rule.attributes #=> Hash
971
+ # resp.sampling_rule_record.sampling_rule.attributes["AttributeKey"] #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
972
+ # resp.sampling_rule_record.created_at #=> Time
973
+ # resp.sampling_rule_record.modified_at #=> Time
974
+ #
975
+ # @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UpdateSamplingRule AWS API Documentation
976
+ #
977
+ # @overload update_sampling_rule(params = {})
978
+ # @param [Hash] params ({})
979
+ def update_sampling_rule(params = {}, options = {})
980
+ req = build_request(:update_sampling_rule, params)
981
+ req.send_request(options)
982
+ end
983
+
679
984
  # @!endgroup
680
985
 
681
986
  # @param params ({})
@@ -689,7 +994,7 @@ module Aws::XRay
689
994
  params: params,
690
995
  config: config)
691
996
  context[:gem_name] = 'aws-sdk-xray'
692
- context[:gem_version] = '1.3.0'
997
+ context[:gem_version] = '1.4.0'
693
998
  Seahorse::Client::Request.new(handlers, context)
694
999
  end
695
1000
 
@@ -17,9 +17,18 @@ module Aws::XRay
17
17
  AnnotationKey = Shapes::StringShape.new(name: 'AnnotationKey')
18
18
  AnnotationValue = Shapes::StructureShape.new(name: 'AnnotationValue')
19
19
  Annotations = Shapes::MapShape.new(name: 'Annotations')
20
+ AttributeKey = Shapes::StringShape.new(name: 'AttributeKey')
21
+ AttributeMap = Shapes::MapShape.new(name: 'AttributeMap')
22
+ AttributeValue = Shapes::StringShape.new(name: 'AttributeValue')
20
23
  BackendConnectionErrors = Shapes::StructureShape.new(name: 'BackendConnectionErrors')
21
24
  BatchGetTracesRequest = Shapes::StructureShape.new(name: 'BatchGetTracesRequest')
22
25
  BatchGetTracesResult = Shapes::StructureShape.new(name: 'BatchGetTracesResult')
26
+ BorrowCount = Shapes::IntegerShape.new(name: 'BorrowCount')
27
+ ClientID = Shapes::StringShape.new(name: 'ClientID')
28
+ CreateSamplingRuleRequest = Shapes::StructureShape.new(name: 'CreateSamplingRuleRequest')
29
+ CreateSamplingRuleResult = Shapes::StructureShape.new(name: 'CreateSamplingRuleResult')
30
+ DeleteSamplingRuleRequest = Shapes::StructureShape.new(name: 'DeleteSamplingRuleRequest')
31
+ DeleteSamplingRuleResult = Shapes::StructureShape.new(name: 'DeleteSamplingRuleResult')
23
32
  Double = Shapes::FloatShape.new(name: 'Double')
24
33
  EC2InstanceId = Shapes::StringShape.new(name: 'EC2InstanceId')
25
34
  Edge = Shapes::StructureShape.new(name: 'Edge')
@@ -33,16 +42,25 @@ module Aws::XRay
33
42
  ErrorStatistics = Shapes::StructureShape.new(name: 'ErrorStatistics')
34
43
  FaultStatistics = Shapes::StructureShape.new(name: 'FaultStatistics')
35
44
  FilterExpression = Shapes::StringShape.new(name: 'FilterExpression')
45
+ FixedRate = Shapes::FloatShape.new(name: 'FixedRate')
36
46
  GetEncryptionConfigRequest = Shapes::StructureShape.new(name: 'GetEncryptionConfigRequest')
37
47
  GetEncryptionConfigResult = Shapes::StructureShape.new(name: 'GetEncryptionConfigResult')
48
+ GetSamplingRulesRequest = Shapes::StructureShape.new(name: 'GetSamplingRulesRequest')
49
+ GetSamplingRulesResult = Shapes::StructureShape.new(name: 'GetSamplingRulesResult')
50
+ GetSamplingStatisticSummariesRequest = Shapes::StructureShape.new(name: 'GetSamplingStatisticSummariesRequest')
51
+ GetSamplingStatisticSummariesResult = Shapes::StructureShape.new(name: 'GetSamplingStatisticSummariesResult')
52
+ GetSamplingTargetsRequest = Shapes::StructureShape.new(name: 'GetSamplingTargetsRequest')
53
+ GetSamplingTargetsResult = Shapes::StructureShape.new(name: 'GetSamplingTargetsResult')
38
54
  GetServiceGraphRequest = Shapes::StructureShape.new(name: 'GetServiceGraphRequest')
39
55
  GetServiceGraphResult = Shapes::StructureShape.new(name: 'GetServiceGraphResult')
40
56
  GetTraceGraphRequest = Shapes::StructureShape.new(name: 'GetTraceGraphRequest')
41
57
  GetTraceGraphResult = Shapes::StructureShape.new(name: 'GetTraceGraphResult')
42
58
  GetTraceSummariesRequest = Shapes::StructureShape.new(name: 'GetTraceSummariesRequest')
43
59
  GetTraceSummariesResult = Shapes::StructureShape.new(name: 'GetTraceSummariesResult')
60
+ HTTPMethod = Shapes::StringShape.new(name: 'HTTPMethod')
44
61
  Histogram = Shapes::ListShape.new(name: 'Histogram')
45
62
  HistogramEntry = Shapes::StructureShape.new(name: 'HistogramEntry')
63
+ Host = Shapes::StringShape.new(name: 'Host')
46
64
  Hostname = Shapes::StringShape.new(name: 'Hostname')
47
65
  Http = Shapes::StructureShape.new(name: 'Http')
48
66
  Integer = Shapes::IntegerShape.new(name: 'Integer')
@@ -51,13 +69,29 @@ module Aws::XRay
51
69
  NullableDouble = Shapes::FloatShape.new(name: 'NullableDouble')
52
70
  NullableInteger = Shapes::IntegerShape.new(name: 'NullableInteger')
53
71
  NullableLong = Shapes::IntegerShape.new(name: 'NullableLong')
72
+ Priority = Shapes::IntegerShape.new(name: 'Priority')
54
73
  PutEncryptionConfigRequest = Shapes::StructureShape.new(name: 'PutEncryptionConfigRequest')
55
74
  PutEncryptionConfigResult = Shapes::StructureShape.new(name: 'PutEncryptionConfigResult')
56
75
  PutTelemetryRecordsRequest = Shapes::StructureShape.new(name: 'PutTelemetryRecordsRequest')
57
76
  PutTelemetryRecordsResult = Shapes::StructureShape.new(name: 'PutTelemetryRecordsResult')
58
77
  PutTraceSegmentsRequest = Shapes::StructureShape.new(name: 'PutTraceSegmentsRequest')
59
78
  PutTraceSegmentsResult = Shapes::StructureShape.new(name: 'PutTraceSegmentsResult')
79
+ RequestCount = Shapes::IntegerShape.new(name: 'RequestCount')
80
+ ReservoirSize = Shapes::IntegerShape.new(name: 'ReservoirSize')
60
81
  ResourceARN = Shapes::StringShape.new(name: 'ResourceARN')
82
+ RuleLimitExceededException = Shapes::StructureShape.new(name: 'RuleLimitExceededException')
83
+ RuleName = Shapes::StringShape.new(name: 'RuleName')
84
+ SampledCount = Shapes::IntegerShape.new(name: 'SampledCount')
85
+ SamplingRule = Shapes::StructureShape.new(name: 'SamplingRule')
86
+ SamplingRuleRecord = Shapes::StructureShape.new(name: 'SamplingRuleRecord')
87
+ SamplingRuleRecordList = Shapes::ListShape.new(name: 'SamplingRuleRecordList')
88
+ SamplingRuleUpdate = Shapes::StructureShape.new(name: 'SamplingRuleUpdate')
89
+ SamplingStatisticSummary = Shapes::StructureShape.new(name: 'SamplingStatisticSummary')
90
+ SamplingStatisticSummaryList = Shapes::ListShape.new(name: 'SamplingStatisticSummaryList')
91
+ SamplingStatisticsDocument = Shapes::StructureShape.new(name: 'SamplingStatisticsDocument')
92
+ SamplingStatisticsDocumentList = Shapes::ListShape.new(name: 'SamplingStatisticsDocumentList')
93
+ SamplingTargetDocument = Shapes::StructureShape.new(name: 'SamplingTargetDocument')
94
+ SamplingTargetDocumentList = Shapes::ListShape.new(name: 'SamplingTargetDocumentList')
61
95
  Segment = Shapes::StructureShape.new(name: 'Segment')
62
96
  SegmentDocument = Shapes::StringShape.new(name: 'SegmentDocument')
63
97
  SegmentId = Shapes::StringShape.new(name: 'SegmentId')
@@ -66,8 +100,10 @@ module Aws::XRay
66
100
  ServiceId = Shapes::StructureShape.new(name: 'ServiceId')
67
101
  ServiceIds = Shapes::ListShape.new(name: 'ServiceIds')
68
102
  ServiceList = Shapes::ListShape.new(name: 'ServiceList')
103
+ ServiceName = Shapes::StringShape.new(name: 'ServiceName')
69
104
  ServiceNames = Shapes::ListShape.new(name: 'ServiceNames')
70
105
  ServiceStatistics = Shapes::StructureShape.new(name: 'ServiceStatistics')
106
+ ServiceType = Shapes::StringShape.new(name: 'ServiceType')
71
107
  String = Shapes::StringShape.new(name: 'String')
72
108
  TelemetryRecord = Shapes::StructureShape.new(name: 'TelemetryRecord')
73
109
  TelemetryRecordList = Shapes::ListShape.new(name: 'TelemetryRecordList')
@@ -83,11 +119,17 @@ module Aws::XRay
83
119
  TraceSummaryList = Shapes::ListShape.new(name: 'TraceSummaryList')
84
120
  TraceUser = Shapes::StructureShape.new(name: 'TraceUser')
85
121
  TraceUsers = Shapes::ListShape.new(name: 'TraceUsers')
122
+ URLPath = Shapes::StringShape.new(name: 'URLPath')
123
+ UnprocessedStatistics = Shapes::StructureShape.new(name: 'UnprocessedStatistics')
124
+ UnprocessedStatisticsList = Shapes::ListShape.new(name: 'UnprocessedStatisticsList')
86
125
  UnprocessedTraceIdList = Shapes::ListShape.new(name: 'UnprocessedTraceIdList')
87
126
  UnprocessedTraceSegment = Shapes::StructureShape.new(name: 'UnprocessedTraceSegment')
88
127
  UnprocessedTraceSegmentList = Shapes::ListShape.new(name: 'UnprocessedTraceSegmentList')
128
+ UpdateSamplingRuleRequest = Shapes::StructureShape.new(name: 'UpdateSamplingRuleRequest')
129
+ UpdateSamplingRuleResult = Shapes::StructureShape.new(name: 'UpdateSamplingRuleResult')
89
130
  ValueWithServiceIds = Shapes::StructureShape.new(name: 'ValueWithServiceIds')
90
131
  ValuesWithServiceIds = Shapes::ListShape.new(name: 'ValuesWithServiceIds')
132
+ Version = Shapes::IntegerShape.new(name: 'Version')
91
133
 
92
134
  Alias.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
93
135
  Alias.add_member(:names, Shapes::ShapeRef.new(shape: AliasNames, location_name: "Names"))
@@ -106,6 +148,9 @@ module Aws::XRay
106
148
  Annotations.key = Shapes::ShapeRef.new(shape: AnnotationKey)
107
149
  Annotations.value = Shapes::ShapeRef.new(shape: ValuesWithServiceIds)
108
150
 
151
+ AttributeMap.key = Shapes::ShapeRef.new(shape: AttributeKey)
152
+ AttributeMap.value = Shapes::ShapeRef.new(shape: AttributeValue)
153
+
109
154
  BackendConnectionErrors.add_member(:timeout_count, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "TimeoutCount"))
110
155
  BackendConnectionErrors.add_member(:connection_refused_count, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "ConnectionRefusedCount"))
111
156
  BackendConnectionErrors.add_member(:http_code_4_xx_count, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "HTTPCode4XXCount"))
@@ -123,6 +168,19 @@ module Aws::XRay
123
168
  BatchGetTracesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
124
169
  BatchGetTracesResult.struct_class = Types::BatchGetTracesResult
125
170
 
171
+ CreateSamplingRuleRequest.add_member(:sampling_rule, Shapes::ShapeRef.new(shape: SamplingRule, required: true, location_name: "SamplingRule"))
172
+ CreateSamplingRuleRequest.struct_class = Types::CreateSamplingRuleRequest
173
+
174
+ CreateSamplingRuleResult.add_member(:sampling_rule_record, Shapes::ShapeRef.new(shape: SamplingRuleRecord, location_name: "SamplingRuleRecord"))
175
+ CreateSamplingRuleResult.struct_class = Types::CreateSamplingRuleResult
176
+
177
+ DeleteSamplingRuleRequest.add_member(:rule_name, Shapes::ShapeRef.new(shape: String, location_name: "RuleName"))
178
+ DeleteSamplingRuleRequest.add_member(:rule_arn, Shapes::ShapeRef.new(shape: String, location_name: "RuleARN"))
179
+ DeleteSamplingRuleRequest.struct_class = Types::DeleteSamplingRuleRequest
180
+
181
+ DeleteSamplingRuleResult.add_member(:sampling_rule_record, Shapes::ShapeRef.new(shape: SamplingRuleRecord, location_name: "SamplingRuleRecord"))
182
+ DeleteSamplingRuleResult.struct_class = Types::DeleteSamplingRuleResult
183
+
126
184
  Edge.add_member(:reference_id, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "ReferenceId"))
127
185
  Edge.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StartTime"))
128
186
  Edge.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndTime"))
@@ -159,6 +217,28 @@ module Aws::XRay
159
217
  GetEncryptionConfigResult.add_member(:encryption_config, Shapes::ShapeRef.new(shape: EncryptionConfig, location_name: "EncryptionConfig"))
160
218
  GetEncryptionConfigResult.struct_class = Types::GetEncryptionConfigResult
161
219
 
220
+ GetSamplingRulesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
221
+ GetSamplingRulesRequest.struct_class = Types::GetSamplingRulesRequest
222
+
223
+ GetSamplingRulesResult.add_member(:sampling_rule_records, Shapes::ShapeRef.new(shape: SamplingRuleRecordList, location_name: "SamplingRuleRecords"))
224
+ GetSamplingRulesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
225
+ GetSamplingRulesResult.struct_class = Types::GetSamplingRulesResult
226
+
227
+ GetSamplingStatisticSummariesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
228
+ GetSamplingStatisticSummariesRequest.struct_class = Types::GetSamplingStatisticSummariesRequest
229
+
230
+ GetSamplingStatisticSummariesResult.add_member(:sampling_statistic_summaries, Shapes::ShapeRef.new(shape: SamplingStatisticSummaryList, location_name: "SamplingStatisticSummaries"))
231
+ GetSamplingStatisticSummariesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
232
+ GetSamplingStatisticSummariesResult.struct_class = Types::GetSamplingStatisticSummariesResult
233
+
234
+ GetSamplingTargetsRequest.add_member(:sampling_statistics_documents, Shapes::ShapeRef.new(shape: SamplingStatisticsDocumentList, required: true, location_name: "SamplingStatisticsDocuments"))
235
+ GetSamplingTargetsRequest.struct_class = Types::GetSamplingTargetsRequest
236
+
237
+ GetSamplingTargetsResult.add_member(:sampling_target_documents, Shapes::ShapeRef.new(shape: SamplingTargetDocumentList, location_name: "SamplingTargetDocuments"))
238
+ GetSamplingTargetsResult.add_member(:last_rule_modification, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastRuleModification"))
239
+ GetSamplingTargetsResult.add_member(:unprocessed_statistics, Shapes::ShapeRef.new(shape: UnprocessedStatisticsList, location_name: "UnprocessedStatistics"))
240
+ GetSamplingTargetsResult.struct_class = Types::GetSamplingTargetsResult
241
+
162
242
  GetServiceGraphRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTime"))
163
243
  GetServiceGraphRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTime"))
164
244
  GetServiceGraphRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
@@ -225,6 +305,70 @@ module Aws::XRay
225
305
  PutTraceSegmentsResult.add_member(:unprocessed_trace_segments, Shapes::ShapeRef.new(shape: UnprocessedTraceSegmentList, location_name: "UnprocessedTraceSegments"))
226
306
  PutTraceSegmentsResult.struct_class = Types::PutTraceSegmentsResult
227
307
 
308
+ SamplingRule.add_member(:rule_name, Shapes::ShapeRef.new(shape: RuleName, location_name: "RuleName"))
309
+ SamplingRule.add_member(:rule_arn, Shapes::ShapeRef.new(shape: String, location_name: "RuleARN"))
310
+ SamplingRule.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceARN, required: true, location_name: "ResourceARN"))
311
+ SamplingRule.add_member(:priority, Shapes::ShapeRef.new(shape: Priority, required: true, location_name: "Priority"))
312
+ SamplingRule.add_member(:fixed_rate, Shapes::ShapeRef.new(shape: FixedRate, required: true, location_name: "FixedRate"))
313
+ SamplingRule.add_member(:reservoir_size, Shapes::ShapeRef.new(shape: ReservoirSize, required: true, location_name: "ReservoirSize"))
314
+ SamplingRule.add_member(:service_name, Shapes::ShapeRef.new(shape: ServiceName, required: true, location_name: "ServiceName"))
315
+ SamplingRule.add_member(:service_type, Shapes::ShapeRef.new(shape: ServiceType, required: true, location_name: "ServiceType"))
316
+ SamplingRule.add_member(:host, Shapes::ShapeRef.new(shape: Host, required: true, location_name: "Host"))
317
+ SamplingRule.add_member(:http_method, Shapes::ShapeRef.new(shape: HTTPMethod, required: true, location_name: "HTTPMethod"))
318
+ SamplingRule.add_member(:url_path, Shapes::ShapeRef.new(shape: URLPath, required: true, location_name: "URLPath"))
319
+ SamplingRule.add_member(:version, Shapes::ShapeRef.new(shape: Version, required: true, location_name: "Version"))
320
+ SamplingRule.add_member(:attributes, Shapes::ShapeRef.new(shape: AttributeMap, location_name: "Attributes"))
321
+ SamplingRule.struct_class = Types::SamplingRule
322
+
323
+ SamplingRuleRecord.add_member(:sampling_rule, Shapes::ShapeRef.new(shape: SamplingRule, location_name: "SamplingRule"))
324
+ SamplingRuleRecord.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
325
+ SamplingRuleRecord.add_member(:modified_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ModifiedAt"))
326
+ SamplingRuleRecord.struct_class = Types::SamplingRuleRecord
327
+
328
+ SamplingRuleRecordList.member = Shapes::ShapeRef.new(shape: SamplingRuleRecord)
329
+
330
+ SamplingRuleUpdate.add_member(:rule_name, Shapes::ShapeRef.new(shape: RuleName, location_name: "RuleName"))
331
+ SamplingRuleUpdate.add_member(:rule_arn, Shapes::ShapeRef.new(shape: String, location_name: "RuleARN"))
332
+ SamplingRuleUpdate.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceARN, location_name: "ResourceARN"))
333
+ SamplingRuleUpdate.add_member(:priority, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "Priority"))
334
+ SamplingRuleUpdate.add_member(:fixed_rate, Shapes::ShapeRef.new(shape: NullableDouble, location_name: "FixedRate"))
335
+ SamplingRuleUpdate.add_member(:reservoir_size, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "ReservoirSize"))
336
+ SamplingRuleUpdate.add_member(:host, Shapes::ShapeRef.new(shape: Host, location_name: "Host"))
337
+ SamplingRuleUpdate.add_member(:service_name, Shapes::ShapeRef.new(shape: ServiceName, location_name: "ServiceName"))
338
+ SamplingRuleUpdate.add_member(:service_type, Shapes::ShapeRef.new(shape: ServiceType, location_name: "ServiceType"))
339
+ SamplingRuleUpdate.add_member(:http_method, Shapes::ShapeRef.new(shape: HTTPMethod, location_name: "HTTPMethod"))
340
+ SamplingRuleUpdate.add_member(:url_path, Shapes::ShapeRef.new(shape: URLPath, location_name: "URLPath"))
341
+ SamplingRuleUpdate.add_member(:attributes, Shapes::ShapeRef.new(shape: AttributeMap, location_name: "Attributes"))
342
+ SamplingRuleUpdate.struct_class = Types::SamplingRuleUpdate
343
+
344
+ SamplingStatisticSummary.add_member(:rule_name, Shapes::ShapeRef.new(shape: String, location_name: "RuleName"))
345
+ SamplingStatisticSummary.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
346
+ SamplingStatisticSummary.add_member(:request_count, Shapes::ShapeRef.new(shape: Integer, location_name: "RequestCount"))
347
+ SamplingStatisticSummary.add_member(:borrow_count, Shapes::ShapeRef.new(shape: Integer, location_name: "BorrowCount"))
348
+ SamplingStatisticSummary.add_member(:sampled_count, Shapes::ShapeRef.new(shape: Integer, location_name: "SampledCount"))
349
+ SamplingStatisticSummary.struct_class = Types::SamplingStatisticSummary
350
+
351
+ SamplingStatisticSummaryList.member = Shapes::ShapeRef.new(shape: SamplingStatisticSummary)
352
+
353
+ SamplingStatisticsDocument.add_member(:rule_name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "RuleName"))
354
+ SamplingStatisticsDocument.add_member(:client_id, Shapes::ShapeRef.new(shape: ClientID, required: true, location_name: "ClientID"))
355
+ SamplingStatisticsDocument.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "Timestamp"))
356
+ SamplingStatisticsDocument.add_member(:request_count, Shapes::ShapeRef.new(shape: RequestCount, required: true, location_name: "RequestCount"))
357
+ SamplingStatisticsDocument.add_member(:sampled_count, Shapes::ShapeRef.new(shape: SampledCount, required: true, location_name: "SampledCount"))
358
+ SamplingStatisticsDocument.add_member(:borrow_count, Shapes::ShapeRef.new(shape: BorrowCount, location_name: "BorrowCount"))
359
+ SamplingStatisticsDocument.struct_class = Types::SamplingStatisticsDocument
360
+
361
+ SamplingStatisticsDocumentList.member = Shapes::ShapeRef.new(shape: SamplingStatisticsDocument)
362
+
363
+ SamplingTargetDocument.add_member(:rule_name, Shapes::ShapeRef.new(shape: String, location_name: "RuleName"))
364
+ SamplingTargetDocument.add_member(:fixed_rate, Shapes::ShapeRef.new(shape: Double, location_name: "FixedRate"))
365
+ SamplingTargetDocument.add_member(:reservoir_quota, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "ReservoirQuota"))
366
+ SamplingTargetDocument.add_member(:reservoir_quota_ttl, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ReservoirQuotaTTL"))
367
+ SamplingTargetDocument.add_member(:interval, Shapes::ShapeRef.new(shape: NullableInteger, location_name: "Interval"))
368
+ SamplingTargetDocument.struct_class = Types::SamplingTargetDocument
369
+
370
+ SamplingTargetDocumentList.member = Shapes::ShapeRef.new(shape: SamplingTargetDocument)
371
+
228
372
  Segment.add_member(:id, Shapes::ShapeRef.new(shape: SegmentId, location_name: "Id"))
229
373
  Segment.add_member(:document, Shapes::ShapeRef.new(shape: SegmentDocument, location_name: "Document"))
230
374
  Segment.struct_class = Types::Segment
@@ -307,6 +451,13 @@ module Aws::XRay
307
451
 
308
452
  TraceUsers.member = Shapes::ShapeRef.new(shape: TraceUser)
309
453
 
454
+ UnprocessedStatistics.add_member(:rule_name, Shapes::ShapeRef.new(shape: String, location_name: "RuleName"))
455
+ UnprocessedStatistics.add_member(:error_code, Shapes::ShapeRef.new(shape: String, location_name: "ErrorCode"))
456
+ UnprocessedStatistics.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
457
+ UnprocessedStatistics.struct_class = Types::UnprocessedStatistics
458
+
459
+ UnprocessedStatisticsList.member = Shapes::ShapeRef.new(shape: UnprocessedStatistics)
460
+
310
461
  UnprocessedTraceIdList.member = Shapes::ShapeRef.new(shape: TraceId)
311
462
 
312
463
  UnprocessedTraceSegment.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
@@ -316,6 +467,12 @@ module Aws::XRay
316
467
 
317
468
  UnprocessedTraceSegmentList.member = Shapes::ShapeRef.new(shape: UnprocessedTraceSegment)
318
469
 
470
+ UpdateSamplingRuleRequest.add_member(:sampling_rule_update, Shapes::ShapeRef.new(shape: SamplingRuleUpdate, required: true, location_name: "SamplingRuleUpdate"))
471
+ UpdateSamplingRuleRequest.struct_class = Types::UpdateSamplingRuleRequest
472
+
473
+ UpdateSamplingRuleResult.add_member(:sampling_rule_record, Shapes::ShapeRef.new(shape: SamplingRuleRecord, location_name: "SamplingRuleRecord"))
474
+ UpdateSamplingRuleResult.struct_class = Types::UpdateSamplingRuleResult
475
+
319
476
  ValueWithServiceIds.add_member(:annotation_value, Shapes::ShapeRef.new(shape: AnnotationValue, location_name: "AnnotationValue"))
320
477
  ValueWithServiceIds.add_member(:service_ids, Shapes::ShapeRef.new(shape: ServiceIds, location_name: "ServiceIds"))
321
478
  ValueWithServiceIds.struct_class = Types::ValueWithServiceIds
@@ -350,6 +507,27 @@ module Aws::XRay
350
507
  )
351
508
  end)
352
509
 
510
+ api.add_operation(:create_sampling_rule, Seahorse::Model::Operation.new.tap do |o|
511
+ o.name = "CreateSamplingRule"
512
+ o.http_method = "POST"
513
+ o.http_request_uri = "/CreateSamplingRule"
514
+ o.input = Shapes::ShapeRef.new(shape: CreateSamplingRuleRequest)
515
+ o.output = Shapes::ShapeRef.new(shape: CreateSamplingRuleResult)
516
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
517
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
518
+ o.errors << Shapes::ShapeRef.new(shape: RuleLimitExceededException)
519
+ end)
520
+
521
+ api.add_operation(:delete_sampling_rule, Seahorse::Model::Operation.new.tap do |o|
522
+ o.name = "DeleteSamplingRule"
523
+ o.http_method = "POST"
524
+ o.http_request_uri = "/DeleteSamplingRule"
525
+ o.input = Shapes::ShapeRef.new(shape: DeleteSamplingRuleRequest)
526
+ o.output = Shapes::ShapeRef.new(shape: DeleteSamplingRuleResult)
527
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
528
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
529
+ end)
530
+
353
531
  api.add_operation(:get_encryption_config, Seahorse::Model::Operation.new.tap do |o|
354
532
  o.name = "GetEncryptionConfig"
355
533
  o.http_method = "POST"
@@ -360,6 +538,36 @@ module Aws::XRay
360
538
  o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
361
539
  end)
362
540
 
541
+ api.add_operation(:get_sampling_rules, Seahorse::Model::Operation.new.tap do |o|
542
+ o.name = "GetSamplingRules"
543
+ o.http_method = "POST"
544
+ o.http_request_uri = "/GetSamplingRules"
545
+ o.input = Shapes::ShapeRef.new(shape: GetSamplingRulesRequest)
546
+ o.output = Shapes::ShapeRef.new(shape: GetSamplingRulesResult)
547
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
548
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
549
+ end)
550
+
551
+ api.add_operation(:get_sampling_statistic_summaries, Seahorse::Model::Operation.new.tap do |o|
552
+ o.name = "GetSamplingStatisticSummaries"
553
+ o.http_method = "POST"
554
+ o.http_request_uri = "/SamplingStatisticSummaries"
555
+ o.input = Shapes::ShapeRef.new(shape: GetSamplingStatisticSummariesRequest)
556
+ o.output = Shapes::ShapeRef.new(shape: GetSamplingStatisticSummariesResult)
557
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
558
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
559
+ end)
560
+
561
+ api.add_operation(:get_sampling_targets, Seahorse::Model::Operation.new.tap do |o|
562
+ o.name = "GetSamplingTargets"
563
+ o.http_method = "POST"
564
+ o.http_request_uri = "/SamplingTargets"
565
+ o.input = Shapes::ShapeRef.new(shape: GetSamplingTargetsRequest)
566
+ o.output = Shapes::ShapeRef.new(shape: GetSamplingTargetsResult)
567
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
568
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
569
+ end)
570
+
363
571
  api.add_operation(:get_service_graph, Seahorse::Model::Operation.new.tap do |o|
364
572
  o.name = "GetServiceGraph"
365
573
  o.http_method = "POST"
@@ -434,6 +642,16 @@ module Aws::XRay
434
642
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
435
643
  o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
436
644
  end)
645
+
646
+ api.add_operation(:update_sampling_rule, Seahorse::Model::Operation.new.tap do |o|
647
+ o.name = "UpdateSamplingRule"
648
+ o.http_method = "POST"
649
+ o.http_request_uri = "/UpdateSamplingRule"
650
+ o.input = Shapes::ShapeRef.new(shape: UpdateSamplingRuleRequest)
651
+ o.output = Shapes::ShapeRef.new(shape: UpdateSamplingRuleResult)
652
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
653
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
654
+ end)
437
655
  end
438
656
 
439
657
  end