aws-sdk-xray 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-xray.rb +1 -1
- data/lib/aws-sdk-xray/client.rb +70 -2
- data/lib/aws-sdk-xray/client_api.rb +45 -0
- data/lib/aws-sdk-xray/types.rb +104 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c27975c7cf23833d7bc694b500baa5dfbbcfcb6b
|
4
|
+
data.tar.gz: 93fa25adad537459f8d355beab53bff7db6b868d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7231effb9348a6817545bce262c97616c3c02a5380afc1f4c7792c0dc98d2d49149aa4d71eb6f4248a1ea681146d10bc867e5350cee65371e636d5a7e819931
|
7
|
+
data.tar.gz: 4065138dd75588772f9eb2b9b0fc59c3db79d1f015a9c7418d901e888ce23db1d2fac34407dafc26e14ac84686550760684aab12bc9b24588f99b04a52c1b823
|
data/lib/aws-sdk-xray.rb
CHANGED
data/lib/aws-sdk-xray/client.rb
CHANGED
@@ -189,6 +189,27 @@ module Aws::XRay
|
|
189
189
|
req.send_request(options)
|
190
190
|
end
|
191
191
|
|
192
|
+
# Retrieves the current encryption configuration for X-Ray data.
|
193
|
+
#
|
194
|
+
# @return [Types::GetEncryptionConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
195
|
+
#
|
196
|
+
# * {Types::GetEncryptionConfigResult#encryption_config #encryption_config} => Types::EncryptionConfig
|
197
|
+
#
|
198
|
+
# @example Response structure
|
199
|
+
#
|
200
|
+
# resp.encryption_config.key_id #=> String
|
201
|
+
# resp.encryption_config.status #=> String, one of "UPDATING", "ACTIVE"
|
202
|
+
# resp.encryption_config.type #=> String, one of "NONE", "KMS"
|
203
|
+
#
|
204
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetEncryptionConfig AWS API Documentation
|
205
|
+
#
|
206
|
+
# @overload get_encryption_config(params = {})
|
207
|
+
# @param [Hash] params ({})
|
208
|
+
def get_encryption_config(params = {}, options = {})
|
209
|
+
req = build_request(:get_encryption_config, params)
|
210
|
+
req.send_request(options)
|
211
|
+
end
|
212
|
+
|
192
213
|
# Retrieves a document that describes services that process incoming
|
193
214
|
# requests, and downstream services that they call as a result. Root
|
194
215
|
# services process incoming requests and make calls to downstream
|
@@ -469,6 +490,53 @@ module Aws::XRay
|
|
469
490
|
req.send_request(options)
|
470
491
|
end
|
471
492
|
|
493
|
+
# Updates the encryption configuration for X-Ray data.
|
494
|
+
#
|
495
|
+
# @option params [String] :key_id
|
496
|
+
# An AWS KMS customer master key (CMK) in one of the following formats:
|
497
|
+
#
|
498
|
+
# * **Alias** - The name of the key. For example, `alias/MyKey`.
|
499
|
+
#
|
500
|
+
# * **Key ID** - The KMS key ID of the key. For example,
|
501
|
+
# `ae4aa6d49-a4d8-9df9-a475-4ff6d7898456`.
|
502
|
+
#
|
503
|
+
# * **ARN** - The full Amazon Resource Name of the key ID or alias. For
|
504
|
+
# example,
|
505
|
+
# `arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456`.
|
506
|
+
# Use this format to specify a key in a different account.
|
507
|
+
#
|
508
|
+
# Omit this key if you set `Type` to `NONE`.
|
509
|
+
#
|
510
|
+
# @option params [required, String] :type
|
511
|
+
# The type of encryption. Set to `KMS` to use your own key for
|
512
|
+
# encryption. Set to `NONE` for default encryption.
|
513
|
+
#
|
514
|
+
# @return [Types::PutEncryptionConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
515
|
+
#
|
516
|
+
# * {Types::PutEncryptionConfigResult#encryption_config #encryption_config} => Types::EncryptionConfig
|
517
|
+
#
|
518
|
+
# @example Request syntax with placeholder values
|
519
|
+
#
|
520
|
+
# resp = client.put_encryption_config({
|
521
|
+
# key_id: "EncryptionKeyId",
|
522
|
+
# type: "NONE", # required, accepts NONE, KMS
|
523
|
+
# })
|
524
|
+
#
|
525
|
+
# @example Response structure
|
526
|
+
#
|
527
|
+
# resp.encryption_config.key_id #=> String
|
528
|
+
# resp.encryption_config.status #=> String, one of "UPDATING", "ACTIVE"
|
529
|
+
# resp.encryption_config.type #=> String, one of "NONE", "KMS"
|
530
|
+
#
|
531
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutEncryptionConfig AWS API Documentation
|
532
|
+
#
|
533
|
+
# @overload put_encryption_config(params = {})
|
534
|
+
# @param [Hash] params ({})
|
535
|
+
def put_encryption_config(params = {}, options = {})
|
536
|
+
req = build_request(:put_encryption_config, params)
|
537
|
+
req.send_request(options)
|
538
|
+
end
|
539
|
+
|
472
540
|
# Used by the AWS X-Ray daemon to upload telemetry.
|
473
541
|
#
|
474
542
|
# @option params [required, Array<Types::TelemetryRecord>] :telemetry_records
|
@@ -565,7 +633,7 @@ module Aws::XRay
|
|
565
633
|
#
|
566
634
|
#
|
567
635
|
#
|
568
|
-
# [1]:
|
636
|
+
# [1]: https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html
|
569
637
|
#
|
570
638
|
# @option params [required, Array<String>] :trace_segment_documents
|
571
639
|
# A string containing a JSON document defining one or more segments or
|
@@ -610,7 +678,7 @@ module Aws::XRay
|
|
610
678
|
params: params,
|
611
679
|
config: config)
|
612
680
|
context[:gem_name] = 'aws-sdk-xray'
|
613
|
-
context[:gem_version] = '1.
|
681
|
+
context[:gem_version] = '1.2.0'
|
614
682
|
Seahorse::Client::Request.new(handlers, context)
|
615
683
|
end
|
616
684
|
|
@@ -25,10 +25,16 @@ module Aws::XRay
|
|
25
25
|
Edge = Shapes::StructureShape.new(name: 'Edge')
|
26
26
|
EdgeList = Shapes::ListShape.new(name: 'EdgeList')
|
27
27
|
EdgeStatistics = Shapes::StructureShape.new(name: 'EdgeStatistics')
|
28
|
+
EncryptionConfig = Shapes::StructureShape.new(name: 'EncryptionConfig')
|
29
|
+
EncryptionKeyId = Shapes::StringShape.new(name: 'EncryptionKeyId')
|
30
|
+
EncryptionStatus = Shapes::StringShape.new(name: 'EncryptionStatus')
|
31
|
+
EncryptionType = Shapes::StringShape.new(name: 'EncryptionType')
|
28
32
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
29
33
|
ErrorStatistics = Shapes::StructureShape.new(name: 'ErrorStatistics')
|
30
34
|
FaultStatistics = Shapes::StructureShape.new(name: 'FaultStatistics')
|
31
35
|
FilterExpression = Shapes::StringShape.new(name: 'FilterExpression')
|
36
|
+
GetEncryptionConfigRequest = Shapes::StructureShape.new(name: 'GetEncryptionConfigRequest')
|
37
|
+
GetEncryptionConfigResult = Shapes::StructureShape.new(name: 'GetEncryptionConfigResult')
|
32
38
|
GetServiceGraphRequest = Shapes::StructureShape.new(name: 'GetServiceGraphRequest')
|
33
39
|
GetServiceGraphResult = Shapes::StructureShape.new(name: 'GetServiceGraphResult')
|
34
40
|
GetTraceGraphRequest = Shapes::StructureShape.new(name: 'GetTraceGraphRequest')
|
@@ -45,6 +51,8 @@ module Aws::XRay
|
|
45
51
|
NullableDouble = Shapes::FloatShape.new(name: 'NullableDouble')
|
46
52
|
NullableInteger = Shapes::IntegerShape.new(name: 'NullableInteger')
|
47
53
|
NullableLong = Shapes::IntegerShape.new(name: 'NullableLong')
|
54
|
+
PutEncryptionConfigRequest = Shapes::StructureShape.new(name: 'PutEncryptionConfigRequest')
|
55
|
+
PutEncryptionConfigResult = Shapes::StructureShape.new(name: 'PutEncryptionConfigResult')
|
48
56
|
PutTelemetryRecordsRequest = Shapes::StructureShape.new(name: 'PutTelemetryRecordsRequest')
|
49
57
|
PutTelemetryRecordsResult = Shapes::StructureShape.new(name: 'PutTelemetryRecordsResult')
|
50
58
|
PutTraceSegmentsRequest = Shapes::StructureShape.new(name: 'PutTraceSegmentsRequest')
|
@@ -132,6 +140,11 @@ module Aws::XRay
|
|
132
140
|
EdgeStatistics.add_member(:total_response_time, Shapes::ShapeRef.new(shape: NullableDouble, location_name: "TotalResponseTime"))
|
133
141
|
EdgeStatistics.struct_class = Types::EdgeStatistics
|
134
142
|
|
143
|
+
EncryptionConfig.add_member(:key_id, Shapes::ShapeRef.new(shape: String, location_name: "KeyId"))
|
144
|
+
EncryptionConfig.add_member(:status, Shapes::ShapeRef.new(shape: EncryptionStatus, location_name: "Status"))
|
145
|
+
EncryptionConfig.add_member(:type, Shapes::ShapeRef.new(shape: EncryptionType, location_name: "Type"))
|
146
|
+
EncryptionConfig.struct_class = Types::EncryptionConfig
|
147
|
+
|
135
148
|
ErrorStatistics.add_member(:throttle_count, Shapes::ShapeRef.new(shape: NullableLong, location_name: "ThrottleCount"))
|
136
149
|
ErrorStatistics.add_member(:other_count, Shapes::ShapeRef.new(shape: NullableLong, location_name: "OtherCount"))
|
137
150
|
ErrorStatistics.add_member(:total_count, Shapes::ShapeRef.new(shape: NullableLong, location_name: "TotalCount"))
|
@@ -141,6 +154,11 @@ module Aws::XRay
|
|
141
154
|
FaultStatistics.add_member(:total_count, Shapes::ShapeRef.new(shape: NullableLong, location_name: "TotalCount"))
|
142
155
|
FaultStatistics.struct_class = Types::FaultStatistics
|
143
156
|
|
157
|
+
GetEncryptionConfigRequest.struct_class = Types::GetEncryptionConfigRequest
|
158
|
+
|
159
|
+
GetEncryptionConfigResult.add_member(:encryption_config, Shapes::ShapeRef.new(shape: EncryptionConfig, location_name: "EncryptionConfig"))
|
160
|
+
GetEncryptionConfigResult.struct_class = Types::GetEncryptionConfigResult
|
161
|
+
|
144
162
|
GetServiceGraphRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTime"))
|
145
163
|
GetServiceGraphRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTime"))
|
146
164
|
GetServiceGraphRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
@@ -186,6 +204,13 @@ module Aws::XRay
|
|
186
204
|
Http.add_member(:client_ip, Shapes::ShapeRef.new(shape: String, location_name: "ClientIp"))
|
187
205
|
Http.struct_class = Types::Http
|
188
206
|
|
207
|
+
PutEncryptionConfigRequest.add_member(:key_id, Shapes::ShapeRef.new(shape: EncryptionKeyId, location_name: "KeyId"))
|
208
|
+
PutEncryptionConfigRequest.add_member(:type, Shapes::ShapeRef.new(shape: EncryptionType, required: true, location_name: "Type"))
|
209
|
+
PutEncryptionConfigRequest.struct_class = Types::PutEncryptionConfigRequest
|
210
|
+
|
211
|
+
PutEncryptionConfigResult.add_member(:encryption_config, Shapes::ShapeRef.new(shape: EncryptionConfig, location_name: "EncryptionConfig"))
|
212
|
+
PutEncryptionConfigResult.struct_class = Types::PutEncryptionConfigResult
|
213
|
+
|
189
214
|
PutTelemetryRecordsRequest.add_member(:telemetry_records, Shapes::ShapeRef.new(shape: TelemetryRecordList, required: true, location_name: "TelemetryRecords"))
|
190
215
|
PutTelemetryRecordsRequest.add_member(:ec2_instance_id, Shapes::ShapeRef.new(shape: EC2InstanceId, location_name: "EC2InstanceId"))
|
191
216
|
PutTelemetryRecordsRequest.add_member(:hostname, Shapes::ShapeRef.new(shape: Hostname, location_name: "Hostname"))
|
@@ -325,6 +350,16 @@ module Aws::XRay
|
|
325
350
|
)
|
326
351
|
end)
|
327
352
|
|
353
|
+
api.add_operation(:get_encryption_config, Seahorse::Model::Operation.new.tap do |o|
|
354
|
+
o.name = "GetEncryptionConfig"
|
355
|
+
o.http_method = "POST"
|
356
|
+
o.http_request_uri = "/EncryptionConfig"
|
357
|
+
o.input = Shapes::ShapeRef.new(shape: GetEncryptionConfigRequest)
|
358
|
+
o.output = Shapes::ShapeRef.new(shape: GetEncryptionConfigResult)
|
359
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
360
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
|
361
|
+
end)
|
362
|
+
|
328
363
|
api.add_operation(:get_service_graph, Seahorse::Model::Operation.new.tap do |o|
|
329
364
|
o.name = "GetServiceGraph"
|
330
365
|
o.http_method = "POST"
|
@@ -370,6 +405,16 @@ module Aws::XRay
|
|
370
405
|
)
|
371
406
|
end)
|
372
407
|
|
408
|
+
api.add_operation(:put_encryption_config, Seahorse::Model::Operation.new.tap do |o|
|
409
|
+
o.name = "PutEncryptionConfig"
|
410
|
+
o.http_method = "POST"
|
411
|
+
o.http_request_uri = "/PutEncryptionConfig"
|
412
|
+
o.input = Shapes::ShapeRef.new(shape: PutEncryptionConfigRequest)
|
413
|
+
o.output = Shapes::ShapeRef.new(shape: PutEncryptionConfigResult)
|
414
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
415
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
|
416
|
+
end)
|
417
|
+
|
373
418
|
api.add_operation(:put_telemetry_records, Seahorse::Model::Operation.new.tap do |o|
|
374
419
|
o.name = "PutTelemetryRecords"
|
375
420
|
o.http_method = "POST"
|
data/lib/aws-sdk-xray/types.rb
CHANGED
@@ -217,6 +217,34 @@ module Aws::XRay
|
|
217
217
|
include Aws::Structure
|
218
218
|
end
|
219
219
|
|
220
|
+
# A configuration document that specifies encryption configuration
|
221
|
+
# settings.
|
222
|
+
#
|
223
|
+
# @!attribute [rw] key_id
|
224
|
+
# The ID of the customer master key (CMK) used for encryption, if
|
225
|
+
# applicable.
|
226
|
+
# @return [String]
|
227
|
+
#
|
228
|
+
# @!attribute [rw] status
|
229
|
+
# The encryption status. After modifying encryption configuration with
|
230
|
+
# PutEncryptionConfig, the status can be `UPDATING` for up to one hour
|
231
|
+
# before X-Ray starts encrypting data with the new key.
|
232
|
+
# @return [String]
|
233
|
+
#
|
234
|
+
# @!attribute [rw] type
|
235
|
+
# The type of encryption. Set to `KMS` for encryption with CMKs. Set
|
236
|
+
# to `NONE` for default encryption.
|
237
|
+
# @return [String]
|
238
|
+
#
|
239
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/EncryptionConfig AWS API Documentation
|
240
|
+
#
|
241
|
+
class EncryptionConfig < Struct.new(
|
242
|
+
:key_id,
|
243
|
+
:status,
|
244
|
+
:type)
|
245
|
+
include Aws::Structure
|
246
|
+
end
|
247
|
+
|
220
248
|
# Information about requests that failed with a 4xx Client Error status
|
221
249
|
# code.
|
222
250
|
#
|
@@ -265,6 +293,23 @@ module Aws::XRay
|
|
265
293
|
include Aws::Structure
|
266
294
|
end
|
267
295
|
|
296
|
+
# @api private
|
297
|
+
#
|
298
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetEncryptionConfigRequest AWS API Documentation
|
299
|
+
#
|
300
|
+
class GetEncryptionConfigRequest < Aws::EmptyStructure; end
|
301
|
+
|
302
|
+
# @!attribute [rw] encryption_config
|
303
|
+
# The encryption configuration document.
|
304
|
+
# @return [Types::EncryptionConfig]
|
305
|
+
#
|
306
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetEncryptionConfigResult AWS API Documentation
|
307
|
+
#
|
308
|
+
class GetEncryptionConfigResult < Struct.new(
|
309
|
+
:encryption_config)
|
310
|
+
include Aws::Structure
|
311
|
+
end
|
312
|
+
|
268
313
|
# @note When making an API call, you may pass GetServiceGraphRequest
|
269
314
|
# data as a hash:
|
270
315
|
#
|
@@ -417,8 +462,8 @@ module Aws::XRay
|
|
417
462
|
# @return [Time]
|
418
463
|
#
|
419
464
|
# @!attribute [rw] traces_processed_count
|
420
|
-
# The number of traces
|
421
|
-
#
|
465
|
+
# The total number of traces processed, including traces that did not
|
466
|
+
# match the specified filter expression.
|
422
467
|
# @return [Integer]
|
423
468
|
#
|
424
469
|
# @!attribute [rw] next_token
|
@@ -491,6 +536,55 @@ module Aws::XRay
|
|
491
536
|
include Aws::Structure
|
492
537
|
end
|
493
538
|
|
539
|
+
# @note When making an API call, you may pass PutEncryptionConfigRequest
|
540
|
+
# data as a hash:
|
541
|
+
#
|
542
|
+
# {
|
543
|
+
# key_id: "EncryptionKeyId",
|
544
|
+
# type: "NONE", # required, accepts NONE, KMS
|
545
|
+
# }
|
546
|
+
#
|
547
|
+
# @!attribute [rw] key_id
|
548
|
+
# An AWS KMS customer master key (CMK) in one of the following
|
549
|
+
# formats:
|
550
|
+
#
|
551
|
+
# * **Alias** - The name of the key. For example, `alias/MyKey`.
|
552
|
+
#
|
553
|
+
# * **Key ID** - The KMS key ID of the key. For example,
|
554
|
+
# `ae4aa6d49-a4d8-9df9-a475-4ff6d7898456`.
|
555
|
+
#
|
556
|
+
# * **ARN** - The full Amazon Resource Name of the key ID or alias.
|
557
|
+
# For example,
|
558
|
+
# `arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456`.
|
559
|
+
# Use this format to specify a key in a different account.
|
560
|
+
#
|
561
|
+
# Omit this key if you set `Type` to `NONE`.
|
562
|
+
# @return [String]
|
563
|
+
#
|
564
|
+
# @!attribute [rw] type
|
565
|
+
# The type of encryption. Set to `KMS` to use your own key for
|
566
|
+
# encryption. Set to `NONE` for default encryption.
|
567
|
+
# @return [String]
|
568
|
+
#
|
569
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutEncryptionConfigRequest AWS API Documentation
|
570
|
+
#
|
571
|
+
class PutEncryptionConfigRequest < Struct.new(
|
572
|
+
:key_id,
|
573
|
+
:type)
|
574
|
+
include Aws::Structure
|
575
|
+
end
|
576
|
+
|
577
|
+
# @!attribute [rw] encryption_config
|
578
|
+
# The new encryption configuration.
|
579
|
+
# @return [Types::EncryptionConfig]
|
580
|
+
#
|
581
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutEncryptionConfigResult AWS API Documentation
|
582
|
+
#
|
583
|
+
class PutEncryptionConfigResult < Struct.new(
|
584
|
+
:encryption_config)
|
585
|
+
include Aws::Structure
|
586
|
+
end
|
587
|
+
|
494
588
|
# @note When making an API call, you may pass PutTelemetryRecordsRequest
|
495
589
|
# data as a hash:
|
496
590
|
#
|
@@ -578,12 +672,19 @@ module Aws::XRay
|
|
578
672
|
# PutTraceSegments, or an `inferred` segment for a downstream service,
|
579
673
|
# generated from a subsegment sent by the service that called it.
|
580
674
|
#
|
675
|
+
# For the full segment document schema, see [AWS X-Ray Segment
|
676
|
+
# Documents][1] in the *AWS X-Ray Developer Guide*.
|
677
|
+
#
|
678
|
+
#
|
679
|
+
#
|
680
|
+
# [1]: https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html
|
681
|
+
#
|
581
682
|
# @!attribute [rw] id
|
582
683
|
# The segment's ID.
|
583
684
|
# @return [String]
|
584
685
|
#
|
585
686
|
# @!attribute [rw] document
|
586
|
-
# The segment document
|
687
|
+
# The segment document.
|
587
688
|
# @return [String]
|
588
689
|
#
|
589
690
|
# @see http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/Segment AWS API Documentation
|
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.2.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:
|
11
|
+
date: 2018-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|
77
77
|
rubyforge_project:
|
78
|
-
rubygems_version: 2.5.
|
78
|
+
rubygems_version: 2.5.2.3
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: AWS SDK for Ruby - AWS X-Ray
|