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