@aws-sdk/client-imagebuilder 3.180.0 → 3.183.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 (74) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +56 -50
  3. package/dist-es/Imagebuilder.js +202 -209
  4. package/dist-es/ImagebuilderClient.js +22 -28
  5. package/dist-es/commands/CancelImageCreationCommand.js +21 -28
  6. package/dist-es/commands/CreateComponentCommand.js +21 -28
  7. package/dist-es/commands/CreateContainerRecipeCommand.js +21 -28
  8. package/dist-es/commands/CreateDistributionConfigurationCommand.js +21 -28
  9. package/dist-es/commands/CreateImageCommand.js +21 -28
  10. package/dist-es/commands/CreateImagePipelineCommand.js +21 -28
  11. package/dist-es/commands/CreateImageRecipeCommand.js +21 -28
  12. package/dist-es/commands/CreateInfrastructureConfigurationCommand.js +21 -28
  13. package/dist-es/commands/DeleteComponentCommand.js +21 -28
  14. package/dist-es/commands/DeleteContainerRecipeCommand.js +21 -28
  15. package/dist-es/commands/DeleteDistributionConfigurationCommand.js +21 -28
  16. package/dist-es/commands/DeleteImageCommand.js +21 -28
  17. package/dist-es/commands/DeleteImagePipelineCommand.js +21 -28
  18. package/dist-es/commands/DeleteImageRecipeCommand.js +21 -28
  19. package/dist-es/commands/DeleteInfrastructureConfigurationCommand.js +21 -28
  20. package/dist-es/commands/GetComponentCommand.js +21 -28
  21. package/dist-es/commands/GetComponentPolicyCommand.js +21 -28
  22. package/dist-es/commands/GetContainerRecipeCommand.js +21 -28
  23. package/dist-es/commands/GetContainerRecipePolicyCommand.js +21 -28
  24. package/dist-es/commands/GetDistributionConfigurationCommand.js +21 -28
  25. package/dist-es/commands/GetImageCommand.js +21 -28
  26. package/dist-es/commands/GetImagePipelineCommand.js +21 -28
  27. package/dist-es/commands/GetImagePolicyCommand.js +21 -28
  28. package/dist-es/commands/GetImageRecipeCommand.js +21 -28
  29. package/dist-es/commands/GetImageRecipePolicyCommand.js +21 -28
  30. package/dist-es/commands/GetInfrastructureConfigurationCommand.js +21 -28
  31. package/dist-es/commands/ImportComponentCommand.js +21 -28
  32. package/dist-es/commands/ImportVmImageCommand.js +21 -28
  33. package/dist-es/commands/ListComponentBuildVersionsCommand.js +21 -28
  34. package/dist-es/commands/ListComponentsCommand.js +21 -28
  35. package/dist-es/commands/ListContainerRecipesCommand.js +21 -28
  36. package/dist-es/commands/ListDistributionConfigurationsCommand.js +21 -28
  37. package/dist-es/commands/ListImageBuildVersionsCommand.js +21 -28
  38. package/dist-es/commands/ListImagePackagesCommand.js +21 -28
  39. package/dist-es/commands/ListImagePipelineImagesCommand.js +21 -28
  40. package/dist-es/commands/ListImagePipelinesCommand.js +21 -28
  41. package/dist-es/commands/ListImageRecipesCommand.js +21 -28
  42. package/dist-es/commands/ListImagesCommand.js +21 -28
  43. package/dist-es/commands/ListInfrastructureConfigurationsCommand.js +21 -28
  44. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  45. package/dist-es/commands/PutComponentPolicyCommand.js +21 -28
  46. package/dist-es/commands/PutContainerRecipePolicyCommand.js +21 -28
  47. package/dist-es/commands/PutImagePolicyCommand.js +21 -28
  48. package/dist-es/commands/PutImageRecipePolicyCommand.js +21 -28
  49. package/dist-es/commands/StartImagePipelineExecutionCommand.js +21 -28
  50. package/dist-es/commands/TagResourceCommand.js +21 -28
  51. package/dist-es/commands/UntagResourceCommand.js +21 -28
  52. package/dist-es/commands/UpdateDistributionConfigurationCommand.js +21 -28
  53. package/dist-es/commands/UpdateImagePipelineCommand.js +21 -28
  54. package/dist-es/commands/UpdateInfrastructureConfigurationCommand.js +21 -28
  55. package/dist-es/endpoints.js +8 -8
  56. package/dist-es/models/ImagebuilderServiceException.js +5 -10
  57. package/dist-es/models/models_0.js +622 -333
  58. package/dist-es/pagination/ListComponentBuildVersionsPaginator.js +25 -68
  59. package/dist-es/pagination/ListComponentsPaginator.js +25 -68
  60. package/dist-es/pagination/ListContainerRecipesPaginator.js +25 -68
  61. package/dist-es/pagination/ListDistributionConfigurationsPaginator.js +25 -68
  62. package/dist-es/pagination/ListImageBuildVersionsPaginator.js +25 -68
  63. package/dist-es/pagination/ListImagePackagesPaginator.js +25 -68
  64. package/dist-es/pagination/ListImagePipelineImagesPaginator.js +25 -68
  65. package/dist-es/pagination/ListImagePipelinesPaginator.js +25 -68
  66. package/dist-es/pagination/ListImageRecipesPaginator.js +25 -68
  67. package/dist-es/pagination/ListImagesPaginator.js +25 -68
  68. package/dist-es/pagination/ListInfrastructureConfigurationsPaginator.js +25 -68
  69. package/dist-es/protocols/Aws_restJson1.js +4518 -5990
  70. package/dist-es/runtimeConfig.browser.js +26 -12
  71. package/dist-es/runtimeConfig.js +30 -12
  72. package/dist-es/runtimeConfig.native.js +8 -5
  73. package/dist-es/runtimeConfig.shared.js +8 -11
  74. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var ImagebuilderClient = (function (_super) {
13
- __extends(ImagebuilderClient, _super);
14
- function ImagebuilderClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class ImagebuilderClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- ImagebuilderClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return ImagebuilderClient;
38
- }(__Client));
39
- export { ImagebuilderClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CancelImageCreationRequestFilterSensitiveLog, CancelImageCreationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CancelImageCreationCommand, serializeAws_restJson1CancelImageCreationCommand, } from "../protocols/Aws_restJson1";
6
- var CancelImageCreationCommand = (function (_super) {
7
- __extends(CancelImageCreationCommand, _super);
8
- function CancelImageCreationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CancelImageCreationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CancelImageCreationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ImagebuilderClient";
18
- var commandName = "CancelImageCreationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ImagebuilderClient";
15
+ const commandName = "CancelImageCreationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CancelImageCreationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CancelImageCreationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CancelImageCreationCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CancelImageCreationCommand(input, context);
33
- };
34
- CancelImageCreationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CancelImageCreationCommand(output, context);
36
- };
37
- return CancelImageCreationCommand;
38
- }($Command));
39
- export { CancelImageCreationCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateComponentRequestFilterSensitiveLog, CreateComponentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateComponentCommand, serializeAws_restJson1CreateComponentCommand, } from "../protocols/Aws_restJson1";
6
- var CreateComponentCommand = (function (_super) {
7
- __extends(CreateComponentCommand, _super);
8
- function CreateComponentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateComponentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateComponentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ImagebuilderClient";
18
- var commandName = "CreateComponentCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ImagebuilderClient";
15
+ const commandName = "CreateComponentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateComponentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateComponentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateComponentCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateComponentCommand(input, context);
33
- };
34
- CreateComponentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateComponentCommand(output, context);
36
- };
37
- return CreateComponentCommand;
38
- }($Command));
39
- export { CreateComponentCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateContainerRecipeRequestFilterSensitiveLog, CreateContainerRecipeResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateContainerRecipeCommand, serializeAws_restJson1CreateContainerRecipeCommand, } from "../protocols/Aws_restJson1";
6
- var CreateContainerRecipeCommand = (function (_super) {
7
- __extends(CreateContainerRecipeCommand, _super);
8
- function CreateContainerRecipeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateContainerRecipeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateContainerRecipeCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ImagebuilderClient";
18
- var commandName = "CreateContainerRecipeCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ImagebuilderClient";
15
+ const commandName = "CreateContainerRecipeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateContainerRecipeRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateContainerRecipeResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateContainerRecipeCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateContainerRecipeCommand(input, context);
33
- };
34
- CreateContainerRecipeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateContainerRecipeCommand(output, context);
36
- };
37
- return CreateContainerRecipeCommand;
38
- }($Command));
39
- export { CreateContainerRecipeCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateDistributionConfigurationRequestFilterSensitiveLog, CreateDistributionConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateDistributionConfigurationCommand, serializeAws_restJson1CreateDistributionConfigurationCommand, } from "../protocols/Aws_restJson1";
6
- var CreateDistributionConfigurationCommand = (function (_super) {
7
- __extends(CreateDistributionConfigurationCommand, _super);
8
- function CreateDistributionConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateDistributionConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateDistributionConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ImagebuilderClient";
18
- var commandName = "CreateDistributionConfigurationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ImagebuilderClient";
15
+ const commandName = "CreateDistributionConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateDistributionConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateDistributionConfigurationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateDistributionConfigurationCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateDistributionConfigurationCommand(input, context);
33
- };
34
- CreateDistributionConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateDistributionConfigurationCommand(output, context);
36
- };
37
- return CreateDistributionConfigurationCommand;
38
- }($Command));
39
- export { CreateDistributionConfigurationCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateImageRequestFilterSensitiveLog, CreateImageResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateImageCommand, serializeAws_restJson1CreateImageCommand, } from "../protocols/Aws_restJson1";
6
- var CreateImageCommand = (function (_super) {
7
- __extends(CreateImageCommand, _super);
8
- function CreateImageCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateImageCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateImageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ImagebuilderClient";
18
- var commandName = "CreateImageCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ImagebuilderClient";
15
+ const commandName = "CreateImageCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateImageRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateImageResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateImageCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateImageCommand(input, context);
33
- };
34
- CreateImageCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateImageCommand(output, context);
36
- };
37
- return CreateImageCommand;
38
- }($Command));
39
- export { CreateImageCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateImagePipelineRequestFilterSensitiveLog, CreateImagePipelineResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateImagePipelineCommand, serializeAws_restJson1CreateImagePipelineCommand, } from "../protocols/Aws_restJson1";
6
- var CreateImagePipelineCommand = (function (_super) {
7
- __extends(CreateImagePipelineCommand, _super);
8
- function CreateImagePipelineCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateImagePipelineCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateImagePipelineCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ImagebuilderClient";
18
- var commandName = "CreateImagePipelineCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ImagebuilderClient";
15
+ const commandName = "CreateImagePipelineCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateImagePipelineRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateImagePipelineResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateImagePipelineCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateImagePipelineCommand(input, context);
33
- };
34
- CreateImagePipelineCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateImagePipelineCommand(output, context);
36
- };
37
- return CreateImagePipelineCommand;
38
- }($Command));
39
- export { CreateImagePipelineCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateImageRecipeRequestFilterSensitiveLog, CreateImageRecipeResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateImageRecipeCommand, serializeAws_restJson1CreateImageRecipeCommand, } from "../protocols/Aws_restJson1";
6
- var CreateImageRecipeCommand = (function (_super) {
7
- __extends(CreateImageRecipeCommand, _super);
8
- function CreateImageRecipeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateImageRecipeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateImageRecipeCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ImagebuilderClient";
18
- var commandName = "CreateImageRecipeCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ImagebuilderClient";
15
+ const commandName = "CreateImageRecipeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateImageRecipeRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateImageRecipeResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateImageRecipeCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateImageRecipeCommand(input, context);
33
- };
34
- CreateImageRecipeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateImageRecipeCommand(output, context);
36
- };
37
- return CreateImageRecipeCommand;
38
- }($Command));
39
- export { CreateImageRecipeCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateInfrastructureConfigurationRequestFilterSensitiveLog, CreateInfrastructureConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateInfrastructureConfigurationCommand, serializeAws_restJson1CreateInfrastructureConfigurationCommand, } from "../protocols/Aws_restJson1";
6
- var CreateInfrastructureConfigurationCommand = (function (_super) {
7
- __extends(CreateInfrastructureConfigurationCommand, _super);
8
- function CreateInfrastructureConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateInfrastructureConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateInfrastructureConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ImagebuilderClient";
18
- var commandName = "CreateInfrastructureConfigurationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ImagebuilderClient";
15
+ const commandName = "CreateInfrastructureConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateInfrastructureConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateInfrastructureConfigurationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateInfrastructureConfigurationCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateInfrastructureConfigurationCommand(input, context);
33
- };
34
- CreateInfrastructureConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateInfrastructureConfigurationCommand(output, context);
36
- };
37
- return CreateInfrastructureConfigurationCommand;
38
- }($Command));
39
- export { CreateInfrastructureConfigurationCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteComponentRequestFilterSensitiveLog, DeleteComponentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteComponentCommand, serializeAws_restJson1DeleteComponentCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteComponentCommand = (function (_super) {
7
- __extends(DeleteComponentCommand, _super);
8
- function DeleteComponentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteComponentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteComponentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ImagebuilderClient";
18
- var commandName = "DeleteComponentCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ImagebuilderClient";
15
+ const commandName = "DeleteComponentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteComponentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteComponentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteComponentCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteComponentCommand(input, context);
33
- };
34
- DeleteComponentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteComponentCommand(output, context);
36
- };
37
- return DeleteComponentCommand;
38
- }($Command));
39
- export { DeleteComponentCommand };
31
+ }
32
+ }