@aws-sdk/client-xray 3.300.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.
Files changed (34) hide show
  1. package/dist-cjs/models/models_0.js +23 -29
  2. package/dist-es/models/models_0.js +23 -29
  3. package/dist-types/commands/BatchGetTracesCommand.d.ts +2 -2
  4. package/dist-types/commands/CreateGroupCommand.d.ts +4 -4
  5. package/dist-types/commands/CreateSamplingRuleCommand.d.ts +5 -5
  6. package/dist-types/commands/DeleteGroupCommand.d.ts +1 -1
  7. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +1 -1
  8. package/dist-types/commands/DeleteSamplingRuleCommand.d.ts +1 -1
  9. package/dist-types/commands/GetGroupCommand.d.ts +1 -1
  10. package/dist-types/commands/GetGroupsCommand.d.ts +1 -1
  11. package/dist-types/commands/GetInsightCommand.d.ts +1 -1
  12. package/dist-types/commands/GetInsightEventsCommand.d.ts +1 -1
  13. package/dist-types/commands/GetInsightImpactGraphCommand.d.ts +1 -1
  14. package/dist-types/commands/GetInsightSummariesCommand.d.ts +2 -2
  15. package/dist-types/commands/GetSamplingRulesCommand.d.ts +1 -1
  16. package/dist-types/commands/GetSamplingStatisticSummariesCommand.d.ts +1 -1
  17. package/dist-types/commands/GetSamplingTargetsCommand.d.ts +3 -3
  18. package/dist-types/commands/GetServiceGraphCommand.d.ts +1 -1
  19. package/dist-types/commands/GetTimeSeriesServiceStatisticsCommand.d.ts +1 -1
  20. package/dist-types/commands/GetTraceGraphCommand.d.ts +2 -2
  21. package/dist-types/commands/GetTraceSummariesCommand.d.ts +2 -2
  22. package/dist-types/commands/ListResourcePoliciesCommand.d.ts +1 -1
  23. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  24. package/dist-types/commands/PutEncryptionConfigCommand.d.ts +1 -1
  25. package/dist-types/commands/PutResourcePolicyCommand.d.ts +1 -1
  26. package/dist-types/commands/PutTelemetryRecordsCommand.d.ts +4 -4
  27. package/dist-types/commands/PutTraceSegmentsCommand.d.ts +2 -2
  28. package/dist-types/commands/TagResourceCommand.d.ts +3 -3
  29. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  30. package/dist-types/commands/UpdateGroupCommand.d.ts +2 -2
  31. package/dist-types/commands/UpdateSamplingRuleCommand.d.ts +3 -3
  32. package/dist-types/models/models_0.d.ts +53 -23
  33. package/dist-types/ts3.4/models/models_0.d.ts +33 -23
  34. package/package.json +34 -34
@@ -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({
@@ -28,8 +28,8 @@ export interface BatchGetTracesCommandOutput extends BatchGetTracesResult, __Met
28
28
  * import { XRayClient, BatchGetTracesCommand } from "@aws-sdk/client-xray"; // ES Modules import
29
29
  * // const { XRayClient, BatchGetTracesCommand } = require("@aws-sdk/client-xray"); // CommonJS import
30
30
  * const client = new XRayClient(config);
31
- * const input = {
32
- * TraceIds: [ // required
31
+ * const input = { // BatchGetTracesRequest
32
+ * TraceIds: [ // TraceIdList // required
33
33
  * "STRING_VALUE",
34
34
  * ],
35
35
  * NextToken: "STRING_VALUE",
@@ -26,15 +26,15 @@ export interface CreateGroupCommandOutput extends CreateGroupResult, __MetadataB
26
26
  * import { XRayClient, CreateGroupCommand } from "@aws-sdk/client-xray"; // ES Modules import
27
27
  * // const { XRayClient, CreateGroupCommand } = require("@aws-sdk/client-xray"); // CommonJS import
28
28
  * const client = new XRayClient(config);
29
- * const input = {
29
+ * const input = { // CreateGroupRequest
30
30
  * GroupName: "STRING_VALUE", // required
31
31
  * FilterExpression: "STRING_VALUE",
32
- * InsightsConfiguration: {
32
+ * InsightsConfiguration: { // InsightsConfiguration
33
33
  * InsightsEnabled: true || false,
34
34
  * NotificationsEnabled: true || false,
35
35
  * },
36
- * Tags: [
37
- * {
36
+ * Tags: [ // TagList
37
+ * { // Tag
38
38
  * Key: "STRING_VALUE", // required
39
39
  * Value: "STRING_VALUE", // required
40
40
  * },
@@ -32,8 +32,8 @@ export interface CreateSamplingRuleCommandOutput extends CreateSamplingRuleResul
32
32
  * import { XRayClient, CreateSamplingRuleCommand } from "@aws-sdk/client-xray"; // ES Modules import
33
33
  * // const { XRayClient, CreateSamplingRuleCommand } = require("@aws-sdk/client-xray"); // CommonJS import
34
34
  * const client = new XRayClient(config);
35
- * const input = {
36
- * SamplingRule: {
35
+ * const input = { // CreateSamplingRuleRequest
36
+ * SamplingRule: { // SamplingRule
37
37
  * RuleName: "STRING_VALUE",
38
38
  * RuleARN: "STRING_VALUE",
39
39
  * ResourceARN: "STRING_VALUE", // required
@@ -46,12 +46,12 @@ export interface CreateSamplingRuleCommandOutput extends CreateSamplingRuleResul
46
46
  * HTTPMethod: "STRING_VALUE", // required
47
47
  * URLPath: "STRING_VALUE", // required
48
48
  * Version: Number("int"), // required
49
- * Attributes: {
49
+ * Attributes: { // AttributeMap
50
50
  * "<keys>": "STRING_VALUE",
51
51
  * },
52
52
  * },
53
- * Tags: [
54
- * {
53
+ * Tags: [ // TagList
54
+ * { // Tag
55
55
  * Key: "STRING_VALUE", // required
56
56
  * Value: "STRING_VALUE", // required
57
57
  * },
@@ -26,7 +26,7 @@ export interface DeleteGroupCommandOutput extends DeleteGroupResult, __MetadataB
26
26
  * import { XRayClient, DeleteGroupCommand } from "@aws-sdk/client-xray"; // ES Modules import
27
27
  * // const { XRayClient, DeleteGroupCommand } = require("@aws-sdk/client-xray"); // CommonJS import
28
28
  * const client = new XRayClient(config);
29
- * const input = {
29
+ * const input = { // DeleteGroupRequest
30
30
  * GroupName: "STRING_VALUE",
31
31
  * GroupARN: "STRING_VALUE",
32
32
  * };
@@ -26,7 +26,7 @@ export interface DeleteResourcePolicyCommandOutput extends DeleteResourcePolicyR
26
26
  * import { XRayClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-xray"; // ES Modules import
27
27
  * // const { XRayClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-xray"); // CommonJS import
28
28
  * const client = new XRayClient(config);
29
- * const input = {
29
+ * const input = { // DeleteResourcePolicyRequest
30
30
  * PolicyName: "STRING_VALUE", // required
31
31
  * PolicyRevisionId: "STRING_VALUE",
32
32
  * };
@@ -26,7 +26,7 @@ export interface DeleteSamplingRuleCommandOutput extends DeleteSamplingRuleResul
26
26
  * import { XRayClient, DeleteSamplingRuleCommand } from "@aws-sdk/client-xray"; // ES Modules import
27
27
  * // const { XRayClient, DeleteSamplingRuleCommand } = require("@aws-sdk/client-xray"); // CommonJS import
28
28
  * const client = new XRayClient(config);
29
- * const input = {
29
+ * const input = { // DeleteSamplingRuleRequest
30
30
  * RuleName: "STRING_VALUE",
31
31
  * RuleARN: "STRING_VALUE",
32
32
  * };
@@ -26,7 +26,7 @@ export interface GetGroupCommandOutput extends GetGroupResult, __MetadataBearer
26
26
  * import { XRayClient, GetGroupCommand } from "@aws-sdk/client-xray"; // ES Modules import
27
27
  * // const { XRayClient, GetGroupCommand } = require("@aws-sdk/client-xray"); // CommonJS import
28
28
  * const client = new XRayClient(config);
29
- * const input = {
29
+ * const input = { // GetGroupRequest
30
30
  * GroupName: "STRING_VALUE",
31
31
  * GroupARN: "STRING_VALUE",
32
32
  * };
@@ -26,7 +26,7 @@ export interface GetGroupsCommandOutput extends GetGroupsResult, __MetadataBeare
26
26
  * import { XRayClient, GetGroupsCommand } from "@aws-sdk/client-xray"; // ES Modules import
27
27
  * // const { XRayClient, GetGroupsCommand } = require("@aws-sdk/client-xray"); // CommonJS import
28
28
  * const client = new XRayClient(config);
29
- * const input = {
29
+ * const input = { // GetGroupsRequest
30
30
  * NextToken: "STRING_VALUE",
31
31
  * };
32
32
  * const command = new GetGroupsCommand(input);
@@ -28,7 +28,7 @@ export interface GetInsightCommandOutput extends GetInsightResult, __MetadataBea
28
28
  * import { XRayClient, GetInsightCommand } from "@aws-sdk/client-xray"; // ES Modules import
29
29
  * // const { XRayClient, GetInsightCommand } = require("@aws-sdk/client-xray"); // CommonJS import
30
30
  * const client = new XRayClient(config);
31
- * const input = {
31
+ * const input = { // GetInsightRequest
32
32
  * InsightId: "STRING_VALUE", // required
33
33
  * };
34
34
  * const command = new GetInsightCommand(input);
@@ -28,7 +28,7 @@ export interface GetInsightEventsCommandOutput extends GetInsightEventsResult, _
28
28
  * import { XRayClient, GetInsightEventsCommand } from "@aws-sdk/client-xray"; // ES Modules import
29
29
  * // const { XRayClient, GetInsightEventsCommand } = require("@aws-sdk/client-xray"); // CommonJS import
30
30
  * const client = new XRayClient(config);
31
- * const input = {
31
+ * const input = { // GetInsightEventsRequest
32
32
  * InsightId: "STRING_VALUE", // required
33
33
  * MaxResults: Number("int"),
34
34
  * NextToken: "STRING_VALUE",
@@ -27,7 +27,7 @@ export interface GetInsightImpactGraphCommandOutput extends GetInsightImpactGrap
27
27
  * import { XRayClient, GetInsightImpactGraphCommand } from "@aws-sdk/client-xray"; // ES Modules import
28
28
  * // const { XRayClient, GetInsightImpactGraphCommand } = require("@aws-sdk/client-xray"); // CommonJS import
29
29
  * const client = new XRayClient(config);
30
- * const input = {
30
+ * const input = { // GetInsightImpactGraphRequest
31
31
  * InsightId: "STRING_VALUE", // required
32
32
  * StartTime: new Date("TIMESTAMP"), // required
33
33
  * EndTime: new Date("TIMESTAMP"), // required
@@ -26,8 +26,8 @@ export interface GetInsightSummariesCommandOutput extends GetInsightSummariesRes
26
26
  * import { XRayClient, GetInsightSummariesCommand } from "@aws-sdk/client-xray"; // ES Modules import
27
27
  * // const { XRayClient, GetInsightSummariesCommand } = require("@aws-sdk/client-xray"); // CommonJS import
28
28
  * const client = new XRayClient(config);
29
- * const input = {
30
- * States: [
29
+ * const input = { // GetInsightSummariesRequest
30
+ * States: [ // InsightStateList
31
31
  * "ACTIVE" || "CLOSED",
32
32
  * ],
33
33
  * GroupARN: "STRING_VALUE",
@@ -26,7 +26,7 @@ export interface GetSamplingRulesCommandOutput extends GetSamplingRulesResult, _
26
26
  * import { XRayClient, GetSamplingRulesCommand } from "@aws-sdk/client-xray"; // ES Modules import
27
27
  * // const { XRayClient, GetSamplingRulesCommand } = require("@aws-sdk/client-xray"); // CommonJS import
28
28
  * const client = new XRayClient(config);
29
- * const input = {
29
+ * const input = { // GetSamplingRulesRequest
30
30
  * NextToken: "STRING_VALUE",
31
31
  * };
32
32
  * const command = new GetSamplingRulesCommand(input);
@@ -26,7 +26,7 @@ export interface GetSamplingStatisticSummariesCommandOutput extends GetSamplingS
26
26
  * import { XRayClient, GetSamplingStatisticSummariesCommand } from "@aws-sdk/client-xray"; // ES Modules import
27
27
  * // const { XRayClient, GetSamplingStatisticSummariesCommand } = require("@aws-sdk/client-xray"); // CommonJS import
28
28
  * const client = new XRayClient(config);
29
- * const input = {
29
+ * const input = { // GetSamplingStatisticSummariesRequest
30
30
  * NextToken: "STRING_VALUE",
31
31
  * };
32
32
  * const command = new GetSamplingStatisticSummariesCommand(input);
@@ -27,9 +27,9 @@ export interface GetSamplingTargetsCommandOutput extends GetSamplingTargetsResul
27
27
  * import { XRayClient, GetSamplingTargetsCommand } from "@aws-sdk/client-xray"; // ES Modules import
28
28
  * // const { XRayClient, GetSamplingTargetsCommand } = require("@aws-sdk/client-xray"); // CommonJS import
29
29
  * const client = new XRayClient(config);
30
- * const input = {
31
- * SamplingStatisticsDocuments: [ // required
32
- * {
30
+ * const input = { // GetSamplingTargetsRequest
31
+ * SamplingStatisticsDocuments: [ // SamplingStatisticsDocumentList // required
32
+ * { // SamplingStatisticsDocument
33
33
  * RuleName: "STRING_VALUE", // required
34
34
  * ClientID: "STRING_VALUE", // required
35
35
  * Timestamp: new Date("TIMESTAMP"), // required
@@ -30,7 +30,7 @@ export interface GetServiceGraphCommandOutput extends GetServiceGraphResult, __M
30
30
  * import { XRayClient, GetServiceGraphCommand } from "@aws-sdk/client-xray"; // ES Modules import
31
31
  * // const { XRayClient, GetServiceGraphCommand } = require("@aws-sdk/client-xray"); // CommonJS import
32
32
  * const client = new XRayClient(config);
33
- * const input = {
33
+ * const input = { // GetServiceGraphRequest
34
34
  * StartTime: new Date("TIMESTAMP"), // required
35
35
  * EndTime: new Date("TIMESTAMP"), // required
36
36
  * GroupName: "STRING_VALUE",
@@ -27,7 +27,7 @@ export interface GetTimeSeriesServiceStatisticsCommandOutput extends GetTimeSeri
27
27
  * import { XRayClient, GetTimeSeriesServiceStatisticsCommand } from "@aws-sdk/client-xray"; // ES Modules import
28
28
  * // const { XRayClient, GetTimeSeriesServiceStatisticsCommand } = require("@aws-sdk/client-xray"); // CommonJS import
29
29
  * const client = new XRayClient(config);
30
- * const input = {
30
+ * const input = { // GetTimeSeriesServiceStatisticsRequest
31
31
  * StartTime: new Date("TIMESTAMP"), // required
32
32
  * EndTime: new Date("TIMESTAMP"), // required
33
33
  * GroupName: "STRING_VALUE",
@@ -26,8 +26,8 @@ export interface GetTraceGraphCommandOutput extends GetTraceGraphResult, __Metad
26
26
  * import { XRayClient, GetTraceGraphCommand } from "@aws-sdk/client-xray"; // ES Modules import
27
27
  * // const { XRayClient, GetTraceGraphCommand } = require("@aws-sdk/client-xray"); // CommonJS import
28
28
  * const client = new XRayClient(config);
29
- * const input = {
30
- * TraceIds: [ // required
29
+ * const input = { // GetTraceGraphRequest
30
+ * TraceIds: [ // TraceIdList // required
31
31
  * "STRING_VALUE",
32
32
  * ],
33
33
  * NextToken: "STRING_VALUE",
@@ -42,12 +42,12 @@ export interface GetTraceSummariesCommandOutput extends GetTraceSummariesResult,
42
42
  * import { XRayClient, GetTraceSummariesCommand } from "@aws-sdk/client-xray"; // ES Modules import
43
43
  * // const { XRayClient, GetTraceSummariesCommand } = require("@aws-sdk/client-xray"); // CommonJS import
44
44
  * const client = new XRayClient(config);
45
- * const input = {
45
+ * const input = { // GetTraceSummariesRequest
46
46
  * StartTime: new Date("TIMESTAMP"), // required
47
47
  * EndTime: new Date("TIMESTAMP"), // required
48
48
  * TimeRangeType: "TraceId" || "Event",
49
49
  * Sampling: true || false,
50
- * SamplingStrategy: {
50
+ * SamplingStrategy: { // SamplingStrategy
51
51
  * Name: "PartialScan" || "FixedRate",
52
52
  * Value: Number("double"),
53
53
  * },
@@ -26,7 +26,7 @@ export interface ListResourcePoliciesCommandOutput extends ListResourcePoliciesR
26
26
  * import { XRayClient, ListResourcePoliciesCommand } from "@aws-sdk/client-xray"; // ES Modules import
27
27
  * // const { XRayClient, ListResourcePoliciesCommand } = require("@aws-sdk/client-xray"); // CommonJS import
28
28
  * const client = new XRayClient(config);
29
- * const input = {
29
+ * const input = { // ListResourcePoliciesRequest
30
30
  * NextToken: "STRING_VALUE",
31
31
  * };
32
32
  * const command = new ListResourcePoliciesCommand(input);
@@ -26,7 +26,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
26
26
  * import { XRayClient, ListTagsForResourceCommand } from "@aws-sdk/client-xray"; // ES Modules import
27
27
  * // const { XRayClient, ListTagsForResourceCommand } = require("@aws-sdk/client-xray"); // CommonJS import
28
28
  * const client = new XRayClient(config);
29
- * const input = {
29
+ * const input = { // ListTagsForResourceRequest
30
30
  * ResourceARN: "STRING_VALUE", // required
31
31
  * NextToken: "STRING_VALUE",
32
32
  * };
@@ -26,7 +26,7 @@ export interface PutEncryptionConfigCommandOutput extends PutEncryptionConfigRes
26
26
  * import { XRayClient, PutEncryptionConfigCommand } from "@aws-sdk/client-xray"; // ES Modules import
27
27
  * // const { XRayClient, PutEncryptionConfigCommand } = require("@aws-sdk/client-xray"); // CommonJS import
28
28
  * const client = new XRayClient(config);
29
- * const input = {
29
+ * const input = { // PutEncryptionConfigRequest
30
30
  * KeyId: "STRING_VALUE",
31
31
  * Type: "NONE" || "KMS", // required
32
32
  * };
@@ -31,7 +31,7 @@ export interface PutResourcePolicyCommandOutput extends PutResourcePolicyResult,
31
31
  * import { XRayClient, PutResourcePolicyCommand } from "@aws-sdk/client-xray"; // ES Modules import
32
32
  * // const { XRayClient, PutResourcePolicyCommand } = require("@aws-sdk/client-xray"); // CommonJS import
33
33
  * const client = new XRayClient(config);
34
- * const input = {
34
+ * const input = { // PutResourcePolicyRequest
35
35
  * PolicyName: "STRING_VALUE", // required
36
36
  * PolicyDocument: "STRING_VALUE", // required
37
37
  * PolicyRevisionId: "STRING_VALUE",
@@ -26,15 +26,15 @@ export interface PutTelemetryRecordsCommandOutput extends PutTelemetryRecordsRes
26
26
  * import { XRayClient, PutTelemetryRecordsCommand } from "@aws-sdk/client-xray"; // ES Modules import
27
27
  * // const { XRayClient, PutTelemetryRecordsCommand } = require("@aws-sdk/client-xray"); // CommonJS import
28
28
  * const client = new XRayClient(config);
29
- * const input = {
30
- * TelemetryRecords: [ // required
31
- * {
29
+ * const input = { // PutTelemetryRecordsRequest
30
+ * TelemetryRecords: [ // TelemetryRecordList // required
31
+ * { // TelemetryRecord
32
32
  * Timestamp: new Date("TIMESTAMP"), // required
33
33
  * SegmentsReceivedCount: Number("int"),
34
34
  * SegmentsSentCount: Number("int"),
35
35
  * SegmentsSpilloverCount: Number("int"),
36
36
  * SegmentsRejectedCount: Number("int"),
37
- * BackendConnectionErrors: {
37
+ * BackendConnectionErrors: { // BackendConnectionErrors
38
38
  * TimeoutCount: Number("int"),
39
39
  * ConnectionRefusedCount: Number("int"),
40
40
  * HTTPCode4XXCount: Number("int"),
@@ -88,8 +88,8 @@ export interface PutTraceSegmentsCommandOutput extends PutTraceSegmentsResult, _
88
88
  * import { XRayClient, PutTraceSegmentsCommand } from "@aws-sdk/client-xray"; // ES Modules import
89
89
  * // const { XRayClient, PutTraceSegmentsCommand } = require("@aws-sdk/client-xray"); // CommonJS import
90
90
  * const client = new XRayClient(config);
91
- * const input = {
92
- * TraceSegmentDocuments: [ // required
91
+ * const input = { // PutTraceSegmentsRequest
92
+ * TraceSegmentDocuments: [ // TraceSegmentDocumentList // required
93
93
  * "STRING_VALUE",
94
94
  * ],
95
95
  * };
@@ -26,10 +26,10 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
26
26
  * import { XRayClient, TagResourceCommand } from "@aws-sdk/client-xray"; // ES Modules import
27
27
  * // const { XRayClient, TagResourceCommand } = require("@aws-sdk/client-xray"); // CommonJS import
28
28
  * const client = new XRayClient(config);
29
- * const input = {
29
+ * const input = { // TagResourceRequest
30
30
  * ResourceARN: "STRING_VALUE", // required
31
- * Tags: [ // required
32
- * {
31
+ * Tags: [ // TagList // required
32
+ * { // Tag
33
33
  * Key: "STRING_VALUE", // required
34
34
  * Value: "STRING_VALUE", // required
35
35
  * },
@@ -27,9 +27,9 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
27
27
  * import { XRayClient, UntagResourceCommand } from "@aws-sdk/client-xray"; // ES Modules import
28
28
  * // const { XRayClient, UntagResourceCommand } = require("@aws-sdk/client-xray"); // CommonJS import
29
29
  * const client = new XRayClient(config);
30
- * const input = {
30
+ * const input = { // UntagResourceRequest
31
31
  * ResourceARN: "STRING_VALUE", // required
32
- * TagKeys: [ // required
32
+ * TagKeys: [ // TagKeyList // required
33
33
  * "STRING_VALUE",
34
34
  * ],
35
35
  * };
@@ -26,11 +26,11 @@ export interface UpdateGroupCommandOutput extends UpdateGroupResult, __MetadataB
26
26
  * import { XRayClient, UpdateGroupCommand } from "@aws-sdk/client-xray"; // ES Modules import
27
27
  * // const { XRayClient, UpdateGroupCommand } = require("@aws-sdk/client-xray"); // CommonJS import
28
28
  * const client = new XRayClient(config);
29
- * const input = {
29
+ * const input = { // UpdateGroupRequest
30
30
  * GroupName: "STRING_VALUE",
31
31
  * GroupARN: "STRING_VALUE",
32
32
  * FilterExpression: "STRING_VALUE",
33
- * InsightsConfiguration: {
33
+ * InsightsConfiguration: { // InsightsConfiguration
34
34
  * InsightsEnabled: true || false,
35
35
  * NotificationsEnabled: true || false,
36
36
  * },
@@ -26,8 +26,8 @@ export interface UpdateSamplingRuleCommandOutput extends UpdateSamplingRuleResul
26
26
  * import { XRayClient, UpdateSamplingRuleCommand } from "@aws-sdk/client-xray"; // ES Modules import
27
27
  * // const { XRayClient, UpdateSamplingRuleCommand } = require("@aws-sdk/client-xray"); // CommonJS import
28
28
  * const client = new XRayClient(config);
29
- * const input = {
30
- * SamplingRuleUpdate: {
29
+ * const input = { // UpdateSamplingRuleRequest
30
+ * SamplingRuleUpdate: { // SamplingRuleUpdate
31
31
  * RuleName: "STRING_VALUE",
32
32
  * RuleARN: "STRING_VALUE",
33
33
  * ResourceARN: "STRING_VALUE",
@@ -39,7 +39,7 @@ export interface UpdateSamplingRuleCommandOutput extends UpdateSamplingRuleResul
39
39
  * ServiceType: "STRING_VALUE",
40
40
  * HTTPMethod: "STRING_VALUE",
41
41
  * URLPath: "STRING_VALUE",
42
- * Attributes: {
42
+ * Attributes: { // AttributeMap
43
43
  * "<keys>": "STRING_VALUE",
44
44
  * },
45
45
  * },
@@ -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.300.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.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.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",