@aws-sdk/client-ecr 3.186.0 → 3.190.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 +16 -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,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 { PutImageScanningConfigurationRequestFilterSensitiveLog, PutImageScanningConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1PutImageScanningConfigurationCommand, serializeAws_json1_1PutImageScanningConfigurationCommand, } from "../protocols/Aws_json1_1";
6
- var PutImageScanningConfigurationCommand = (function (_super) {
7
- __extends(PutImageScanningConfigurationCommand, _super);
8
- function PutImageScanningConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutImageScanningConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutImageScanningConfigurationCommand.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 = "PutImageScanningConfigurationCommand";
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 = "PutImageScanningConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutImageScanningConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutImageScanningConfigurationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutImageScanningConfigurationCommand.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_1PutImageScanningConfigurationCommand(input, context);
33
- };
34
- PutImageScanningConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1PutImageScanningConfigurationCommand(output, context);
36
- };
37
- return PutImageScanningConfigurationCommand;
38
- }($Command));
39
- export { PutImageScanningConfigurationCommand };
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 { PutImageTagMutabilityRequestFilterSensitiveLog, PutImageTagMutabilityResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1PutImageTagMutabilityCommand, serializeAws_json1_1PutImageTagMutabilityCommand, } from "../protocols/Aws_json1_1";
6
- var PutImageTagMutabilityCommand = (function (_super) {
7
- __extends(PutImageTagMutabilityCommand, _super);
8
- function PutImageTagMutabilityCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutImageTagMutabilityCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutImageTagMutabilityCommand.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 = "PutImageTagMutabilityCommand";
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 = "PutImageTagMutabilityCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutImageTagMutabilityRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutImageTagMutabilityResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutImageTagMutabilityCommand.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_1PutImageTagMutabilityCommand(input, context);
33
- };
34
- PutImageTagMutabilityCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1PutImageTagMutabilityCommand(output, context);
36
- };
37
- return PutImageTagMutabilityCommand;
38
- }($Command));
39
- export { PutImageTagMutabilityCommand };
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 { PutLifecyclePolicyRequestFilterSensitiveLog, PutLifecyclePolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1PutLifecyclePolicyCommand, serializeAws_json1_1PutLifecyclePolicyCommand, } from "../protocols/Aws_json1_1";
6
- var PutLifecyclePolicyCommand = (function (_super) {
7
- __extends(PutLifecyclePolicyCommand, _super);
8
- function PutLifecyclePolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutLifecyclePolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutLifecyclePolicyCommand.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 = "PutLifecyclePolicyCommand";
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 = "PutLifecyclePolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutLifecyclePolicyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutLifecyclePolicyResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutLifecyclePolicyCommand.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_1PutLifecyclePolicyCommand(input, context);
33
- };
34
- PutLifecyclePolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1PutLifecyclePolicyCommand(output, context);
36
- };
37
- return PutLifecyclePolicyCommand;
38
- }($Command));
39
- export { PutLifecyclePolicyCommand };
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 { PutRegistryPolicyRequestFilterSensitiveLog, PutRegistryPolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1PutRegistryPolicyCommand, serializeAws_json1_1PutRegistryPolicyCommand, } from "../protocols/Aws_json1_1";
6
- var PutRegistryPolicyCommand = (function (_super) {
7
- __extends(PutRegistryPolicyCommand, _super);
8
- function PutRegistryPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutRegistryPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutRegistryPolicyCommand.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 = "PutRegistryPolicyCommand";
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 = "PutRegistryPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutRegistryPolicyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutRegistryPolicyResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutRegistryPolicyCommand.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_1PutRegistryPolicyCommand(input, context);
33
- };
34
- PutRegistryPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1PutRegistryPolicyCommand(output, context);
36
- };
37
- return PutRegistryPolicyCommand;
38
- }($Command));
39
- export { PutRegistryPolicyCommand };
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 { PutRegistryScanningConfigurationRequestFilterSensitiveLog, PutRegistryScanningConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1PutRegistryScanningConfigurationCommand, serializeAws_json1_1PutRegistryScanningConfigurationCommand, } from "../protocols/Aws_json1_1";
6
- var PutRegistryScanningConfigurationCommand = (function (_super) {
7
- __extends(PutRegistryScanningConfigurationCommand, _super);
8
- function PutRegistryScanningConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutRegistryScanningConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutRegistryScanningConfigurationCommand.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 = "PutRegistryScanningConfigurationCommand";
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 = "PutRegistryScanningConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutRegistryScanningConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutRegistryScanningConfigurationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutRegistryScanningConfigurationCommand.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_1PutRegistryScanningConfigurationCommand(input, context);
33
- };
34
- PutRegistryScanningConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1PutRegistryScanningConfigurationCommand(output, context);
36
- };
37
- return PutRegistryScanningConfigurationCommand;
38
- }($Command));
39
- export { PutRegistryScanningConfigurationCommand };
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 { PutReplicationConfigurationRequestFilterSensitiveLog, PutReplicationConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1PutReplicationConfigurationCommand, serializeAws_json1_1PutReplicationConfigurationCommand, } from "../protocols/Aws_json1_1";
6
- var PutReplicationConfigurationCommand = (function (_super) {
7
- __extends(PutReplicationConfigurationCommand, _super);
8
- function PutReplicationConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutReplicationConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutReplicationConfigurationCommand.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 = "PutReplicationConfigurationCommand";
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 = "PutReplicationConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutReplicationConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutReplicationConfigurationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutReplicationConfigurationCommand.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_1PutReplicationConfigurationCommand(input, context);
33
- };
34
- PutReplicationConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1PutReplicationConfigurationCommand(output, context);
36
- };
37
- return PutReplicationConfigurationCommand;
38
- }($Command));
39
- export { PutReplicationConfigurationCommand };
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 { SetRepositoryPolicyRequestFilterSensitiveLog, SetRepositoryPolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1SetRepositoryPolicyCommand, serializeAws_json1_1SetRepositoryPolicyCommand, } from "../protocols/Aws_json1_1";
6
- var SetRepositoryPolicyCommand = (function (_super) {
7
- __extends(SetRepositoryPolicyCommand, _super);
8
- function SetRepositoryPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SetRepositoryPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SetRepositoryPolicyCommand.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 = "SetRepositoryPolicyCommand";
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 = "SetRepositoryPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SetRepositoryPolicyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: SetRepositoryPolicyResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- SetRepositoryPolicyCommand.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_1SetRepositoryPolicyCommand(input, context);
33
- };
34
- SetRepositoryPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1SetRepositoryPolicyCommand(output, context);
36
- };
37
- return SetRepositoryPolicyCommand;
38
- }($Command));
39
- export { SetRepositoryPolicyCommand };
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 { StartImageScanRequestFilterSensitiveLog, StartImageScanResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StartImageScanCommand, serializeAws_json1_1StartImageScanCommand, } from "../protocols/Aws_json1_1";
6
- var StartImageScanCommand = (function (_super) {
7
- __extends(StartImageScanCommand, _super);
8
- function StartImageScanCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StartImageScanCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StartImageScanCommand.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 = "StartImageScanCommand";
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 = "StartImageScanCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StartImageScanRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StartImageScanResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StartImageScanCommand.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_1StartImageScanCommand(input, context);
33
- };
34
- StartImageScanCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StartImageScanCommand(output, context);
36
- };
37
- return StartImageScanCommand;
38
- }($Command));
39
- export { StartImageScanCommand };
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 { StartLifecyclePolicyPreviewRequestFilterSensitiveLog, StartLifecyclePolicyPreviewResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StartLifecyclePolicyPreviewCommand, serializeAws_json1_1StartLifecyclePolicyPreviewCommand, } from "../protocols/Aws_json1_1";
6
- var StartLifecyclePolicyPreviewCommand = (function (_super) {
7
- __extends(StartLifecyclePolicyPreviewCommand, _super);
8
- function StartLifecyclePolicyPreviewCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StartLifecyclePolicyPreviewCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StartLifecyclePolicyPreviewCommand.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 = "StartLifecyclePolicyPreviewCommand";
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 = "StartLifecyclePolicyPreviewCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StartLifecyclePolicyPreviewRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StartLifecyclePolicyPreviewResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StartLifecyclePolicyPreviewCommand.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_1StartLifecyclePolicyPreviewCommand(input, context);
33
- };
34
- StartLifecyclePolicyPreviewCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StartLifecyclePolicyPreviewCommand(output, context);
36
- };
37
- return StartLifecyclePolicyPreviewCommand;
38
- }($Command));
39
- export { StartLifecyclePolicyPreviewCommand };
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 { TagResourceRequestFilterSensitiveLog, TagResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1TagResourceCommand, serializeAws_json1_1TagResourceCommand, } from "../protocols/Aws_json1_1";
6
- var TagResourceCommand = (function (_super) {
7
- __extends(TagResourceCommand, _super);
8
- function TagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class TagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- TagResourceCommand.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 = "TagResourceCommand";
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 = "TagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: TagResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- TagResourceCommand.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_1TagResourceCommand(input, context);
33
- };
34
- TagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1TagResourceCommand(output, context);
36
- };
37
- return TagResourceCommand;
38
- }($Command));
39
- export { TagResourceCommand };
31
+ }
32
+ }