@aws-sdk/client-arc-zonal-shift 3.477.0 → 3.481.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 (61) hide show
  1. package/dist-cjs/commands/CancelZonalShiftCommand.js +18 -41
  2. package/dist-cjs/commands/CreatePracticeRunConfigurationCommand.js +18 -41
  3. package/dist-cjs/commands/DeletePracticeRunConfigurationCommand.js +18 -41
  4. package/dist-cjs/commands/GetManagedResourceCommand.js +18 -41
  5. package/dist-cjs/commands/ListAutoshiftsCommand.js +18 -41
  6. package/dist-cjs/commands/ListManagedResourcesCommand.js +18 -41
  7. package/dist-cjs/commands/ListZonalShiftsCommand.js +18 -41
  8. package/dist-cjs/commands/StartZonalShiftCommand.js +18 -41
  9. package/dist-cjs/commands/UpdatePracticeRunConfigurationCommand.js +18 -41
  10. package/dist-cjs/commands/UpdateZonalAutoshiftConfigurationCommand.js +18 -41
  11. package/dist-cjs/commands/UpdateZonalShiftCommand.js +18 -41
  12. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  13. package/dist-cjs/pagination/ListAutoshiftsPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListManagedResourcesPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListZonalShiftsPaginator.js +2 -24
  16. package/dist-es/commands/CancelZonalShiftCommand.js +18 -41
  17. package/dist-es/commands/CreatePracticeRunConfigurationCommand.js +18 -41
  18. package/dist-es/commands/DeletePracticeRunConfigurationCommand.js +18 -41
  19. package/dist-es/commands/GetManagedResourceCommand.js +18 -41
  20. package/dist-es/commands/ListAutoshiftsCommand.js +18 -41
  21. package/dist-es/commands/ListManagedResourcesCommand.js +18 -41
  22. package/dist-es/commands/ListZonalShiftsCommand.js +18 -41
  23. package/dist-es/commands/StartZonalShiftCommand.js +18 -41
  24. package/dist-es/commands/UpdatePracticeRunConfigurationCommand.js +18 -41
  25. package/dist-es/commands/UpdateZonalAutoshiftConfigurationCommand.js +18 -41
  26. package/dist-es/commands/UpdateZonalShiftCommand.js +18 -41
  27. package/dist-es/endpoint/EndpointParameters.js +6 -0
  28. package/dist-es/pagination/ListAutoshiftsPaginator.js +2 -23
  29. package/dist-es/pagination/ListManagedResourcesPaginator.js +2 -23
  30. package/dist-es/pagination/ListZonalShiftsPaginator.js +2 -23
  31. package/dist-types/commands/CancelZonalShiftCommand.d.ts +6 -21
  32. package/dist-types/commands/CreatePracticeRunConfigurationCommand.d.ts +6 -21
  33. package/dist-types/commands/DeletePracticeRunConfigurationCommand.d.ts +6 -21
  34. package/dist-types/commands/GetManagedResourceCommand.d.ts +6 -21
  35. package/dist-types/commands/ListAutoshiftsCommand.d.ts +6 -21
  36. package/dist-types/commands/ListManagedResourcesCommand.d.ts +6 -21
  37. package/dist-types/commands/ListZonalShiftsCommand.d.ts +6 -21
  38. package/dist-types/commands/StartZonalShiftCommand.d.ts +6 -21
  39. package/dist-types/commands/UpdatePracticeRunConfigurationCommand.d.ts +6 -21
  40. package/dist-types/commands/UpdateZonalAutoshiftConfigurationCommand.d.ts +6 -21
  41. package/dist-types/commands/UpdateZonalShiftCommand.d.ts +6 -21
  42. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  43. package/dist-types/pagination/ListAutoshiftsPaginator.d.ts +1 -1
  44. package/dist-types/pagination/ListManagedResourcesPaginator.d.ts +1 -1
  45. package/dist-types/pagination/ListZonalShiftsPaginator.d.ts +1 -1
  46. package/dist-types/ts3.4/commands/CancelZonalShiftCommand.d.ts +14 -23
  47. package/dist-types/ts3.4/commands/CreatePracticeRunConfigurationCommand.d.ts +12 -24
  48. package/dist-types/ts3.4/commands/DeletePracticeRunConfigurationCommand.d.ts +12 -24
  49. package/dist-types/ts3.4/commands/GetManagedResourceCommand.d.ts +14 -23
  50. package/dist-types/ts3.4/commands/ListAutoshiftsCommand.d.ts +14 -23
  51. package/dist-types/ts3.4/commands/ListManagedResourcesCommand.d.ts +12 -24
  52. package/dist-types/ts3.4/commands/ListZonalShiftsCommand.d.ts +14 -23
  53. package/dist-types/ts3.4/commands/StartZonalShiftCommand.d.ts +14 -23
  54. package/dist-types/ts3.4/commands/UpdatePracticeRunConfigurationCommand.d.ts +12 -24
  55. package/dist-types/ts3.4/commands/UpdateZonalAutoshiftConfigurationCommand.d.ts +12 -24
  56. package/dist-types/ts3.4/commands/UpdateZonalShiftCommand.d.ts +14 -23
  57. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  58. package/dist-types/ts3.4/pagination/ListAutoshiftsPaginator.d.ts +3 -3
  59. package/dist-types/ts3.4/pagination/ListManagedResourcesPaginator.d.ts +3 -3
  60. package/dist-types/ts3.4/pagination/ListZonalShiftsPaginator.d.ts +3 -3
  61. package/package.json +11 -11
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListManagedResourcesCommand, se_ListManagedResourcesCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListManagedResourcesCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListManagedResourcesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ARCZonalShiftClient";
26
- const commandName = "ListManagedResourcesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PercDataPlane",
35
- operation: "ListManagedResources",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListManagedResourcesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListManagedResourcesCommand(output, context);
46
- }
7
+ export class ListManagedResourcesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("PercDataPlane", "ListManagedResources", {})
19
+ .n("ARCZonalShiftClient", "ListManagedResourcesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListManagedResourcesCommand)
22
+ .de(de_ListManagedResourcesCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListZonalShiftsCommand, se_ListZonalShiftsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListZonalShiftsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListZonalShiftsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ARCZonalShiftClient";
26
- const commandName = "ListZonalShiftsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PercDataPlane",
35
- operation: "ListZonalShifts",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListZonalShiftsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListZonalShiftsCommand(output, context);
46
- }
7
+ export class ListZonalShiftsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("PercDataPlane", "ListZonalShifts", {})
19
+ .n("ARCZonalShiftClient", "ListZonalShiftsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListZonalShiftsCommand)
22
+ .de(de_ListZonalShiftsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_StartZonalShiftCommand, se_StartZonalShiftCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class StartZonalShiftCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, StartZonalShiftCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ARCZonalShiftClient";
26
- const commandName = "StartZonalShiftCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PercDataPlane",
35
- operation: "StartZonalShift",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_StartZonalShiftCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StartZonalShiftCommand(output, context);
46
- }
7
+ export class StartZonalShiftCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("PercDataPlane", "StartZonalShift", {})
19
+ .n("ARCZonalShiftClient", "StartZonalShiftCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StartZonalShiftCommand)
22
+ .de(de_StartZonalShiftCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdatePracticeRunConfigurationCommand, se_UpdatePracticeRunConfigurationCommand, } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdatePracticeRunConfigurationCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdatePracticeRunConfigurationCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ARCZonalShiftClient";
26
- const commandName = "UpdatePracticeRunConfigurationCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PercDataPlane",
35
- operation: "UpdatePracticeRunConfiguration",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdatePracticeRunConfigurationCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdatePracticeRunConfigurationCommand(output, context);
46
- }
7
+ export class UpdatePracticeRunConfigurationCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("PercDataPlane", "UpdatePracticeRunConfiguration", {})
19
+ .n("ARCZonalShiftClient", "UpdatePracticeRunConfigurationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdatePracticeRunConfigurationCommand)
22
+ .de(de_UpdatePracticeRunConfigurationCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateZonalAutoshiftConfigurationCommand, se_UpdateZonalAutoshiftConfigurationCommand, } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateZonalAutoshiftConfigurationCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateZonalAutoshiftConfigurationCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ARCZonalShiftClient";
26
- const commandName = "UpdateZonalAutoshiftConfigurationCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PercDataPlane",
35
- operation: "UpdateZonalAutoshiftConfiguration",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateZonalAutoshiftConfigurationCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateZonalAutoshiftConfigurationCommand(output, context);
46
- }
7
+ export class UpdateZonalAutoshiftConfigurationCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("PercDataPlane", "UpdateZonalAutoshiftConfiguration", {})
19
+ .n("ARCZonalShiftClient", "UpdateZonalAutoshiftConfigurationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateZonalAutoshiftConfigurationCommand)
22
+ .de(de_UpdateZonalAutoshiftConfigurationCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateZonalShiftCommand, se_UpdateZonalShiftCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateZonalShiftCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateZonalShiftCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ARCZonalShiftClient";
26
- const commandName = "UpdateZonalShiftCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PercDataPlane",
35
- operation: "UpdateZonalShift",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateZonalShiftCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateZonalShiftCommand(output, context);
46
- }
7
+ export class UpdateZonalShiftCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("PercDataPlane", "UpdateZonalShift", {})
19
+ .n("ARCZonalShiftClient", "UpdateZonalShiftCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateZonalShiftCommand)
22
+ .de(de_UpdateZonalShiftCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "arc-zonal-shift",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ARCZonalShiftClient } from "../ARCZonalShiftClient";
2
3
  import { ListAutoshiftsCommand, } from "../commands/ListAutoshiftsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAutoshiftsCommand(input), ...args);
5
- };
6
- export async function* paginateListAutoshifts(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof ARCZonalShiftClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ARCZonalShift | ARCZonalShiftClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListAutoshifts = createPaginator(ARCZonalShiftClient, ListAutoshiftsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ARCZonalShiftClient } from "../ARCZonalShiftClient";
2
3
  import { ListManagedResourcesCommand, } from "../commands/ListManagedResourcesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListManagedResourcesCommand(input), ...args);
5
- };
6
- export async function* paginateListManagedResources(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof ARCZonalShiftClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ARCZonalShift | ARCZonalShiftClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListManagedResources = createPaginator(ARCZonalShiftClient, ListManagedResourcesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ARCZonalShiftClient } from "../ARCZonalShiftClient";
2
3
  import { ListZonalShiftsCommand, } from "../commands/ListZonalShiftsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListZonalShiftsCommand(input), ...args);
5
- };
6
- export async function* paginateListZonalShifts(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof ARCZonalShiftClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected ARCZonalShift | ARCZonalShiftClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListZonalShifts = createPaginator(ARCZonalShiftClient, ListZonalShiftsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { ARCZonalShiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ARCZonalShiftClient";
5
4
  import { CancelZonalShiftRequest, ZonalShift } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CancelZonalShiftCommandInput extends CancelZonalShiftRequest {
21
20
  */
22
21
  export interface CancelZonalShiftCommandOutput extends ZonalShift, __MetadataBearer {
23
22
  }
23
+ declare const CancelZonalShiftCommand_base: {
24
+ new (input: CancelZonalShiftCommandInput): import("@smithy/smithy-client").CommandImpl<CancelZonalShiftCommandInput, CancelZonalShiftCommandOutput, ARCZonalShiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Cancel a zonal shift in Amazon Route 53 Application Recovery Controller. To cancel the zonal shift, specify the zonal shift ID.</p>
@@ -78,23 +81,5 @@ export interface CancelZonalShiftCommandOutput extends ZonalShift, __MetadataBea
78
81
  * <p>Base exception class for all service exceptions from ARCZonalShift service.</p>
79
82
  *
80
83
  */
81
- export declare class CancelZonalShiftCommand extends $Command<CancelZonalShiftCommandInput, CancelZonalShiftCommandOutput, ARCZonalShiftClientResolvedConfig> {
82
- readonly input: CancelZonalShiftCommandInput;
83
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
84
- /**
85
- * @public
86
- */
87
- constructor(input: CancelZonalShiftCommandInput);
88
- /**
89
- * @internal
90
- */
91
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ARCZonalShiftClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CancelZonalShiftCommandInput, CancelZonalShiftCommandOutput>;
92
- /**
93
- * @internal
94
- */
95
- private serialize;
96
- /**
97
- * @internal
98
- */
99
- private deserialize;
84
+ export declare class CancelZonalShiftCommand extends CancelZonalShiftCommand_base {
100
85
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { ARCZonalShiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ARCZonalShiftClient";
5
4
  import { CreatePracticeRunConfigurationRequest, CreatePracticeRunConfigurationResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreatePracticeRunConfigurationCommandInput extends CreatePracti
21
20
  */
22
21
  export interface CreatePracticeRunConfigurationCommandOutput extends CreatePracticeRunConfigurationResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreatePracticeRunConfigurationCommand_base: {
24
+ new (input: CreatePracticeRunConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePracticeRunConfigurationCommandInput, CreatePracticeRunConfigurationCommandOutput, ARCZonalShiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>A practice run configuration for zonal autoshift is required when you enable zonal autoshift.
@@ -116,23 +119,5 @@ export interface CreatePracticeRunConfigurationCommandOutput extends CreatePract
116
119
  * <p>Base exception class for all service exceptions from ARCZonalShift service.</p>
117
120
  *
118
121
  */
119
- export declare class CreatePracticeRunConfigurationCommand extends $Command<CreatePracticeRunConfigurationCommandInput, CreatePracticeRunConfigurationCommandOutput, ARCZonalShiftClientResolvedConfig> {
120
- readonly input: CreatePracticeRunConfigurationCommandInput;
121
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
122
- /**
123
- * @public
124
- */
125
- constructor(input: CreatePracticeRunConfigurationCommandInput);
126
- /**
127
- * @internal
128
- */
129
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ARCZonalShiftClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreatePracticeRunConfigurationCommandInput, CreatePracticeRunConfigurationCommandOutput>;
130
- /**
131
- * @internal
132
- */
133
- private serialize;
134
- /**
135
- * @internal
136
- */
137
- private deserialize;
122
+ export declare class CreatePracticeRunConfigurationCommand extends CreatePracticeRunConfigurationCommand_base {
138
123
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { ARCZonalShiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ARCZonalShiftClient";
5
4
  import { DeletePracticeRunConfigurationRequest, DeletePracticeRunConfigurationResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeletePracticeRunConfigurationCommandInput extends DeletePracti
21
20
  */
22
21
  export interface DeletePracticeRunConfigurationCommandOutput extends DeletePracticeRunConfigurationResponse, __MetadataBearer {
23
22
  }
23
+ declare const DeletePracticeRunConfigurationCommand_base: {
24
+ new (input: DeletePracticeRunConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<DeletePracticeRunConfigurationCommandInput, DeletePracticeRunConfigurationCommandOutput, ARCZonalShiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Deletes the practice run configuration for a resource. Before you can delete
@@ -73,23 +76,5 @@ export interface DeletePracticeRunConfigurationCommandOutput extends DeletePract
73
76
  * <p>Base exception class for all service exceptions from ARCZonalShift service.</p>
74
77
  *
75
78
  */
76
- export declare class DeletePracticeRunConfigurationCommand extends $Command<DeletePracticeRunConfigurationCommandInput, DeletePracticeRunConfigurationCommandOutput, ARCZonalShiftClientResolvedConfig> {
77
- readonly input: DeletePracticeRunConfigurationCommandInput;
78
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
79
- /**
80
- * @public
81
- */
82
- constructor(input: DeletePracticeRunConfigurationCommandInput);
83
- /**
84
- * @internal
85
- */
86
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ARCZonalShiftClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeletePracticeRunConfigurationCommandInput, DeletePracticeRunConfigurationCommandOutput>;
87
- /**
88
- * @internal
89
- */
90
- private serialize;
91
- /**
92
- * @internal
93
- */
94
- private deserialize;
79
+ export declare class DeletePracticeRunConfigurationCommand extends DeletePracticeRunConfigurationCommand_base {
95
80
  }