@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
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class CreateDeploymentCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateDeploymentCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "LaunchWizardClient";
30
- const commandName = "CreateDeploymentCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: models_0_1.CreateDeploymentInputFilterSensitiveLog,
36
- outputFilterSensitiveLog: (_) => _,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "LaunchWizard",
39
- operation: "CreateDeployment",
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return (0, Aws_restJson1_1.se_CreateDeploymentCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_CreateDeploymentCommand)(output, context);
50
- }
11
+ class CreateDeploymentCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ ];
21
+ })
22
+ .s("LaunchWizard", "CreateDeployment", {})
23
+ .n("LaunchWizardClient", "CreateDeploymentCommand")
24
+ .f(models_0_1.CreateDeploymentInputFilterSensitiveLog, void 0)
25
+ .ser(Aws_restJson1_1.se_CreateDeploymentCommand)
26
+ .de(Aws_restJson1_1.de_CreateDeploymentCommand)
27
+ .build() {
51
28
  }
52
29
  exports.CreateDeploymentCommand = CreateDeploymentCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class DeleteDeploymentCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteDeploymentCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "LaunchWizardClient";
29
- const commandName = "DeleteDeploymentCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "LaunchWizard",
38
- operation: "DeleteDeployment",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_DeleteDeploymentCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_DeleteDeploymentCommand)(output, context);
49
- }
10
+ class DeleteDeploymentCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("LaunchWizard", "DeleteDeployment", {})
22
+ .n("LaunchWizardClient", "DeleteDeploymentCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_DeleteDeploymentCommand)
25
+ .de(Aws_restJson1_1.de_DeleteDeploymentCommand)
26
+ .build() {
50
27
  }
51
28
  exports.DeleteDeploymentCommand = DeleteDeploymentCommand;
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class GetDeploymentCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetDeploymentCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "LaunchWizardClient";
30
- const commandName = "GetDeploymentCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: (_) => _,
36
- outputFilterSensitiveLog: models_0_1.GetDeploymentOutputFilterSensitiveLog,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "LaunchWizard",
39
- operation: "GetDeployment",
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return (0, Aws_restJson1_1.se_GetDeploymentCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_GetDeploymentCommand)(output, context);
50
- }
11
+ class GetDeploymentCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ ];
21
+ })
22
+ .s("LaunchWizard", "GetDeployment", {})
23
+ .n("LaunchWizardClient", "GetDeploymentCommand")
24
+ .f(void 0, models_0_1.GetDeploymentOutputFilterSensitiveLog)
25
+ .ser(Aws_restJson1_1.se_GetDeploymentCommand)
26
+ .de(Aws_restJson1_1.de_GetDeploymentCommand)
27
+ .build() {
51
28
  }
52
29
  exports.GetDeploymentCommand = GetDeploymentCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class GetWorkloadCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetWorkloadCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "LaunchWizardClient";
29
- const commandName = "GetWorkloadCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "LaunchWizard",
38
- operation: "GetWorkload",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_GetWorkloadCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_GetWorkloadCommand)(output, context);
49
- }
10
+ class GetWorkloadCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("LaunchWizard", "GetWorkload", {})
22
+ .n("LaunchWizardClient", "GetWorkloadCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_GetWorkloadCommand)
25
+ .de(Aws_restJson1_1.de_GetWorkloadCommand)
26
+ .build() {
50
27
  }
51
28
  exports.GetWorkloadCommand = GetWorkloadCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class ListDeploymentEventsCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListDeploymentEventsCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "LaunchWizardClient";
29
- const commandName = "ListDeploymentEventsCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "LaunchWizard",
38
- operation: "ListDeploymentEvents",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_ListDeploymentEventsCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_ListDeploymentEventsCommand)(output, context);
49
- }
10
+ class ListDeploymentEventsCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("LaunchWizard", "ListDeploymentEvents", {})
22
+ .n("LaunchWizardClient", "ListDeploymentEventsCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_ListDeploymentEventsCommand)
25
+ .de(Aws_restJson1_1.de_ListDeploymentEventsCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ListDeploymentEventsCommand = ListDeploymentEventsCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class ListDeploymentsCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListDeploymentsCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "LaunchWizardClient";
29
- const commandName = "ListDeploymentsCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "LaunchWizard",
38
- operation: "ListDeployments",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_ListDeploymentsCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_ListDeploymentsCommand)(output, context);
49
- }
10
+ class ListDeploymentsCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("LaunchWizard", "ListDeployments", {})
22
+ .n("LaunchWizardClient", "ListDeploymentsCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_ListDeploymentsCommand)
25
+ .de(Aws_restJson1_1.de_ListDeploymentsCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ListDeploymentsCommand = ListDeploymentsCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class ListWorkloadDeploymentPatternsCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListWorkloadDeploymentPatternsCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "LaunchWizardClient";
29
- const commandName = "ListWorkloadDeploymentPatternsCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "LaunchWizard",
38
- operation: "ListWorkloadDeploymentPatterns",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_ListWorkloadDeploymentPatternsCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_ListWorkloadDeploymentPatternsCommand)(output, context);
49
- }
10
+ class ListWorkloadDeploymentPatternsCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("LaunchWizard", "ListWorkloadDeploymentPatterns", {})
22
+ .n("LaunchWizardClient", "ListWorkloadDeploymentPatternsCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_ListWorkloadDeploymentPatternsCommand)
25
+ .de(Aws_restJson1_1.de_ListWorkloadDeploymentPatternsCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ListWorkloadDeploymentPatternsCommand = ListWorkloadDeploymentPatternsCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class ListWorkloadsCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListWorkloadsCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "LaunchWizardClient";
29
- const commandName = "ListWorkloadsCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "LaunchWizard",
38
- operation: "ListWorkloads",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_ListWorkloadsCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_ListWorkloadsCommand)(output, context);
49
- }
10
+ class ListWorkloadsCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("LaunchWizard", "ListWorkloads", {})
22
+ .n("LaunchWizardClient", "ListWorkloadsCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_ListWorkloadsCommand)
25
+ .de(Aws_restJson1_1.de_ListWorkloadsCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ListWorkloadsCommand = ListWorkloadsCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
10
10
  };
11
11
  };
12
12
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
+ exports.commonParams = {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDeploymentEvents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListDeploymentEventsCommand_1 = require("../commands/ListDeploymentEventsCommand");
5
6
  const LaunchWizardClient_1 = require("../LaunchWizardClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDeploymentEventsCommand_1.ListDeploymentEventsCommand(input), ...args);
8
- };
9
- async function* paginateListDeploymentEvents(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.paginateListDeploymentEvents = paginateListDeploymentEvents;
7
+ exports.paginateListDeploymentEvents = (0, core_1.createPaginator)(LaunchWizardClient_1.LaunchWizardClient, ListDeploymentEventsCommand_1.ListDeploymentEventsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDeployments = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListDeploymentsCommand_1 = require("../commands/ListDeploymentsCommand");
5
6
  const LaunchWizardClient_1 = require("../LaunchWizardClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDeploymentsCommand_1.ListDeploymentsCommand(input), ...args);
8
- };
9
- async function* paginateListDeployments(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.paginateListDeployments = paginateListDeployments;
7
+ exports.paginateListDeployments = (0, core_1.createPaginator)(LaunchWizardClient_1.LaunchWizardClient, ListDeploymentsCommand_1.ListDeploymentsCommand, "nextToken", "nextToken", "maxResults");