@aws-sdk/client-xray 3.301.0 → 3.303.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.
@@ -70,35 +70,29 @@ class InvalidPolicyRevisionIdException extends XRayServiceException_1.XRayServic
70
70
  }
71
71
  }
72
72
  exports.InvalidPolicyRevisionIdException = InvalidPolicyRevisionIdException;
73
- var EncryptionStatus;
74
- (function (EncryptionStatus) {
75
- EncryptionStatus["ACTIVE"] = "ACTIVE";
76
- EncryptionStatus["UPDATING"] = "UPDATING";
77
- })(EncryptionStatus = exports.EncryptionStatus || (exports.EncryptionStatus = {}));
78
- var EncryptionType;
79
- (function (EncryptionType) {
80
- EncryptionType["KMS"] = "KMS";
81
- EncryptionType["NONE"] = "NONE";
82
- })(EncryptionType = exports.EncryptionType || (exports.EncryptionType = {}));
83
- var InsightCategory;
84
- (function (InsightCategory) {
85
- InsightCategory["FAULT"] = "FAULT";
86
- })(InsightCategory = exports.InsightCategory || (exports.InsightCategory = {}));
87
- var InsightState;
88
- (function (InsightState) {
89
- InsightState["ACTIVE"] = "ACTIVE";
90
- InsightState["CLOSED"] = "CLOSED";
91
- })(InsightState = exports.InsightState || (exports.InsightState = {}));
92
- var SamplingStrategyName;
93
- (function (SamplingStrategyName) {
94
- SamplingStrategyName["FixedRate"] = "FixedRate";
95
- SamplingStrategyName["PartialScan"] = "PartialScan";
96
- })(SamplingStrategyName = exports.SamplingStrategyName || (exports.SamplingStrategyName = {}));
97
- var TimeRangeType;
98
- (function (TimeRangeType) {
99
- TimeRangeType["Event"] = "Event";
100
- TimeRangeType["TraceId"] = "TraceId";
101
- })(TimeRangeType = exports.TimeRangeType || (exports.TimeRangeType = {}));
73
+ exports.EncryptionStatus = {
74
+ ACTIVE: "ACTIVE",
75
+ UPDATING: "UPDATING",
76
+ };
77
+ exports.EncryptionType = {
78
+ KMS: "KMS",
79
+ NONE: "NONE",
80
+ };
81
+ exports.InsightCategory = {
82
+ FAULT: "FAULT",
83
+ };
84
+ exports.InsightState = {
85
+ ACTIVE: "ACTIVE",
86
+ CLOSED: "CLOSED",
87
+ };
88
+ exports.SamplingStrategyName = {
89
+ FixedRate: "FixedRate",
90
+ PartialScan: "PartialScan",
91
+ };
92
+ exports.TimeRangeType = {
93
+ Event: "Event",
94
+ TraceId: "TraceId",
95
+ };
102
96
  class ResourceNotFoundException extends XRayServiceException_1.XRayServiceException {
103
97
  constructor(opts) {
104
98
  super({
@@ -63,35 +63,29 @@ export class InvalidPolicyRevisionIdException extends __BaseException {
63
63
  this.Message = opts.Message;
64
64
  }
65
65
  }
66
- export var EncryptionStatus;
67
- (function (EncryptionStatus) {
68
- EncryptionStatus["ACTIVE"] = "ACTIVE";
69
- EncryptionStatus["UPDATING"] = "UPDATING";
70
- })(EncryptionStatus || (EncryptionStatus = {}));
71
- export var EncryptionType;
72
- (function (EncryptionType) {
73
- EncryptionType["KMS"] = "KMS";
74
- EncryptionType["NONE"] = "NONE";
75
- })(EncryptionType || (EncryptionType = {}));
76
- export var InsightCategory;
77
- (function (InsightCategory) {
78
- InsightCategory["FAULT"] = "FAULT";
79
- })(InsightCategory || (InsightCategory = {}));
80
- export var InsightState;
81
- (function (InsightState) {
82
- InsightState["ACTIVE"] = "ACTIVE";
83
- InsightState["CLOSED"] = "CLOSED";
84
- })(InsightState || (InsightState = {}));
85
- export var SamplingStrategyName;
86
- (function (SamplingStrategyName) {
87
- SamplingStrategyName["FixedRate"] = "FixedRate";
88
- SamplingStrategyName["PartialScan"] = "PartialScan";
89
- })(SamplingStrategyName || (SamplingStrategyName = {}));
90
- export var TimeRangeType;
91
- (function (TimeRangeType) {
92
- TimeRangeType["Event"] = "Event";
93
- TimeRangeType["TraceId"] = "TraceId";
94
- })(TimeRangeType || (TimeRangeType = {}));
66
+ export const EncryptionStatus = {
67
+ ACTIVE: "ACTIVE",
68
+ UPDATING: "UPDATING",
69
+ };
70
+ export const EncryptionType = {
71
+ KMS: "KMS",
72
+ NONE: "NONE",
73
+ };
74
+ export const InsightCategory = {
75
+ FAULT: "FAULT",
76
+ };
77
+ export const InsightState = {
78
+ ACTIVE: "ACTIVE",
79
+ CLOSED: "CLOSED",
80
+ };
81
+ export const SamplingStrategyName = {
82
+ FixedRate: "FixedRate",
83
+ PartialScan: "PartialScan",
84
+ };
85
+ export const TimeRangeType = {
86
+ Event: "Event",
87
+ TraceId: "TraceId",
88
+ };
95
89
  export class ResourceNotFoundException extends __BaseException {
96
90
  constructor(opts) {
97
91
  super({
@@ -597,18 +597,28 @@ export interface GetEncryptionConfigRequest {
597
597
  }
598
598
  /**
599
599
  * @public
600
+ * @enum
600
601
  */
601
- export declare enum EncryptionStatus {
602
- ACTIVE = "ACTIVE",
603
- UPDATING = "UPDATING"
604
- }
602
+ export declare const EncryptionStatus: {
603
+ readonly ACTIVE: "ACTIVE";
604
+ readonly UPDATING: "UPDATING";
605
+ };
605
606
  /**
606
607
  * @public
607
608
  */
608
- export declare enum EncryptionType {
609
- KMS = "KMS",
610
- NONE = "NONE"
611
- }
609
+ export type EncryptionStatus = (typeof EncryptionStatus)[keyof typeof EncryptionStatus];
610
+ /**
611
+ * @public
612
+ * @enum
613
+ */
614
+ export declare const EncryptionType: {
615
+ readonly KMS: "KMS";
616
+ readonly NONE: "NONE";
617
+ };
618
+ /**
619
+ * @public
620
+ */
621
+ export type EncryptionType = (typeof EncryptionType)[keyof typeof EncryptionType];
612
622
  /**
613
623
  * @public
614
624
  * <p>A configuration document that specifies encryption configuration settings.</p>
@@ -725,10 +735,15 @@ export interface GetInsightRequest {
725
735
  }
726
736
  /**
727
737
  * @public
738
+ * @enum
728
739
  */
729
- export declare enum InsightCategory {
730
- FAULT = "FAULT"
731
- }
740
+ export declare const InsightCategory: {
741
+ readonly FAULT: "FAULT";
742
+ };
743
+ /**
744
+ * @public
745
+ */
746
+ export type InsightCategory = (typeof InsightCategory)[keyof typeof InsightCategory];
732
747
  /**
733
748
  * @public
734
749
  * <p>Statistics that describe how the incident has impacted a service.</p>
@@ -749,11 +764,16 @@ export interface RequestImpactStatistics {
749
764
  }
750
765
  /**
751
766
  * @public
767
+ * @enum
752
768
  */
753
- export declare enum InsightState {
754
- ACTIVE = "ACTIVE",
755
- CLOSED = "CLOSED"
756
- }
769
+ export declare const InsightState: {
770
+ readonly ACTIVE: "ACTIVE";
771
+ readonly CLOSED: "CLOSED";
772
+ };
773
+ /**
774
+ * @public
775
+ */
776
+ export type InsightState = (typeof InsightState)[keyof typeof InsightState];
757
777
  /**
758
778
  * @public
759
779
  * <p>When fault rates go outside of the expected range, X-Ray creates an insight. Insights
@@ -1688,11 +1708,16 @@ export interface GetTraceGraphResult {
1688
1708
  }
1689
1709
  /**
1690
1710
  * @public
1711
+ * @enum
1691
1712
  */
1692
- export declare enum SamplingStrategyName {
1693
- FixedRate = "FixedRate",
1694
- PartialScan = "PartialScan"
1695
- }
1713
+ export declare const SamplingStrategyName: {
1714
+ readonly FixedRate: "FixedRate";
1715
+ readonly PartialScan: "PartialScan";
1716
+ };
1717
+ /**
1718
+ * @public
1719
+ */
1720
+ export type SamplingStrategyName = (typeof SamplingStrategyName)[keyof typeof SamplingStrategyName];
1696
1721
  /**
1697
1722
  * @public
1698
1723
  * <p>The name and value of a sampling rule to apply to a trace summary.</p>
@@ -1709,11 +1734,16 @@ export interface SamplingStrategy {
1709
1734
  }
1710
1735
  /**
1711
1736
  * @public
1737
+ * @enum
1712
1738
  */
1713
- export declare enum TimeRangeType {
1714
- Event = "Event",
1715
- TraceId = "TraceId"
1716
- }
1739
+ export declare const TimeRangeType: {
1740
+ readonly Event: "Event";
1741
+ readonly TraceId: "TraceId";
1742
+ };
1743
+ /**
1744
+ * @public
1745
+ */
1746
+ export type TimeRangeType = (typeof TimeRangeType)[keyof typeof TimeRangeType];
1717
1747
  /**
1718
1748
  * @public
1719
1749
  */
@@ -179,14 +179,18 @@ export interface DeleteSamplingRuleResult {
179
179
  SamplingRuleRecord?: SamplingRuleRecord;
180
180
  }
181
181
  export interface GetEncryptionConfigRequest {}
182
- export declare enum EncryptionStatus {
183
- ACTIVE = "ACTIVE",
184
- UPDATING = "UPDATING",
185
- }
186
- export declare enum EncryptionType {
187
- KMS = "KMS",
188
- NONE = "NONE",
189
- }
182
+ export declare const EncryptionStatus: {
183
+ readonly ACTIVE: "ACTIVE";
184
+ readonly UPDATING: "UPDATING";
185
+ };
186
+ export type EncryptionStatus =
187
+ (typeof EncryptionStatus)[keyof typeof EncryptionStatus];
188
+ export declare const EncryptionType: {
189
+ readonly KMS: "KMS";
190
+ readonly NONE: "NONE";
191
+ };
192
+ export type EncryptionType =
193
+ (typeof EncryptionType)[keyof typeof EncryptionType];
190
194
  export interface EncryptionConfig {
191
195
  KeyId?: string;
192
196
  Status?: EncryptionStatus | string;
@@ -218,18 +222,21 @@ export interface GetGroupsResult {
218
222
  export interface GetInsightRequest {
219
223
  InsightId: string | undefined;
220
224
  }
221
- export declare enum InsightCategory {
222
- FAULT = "FAULT",
223
- }
225
+ export declare const InsightCategory: {
226
+ readonly FAULT: "FAULT";
227
+ };
228
+ export type InsightCategory =
229
+ (typeof InsightCategory)[keyof typeof InsightCategory];
224
230
  export interface RequestImpactStatistics {
225
231
  FaultCount?: number;
226
232
  OkCount?: number;
227
233
  TotalCount?: number;
228
234
  }
229
- export declare enum InsightState {
230
- ACTIVE = "ACTIVE",
231
- CLOSED = "CLOSED",
232
- }
235
+ export declare const InsightState: {
236
+ readonly ACTIVE: "ACTIVE";
237
+ readonly CLOSED: "CLOSED";
238
+ };
239
+ export type InsightState = (typeof InsightState)[keyof typeof InsightState];
233
240
  export interface Insight {
234
241
  InsightId?: string;
235
242
  GroupARN?: string;
@@ -466,18 +473,21 @@ export interface GetTraceGraphResult {
466
473
  Services?: Service[];
467
474
  NextToken?: string;
468
475
  }
469
- export declare enum SamplingStrategyName {
470
- FixedRate = "FixedRate",
471
- PartialScan = "PartialScan",
472
- }
476
+ export declare const SamplingStrategyName: {
477
+ readonly FixedRate: "FixedRate";
478
+ readonly PartialScan: "PartialScan";
479
+ };
480
+ export type SamplingStrategyName =
481
+ (typeof SamplingStrategyName)[keyof typeof SamplingStrategyName];
473
482
  export interface SamplingStrategy {
474
483
  Name?: SamplingStrategyName | string;
475
484
  Value?: number;
476
485
  }
477
- export declare enum TimeRangeType {
478
- Event = "Event",
479
- TraceId = "TraceId",
480
- }
486
+ export declare const TimeRangeType: {
487
+ readonly Event: "Event";
488
+ readonly TraceId: "TraceId";
489
+ };
490
+ export type TimeRangeType = (typeof TimeRangeType)[keyof typeof TimeRangeType];
481
491
  export interface GetTraceSummariesRequest {
482
492
  StartTime: Date | undefined;
483
493
  EndTime: Date | undefined;
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.301.0",
4
+ "version": "3.303.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,42 +21,42 @@
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.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",