@aws-sdk/client-xray 3.1151.0 → 3.1153.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.
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1150.0";
72
+ var version = "3.1152.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -335,6 +335,7 @@ const _CSRRr = "CreateSamplingRuleResult";
335
335
  const _CTR = "CancelTraceRetrieval";
336
336
  const _CTRR = "CancelTraceRetrievalRequest";
337
337
  const _CTRRa = "CancelTraceRetrievalResult";
338
+ const _CWLC = "CloudWatchLogsConfiguration";
338
339
  const _CWM = "CooldownWindowMinutes";
339
340
  const _Ca = "Categories";
340
341
  const _Co = "Coverage";
@@ -593,6 +594,7 @@ const _SGST = "ServiceGraphStartTime";
593
594
  const _SI = "ServiceId";
594
595
  const _SIe = "ServiceIds";
595
596
  const _SL = "SegmentList";
597
+ const _SLGKKI = "SpansLogGroupKmsKeyId";
596
598
  const _SLe = "ServiceList";
597
599
  const _SLp = "SpanList";
598
600
  const _SN = "ServiceName";
@@ -819,6 +821,11 @@ var CancelTraceRetrievalResult$ = [3, n0, _CTRRa,
819
821
  [],
820
822
  []
821
823
  ];
824
+ var CloudWatchLogsConfiguration$ = [3, n0, _CWLC,
825
+ 0,
826
+ [_SLGKKI],
827
+ [0]
828
+ ];
822
829
  var CreateGroupRequest$ = [3, n0, _CGR,
823
830
  0,
824
831
  [_GN, _FE, _IC, _Ta],
@@ -1466,8 +1473,8 @@ var UpdateSamplingRuleResult$ = [3, n0, _USRRp,
1466
1473
  ];
1467
1474
  var UpdateTraceSegmentDestinationRequest$ = [3, n0, _UTSDR,
1468
1475
  0,
1469
- [_D],
1470
- [0]
1476
+ [_D, _CWLC],
1477
+ [0, () => CloudWatchLogsConfiguration$]
1471
1478
  ];
1472
1479
  var UpdateTraceSegmentDestinationResult$ = [3, n0, _UTSDRp,
1473
1480
  0,
@@ -2151,6 +2158,7 @@ exports.CancelTraceRetrieval$ = CancelTraceRetrieval$;
2151
2158
  exports.CancelTraceRetrievalCommand = CancelTraceRetrievalCommand;
2152
2159
  exports.CancelTraceRetrievalRequest$ = CancelTraceRetrievalRequest$;
2153
2160
  exports.CancelTraceRetrievalResult$ = CancelTraceRetrievalResult$;
2161
+ exports.CloudWatchLogsConfiguration$ = CloudWatchLogsConfiguration$;
2154
2162
  exports.CreateGroup$ = CreateGroup$;
2155
2163
  exports.CreateGroupCommand = CreateGroupCommand;
2156
2164
  exports.CreateGroupRequest$ = CreateGroupRequest$;
@@ -39,6 +39,7 @@ const _CSRRr = "CreateSamplingRuleResult";
39
39
  const _CTR = "CancelTraceRetrieval";
40
40
  const _CTRR = "CancelTraceRetrievalRequest";
41
41
  const _CTRRa = "CancelTraceRetrievalResult";
42
+ const _CWLC = "CloudWatchLogsConfiguration";
42
43
  const _CWM = "CooldownWindowMinutes";
43
44
  const _Ca = "Categories";
44
45
  const _Co = "Coverage";
@@ -297,6 +298,7 @@ const _SGST = "ServiceGraphStartTime";
297
298
  const _SI = "ServiceId";
298
299
  const _SIe = "ServiceIds";
299
300
  const _SL = "SegmentList";
301
+ const _SLGKKI = "SpansLogGroupKmsKeyId";
300
302
  const _SLe = "ServiceList";
301
303
  const _SLp = "SpanList";
302
304
  const _SN = "ServiceName";
@@ -526,6 +528,11 @@ export var CancelTraceRetrievalResult$ = [3, n0, _CTRRa,
526
528
  [],
527
529
  []
528
530
  ];
531
+ export var CloudWatchLogsConfiguration$ = [3, n0, _CWLC,
532
+ 0,
533
+ [_SLGKKI],
534
+ [0]
535
+ ];
529
536
  export var CreateGroupRequest$ = [3, n0, _CGR,
530
537
  0,
531
538
  [_GN, _FE, _IC, _Ta],
@@ -1173,8 +1180,8 @@ export var UpdateSamplingRuleResult$ = [3, n0, _USRRp,
1173
1180
  ];
1174
1181
  export var UpdateTraceSegmentDestinationRequest$ = [3, n0, _UTSDR,
1175
1182
  0,
1176
- [_D],
1177
- [0]
1183
+ [_D, _CWLC],
1184
+ [0, () => CloudWatchLogsConfiguration$]
1178
1185
  ];
1179
1186
  export var UpdateTraceSegmentDestinationResult$ = [3, n0, _UTSDRp,
1180
1187
  0,
@@ -37,6 +37,9 @@ declare const UpdateTraceSegmentDestinationCommand_base: {
37
37
  * const client = new XRayClient(config);
38
38
  * const input = { // UpdateTraceSegmentDestinationRequest
39
39
  * Destination: "XRay" || "CloudWatchLogs",
40
+ * CloudWatchLogsConfiguration: { // CloudWatchLogsConfiguration
41
+ * SpansLogGroupKmsKeyId: "STRING_VALUE",
42
+ * },
40
43
  * };
41
44
  * const command = new UpdateTraceSegmentDestinationCommand(input);
42
45
  * const response = await client.send(command);
@@ -3483,6 +3483,27 @@ export interface UpdateSamplingRuleResult {
3483
3483
  */
3484
3484
  SamplingRuleRecord?: SamplingRuleRecord | undefined;
3485
3485
  }
3486
+ /**
3487
+ * <p>
3488
+ * Contains the settings for the CloudWatch Logs log groups that X-Ray creates for Transaction Search.
3489
+ * </p>
3490
+ * @public
3491
+ */
3492
+ export interface CloudWatchLogsConfiguration {
3493
+ /**
3494
+ * <p>
3495
+ * The ARN of an AWS Key Management Service (AWS KMS) key that you create and manage, in the same account and Region, used to encrypt the <code>aws/spans</code> log group. Key IDs and alias ARNs are not supported.
3496
+ * </p>
3497
+ * <p>
3498
+ * X-Ray applies the key only when it creates <code>aws/spans</code>. If the account already has an <code>aws/spans</code> log group, X-Ray fails the request with an <code>InvalidRequestException</code> and does not change the log group. To enable Transaction Search with the existing log group as it is, call <code>UpdateTraceSegmentDestination</code> again without <code>SpansLogGroupKmsKeyId</code>. To set or change the key of the existing log group, use the CloudWatch Logs <code>AssociateKmsKey</code> operation.
3499
+ * </p>
3500
+ * <p>
3501
+ * You need <code>kms:DescribeKey</code> permission on the key, and the key policy must allow CloudWatch Logs to use the key. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/encrypt-log-data-kms.html">Encrypt log data in CloudWatch Logs using AWS Key Management Service</a>.
3502
+ * </p>
3503
+ * @public
3504
+ */
3505
+ SpansLogGroupKmsKeyId?: string | undefined;
3506
+ }
3486
3507
  /**
3487
3508
  * @public
3488
3509
  */
@@ -3494,6 +3515,13 @@ export interface UpdateTraceSegmentDestinationRequest {
3494
3515
  * @public
3495
3516
  */
3496
3517
  Destination?: TraceSegmentDestination | undefined;
3518
+ /**
3519
+ * <p>
3520
+ * Specifies settings for the CloudWatch Logs log groups that X-Ray creates for Transaction Search. Specify this only when <code>Destination</code> is <code>CloudWatchLogs</code>.
3521
+ * </p>
3522
+ * @public
3523
+ */
3524
+ CloudWatchLogsConfiguration?: CloudWatchLogsConfiguration | undefined;
3497
3525
  }
3498
3526
  /**
3499
3527
  * @public
@@ -25,6 +25,7 @@ export declare var BatchGetTracesRequest$: StaticStructureSchema;
25
25
  export declare var BatchGetTracesResult$: StaticStructureSchema;
26
26
  export declare var CancelTraceRetrievalRequest$: StaticStructureSchema;
27
27
  export declare var CancelTraceRetrievalResult$: StaticStructureSchema;
28
+ export declare var CloudWatchLogsConfiguration$: StaticStructureSchema;
28
29
  export declare var CreateGroupRequest$: StaticStructureSchema;
29
30
  export declare var CreateGroupResult$: StaticStructureSchema;
30
31
  export declare var CreateSamplingRuleRequest$: StaticStructureSchema;
@@ -787,8 +787,12 @@ export interface UpdateSamplingRuleRequest {
787
787
  export interface UpdateSamplingRuleResult {
788
788
  SamplingRuleRecord?: SamplingRuleRecord | undefined;
789
789
  }
790
+ export interface CloudWatchLogsConfiguration {
791
+ SpansLogGroupKmsKeyId?: string | undefined;
792
+ }
790
793
  export interface UpdateTraceSegmentDestinationRequest {
791
794
  Destination?: TraceSegmentDestination | undefined;
795
+ CloudWatchLogsConfiguration?: CloudWatchLogsConfiguration | undefined;
792
796
  }
793
797
  export interface UpdateTraceSegmentDestinationResult {
794
798
  Destination?: TraceSegmentDestination | undefined;
@@ -25,6 +25,7 @@ export declare var BatchGetTracesRequest$: StaticStructureSchema;
25
25
  export declare var BatchGetTracesResult$: StaticStructureSchema;
26
26
  export declare var CancelTraceRetrievalRequest$: StaticStructureSchema;
27
27
  export declare var CancelTraceRetrievalResult$: StaticStructureSchema;
28
+ export declare var CloudWatchLogsConfiguration$: StaticStructureSchema;
28
29
  export declare var CreateGroupRequest$: StaticStructureSchema;
29
30
  export declare var CreateGroupResult$: StaticStructureSchema;
30
31
  export declare var CreateSamplingRuleRequest$: StaticStructureSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-xray",
3
- "version": "3.1151.0",
3
+ "version": "3.1153.0",
4
4
  "description": "AWS SDK for JavaScript Xray Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-xray",
6
6
  "license": "Apache-2.0",
@@ -46,10 +46,10 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.3",
50
- "@aws-sdk/credential-provider-node": "^3.972.86",
49
+ "@aws-sdk/core": "^3.978.4",
50
+ "@aws-sdk/credential-provider-node": "^3.972.87",
51
51
  "@aws-sdk/types": "^3.974.6",
52
- "@smithy/core": "^3.35.2",
52
+ "@smithy/core": "^3.36.0",
53
53
  "@smithy/fetch-http-handler": "^5.8.0",
54
54
  "@smithy/node-http-handler": "^4.12.1",
55
55
  "@smithy/types": "^4.19.0",