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