@aws-sdk/client-launch-wizard 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 (53) hide show
  1. package/dist-cjs/commands/CreateDeploymentCommand.js +18 -41
  2. package/dist-cjs/commands/DeleteDeploymentCommand.js +18 -41
  3. package/dist-cjs/commands/GetDeploymentCommand.js +18 -41
  4. package/dist-cjs/commands/GetWorkloadCommand.js +18 -41
  5. package/dist-cjs/commands/ListDeploymentEventsCommand.js +18 -41
  6. package/dist-cjs/commands/ListDeploymentsCommand.js +18 -41
  7. package/dist-cjs/commands/ListWorkloadDeploymentPatternsCommand.js +18 -41
  8. package/dist-cjs/commands/ListWorkloadsCommand.js +18 -41
  9. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  10. package/dist-cjs/pagination/ListDeploymentEventsPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListDeploymentsPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListWorkloadDeploymentPatternsPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListWorkloadsPaginator.js +2 -24
  14. package/dist-es/commands/CreateDeploymentCommand.js +18 -41
  15. package/dist-es/commands/DeleteDeploymentCommand.js +18 -41
  16. package/dist-es/commands/GetDeploymentCommand.js +18 -41
  17. package/dist-es/commands/GetWorkloadCommand.js +18 -41
  18. package/dist-es/commands/ListDeploymentEventsCommand.js +18 -41
  19. package/dist-es/commands/ListDeploymentsCommand.js +18 -41
  20. package/dist-es/commands/ListWorkloadDeploymentPatternsCommand.js +18 -41
  21. package/dist-es/commands/ListWorkloadsCommand.js +18 -41
  22. package/dist-es/endpoint/EndpointParameters.js +6 -0
  23. package/dist-es/pagination/ListDeploymentEventsPaginator.js +2 -23
  24. package/dist-es/pagination/ListDeploymentsPaginator.js +2 -23
  25. package/dist-es/pagination/ListWorkloadDeploymentPatternsPaginator.js +2 -23
  26. package/dist-es/pagination/ListWorkloadsPaginator.js +2 -23
  27. package/dist-types/commands/CreateDeploymentCommand.d.ts +6 -21
  28. package/dist-types/commands/DeleteDeploymentCommand.d.ts +6 -21
  29. package/dist-types/commands/GetDeploymentCommand.d.ts +6 -21
  30. package/dist-types/commands/GetWorkloadCommand.d.ts +6 -21
  31. package/dist-types/commands/ListDeploymentEventsCommand.d.ts +6 -21
  32. package/dist-types/commands/ListDeploymentsCommand.d.ts +6 -21
  33. package/dist-types/commands/ListWorkloadDeploymentPatternsCommand.d.ts +6 -21
  34. package/dist-types/commands/ListWorkloadsCommand.d.ts +6 -21
  35. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  36. package/dist-types/pagination/ListDeploymentEventsPaginator.d.ts +1 -1
  37. package/dist-types/pagination/ListDeploymentsPaginator.d.ts +1 -1
  38. package/dist-types/pagination/ListWorkloadDeploymentPatternsPaginator.d.ts +1 -1
  39. package/dist-types/pagination/ListWorkloadsPaginator.d.ts +1 -1
  40. package/dist-types/ts3.4/commands/CreateDeploymentCommand.d.ts +14 -23
  41. package/dist-types/ts3.4/commands/DeleteDeploymentCommand.d.ts +14 -23
  42. package/dist-types/ts3.4/commands/GetDeploymentCommand.d.ts +14 -23
  43. package/dist-types/ts3.4/commands/GetWorkloadCommand.d.ts +14 -23
  44. package/dist-types/ts3.4/commands/ListDeploymentEventsCommand.d.ts +12 -24
  45. package/dist-types/ts3.4/commands/ListDeploymentsCommand.d.ts +14 -23
  46. package/dist-types/ts3.4/commands/ListWorkloadDeploymentPatternsCommand.d.ts +12 -24
  47. package/dist-types/ts3.4/commands/ListWorkloadsCommand.d.ts +14 -23
  48. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  49. package/dist-types/ts3.4/pagination/ListDeploymentEventsPaginator.d.ts +3 -3
  50. package/dist-types/ts3.4/pagination/ListDeploymentsPaginator.d.ts +3 -3
  51. package/dist-types/ts3.4/pagination/ListWorkloadDeploymentPatternsPaginator.d.ts +3 -3
  52. package/dist-types/ts3.4/pagination/ListWorkloadsPaginator.d.ts +3 -3
  53. package/package.json +11 -11
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListWorkloadDeploymentPatterns = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListWorkloadDeploymentPatternsCommand_1 = require("../commands/ListWorkloadDeploymentPatternsCommand");
5
6
  const LaunchWizardClient_1 = require("../LaunchWizardClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListWorkloadDeploymentPatternsCommand_1.ListWorkloadDeploymentPatternsCommand(input), ...args);
8
- };
9
- async function* paginateListWorkloadDeploymentPatterns(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LaunchWizardClient_1.LaunchWizardClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LaunchWizard | LaunchWizardClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListWorkloadDeploymentPatterns = paginateListWorkloadDeploymentPatterns;
7
+ exports.paginateListWorkloadDeploymentPatterns = (0, core_1.createPaginator)(LaunchWizardClient_1.LaunchWizardClient, ListWorkloadDeploymentPatternsCommand_1.ListWorkloadDeploymentPatternsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListWorkloads = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListWorkloadsCommand_1 = require("../commands/ListWorkloadsCommand");
5
6
  const LaunchWizardClient_1 = require("../LaunchWizardClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListWorkloadsCommand_1.ListWorkloadsCommand(input), ...args);
8
- };
9
- async function* paginateListWorkloads(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LaunchWizardClient_1.LaunchWizardClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LaunchWizard | LaunchWizardClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListWorkloads = paginateListWorkloads;
7
+ exports.paginateListWorkloads = (0, core_1.createPaginator)(LaunchWizardClient_1.LaunchWizardClient, ListWorkloadsCommand_1.ListWorkloadsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,48 +1,25 @@
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 { CreateDeploymentInputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_CreateDeploymentCommand, se_CreateDeploymentCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class CreateDeploymentCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateDeploymentCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "LaunchWizardClient";
27
- const commandName = "CreateDeploymentCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: CreateDeploymentInputFilterSensitiveLog,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "LaunchWizard",
36
- operation: "CreateDeployment",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_CreateDeploymentCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_CreateDeploymentCommand(output, context);
47
- }
8
+ export class CreateDeploymentCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("LaunchWizard", "CreateDeployment", {})
20
+ .n("LaunchWizardClient", "CreateDeploymentCommand")
21
+ .f(CreateDeploymentInputFilterSensitiveLog, void 0)
22
+ .ser(se_CreateDeploymentCommand)
23
+ .de(de_CreateDeploymentCommand)
24
+ .build() {
48
25
  }
@@ -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_DeleteDeploymentCommand, se_DeleteDeploymentCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class DeleteDeploymentCommand 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, DeleteDeploymentCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "LaunchWizardClient";
26
- const commandName = "DeleteDeploymentCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "LaunchWizard",
35
- operation: "DeleteDeployment",
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_DeleteDeploymentCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteDeploymentCommand(output, context);
46
- }
7
+ export class DeleteDeploymentCommand 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("LaunchWizard", "DeleteDeployment", {})
19
+ .n("LaunchWizardClient", "DeleteDeploymentCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteDeploymentCommand)
22
+ .de(de_DeleteDeploymentCommand)
23
+ .build() {
47
24
  }
@@ -1,48 +1,25 @@
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 { GetDeploymentOutputFilterSensitiveLog } from "../models/models_0";
6
6
  import { de_GetDeploymentCommand, se_GetDeploymentCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class GetDeploymentCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, GetDeploymentCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "LaunchWizardClient";
27
- const commandName = "GetDeploymentCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: (_) => _,
33
- outputFilterSensitiveLog: GetDeploymentOutputFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "LaunchWizard",
36
- operation: "GetDeployment",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_GetDeploymentCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_GetDeploymentCommand(output, context);
47
- }
8
+ export class GetDeploymentCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("LaunchWizard", "GetDeployment", {})
20
+ .n("LaunchWizardClient", "GetDeploymentCommand")
21
+ .f(void 0, GetDeploymentOutputFilterSensitiveLog)
22
+ .ser(se_GetDeploymentCommand)
23
+ .de(de_GetDeploymentCommand)
24
+ .build() {
48
25
  }
@@ -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_GetWorkloadCommand, se_GetWorkloadCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetWorkloadCommand 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, GetWorkloadCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "LaunchWizardClient";
26
- const commandName = "GetWorkloadCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "LaunchWizard",
35
- operation: "GetWorkload",
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_GetWorkloadCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetWorkloadCommand(output, context);
46
- }
7
+ export class GetWorkloadCommand 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("LaunchWizard", "GetWorkload", {})
19
+ .n("LaunchWizardClient", "GetWorkloadCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetWorkloadCommand)
22
+ .de(de_GetWorkloadCommand)
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_ListDeploymentEventsCommand, se_ListDeploymentEventsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListDeploymentEventsCommand 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, ListDeploymentEventsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "LaunchWizardClient";
26
- const commandName = "ListDeploymentEventsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "LaunchWizard",
35
- operation: "ListDeploymentEvents",
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_ListDeploymentEventsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListDeploymentEventsCommand(output, context);
46
- }
7
+ export class ListDeploymentEventsCommand 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("LaunchWizard", "ListDeploymentEvents", {})
19
+ .n("LaunchWizardClient", "ListDeploymentEventsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListDeploymentEventsCommand)
22
+ .de(de_ListDeploymentEventsCommand)
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_ListDeploymentsCommand, se_ListDeploymentsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListDeploymentsCommand 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, ListDeploymentsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "LaunchWizardClient";
26
- const commandName = "ListDeploymentsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "LaunchWizard",
35
- operation: "ListDeployments",
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_ListDeploymentsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListDeploymentsCommand(output, context);
46
- }
7
+ export class ListDeploymentsCommand 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("LaunchWizard", "ListDeployments", {})
19
+ .n("LaunchWizardClient", "ListDeploymentsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListDeploymentsCommand)
22
+ .de(de_ListDeploymentsCommand)
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_ListWorkloadDeploymentPatternsCommand, se_ListWorkloadDeploymentPatternsCommand, } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListWorkloadDeploymentPatternsCommand 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, ListWorkloadDeploymentPatternsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "LaunchWizardClient";
26
- const commandName = "ListWorkloadDeploymentPatternsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "LaunchWizard",
35
- operation: "ListWorkloadDeploymentPatterns",
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_ListWorkloadDeploymentPatternsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListWorkloadDeploymentPatternsCommand(output, context);
46
- }
7
+ export class ListWorkloadDeploymentPatternsCommand 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("LaunchWizard", "ListWorkloadDeploymentPatterns", {})
19
+ .n("LaunchWizardClient", "ListWorkloadDeploymentPatternsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListWorkloadDeploymentPatternsCommand)
22
+ .de(de_ListWorkloadDeploymentPatternsCommand)
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_ListWorkloadsCommand, se_ListWorkloadsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListWorkloadsCommand 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, ListWorkloadsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "LaunchWizardClient";
26
- const commandName = "ListWorkloadsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "LaunchWizard",
35
- operation: "ListWorkloads",
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_ListWorkloadsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListWorkloadsCommand(output, context);
46
- }
7
+ export class ListWorkloadsCommand 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("LaunchWizard", "ListWorkloads", {})
19
+ .n("LaunchWizardClient", "ListWorkloadsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListWorkloadsCommand)
22
+ .de(de_ListWorkloadsCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "launchwizard",
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 { ListDeploymentEventsCommand, } from "../commands/ListDeploymentEventsCommand";
2
3
  import { LaunchWizardClient } from "../LaunchWizardClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDeploymentEventsCommand(input), ...args);
5
- };
6
- export async function* paginateListDeploymentEvents(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 LaunchWizardClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected LaunchWizard | LaunchWizardClient");
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 paginateListDeploymentEvents = createPaginator(LaunchWizardClient, ListDeploymentEventsCommand, "nextToken", "nextToken", "maxResults");