@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,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 { DeleteContainerRecipeRequestFilterSensitiveLog, DeleteContainerRecipeResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteContainerRecipeCommand, serializeAws_restJson1DeleteContainerRecipeCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteContainerRecipeCommand = (function (_super) {
7
- __extends(DeleteContainerRecipeCommand, _super);
8
- function DeleteContainerRecipeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteContainerRecipeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteContainerRecipeCommand.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 = "DeleteContainerRecipeCommand";
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 = "DeleteContainerRecipeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteContainerRecipeRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteContainerRecipeResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteContainerRecipeCommand.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_restJson1DeleteContainerRecipeCommand(input, context);
33
- };
34
- DeleteContainerRecipeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteContainerRecipeCommand(output, context);
36
- };
37
- return DeleteContainerRecipeCommand;
38
- }($Command));
39
- export { DeleteContainerRecipeCommand };
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 { DeleteDistributionConfigurationRequestFilterSensitiveLog, DeleteDistributionConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteDistributionConfigurationCommand, serializeAws_restJson1DeleteDistributionConfigurationCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteDistributionConfigurationCommand = (function (_super) {
7
- __extends(DeleteDistributionConfigurationCommand, _super);
8
- function DeleteDistributionConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteDistributionConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteDistributionConfigurationCommand.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 = "DeleteDistributionConfigurationCommand";
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 = "DeleteDistributionConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteDistributionConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteDistributionConfigurationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteDistributionConfigurationCommand.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_restJson1DeleteDistributionConfigurationCommand(input, context);
33
- };
34
- DeleteDistributionConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteDistributionConfigurationCommand(output, context);
36
- };
37
- return DeleteDistributionConfigurationCommand;
38
- }($Command));
39
- export { DeleteDistributionConfigurationCommand };
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 { DeleteImageRequestFilterSensitiveLog, DeleteImageResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteImageCommand, serializeAws_restJson1DeleteImageCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteImageCommand = (function (_super) {
7
- __extends(DeleteImageCommand, _super);
8
- function DeleteImageCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteImageCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteImageCommand.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 = "DeleteImageCommand";
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 = "DeleteImageCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteImageRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteImageResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteImageCommand.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_restJson1DeleteImageCommand(input, context);
33
- };
34
- DeleteImageCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteImageCommand(output, context);
36
- };
37
- return DeleteImageCommand;
38
- }($Command));
39
- export { DeleteImageCommand };
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 { DeleteImagePipelineRequestFilterSensitiveLog, DeleteImagePipelineResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteImagePipelineCommand, serializeAws_restJson1DeleteImagePipelineCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteImagePipelineCommand = (function (_super) {
7
- __extends(DeleteImagePipelineCommand, _super);
8
- function DeleteImagePipelineCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteImagePipelineCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteImagePipelineCommand.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 = "DeleteImagePipelineCommand";
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 = "DeleteImagePipelineCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteImagePipelineRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteImagePipelineResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteImagePipelineCommand.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_restJson1DeleteImagePipelineCommand(input, context);
33
- };
34
- DeleteImagePipelineCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteImagePipelineCommand(output, context);
36
- };
37
- return DeleteImagePipelineCommand;
38
- }($Command));
39
- export { DeleteImagePipelineCommand };
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 { DeleteImageRecipeRequestFilterSensitiveLog, DeleteImageRecipeResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteImageRecipeCommand, serializeAws_restJson1DeleteImageRecipeCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteImageRecipeCommand = (function (_super) {
7
- __extends(DeleteImageRecipeCommand, _super);
8
- function DeleteImageRecipeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteImageRecipeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteImageRecipeCommand.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 = "DeleteImageRecipeCommand";
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 = "DeleteImageRecipeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteImageRecipeRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteImageRecipeResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteImageRecipeCommand.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_restJson1DeleteImageRecipeCommand(input, context);
33
- };
34
- DeleteImageRecipeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteImageRecipeCommand(output, context);
36
- };
37
- return DeleteImageRecipeCommand;
38
- }($Command));
39
- export { DeleteImageRecipeCommand };
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 { DeleteInfrastructureConfigurationRequestFilterSensitiveLog, DeleteInfrastructureConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteInfrastructureConfigurationCommand, serializeAws_restJson1DeleteInfrastructureConfigurationCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteInfrastructureConfigurationCommand = (function (_super) {
7
- __extends(DeleteInfrastructureConfigurationCommand, _super);
8
- function DeleteInfrastructureConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteInfrastructureConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteInfrastructureConfigurationCommand.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 = "DeleteInfrastructureConfigurationCommand";
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 = "DeleteInfrastructureConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteInfrastructureConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteInfrastructureConfigurationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteInfrastructureConfigurationCommand.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_restJson1DeleteInfrastructureConfigurationCommand(input, context);
33
- };
34
- DeleteInfrastructureConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteInfrastructureConfigurationCommand(output, context);
36
- };
37
- return DeleteInfrastructureConfigurationCommand;
38
- }($Command));
39
- export { DeleteInfrastructureConfigurationCommand };
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 { GetComponentRequestFilterSensitiveLog, GetComponentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetComponentCommand, serializeAws_restJson1GetComponentCommand, } from "../protocols/Aws_restJson1";
6
- var GetComponentCommand = (function (_super) {
7
- __extends(GetComponentCommand, _super);
8
- function GetComponentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetComponentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetComponentCommand.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 = "GetComponentCommand";
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 = "GetComponentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetComponentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetComponentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetComponentCommand.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_restJson1GetComponentCommand(input, context);
33
- };
34
- GetComponentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetComponentCommand(output, context);
36
- };
37
- return GetComponentCommand;
38
- }($Command));
39
- export { GetComponentCommand };
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 { GetComponentPolicyRequestFilterSensitiveLog, GetComponentPolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetComponentPolicyCommand, serializeAws_restJson1GetComponentPolicyCommand, } from "../protocols/Aws_restJson1";
6
- var GetComponentPolicyCommand = (function (_super) {
7
- __extends(GetComponentPolicyCommand, _super);
8
- function GetComponentPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetComponentPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetComponentPolicyCommand.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 = "GetComponentPolicyCommand";
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 = "GetComponentPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetComponentPolicyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetComponentPolicyResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetComponentPolicyCommand.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_restJson1GetComponentPolicyCommand(input, context);
33
- };
34
- GetComponentPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetComponentPolicyCommand(output, context);
36
- };
37
- return GetComponentPolicyCommand;
38
- }($Command));
39
- export { GetComponentPolicyCommand };
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 { GetContainerRecipeRequestFilterSensitiveLog, GetContainerRecipeResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetContainerRecipeCommand, serializeAws_restJson1GetContainerRecipeCommand, } from "../protocols/Aws_restJson1";
6
- var GetContainerRecipeCommand = (function (_super) {
7
- __extends(GetContainerRecipeCommand, _super);
8
- function GetContainerRecipeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetContainerRecipeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetContainerRecipeCommand.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 = "GetContainerRecipeCommand";
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 = "GetContainerRecipeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetContainerRecipeRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetContainerRecipeResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetContainerRecipeCommand.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_restJson1GetContainerRecipeCommand(input, context);
33
- };
34
- GetContainerRecipeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetContainerRecipeCommand(output, context);
36
- };
37
- return GetContainerRecipeCommand;
38
- }($Command));
39
- export { GetContainerRecipeCommand };
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 { GetContainerRecipePolicyRequestFilterSensitiveLog, GetContainerRecipePolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetContainerRecipePolicyCommand, serializeAws_restJson1GetContainerRecipePolicyCommand, } from "../protocols/Aws_restJson1";
6
- var GetContainerRecipePolicyCommand = (function (_super) {
7
- __extends(GetContainerRecipePolicyCommand, _super);
8
- function GetContainerRecipePolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetContainerRecipePolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetContainerRecipePolicyCommand.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 = "GetContainerRecipePolicyCommand";
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 = "GetContainerRecipePolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetContainerRecipePolicyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetContainerRecipePolicyResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetContainerRecipePolicyCommand.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_restJson1GetContainerRecipePolicyCommand(input, context);
33
- };
34
- GetContainerRecipePolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetContainerRecipePolicyCommand(output, context);
36
- };
37
- return GetContainerRecipePolicyCommand;
38
- }($Command));
39
- export { GetContainerRecipePolicyCommand };
31
+ }
32
+ }