@aws-sdk/client-xray 3.928.0 → 3.929.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 (59) hide show
  1. package/dist-cjs/index.js +1651 -2118
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/XRayClient.js +2 -0
  4. package/dist-es/commands/BatchGetTracesCommand.js +3 -9
  5. package/dist-es/commands/CancelTraceRetrievalCommand.js +3 -9
  6. package/dist-es/commands/CreateGroupCommand.js +3 -9
  7. package/dist-es/commands/CreateSamplingRuleCommand.js +3 -9
  8. package/dist-es/commands/DeleteGroupCommand.js +3 -9
  9. package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
  10. package/dist-es/commands/DeleteSamplingRuleCommand.js +3 -9
  11. package/dist-es/commands/GetEncryptionConfigCommand.js +3 -9
  12. package/dist-es/commands/GetGroupCommand.js +3 -9
  13. package/dist-es/commands/GetGroupsCommand.js +3 -9
  14. package/dist-es/commands/GetIndexingRulesCommand.js +3 -9
  15. package/dist-es/commands/GetInsightCommand.js +3 -9
  16. package/dist-es/commands/GetInsightEventsCommand.js +3 -9
  17. package/dist-es/commands/GetInsightImpactGraphCommand.js +3 -9
  18. package/dist-es/commands/GetInsightSummariesCommand.js +3 -9
  19. package/dist-es/commands/GetRetrievedTracesGraphCommand.js +3 -9
  20. package/dist-es/commands/GetSamplingRulesCommand.js +3 -9
  21. package/dist-es/commands/GetSamplingStatisticSummariesCommand.js +3 -9
  22. package/dist-es/commands/GetSamplingTargetsCommand.js +3 -9
  23. package/dist-es/commands/GetServiceGraphCommand.js +3 -9
  24. package/dist-es/commands/GetTimeSeriesServiceStatisticsCommand.js +3 -9
  25. package/dist-es/commands/GetTraceGraphCommand.js +3 -9
  26. package/dist-es/commands/GetTraceSegmentDestinationCommand.js +3 -9
  27. package/dist-es/commands/GetTraceSummariesCommand.js +3 -9
  28. package/dist-es/commands/ListResourcePoliciesCommand.js +3 -9
  29. package/dist-es/commands/ListRetrievedTracesCommand.js +3 -9
  30. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  31. package/dist-es/commands/PutEncryptionConfigCommand.js +3 -9
  32. package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
  33. package/dist-es/commands/PutTelemetryRecordsCommand.js +3 -9
  34. package/dist-es/commands/PutTraceSegmentsCommand.js +3 -9
  35. package/dist-es/commands/StartTraceRetrievalCommand.js +3 -9
  36. package/dist-es/commands/TagResourceCommand.js +3 -9
  37. package/dist-es/commands/UntagResourceCommand.js +3 -9
  38. package/dist-es/commands/UpdateGroupCommand.js +3 -9
  39. package/dist-es/commands/UpdateIndexingRuleCommand.js +3 -9
  40. package/dist-es/commands/UpdateSamplingRuleCommand.js +3 -9
  41. package/dist-es/commands/UpdateTraceSegmentDestinationCommand.js +3 -9
  42. package/dist-es/runtimeConfig.shared.js +2 -0
  43. package/dist-es/schemas/schemas_0.js +1554 -0
  44. package/dist-types/XRayClient.d.ts +10 -1
  45. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  46. package/dist-types/runtimeConfig.d.ts +1 -0
  47. package/dist-types/runtimeConfig.native.d.ts +1 -0
  48. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  49. package/dist-types/schemas/schemas_0.d.ts +250 -0
  50. package/dist-types/ts3.4/XRayClient.d.ts +4 -0
  51. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  52. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  53. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  54. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  55. package/dist-types/ts3.4/schemas/schemas_0.d.ts +256 -0
  56. package/package.json +2 -2
  57. package/dist-es/protocols/Aws_restJson1.js +0 -1823
  58. package/dist-types/protocols/Aws_restJson1.d.ts +0 -344
  59. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -461
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_GetTraceSegmentDestinationCommand, se_GetTraceSegmentDestinationCommand } from "../protocols/Aws_restJson1";
4
+ import { GetTraceSegmentDestination } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetTraceSegmentDestinationCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSXRay", "GetTraceSegmentDestination", {})
17
13
  .n("XRayClient", "GetTraceSegmentDestinationCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetTraceSegmentDestinationCommand)
20
- .de(de_GetTraceSegmentDestinationCommand)
14
+ .sc(GetTraceSegmentDestination)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_GetTraceSummariesCommand, se_GetTraceSummariesCommand } from "../protocols/Aws_restJson1";
4
+ import { GetTraceSummaries } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetTraceSummariesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSXRay", "GetTraceSummaries", {})
17
13
  .n("XRayClient", "GetTraceSummariesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetTraceSummariesCommand)
20
- .de(de_GetTraceSummariesCommand)
14
+ .sc(GetTraceSummaries)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListResourcePoliciesCommand, se_ListResourcePoliciesCommand } from "../protocols/Aws_restJson1";
4
+ import { ListResourcePolicies } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListResourcePoliciesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSXRay", "ListResourcePolicies", {})
17
13
  .n("XRayClient", "ListResourcePoliciesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListResourcePoliciesCommand)
20
- .de(de_ListResourcePoliciesCommand)
14
+ .sc(ListResourcePolicies)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListRetrievedTracesCommand, se_ListRetrievedTracesCommand } from "../protocols/Aws_restJson1";
4
+ import { ListRetrievedTraces } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListRetrievedTracesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSXRay", "ListRetrievedTraces", {})
17
13
  .n("XRayClient", "ListRetrievedTracesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListRetrievedTracesCommand)
20
- .de(de_ListRetrievedTracesCommand)
14
+ .sc(ListRetrievedTraces)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { ListTagsForResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTagsForResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSXRay", "ListTagsForResource", {})
17
13
  .n("XRayClient", "ListTagsForResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTagsForResourceCommand)
20
- .de(de_ListTagsForResourceCommand)
14
+ .sc(ListTagsForResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PutEncryptionConfigCommand, se_PutEncryptionConfigCommand } from "../protocols/Aws_restJson1";
4
+ import { PutEncryptionConfig } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutEncryptionConfigCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSXRay", "PutEncryptionConfig", {})
17
13
  .n("XRayClient", "PutEncryptionConfigCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutEncryptionConfigCommand)
20
- .de(de_PutEncryptionConfigCommand)
14
+ .sc(PutEncryptionConfig)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PutResourcePolicyCommand, se_PutResourcePolicyCommand } from "../protocols/Aws_restJson1";
4
+ import { PutResourcePolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutResourcePolicyCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSXRay", "PutResourcePolicy", {})
17
13
  .n("XRayClient", "PutResourcePolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutResourcePolicyCommand)
20
- .de(de_PutResourcePolicyCommand)
14
+ .sc(PutResourcePolicy)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PutTelemetryRecordsCommand, se_PutTelemetryRecordsCommand } from "../protocols/Aws_restJson1";
4
+ import { PutTelemetryRecords } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutTelemetryRecordsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSXRay", "PutTelemetryRecords", {})
17
13
  .n("XRayClient", "PutTelemetryRecordsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutTelemetryRecordsCommand)
20
- .de(de_PutTelemetryRecordsCommand)
14
+ .sc(PutTelemetryRecords)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PutTraceSegmentsCommand, se_PutTraceSegmentsCommand } from "../protocols/Aws_restJson1";
4
+ import { PutTraceSegments } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutTraceSegmentsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSXRay", "PutTraceSegments", {})
17
13
  .n("XRayClient", "PutTraceSegmentsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutTraceSegmentsCommand)
20
- .de(de_PutTraceSegmentsCommand)
14
+ .sc(PutTraceSegments)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StartTraceRetrievalCommand, se_StartTraceRetrievalCommand } from "../protocols/Aws_restJson1";
4
+ import { StartTraceRetrieval } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartTraceRetrievalCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSXRay", "StartTraceRetrieval", {})
17
13
  .n("XRayClient", "StartTraceRetrievalCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartTraceRetrievalCommand)
20
- .de(de_StartTraceRetrievalCommand)
14
+ .sc(StartTraceRetrieval)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { TagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSXRay", "TagResource", {})
17
13
  .n("XRayClient", "TagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TagResourceCommand)
20
- .de(de_TagResourceCommand)
14
+ .sc(TagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { UntagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UntagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSXRay", "UntagResource", {})
17
13
  .n("XRayClient", "UntagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UntagResourceCommand)
20
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateGroupCommand, se_UpdateGroupCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateGroup } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateGroupCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSXRay", "UpdateGroup", {})
17
13
  .n("XRayClient", "UpdateGroupCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateGroupCommand)
20
- .de(de_UpdateGroupCommand)
14
+ .sc(UpdateGroup)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateIndexingRuleCommand, se_UpdateIndexingRuleCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateIndexingRule } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateIndexingRuleCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSXRay", "UpdateIndexingRule", {})
17
13
  .n("XRayClient", "UpdateIndexingRuleCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateIndexingRuleCommand)
20
- .de(de_UpdateIndexingRuleCommand)
14
+ .sc(UpdateIndexingRule)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateSamplingRuleCommand, se_UpdateSamplingRuleCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateSamplingRule } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateSamplingRuleCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSXRay", "UpdateSamplingRule", {})
17
13
  .n("XRayClient", "UpdateSamplingRuleCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateSamplingRuleCommand)
20
- .de(de_UpdateSamplingRuleCommand)
14
+ .sc(UpdateSamplingRule)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateTraceSegmentDestinationCommand, se_UpdateTraceSegmentDestinationCommand, } from "../protocols/Aws_restJson1";
4
+ import { UpdateTraceSegmentDestination } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateTraceSegmentDestinationCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSXRay", "UpdateTraceSegmentDestination", {})
17
13
  .n("XRayClient", "UpdateTraceSegmentDestinationCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateTraceSegmentDestinationCommand)
20
- .de(de_UpdateTraceSegmentDestinationCommand)
14
+ .sc(UpdateTraceSegmentDestination)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.xray" }),
25
27
  serviceId: config?.serviceId ?? "XRay",
26
28
  urlParser: config?.urlParser ?? parseUrl,
27
29
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,