@aws-sdk/client-ecr 3.183.0 → 3.185.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 (62) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/ECR.js +173 -166
  4. package/dist-es/ECRClient.js +28 -22
  5. package/dist-es/commands/BatchCheckLayerAvailabilityCommand.js +28 -21
  6. package/dist-es/commands/BatchDeleteImageCommand.js +28 -21
  7. package/dist-es/commands/BatchGetImageCommand.js +28 -21
  8. package/dist-es/commands/BatchGetRepositoryScanningConfigurationCommand.js +28 -21
  9. package/dist-es/commands/CompleteLayerUploadCommand.js +28 -21
  10. package/dist-es/commands/CreatePullThroughCacheRuleCommand.js +28 -21
  11. package/dist-es/commands/CreateRepositoryCommand.js +28 -21
  12. package/dist-es/commands/DeleteLifecyclePolicyCommand.js +28 -21
  13. package/dist-es/commands/DeletePullThroughCacheRuleCommand.js +28 -21
  14. package/dist-es/commands/DeleteRegistryPolicyCommand.js +28 -21
  15. package/dist-es/commands/DeleteRepositoryCommand.js +28 -21
  16. package/dist-es/commands/DeleteRepositoryPolicyCommand.js +28 -21
  17. package/dist-es/commands/DescribeImageReplicationStatusCommand.js +28 -21
  18. package/dist-es/commands/DescribeImageScanFindingsCommand.js +28 -21
  19. package/dist-es/commands/DescribeImagesCommand.js +28 -21
  20. package/dist-es/commands/DescribePullThroughCacheRulesCommand.js +28 -21
  21. package/dist-es/commands/DescribeRegistryCommand.js +28 -21
  22. package/dist-es/commands/DescribeRepositoriesCommand.js +28 -21
  23. package/dist-es/commands/GetAuthorizationTokenCommand.js +28 -21
  24. package/dist-es/commands/GetDownloadUrlForLayerCommand.js +28 -21
  25. package/dist-es/commands/GetLifecyclePolicyCommand.js +28 -21
  26. package/dist-es/commands/GetLifecyclePolicyPreviewCommand.js +28 -21
  27. package/dist-es/commands/GetRegistryPolicyCommand.js +28 -21
  28. package/dist-es/commands/GetRegistryScanningConfigurationCommand.js +28 -21
  29. package/dist-es/commands/GetRepositoryPolicyCommand.js +28 -21
  30. package/dist-es/commands/InitiateLayerUploadCommand.js +28 -21
  31. package/dist-es/commands/ListImagesCommand.js +28 -21
  32. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  33. package/dist-es/commands/PutImageCommand.js +28 -21
  34. package/dist-es/commands/PutImageScanningConfigurationCommand.js +28 -21
  35. package/dist-es/commands/PutImageTagMutabilityCommand.js +28 -21
  36. package/dist-es/commands/PutLifecyclePolicyCommand.js +28 -21
  37. package/dist-es/commands/PutRegistryPolicyCommand.js +28 -21
  38. package/dist-es/commands/PutRegistryScanningConfigurationCommand.js +28 -21
  39. package/dist-es/commands/PutReplicationConfigurationCommand.js +28 -21
  40. package/dist-es/commands/SetRepositoryPolicyCommand.js +28 -21
  41. package/dist-es/commands/StartImageScanCommand.js +28 -21
  42. package/dist-es/commands/StartLifecyclePolicyPreviewCommand.js +28 -21
  43. package/dist-es/commands/TagResourceCommand.js +28 -21
  44. package/dist-es/commands/UntagResourceCommand.js +28 -21
  45. package/dist-es/commands/UploadLayerPartCommand.js +28 -21
  46. package/dist-es/endpoints.js +8 -8
  47. package/dist-es/models/ECRServiceException.js +10 -5
  48. package/dist-es/models/models_0.js +529 -782
  49. package/dist-es/pagination/DescribeImageScanFindingsPaginator.js +68 -25
  50. package/dist-es/pagination/DescribeImagesPaginator.js +68 -25
  51. package/dist-es/pagination/DescribePullThroughCacheRulesPaginator.js +68 -25
  52. package/dist-es/pagination/DescribeRepositoriesPaginator.js +68 -25
  53. package/dist-es/pagination/GetLifecyclePolicyPreviewPaginator.js +68 -25
  54. package/dist-es/pagination/ListImagesPaginator.js +68 -25
  55. package/dist-es/protocols/Aws_json1_1.js +3875 -3083
  56. package/dist-es/runtimeConfig.browser.js +12 -26
  57. package/dist-es/runtimeConfig.js +12 -30
  58. package/dist-es/runtimeConfig.native.js +5 -8
  59. package/dist-es/runtimeConfig.shared.js +11 -8
  60. package/dist-es/waiters/waitForImageScanComplete.js +56 -36
  61. package/dist-es/waiters/waitForLifecyclePolicyPreviewComplete.js +56 -36
  62. package/package.json +5 -5
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class ECRClient 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));
12
+ var ECRClient = (function (_super) {
13
+ __extends(ECRClient, _super);
14
+ function ECRClient(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;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ ECRClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return ECRClient;
38
+ }(__Client));
39
+ export { ECRClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { BatchCheckLayerAvailabilityRequestFilterSensitiveLog, BatchCheckLayerAvailabilityResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1BatchCheckLayerAvailabilityCommand, serializeAws_json1_1BatchCheckLayerAvailabilityCommand, } from "../protocols/Aws_json1_1";
5
- export class BatchCheckLayerAvailabilityCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var BatchCheckLayerAvailabilityCommand = (function (_super) {
7
+ __extends(BatchCheckLayerAvailabilityCommand, _super);
8
+ function BatchCheckLayerAvailabilityCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ BatchCheckLayerAvailabilityCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "ECRClient";
15
- const commandName = "BatchCheckLayerAvailabilityCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ECRClient";
18
+ var commandName = "BatchCheckLayerAvailabilityCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: BatchCheckLayerAvailabilityRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: BatchCheckLayerAvailabilityResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ BatchCheckLayerAvailabilityCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1BatchCheckLayerAvailabilityCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ BatchCheckLayerAvailabilityCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1BatchCheckLayerAvailabilityCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return BatchCheckLayerAvailabilityCommand;
38
+ }($Command));
39
+ export { BatchCheckLayerAvailabilityCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { BatchDeleteImageRequestFilterSensitiveLog, BatchDeleteImageResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1BatchDeleteImageCommand, serializeAws_json1_1BatchDeleteImageCommand, } from "../protocols/Aws_json1_1";
5
- export class BatchDeleteImageCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var BatchDeleteImageCommand = (function (_super) {
7
+ __extends(BatchDeleteImageCommand, _super);
8
+ function BatchDeleteImageCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ BatchDeleteImageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "ECRClient";
15
- const commandName = "BatchDeleteImageCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ECRClient";
18
+ var commandName = "BatchDeleteImageCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: BatchDeleteImageRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: BatchDeleteImageResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ BatchDeleteImageCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1BatchDeleteImageCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ BatchDeleteImageCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1BatchDeleteImageCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return BatchDeleteImageCommand;
38
+ }($Command));
39
+ export { BatchDeleteImageCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { BatchGetImageRequestFilterSensitiveLog, BatchGetImageResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1BatchGetImageCommand, serializeAws_json1_1BatchGetImageCommand, } from "../protocols/Aws_json1_1";
5
- export class BatchGetImageCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var BatchGetImageCommand = (function (_super) {
7
+ __extends(BatchGetImageCommand, _super);
8
+ function BatchGetImageCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ BatchGetImageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "ECRClient";
15
- const commandName = "BatchGetImageCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ECRClient";
18
+ var commandName = "BatchGetImageCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: BatchGetImageRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: BatchGetImageResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ BatchGetImageCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1BatchGetImageCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ BatchGetImageCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1BatchGetImageCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return BatchGetImageCommand;
38
+ }($Command));
39
+ export { BatchGetImageCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { BatchGetRepositoryScanningConfigurationRequestFilterSensitiveLog, BatchGetRepositoryScanningConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand, serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand, } from "../protocols/Aws_json1_1";
5
- export class BatchGetRepositoryScanningConfigurationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var BatchGetRepositoryScanningConfigurationCommand = (function (_super) {
7
+ __extends(BatchGetRepositoryScanningConfigurationCommand, _super);
8
+ function BatchGetRepositoryScanningConfigurationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ BatchGetRepositoryScanningConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "ECRClient";
15
- const commandName = "BatchGetRepositoryScanningConfigurationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ECRClient";
18
+ var commandName = "BatchGetRepositoryScanningConfigurationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: BatchGetRepositoryScanningConfigurationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: BatchGetRepositoryScanningConfigurationResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ BatchGetRepositoryScanningConfigurationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ BatchGetRepositoryScanningConfigurationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return BatchGetRepositoryScanningConfigurationCommand;
38
+ }($Command));
39
+ export { BatchGetRepositoryScanningConfigurationCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CompleteLayerUploadRequestFilterSensitiveLog, CompleteLayerUploadResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CompleteLayerUploadCommand, serializeAws_json1_1CompleteLayerUploadCommand, } from "../protocols/Aws_json1_1";
5
- export class CompleteLayerUploadCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CompleteLayerUploadCommand = (function (_super) {
7
+ __extends(CompleteLayerUploadCommand, _super);
8
+ function CompleteLayerUploadCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CompleteLayerUploadCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "ECRClient";
15
- const commandName = "CompleteLayerUploadCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ECRClient";
18
+ var commandName = "CompleteLayerUploadCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CompleteLayerUploadRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CompleteLayerUploadResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CompleteLayerUploadCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CompleteLayerUploadCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CompleteLayerUploadCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CompleteLayerUploadCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CompleteLayerUploadCommand;
38
+ }($Command));
39
+ export { CompleteLayerUploadCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreatePullThroughCacheRuleRequestFilterSensitiveLog, CreatePullThroughCacheRuleResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CreatePullThroughCacheRuleCommand, serializeAws_json1_1CreatePullThroughCacheRuleCommand, } from "../protocols/Aws_json1_1";
5
- export class CreatePullThroughCacheRuleCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreatePullThroughCacheRuleCommand = (function (_super) {
7
+ __extends(CreatePullThroughCacheRuleCommand, _super);
8
+ function CreatePullThroughCacheRuleCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreatePullThroughCacheRuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "ECRClient";
15
- const commandName = "CreatePullThroughCacheRuleCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ECRClient";
18
+ var commandName = "CreatePullThroughCacheRuleCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreatePullThroughCacheRuleRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreatePullThroughCacheRuleResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreatePullThroughCacheRuleCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CreatePullThroughCacheRuleCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreatePullThroughCacheRuleCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CreatePullThroughCacheRuleCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreatePullThroughCacheRuleCommand;
38
+ }($Command));
39
+ export { CreatePullThroughCacheRuleCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateRepositoryRequestFilterSensitiveLog, CreateRepositoryResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CreateRepositoryCommand, serializeAws_json1_1CreateRepositoryCommand, } from "../protocols/Aws_json1_1";
5
- export class CreateRepositoryCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateRepositoryCommand = (function (_super) {
7
+ __extends(CreateRepositoryCommand, _super);
8
+ function CreateRepositoryCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateRepositoryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "ECRClient";
15
- const commandName = "CreateRepositoryCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ECRClient";
18
+ var commandName = "CreateRepositoryCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateRepositoryRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateRepositoryResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateRepositoryCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CreateRepositoryCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateRepositoryCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CreateRepositoryCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateRepositoryCommand;
38
+ }($Command));
39
+ export { CreateRepositoryCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteLifecyclePolicyRequestFilterSensitiveLog, DeleteLifecyclePolicyResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DeleteLifecyclePolicyCommand, serializeAws_json1_1DeleteLifecyclePolicyCommand, } from "../protocols/Aws_json1_1";
5
- export class DeleteLifecyclePolicyCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteLifecyclePolicyCommand = (function (_super) {
7
+ __extends(DeleteLifecyclePolicyCommand, _super);
8
+ function DeleteLifecyclePolicyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteLifecyclePolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "ECRClient";
15
- const commandName = "DeleteLifecyclePolicyCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ECRClient";
18
+ var commandName = "DeleteLifecyclePolicyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteLifecyclePolicyRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteLifecyclePolicyResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteLifecyclePolicyCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DeleteLifecyclePolicyCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteLifecyclePolicyCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DeleteLifecyclePolicyCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteLifecyclePolicyCommand;
38
+ }($Command));
39
+ export { DeleteLifecyclePolicyCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeletePullThroughCacheRuleRequestFilterSensitiveLog, DeletePullThroughCacheRuleResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DeletePullThroughCacheRuleCommand, serializeAws_json1_1DeletePullThroughCacheRuleCommand, } from "../protocols/Aws_json1_1";
5
- export class DeletePullThroughCacheRuleCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeletePullThroughCacheRuleCommand = (function (_super) {
7
+ __extends(DeletePullThroughCacheRuleCommand, _super);
8
+ function DeletePullThroughCacheRuleCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeletePullThroughCacheRuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "ECRClient";
15
- const commandName = "DeletePullThroughCacheRuleCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ECRClient";
18
+ var commandName = "DeletePullThroughCacheRuleCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeletePullThroughCacheRuleRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeletePullThroughCacheRuleResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeletePullThroughCacheRuleCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DeletePullThroughCacheRuleCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeletePullThroughCacheRuleCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DeletePullThroughCacheRuleCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeletePullThroughCacheRuleCommand;
38
+ }($Command));
39
+ export { DeletePullThroughCacheRuleCommand };