@aws-sdk/client-xray 3.427.0 → 3.429.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.
@@ -91,6 +91,7 @@ exports.SamplingStrategyName = {
91
91
  };
92
92
  exports.TimeRangeType = {
93
93
  Event: "Event",
94
+ Service: "Service",
94
95
  TraceId: "TraceId",
95
96
  };
96
97
  class ResourceNotFoundException extends XRayServiceException_1.XRayServiceException {
@@ -84,6 +84,7 @@ export const SamplingStrategyName = {
84
84
  };
85
85
  export const TimeRangeType = {
86
86
  Event: "Event",
87
+ Service: "Service",
87
88
  TraceId: "TraceId",
88
89
  };
89
90
  export class ResourceNotFoundException extends __BaseException {
@@ -49,7 +49,7 @@ export interface GetTraceSummariesCommandOutput extends GetTraceSummariesResult,
49
49
  * const input = { // GetTraceSummariesRequest
50
50
  * StartTime: new Date("TIMESTAMP"), // required
51
51
  * EndTime: new Date("TIMESTAMP"), // required
52
- * TimeRangeType: "TraceId" || "Event",
52
+ * TimeRangeType: "TraceId" || "Event" || "Service",
53
53
  * Sampling: true || false,
54
54
  * SamplingStrategy: { // SamplingStrategy
55
55
  * Name: "PartialScan" || "FixedRate",
@@ -700,13 +700,13 @@ export interface EncryptionConfig {
700
700
  * @public
701
701
  * <p>The encryption status. While the status is <code>UPDATING</code>, X-Ray may encrypt data with a combination of the new and old settings.</p>
702
702
  */
703
- Status?: EncryptionStatus | string;
703
+ Status?: EncryptionStatus;
704
704
  /**
705
705
  * @public
706
706
  * <p>The type of encryption. Set to <code>KMS</code> for encryption with KMS keys. Set to <code>NONE</code> for
707
707
  * default encryption.</p>
708
708
  */
709
- Type?: EncryptionType | string;
709
+ Type?: EncryptionType;
710
710
  }
711
711
  /**
712
712
  * @public
@@ -889,12 +889,12 @@ export interface Insight {
889
889
  * @public
890
890
  * <p>The categories that label and describe the type of insight.</p>
891
891
  */
892
- Categories?: (InsightCategory | string)[];
892
+ Categories?: InsightCategory[];
893
893
  /**
894
894
  * @public
895
895
  * <p>The current state of the insight.</p>
896
896
  */
897
- State?: InsightState | string;
897
+ State?: InsightState;
898
898
  /**
899
899
  * @public
900
900
  * <p>The time, in Unix seconds, at which the insight began.</p>
@@ -1149,7 +1149,7 @@ export interface GetInsightSummariesRequest {
1149
1149
  * @public
1150
1150
  * <p>The list of insight states. </p>
1151
1151
  */
1152
- States?: (InsightState | string)[];
1152
+ States?: InsightState[];
1153
1153
  /**
1154
1154
  * @public
1155
1155
  * <p>The Amazon Resource Name (ARN) of the group. Required if the GroupName isn't provided.</p>
@@ -1211,12 +1211,12 @@ export interface InsightSummary {
1211
1211
  * @public
1212
1212
  * <p> Categories The categories that label and describe the type of insight.</p>
1213
1213
  */
1214
- Categories?: (InsightCategory | string)[];
1214
+ Categories?: InsightCategory[];
1215
1215
  /**
1216
1216
  * @public
1217
1217
  * <p>The current state of the insight.</p>
1218
1218
  */
1219
- State?: InsightState | string;
1219
+ State?: InsightState;
1220
1220
  /**
1221
1221
  * @public
1222
1222
  * <p>The time, in Unix seconds, at which the insight began.</p>
@@ -1974,7 +1974,7 @@ export interface SamplingStrategy {
1974
1974
  * @public
1975
1975
  * <p>The name of a sampling rule.</p>
1976
1976
  */
1977
- Name?: SamplingStrategyName | string;
1977
+ Name?: SamplingStrategyName;
1978
1978
  /**
1979
1979
  * @public
1980
1980
  * <p>The value of a sampling rule.</p>
@@ -1987,6 +1987,7 @@ export interface SamplingStrategy {
1987
1987
  */
1988
1988
  export declare const TimeRangeType: {
1989
1989
  readonly Event: "Event";
1990
+ readonly Service: "Service";
1990
1991
  readonly TraceId: "TraceId";
1991
1992
  };
1992
1993
  /**
@@ -2009,9 +2010,9 @@ export interface GetTraceSummariesRequest {
2009
2010
  EndTime: Date | undefined;
2010
2011
  /**
2011
2012
  * @public
2012
- * <p>A parameter to indicate whether to query trace summaries by TraceId or Event time.</p>
2013
+ * <p>A parameter to indicate whether to query trace summaries by TraceId, Event (trace update time), or Service (segment end time).</p>
2013
2014
  */
2014
- TimeRangeType?: TimeRangeType | string;
2015
+ TimeRangeType?: TimeRangeType;
2015
2016
  /**
2016
2017
  * @public
2017
2018
  * <p>Set to <code>true</code> to get summaries for only a subset of available
@@ -2628,7 +2629,7 @@ export interface PutEncryptionConfigRequest {
2628
2629
  * <p>The type of encryption. Set to <code>KMS</code> to use your own key for encryption. Set
2629
2630
  * to <code>NONE</code> for default encryption.</p>
2630
2631
  */
2631
- Type: EncryptionType | string | undefined;
2632
+ Type: EncryptionType | undefined;
2632
2633
  }
2633
2634
  /**
2634
2635
  * @public
@@ -193,8 +193,8 @@ export type EncryptionType =
193
193
  (typeof EncryptionType)[keyof typeof EncryptionType];
194
194
  export interface EncryptionConfig {
195
195
  KeyId?: string;
196
- Status?: EncryptionStatus | string;
197
- Type?: EncryptionType | string;
196
+ Status?: EncryptionStatus;
197
+ Type?: EncryptionType;
198
198
  }
199
199
  export interface GetEncryptionConfigResult {
200
200
  EncryptionConfig?: EncryptionConfig;
@@ -242,8 +242,8 @@ export interface Insight {
242
242
  GroupARN?: string;
243
243
  GroupName?: string;
244
244
  RootCauseServiceId?: ServiceId;
245
- Categories?: (InsightCategory | string)[];
246
- State?: InsightState | string;
245
+ Categories?: InsightCategory[];
246
+ State?: InsightState;
247
247
  StartTime?: Date;
248
248
  EndTime?: Date;
249
249
  Summary?: string;
@@ -297,7 +297,7 @@ export interface GetInsightImpactGraphResult {
297
297
  NextToken?: string;
298
298
  }
299
299
  export interface GetInsightSummariesRequest {
300
- States?: (InsightState | string)[];
300
+ States?: InsightState[];
301
301
  GroupARN?: string;
302
302
  GroupName?: string;
303
303
  StartTime: Date | undefined;
@@ -310,8 +310,8 @@ export interface InsightSummary {
310
310
  GroupARN?: string;
311
311
  GroupName?: string;
312
312
  RootCauseServiceId?: ServiceId;
313
- Categories?: (InsightCategory | string)[];
314
- State?: InsightState | string;
313
+ Categories?: InsightCategory[];
314
+ State?: InsightState;
315
315
  StartTime?: Date;
316
316
  EndTime?: Date;
317
317
  Summary?: string;
@@ -480,18 +480,19 @@ export declare const SamplingStrategyName: {
480
480
  export type SamplingStrategyName =
481
481
  (typeof SamplingStrategyName)[keyof typeof SamplingStrategyName];
482
482
  export interface SamplingStrategy {
483
- Name?: SamplingStrategyName | string;
483
+ Name?: SamplingStrategyName;
484
484
  Value?: number;
485
485
  }
486
486
  export declare const TimeRangeType: {
487
487
  readonly Event: "Event";
488
+ readonly Service: "Service";
488
489
  readonly TraceId: "TraceId";
489
490
  };
490
491
  export type TimeRangeType = (typeof TimeRangeType)[keyof typeof TimeRangeType];
491
492
  export interface GetTraceSummariesRequest {
492
493
  StartTime: Date | undefined;
493
494
  EndTime: Date | undefined;
494
- TimeRangeType?: TimeRangeType | string;
495
+ TimeRangeType?: TimeRangeType;
495
496
  Sampling?: boolean;
496
497
  SamplingStrategy?: SamplingStrategy;
497
498
  FilterExpression?: string;
@@ -630,7 +631,7 @@ export declare class ResourceNotFoundException extends __BaseException {
630
631
  }
631
632
  export interface PutEncryptionConfigRequest {
632
633
  KeyId?: string;
633
- Type: EncryptionType | string | undefined;
634
+ Type: EncryptionType | undefined;
634
635
  }
635
636
  export interface PutEncryptionConfigResult {
636
637
  EncryptionConfig?: EncryptionConfig;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-xray",
3
3
  "description": "AWS SDK for JavaScript Xray Client for Node.js, Browser and React Native",
4
- "version": "3.427.0",
4
+ "version": "3.429.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,39 +21,39 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.427.0",
25
- "@aws-sdk/credential-provider-node": "3.427.0",
26
- "@aws-sdk/middleware-host-header": "3.425.0",
27
- "@aws-sdk/middleware-logger": "3.425.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.425.0",
29
- "@aws-sdk/middleware-signing": "3.425.0",
30
- "@aws-sdk/middleware-user-agent": "3.427.0",
31
- "@aws-sdk/region-config-resolver": "3.425.0",
32
- "@aws-sdk/types": "3.425.0",
33
- "@aws-sdk/util-endpoints": "3.427.0",
34
- "@aws-sdk/util-user-agent-browser": "3.425.0",
35
- "@aws-sdk/util-user-agent-node": "3.425.0",
36
- "@smithy/config-resolver": "^2.0.11",
37
- "@smithy/fetch-http-handler": "^2.2.1",
38
- "@smithy/hash-node": "^2.0.10",
39
- "@smithy/invalid-dependency": "^2.0.10",
40
- "@smithy/middleware-content-length": "^2.0.12",
41
- "@smithy/middleware-endpoint": "^2.0.10",
42
- "@smithy/middleware-retry": "^2.0.13",
43
- "@smithy/middleware-serde": "^2.0.10",
44
- "@smithy/middleware-stack": "^2.0.4",
45
- "@smithy/node-config-provider": "^2.0.13",
46
- "@smithy/node-http-handler": "^2.1.6",
47
- "@smithy/protocol-http": "^3.0.6",
48
- "@smithy/smithy-client": "^2.1.9",
49
- "@smithy/types": "^2.3.4",
50
- "@smithy/url-parser": "^2.0.10",
24
+ "@aws-sdk/client-sts": "3.429.0",
25
+ "@aws-sdk/credential-provider-node": "3.429.0",
26
+ "@aws-sdk/middleware-host-header": "3.429.0",
27
+ "@aws-sdk/middleware-logger": "3.428.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.428.0",
29
+ "@aws-sdk/middleware-signing": "3.428.0",
30
+ "@aws-sdk/middleware-user-agent": "3.428.0",
31
+ "@aws-sdk/region-config-resolver": "3.428.0",
32
+ "@aws-sdk/types": "3.428.0",
33
+ "@aws-sdk/util-endpoints": "3.428.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.428.0",
35
+ "@aws-sdk/util-user-agent-node": "3.428.0",
36
+ "@smithy/config-resolver": "^2.0.14",
37
+ "@smithy/fetch-http-handler": "^2.2.3",
38
+ "@smithy/hash-node": "^2.0.11",
39
+ "@smithy/invalid-dependency": "^2.0.11",
40
+ "@smithy/middleware-content-length": "^2.0.13",
41
+ "@smithy/middleware-endpoint": "^2.1.1",
42
+ "@smithy/middleware-retry": "^2.0.16",
43
+ "@smithy/middleware-serde": "^2.0.11",
44
+ "@smithy/middleware-stack": "^2.0.5",
45
+ "@smithy/node-config-provider": "^2.1.1",
46
+ "@smithy/node-http-handler": "^2.1.7",
47
+ "@smithy/protocol-http": "^3.0.7",
48
+ "@smithy/smithy-client": "^2.1.11",
49
+ "@smithy/types": "^2.3.5",
50
+ "@smithy/url-parser": "^2.0.11",
51
51
  "@smithy/util-base64": "^2.0.0",
52
52
  "@smithy/util-body-length-browser": "^2.0.0",
53
53
  "@smithy/util-body-length-node": "^2.1.0",
54
- "@smithy/util-defaults-mode-browser": "^2.0.13",
55
- "@smithy/util-defaults-mode-node": "^2.0.15",
56
- "@smithy/util-retry": "^2.0.3",
54
+ "@smithy/util-defaults-mode-browser": "^2.0.15",
55
+ "@smithy/util-defaults-mode-node": "^2.0.19",
56
+ "@smithy/util-retry": "^2.0.4",
57
57
  "@smithy/util-utf8": "^2.0.0",
58
58
  "tslib": "^2.5.0"
59
59
  },