@aws-sdk/client-arc-region-switch 3.927.0 → 3.928.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 (41) hide show
  1. package/dist-cjs/index.js +799 -1027
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/ARCRegionSwitchClient.js +2 -0
  4. package/dist-es/commands/ApprovePlanExecutionStepCommand.js +3 -9
  5. package/dist-es/commands/CancelPlanExecutionCommand.js +3 -9
  6. package/dist-es/commands/CreatePlanCommand.js +3 -9
  7. package/dist-es/commands/DeletePlanCommand.js +3 -9
  8. package/dist-es/commands/GetPlanCommand.js +3 -9
  9. package/dist-es/commands/GetPlanEvaluationStatusCommand.js +3 -9
  10. package/dist-es/commands/GetPlanExecutionCommand.js +3 -9
  11. package/dist-es/commands/GetPlanInRegionCommand.js +3 -9
  12. package/dist-es/commands/ListPlanExecutionEventsCommand.js +3 -9
  13. package/dist-es/commands/ListPlanExecutionsCommand.js +3 -9
  14. package/dist-es/commands/ListPlansCommand.js +3 -9
  15. package/dist-es/commands/ListPlansInRegionCommand.js +3 -9
  16. package/dist-es/commands/ListRoute53HealthChecksCommand.js +3 -9
  17. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  18. package/dist-es/commands/StartPlanExecutionCommand.js +3 -9
  19. package/dist-es/commands/TagResourceCommand.js +3 -9
  20. package/dist-es/commands/UntagResourceCommand.js +3 -9
  21. package/dist-es/commands/UpdatePlanCommand.js +3 -9
  22. package/dist-es/commands/UpdatePlanExecutionCommand.js +3 -9
  23. package/dist-es/commands/UpdatePlanExecutionStepCommand.js +3 -9
  24. package/dist-es/runtimeConfig.shared.js +7 -0
  25. package/dist-es/schemas/schemas_0.js +748 -0
  26. package/dist-types/ARCRegionSwitchClient.d.ts +10 -1
  27. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  28. package/dist-types/runtimeConfig.d.ts +1 -0
  29. package/dist-types/runtimeConfig.native.d.ts +1 -0
  30. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  31. package/dist-types/schemas/schemas_0.d.ts +131 -0
  32. package/dist-types/ts3.4/ARCRegionSwitchClient.d.ts +4 -0
  33. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  34. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  35. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  36. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  37. package/dist-types/ts3.4/schemas/schemas_0.d.ts +137 -0
  38. package/package.json +5 -5
  39. package/dist-es/protocols/Aws_json1_0.js +0 -876
  40. package/dist-types/protocols/Aws_json1_0.d.ts +0 -182
  41. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -245
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const url_parser_1 = require("@smithy/url-parser");
7
8
  const util_base64_1 = require("@smithy/util-base64");
@@ -25,6 +26,12 @@ const getRuntimeConfig = (config) => {
25
26
  },
26
27
  ],
27
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
+ protocol: config?.protocol ??
30
+ new protocols_1.AwsJson1_0Protocol({
31
+ defaultNamespace: "com.amazonaws.arcregionswitch",
32
+ serviceTarget: "ArcRegionSwitch",
33
+ awsQueryCompatible: false,
34
+ }),
28
35
  serviceId: config?.serviceId ?? "ARC Region switch",
29
36
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
37
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
4
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
7
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
9
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
10
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
@@ -28,6 +29,7 @@ export class ARCRegionSwitchClient extends __Client {
28
29
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
29
30
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
30
31
  this.config = _config_8;
32
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
31
33
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
34
  this.middlewareStack.use(getRetryPlugin(this.config));
33
35
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -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_ApprovePlanExecutionStepCommand, se_ApprovePlanExecutionStepCommand } from "../protocols/Aws_json1_0";
4
+ import { ApprovePlanExecutionStep } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ApprovePlanExecutionStepCommand 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("ArcRegionSwitch", "ApprovePlanExecutionStep", {})
17
13
  .n("ARCRegionSwitchClient", "ApprovePlanExecutionStepCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ApprovePlanExecutionStepCommand)
20
- .de(de_ApprovePlanExecutionStepCommand)
14
+ .sc(ApprovePlanExecutionStep)
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_CancelPlanExecutionCommand, se_CancelPlanExecutionCommand } from "../protocols/Aws_json1_0";
4
+ import { CancelPlanExecution } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class CancelPlanExecutionCommand 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("ArcRegionSwitch", "CancelPlanExecution", {})
17
13
  .n("ARCRegionSwitchClient", "CancelPlanExecutionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_CancelPlanExecutionCommand)
20
- .de(de_CancelPlanExecutionCommand)
14
+ .sc(CancelPlanExecution)
21
15
  .build() {
22
16
  }
@@ -1,8 +1,7 @@
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_CreatePlanCommand, se_CreatePlanCommand } from "../protocols/Aws_json1_0";
4
+ import { CreatePlan } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class CreatePlanCommand extends $Command
8
7
  .classBuilder()
@@ -11,15 +10,10 @@ export class CreatePlanCommand extends $Command
11
10
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
12
11
  })
13
12
  .m(function (Command, cs, config, o) {
14
- return [
15
- getSerdePlugin(config, this.serialize, this.deserialize),
16
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
- ];
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
18
14
  })
19
15
  .s("ArcRegionSwitch", "CreatePlan", {})
20
16
  .n("ARCRegionSwitchClient", "CreatePlanCommand")
21
- .f(void 0, void 0)
22
- .ser(se_CreatePlanCommand)
23
- .de(de_CreatePlanCommand)
17
+ .sc(CreatePlan)
24
18
  .build() {
25
19
  }
@@ -1,8 +1,7 @@
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_DeletePlanCommand, se_DeletePlanCommand } from "../protocols/Aws_json1_0";
4
+ import { DeletePlan } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeletePlanCommand extends $Command
8
7
  .classBuilder()
@@ -11,15 +10,10 @@ export class DeletePlanCommand extends $Command
11
10
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
12
11
  })
13
12
  .m(function (Command, cs, config, o) {
14
- return [
15
- getSerdePlugin(config, this.serialize, this.deserialize),
16
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
- ];
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
18
14
  })
19
15
  .s("ArcRegionSwitch", "DeletePlan", {})
20
16
  .n("ARCRegionSwitchClient", "DeletePlanCommand")
21
- .f(void 0, void 0)
22
- .ser(se_DeletePlanCommand)
23
- .de(de_DeletePlanCommand)
17
+ .sc(DeletePlan)
24
18
  .build() {
25
19
  }
@@ -1,8 +1,7 @@
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_GetPlanCommand, se_GetPlanCommand } from "../protocols/Aws_json1_0";
4
+ import { GetPlan } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetPlanCommand extends $Command
8
7
  .classBuilder()
@@ -11,15 +10,10 @@ export class GetPlanCommand extends $Command
11
10
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
12
11
  })
13
12
  .m(function (Command, cs, config, o) {
14
- return [
15
- getSerdePlugin(config, this.serialize, this.deserialize),
16
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
- ];
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
18
14
  })
19
15
  .s("ArcRegionSwitch", "GetPlan", {})
20
16
  .n("ARCRegionSwitchClient", "GetPlanCommand")
21
- .f(void 0, void 0)
22
- .ser(se_GetPlanCommand)
23
- .de(de_GetPlanCommand)
17
+ .sc(GetPlan)
24
18
  .build() {
25
19
  }
@@ -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_GetPlanEvaluationStatusCommand, se_GetPlanEvaluationStatusCommand } from "../protocols/Aws_json1_0";
4
+ import { GetPlanEvaluationStatus } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetPlanEvaluationStatusCommand 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("ArcRegionSwitch", "GetPlanEvaluationStatus", {})
17
13
  .n("ARCRegionSwitchClient", "GetPlanEvaluationStatusCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetPlanEvaluationStatusCommand)
20
- .de(de_GetPlanEvaluationStatusCommand)
14
+ .sc(GetPlanEvaluationStatus)
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_GetPlanExecutionCommand, se_GetPlanExecutionCommand } from "../protocols/Aws_json1_0";
4
+ import { GetPlanExecution } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetPlanExecutionCommand 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("ArcRegionSwitch", "GetPlanExecution", {})
17
13
  .n("ARCRegionSwitchClient", "GetPlanExecutionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetPlanExecutionCommand)
20
- .de(de_GetPlanExecutionCommand)
14
+ .sc(GetPlanExecution)
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_GetPlanInRegionCommand, se_GetPlanInRegionCommand } from "../protocols/Aws_json1_0";
4
+ import { GetPlanInRegion } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetPlanInRegionCommand 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("ArcRegionSwitch", "GetPlanInRegion", {})
17
13
  .n("ARCRegionSwitchClient", "GetPlanInRegionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetPlanInRegionCommand)
20
- .de(de_GetPlanInRegionCommand)
14
+ .sc(GetPlanInRegion)
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_ListPlanExecutionEventsCommand, se_ListPlanExecutionEventsCommand } from "../protocols/Aws_json1_0";
4
+ import { ListPlanExecutionEvents } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListPlanExecutionEventsCommand 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("ArcRegionSwitch", "ListPlanExecutionEvents", {})
17
13
  .n("ARCRegionSwitchClient", "ListPlanExecutionEventsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListPlanExecutionEventsCommand)
20
- .de(de_ListPlanExecutionEventsCommand)
14
+ .sc(ListPlanExecutionEvents)
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_ListPlanExecutionsCommand, se_ListPlanExecutionsCommand } from "../protocols/Aws_json1_0";
4
+ import { ListPlanExecutions } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListPlanExecutionsCommand 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("ArcRegionSwitch", "ListPlanExecutions", {})
17
13
  .n("ARCRegionSwitchClient", "ListPlanExecutionsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListPlanExecutionsCommand)
20
- .de(de_ListPlanExecutionsCommand)
14
+ .sc(ListPlanExecutions)
21
15
  .build() {
22
16
  }
@@ -1,8 +1,7 @@
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_ListPlansCommand, se_ListPlansCommand } from "../protocols/Aws_json1_0";
4
+ import { ListPlans } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListPlansCommand extends $Command
8
7
  .classBuilder()
@@ -11,15 +10,10 @@ export class ListPlansCommand extends $Command
11
10
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
12
11
  })
13
12
  .m(function (Command, cs, config, o) {
14
- return [
15
- getSerdePlugin(config, this.serialize, this.deserialize),
16
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
- ];
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
18
14
  })
19
15
  .s("ArcRegionSwitch", "ListPlans", {})
20
16
  .n("ARCRegionSwitchClient", "ListPlansCommand")
21
- .f(void 0, void 0)
22
- .ser(se_ListPlansCommand)
23
- .de(de_ListPlansCommand)
17
+ .sc(ListPlans)
24
18
  .build() {
25
19
  }
@@ -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_ListPlansInRegionCommand, se_ListPlansInRegionCommand } from "../protocols/Aws_json1_0";
4
+ import { ListPlansInRegion } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListPlansInRegionCommand 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("ArcRegionSwitch", "ListPlansInRegion", {})
17
13
  .n("ARCRegionSwitchClient", "ListPlansInRegionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListPlansInRegionCommand)
20
- .de(de_ListPlansInRegionCommand)
14
+ .sc(ListPlansInRegion)
21
15
  .build() {
22
16
  }
@@ -1,8 +1,7 @@
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_ListRoute53HealthChecksCommand, se_ListRoute53HealthChecksCommand } from "../protocols/Aws_json1_0";
4
+ import { ListRoute53HealthChecks } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListRoute53HealthChecksCommand extends $Command
8
7
  .classBuilder()
@@ -11,15 +10,10 @@ export class ListRoute53HealthChecksCommand extends $Command
11
10
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
12
11
  })
13
12
  .m(function (Command, cs, config, o) {
14
- return [
15
- getSerdePlugin(config, this.serialize, this.deserialize),
16
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
- ];
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
18
14
  })
19
15
  .s("ArcRegionSwitch", "ListRoute53HealthChecks", {})
20
16
  .n("ARCRegionSwitchClient", "ListRoute53HealthChecksCommand")
21
- .f(void 0, void 0)
22
- .ser(se_ListRoute53HealthChecksCommand)
23
- .de(de_ListRoute53HealthChecksCommand)
17
+ .sc(ListRoute53HealthChecks)
24
18
  .build() {
25
19
  }
@@ -1,8 +1,7 @@
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_json1_0";
4
+ import { ListTagsForResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTagsForResourceCommand extends $Command
8
7
  .classBuilder()
@@ -11,15 +10,10 @@ export class ListTagsForResourceCommand extends $Command
11
10
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
12
11
  })
13
12
  .m(function (Command, cs, config, o) {
14
- return [
15
- getSerdePlugin(config, this.serialize, this.deserialize),
16
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
- ];
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
18
14
  })
19
15
  .s("ArcRegionSwitch", "ListTagsForResource", {})
20
16
  .n("ARCRegionSwitchClient", "ListTagsForResourceCommand")
21
- .f(void 0, void 0)
22
- .ser(se_ListTagsForResourceCommand)
23
- .de(de_ListTagsForResourceCommand)
17
+ .sc(ListTagsForResource)
24
18
  .build() {
25
19
  }
@@ -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_StartPlanExecutionCommand, se_StartPlanExecutionCommand } from "../protocols/Aws_json1_0";
4
+ import { StartPlanExecution } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartPlanExecutionCommand 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("ArcRegionSwitch", "StartPlanExecution", {})
17
13
  .n("ARCRegionSwitchClient", "StartPlanExecutionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartPlanExecutionCommand)
20
- .de(de_StartPlanExecutionCommand)
14
+ .sc(StartPlanExecution)
21
15
  .build() {
22
16
  }
@@ -1,8 +1,7 @@
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_json1_0";
4
+ import { TagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TagResourceCommand extends $Command
8
7
  .classBuilder()
@@ -11,15 +10,10 @@ export class TagResourceCommand extends $Command
11
10
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
12
11
  })
13
12
  .m(function (Command, cs, config, o) {
14
- return [
15
- getSerdePlugin(config, this.serialize, this.deserialize),
16
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
- ];
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
18
14
  })
19
15
  .s("ArcRegionSwitch", "TagResource", {})
20
16
  .n("ARCRegionSwitchClient", "TagResourceCommand")
21
- .f(void 0, void 0)
22
- .ser(se_TagResourceCommand)
23
- .de(de_TagResourceCommand)
17
+ .sc(TagResource)
24
18
  .build() {
25
19
  }
@@ -1,8 +1,7 @@
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_json1_0";
4
+ import { UntagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UntagResourceCommand extends $Command
8
7
  .classBuilder()
@@ -11,15 +10,10 @@ export class UntagResourceCommand extends $Command
11
10
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
12
11
  })
13
12
  .m(function (Command, cs, config, o) {
14
- return [
15
- getSerdePlugin(config, this.serialize, this.deserialize),
16
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
- ];
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
18
14
  })
19
15
  .s("ArcRegionSwitch", "UntagResource", {})
20
16
  .n("ARCRegionSwitchClient", "UntagResourceCommand")
21
- .f(void 0, void 0)
22
- .ser(se_UntagResourceCommand)
23
- .de(de_UntagResourceCommand)
17
+ .sc(UntagResource)
24
18
  .build() {
25
19
  }
@@ -1,8 +1,7 @@
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_UpdatePlanCommand, se_UpdatePlanCommand } from "../protocols/Aws_json1_0";
4
+ import { UpdatePlan } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdatePlanCommand extends $Command
8
7
  .classBuilder()
@@ -11,15 +10,10 @@ export class UpdatePlanCommand extends $Command
11
10
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
12
11
  })
13
12
  .m(function (Command, cs, config, o) {
14
- return [
15
- getSerdePlugin(config, this.serialize, this.deserialize),
16
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
- ];
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
18
14
  })
19
15
  .s("ArcRegionSwitch", "UpdatePlan", {})
20
16
  .n("ARCRegionSwitchClient", "UpdatePlanCommand")
21
- .f(void 0, void 0)
22
- .ser(se_UpdatePlanCommand)
23
- .de(de_UpdatePlanCommand)
17
+ .sc(UpdatePlan)
24
18
  .build() {
25
19
  }
@@ -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_UpdatePlanExecutionCommand, se_UpdatePlanExecutionCommand } from "../protocols/Aws_json1_0";
4
+ import { UpdatePlanExecution } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdatePlanExecutionCommand 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("ArcRegionSwitch", "UpdatePlanExecution", {})
17
13
  .n("ARCRegionSwitchClient", "UpdatePlanExecutionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdatePlanExecutionCommand)
20
- .de(de_UpdatePlanExecutionCommand)
14
+ .sc(UpdatePlanExecution)
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_UpdatePlanExecutionStepCommand, se_UpdatePlanExecutionStepCommand } from "../protocols/Aws_json1_0";
4
+ import { UpdatePlanExecutionStep } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdatePlanExecutionStepCommand 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("ArcRegionSwitch", "UpdatePlanExecutionStep", {})
17
13
  .n("ARCRegionSwitchClient", "UpdatePlanExecutionStepCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdatePlanExecutionStepCommand)
20
- .de(de_UpdatePlanExecutionStepCommand)
14
+ .sc(UpdatePlanExecutionStep)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsJson1_0Protocol } 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,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsJson1_0Protocol({
28
+ defaultNamespace: "com.amazonaws.arcregionswitch",
29
+ serviceTarget: "ArcRegionSwitch",
30
+ awsQueryCompatible: false,
31
+ }),
25
32
  serviceId: config?.serviceId ?? "ARC Region switch",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,