@aws-sdk/client-ecr 3.40.0 → 3.44.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.
- package/CHANGELOG.md +41 -0
- package/dist-cjs/ECR.js +90 -0
- package/dist-cjs/commands/BatchGetRepositoryScanningConfigurationCommand.js +36 -0
- package/dist-cjs/commands/CreatePullThroughCacheRuleCommand.js +36 -0
- package/dist-cjs/commands/DeletePullThroughCacheRuleCommand.js +36 -0
- package/dist-cjs/commands/DescribePullThroughCacheRulesCommand.js +36 -0
- package/dist-cjs/commands/GetRegistryScanningConfigurationCommand.js +36 -0
- package/dist-cjs/commands/PutRegistryScanningConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoints.js +24 -0
- package/dist-cjs/models/models_0.js +238 -15
- package/dist-cjs/pagination/DescribePullThroughCacheRulesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +1070 -16
- package/dist-es/ECR.js +90 -0
- package/dist-es/commands/BatchGetRepositoryScanningConfigurationCommand.js +39 -0
- package/dist-es/commands/CreatePullThroughCacheRuleCommand.js +39 -0
- package/dist-es/commands/DeletePullThroughCacheRuleCommand.js +39 -0
- package/dist-es/commands/DescribePullThroughCacheRulesCommand.js +39 -0
- package/dist-es/commands/GetRegistryScanningConfigurationCommand.js +39 -0
- package/dist-es/commands/PutRegistryScanningConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoints.js +24 -0
- package/dist-es/models/models_0.js +164 -8
- package/dist-es/pagination/DescribePullThroughCacheRulesPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +1204 -120
- package/dist-types/ECR.d.ts +43 -0
- package/dist-types/ECRClient.d.ts +8 -2
- package/dist-types/commands/BatchCheckLayerAvailabilityCommand.d.ts +1 -1
- package/dist-types/commands/BatchDeleteImageCommand.d.ts +1 -1
- package/dist-types/commands/BatchGetImageCommand.d.ts +1 -1
- package/dist-types/commands/BatchGetRepositoryScanningConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/CompleteLayerUploadCommand.d.ts +1 -1
- package/dist-types/commands/CreatePullThroughCacheRuleCommand.d.ts +36 -0
- package/dist-types/commands/CreateRepositoryCommand.d.ts +1 -1
- package/dist-types/commands/DeleteLifecyclePolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeletePullThroughCacheRuleCommand.d.ts +35 -0
- package/dist-types/commands/DeleteRegistryPolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteRepositoryCommand.d.ts +1 -1
- package/dist-types/commands/DeleteRepositoryPolicyCommand.d.ts +1 -1
- package/dist-types/commands/DescribeImageReplicationStatusCommand.d.ts +1 -1
- package/dist-types/commands/DescribeImageScanFindingsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeImagesCommand.d.ts +1 -1
- package/dist-types/commands/DescribePullThroughCacheRulesCommand.d.ts +35 -0
- package/dist-types/commands/DescribeRegistryCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRepositoriesCommand.d.ts +1 -1
- package/dist-types/commands/GetAuthorizationTokenCommand.d.ts +1 -1
- package/dist-types/commands/GetDownloadUrlForLayerCommand.d.ts +1 -1
- package/dist-types/commands/GetLifecyclePolicyCommand.d.ts +1 -1
- package/dist-types/commands/GetLifecyclePolicyPreviewCommand.d.ts +1 -1
- package/dist-types/commands/GetRegistryPolicyCommand.d.ts +1 -1
- package/dist-types/commands/GetRegistryScanningConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/GetRepositoryPolicyCommand.d.ts +1 -1
- package/dist-types/commands/InitiateLayerUploadCommand.d.ts +1 -1
- package/dist-types/commands/ListImagesCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PutImageCommand.d.ts +1 -1
- package/dist-types/commands/PutImageScanningConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/PutImageTagMutabilityCommand.d.ts +1 -1
- package/dist-types/commands/PutLifecyclePolicyCommand.d.ts +1 -1
- package/dist-types/commands/PutRegistryPolicyCommand.d.ts +1 -1
- package/dist-types/commands/PutRegistryScanningConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/PutReplicationConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/SetRepositoryPolicyCommand.d.ts +1 -1
- package/dist-types/commands/StartImageScanCommand.d.ts +1 -1
- package/dist-types/commands/StartLifecyclePolicyPreviewCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UploadLayerPartCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +984 -157
- package/dist-types/pagination/DescribePullThroughCacheRulesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
- package/dist-types/ts3.4/ECR.d.ts +30 -0
- package/dist-types/ts3.4/ECRClient.d.ts +8 -2
- package/dist-types/ts3.4/commands/BatchGetRepositoryScanningConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreatePullThroughCacheRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeletePullThroughCacheRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribePullThroughCacheRulesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetRegistryScanningConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutRegistryScanningConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +488 -24
- package/dist-types/ts3.4/pagination/DescribePullThroughCacheRulesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +18 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,47 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.44.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.43.0...v3.44.0) (2021-12-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2021/11/30 ([#3077](https://github.com/aws/aws-sdk-js-v3/issues/3077)) ([2bdba30](https://github.com/aws/aws-sdk-js-v3/commit/2bdba30963e550728ba2903d57daa1e666a29d71))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-ecr
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **clients:** merge default variants by comparing tags ([#3044](https://github.com/aws/aws-sdk-js-v3/issues/3044)) ([d65a310](https://github.com/aws/aws-sdk-js-v3/commit/d65a310ed5a471e72633a18ae6f3c98390e20783))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Features
|
|
40
|
+
|
|
41
|
+
* **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
6
47
|
# [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
|
|
7
48
|
|
|
8
49
|
|
package/dist-cjs/ECR.js
CHANGED
|
@@ -4,15 +4,19 @@ exports.ECR = void 0;
|
|
|
4
4
|
const BatchCheckLayerAvailabilityCommand_1 = require("./commands/BatchCheckLayerAvailabilityCommand");
|
|
5
5
|
const BatchDeleteImageCommand_1 = require("./commands/BatchDeleteImageCommand");
|
|
6
6
|
const BatchGetImageCommand_1 = require("./commands/BatchGetImageCommand");
|
|
7
|
+
const BatchGetRepositoryScanningConfigurationCommand_1 = require("./commands/BatchGetRepositoryScanningConfigurationCommand");
|
|
7
8
|
const CompleteLayerUploadCommand_1 = require("./commands/CompleteLayerUploadCommand");
|
|
9
|
+
const CreatePullThroughCacheRuleCommand_1 = require("./commands/CreatePullThroughCacheRuleCommand");
|
|
8
10
|
const CreateRepositoryCommand_1 = require("./commands/CreateRepositoryCommand");
|
|
9
11
|
const DeleteLifecyclePolicyCommand_1 = require("./commands/DeleteLifecyclePolicyCommand");
|
|
12
|
+
const DeletePullThroughCacheRuleCommand_1 = require("./commands/DeletePullThroughCacheRuleCommand");
|
|
10
13
|
const DeleteRegistryPolicyCommand_1 = require("./commands/DeleteRegistryPolicyCommand");
|
|
11
14
|
const DeleteRepositoryCommand_1 = require("./commands/DeleteRepositoryCommand");
|
|
12
15
|
const DeleteRepositoryPolicyCommand_1 = require("./commands/DeleteRepositoryPolicyCommand");
|
|
13
16
|
const DescribeImageReplicationStatusCommand_1 = require("./commands/DescribeImageReplicationStatusCommand");
|
|
14
17
|
const DescribeImageScanFindingsCommand_1 = require("./commands/DescribeImageScanFindingsCommand");
|
|
15
18
|
const DescribeImagesCommand_1 = require("./commands/DescribeImagesCommand");
|
|
19
|
+
const DescribePullThroughCacheRulesCommand_1 = require("./commands/DescribePullThroughCacheRulesCommand");
|
|
16
20
|
const DescribeRegistryCommand_1 = require("./commands/DescribeRegistryCommand");
|
|
17
21
|
const DescribeRepositoriesCommand_1 = require("./commands/DescribeRepositoriesCommand");
|
|
18
22
|
const GetAuthorizationTokenCommand_1 = require("./commands/GetAuthorizationTokenCommand");
|
|
@@ -20,6 +24,7 @@ const GetDownloadUrlForLayerCommand_1 = require("./commands/GetDownloadUrlForLay
|
|
|
20
24
|
const GetLifecyclePolicyCommand_1 = require("./commands/GetLifecyclePolicyCommand");
|
|
21
25
|
const GetLifecyclePolicyPreviewCommand_1 = require("./commands/GetLifecyclePolicyPreviewCommand");
|
|
22
26
|
const GetRegistryPolicyCommand_1 = require("./commands/GetRegistryPolicyCommand");
|
|
27
|
+
const GetRegistryScanningConfigurationCommand_1 = require("./commands/GetRegistryScanningConfigurationCommand");
|
|
23
28
|
const GetRepositoryPolicyCommand_1 = require("./commands/GetRepositoryPolicyCommand");
|
|
24
29
|
const InitiateLayerUploadCommand_1 = require("./commands/InitiateLayerUploadCommand");
|
|
25
30
|
const ListImagesCommand_1 = require("./commands/ListImagesCommand");
|
|
@@ -29,6 +34,7 @@ const PutImageScanningConfigurationCommand_1 = require("./commands/PutImageScann
|
|
|
29
34
|
const PutImageTagMutabilityCommand_1 = require("./commands/PutImageTagMutabilityCommand");
|
|
30
35
|
const PutLifecyclePolicyCommand_1 = require("./commands/PutLifecyclePolicyCommand");
|
|
31
36
|
const PutRegistryPolicyCommand_1 = require("./commands/PutRegistryPolicyCommand");
|
|
37
|
+
const PutRegistryScanningConfigurationCommand_1 = require("./commands/PutRegistryScanningConfigurationCommand");
|
|
32
38
|
const PutReplicationConfigurationCommand_1 = require("./commands/PutReplicationConfigurationCommand");
|
|
33
39
|
const SetRepositoryPolicyCommand_1 = require("./commands/SetRepositoryPolicyCommand");
|
|
34
40
|
const StartImageScanCommand_1 = require("./commands/StartImageScanCommand");
|
|
@@ -80,6 +86,20 @@ class ECR extends ECRClient_1.ECRClient {
|
|
|
80
86
|
return this.send(command, optionsOrCb);
|
|
81
87
|
}
|
|
82
88
|
}
|
|
89
|
+
batchGetRepositoryScanningConfiguration(args, optionsOrCb, cb) {
|
|
90
|
+
const command = new BatchGetRepositoryScanningConfigurationCommand_1.BatchGetRepositoryScanningConfigurationCommand(args);
|
|
91
|
+
if (typeof optionsOrCb === "function") {
|
|
92
|
+
this.send(command, optionsOrCb);
|
|
93
|
+
}
|
|
94
|
+
else if (typeof cb === "function") {
|
|
95
|
+
if (typeof optionsOrCb !== "object")
|
|
96
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
97
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
return this.send(command, optionsOrCb);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
83
103
|
completeLayerUpload(args, optionsOrCb, cb) {
|
|
84
104
|
const command = new CompleteLayerUploadCommand_1.CompleteLayerUploadCommand(args);
|
|
85
105
|
if (typeof optionsOrCb === "function") {
|
|
@@ -94,6 +114,20 @@ class ECR extends ECRClient_1.ECRClient {
|
|
|
94
114
|
return this.send(command, optionsOrCb);
|
|
95
115
|
}
|
|
96
116
|
}
|
|
117
|
+
createPullThroughCacheRule(args, optionsOrCb, cb) {
|
|
118
|
+
const command = new CreatePullThroughCacheRuleCommand_1.CreatePullThroughCacheRuleCommand(args);
|
|
119
|
+
if (typeof optionsOrCb === "function") {
|
|
120
|
+
this.send(command, optionsOrCb);
|
|
121
|
+
}
|
|
122
|
+
else if (typeof cb === "function") {
|
|
123
|
+
if (typeof optionsOrCb !== "object")
|
|
124
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
125
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
return this.send(command, optionsOrCb);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
97
131
|
createRepository(args, optionsOrCb, cb) {
|
|
98
132
|
const command = new CreateRepositoryCommand_1.CreateRepositoryCommand(args);
|
|
99
133
|
if (typeof optionsOrCb === "function") {
|
|
@@ -122,6 +156,20 @@ class ECR extends ECRClient_1.ECRClient {
|
|
|
122
156
|
return this.send(command, optionsOrCb);
|
|
123
157
|
}
|
|
124
158
|
}
|
|
159
|
+
deletePullThroughCacheRule(args, optionsOrCb, cb) {
|
|
160
|
+
const command = new DeletePullThroughCacheRuleCommand_1.DeletePullThroughCacheRuleCommand(args);
|
|
161
|
+
if (typeof optionsOrCb === "function") {
|
|
162
|
+
this.send(command, optionsOrCb);
|
|
163
|
+
}
|
|
164
|
+
else if (typeof cb === "function") {
|
|
165
|
+
if (typeof optionsOrCb !== "object")
|
|
166
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
167
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
return this.send(command, optionsOrCb);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
125
173
|
deleteRegistryPolicy(args, optionsOrCb, cb) {
|
|
126
174
|
const command = new DeleteRegistryPolicyCommand_1.DeleteRegistryPolicyCommand(args);
|
|
127
175
|
if (typeof optionsOrCb === "function") {
|
|
@@ -206,6 +254,20 @@ class ECR extends ECRClient_1.ECRClient {
|
|
|
206
254
|
return this.send(command, optionsOrCb);
|
|
207
255
|
}
|
|
208
256
|
}
|
|
257
|
+
describePullThroughCacheRules(args, optionsOrCb, cb) {
|
|
258
|
+
const command = new DescribePullThroughCacheRulesCommand_1.DescribePullThroughCacheRulesCommand(args);
|
|
259
|
+
if (typeof optionsOrCb === "function") {
|
|
260
|
+
this.send(command, optionsOrCb);
|
|
261
|
+
}
|
|
262
|
+
else if (typeof cb === "function") {
|
|
263
|
+
if (typeof optionsOrCb !== "object")
|
|
264
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
265
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
266
|
+
}
|
|
267
|
+
else {
|
|
268
|
+
return this.send(command, optionsOrCb);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
209
271
|
describeRegistry(args, optionsOrCb, cb) {
|
|
210
272
|
const command = new DescribeRegistryCommand_1.DescribeRegistryCommand(args);
|
|
211
273
|
if (typeof optionsOrCb === "function") {
|
|
@@ -304,6 +366,20 @@ class ECR extends ECRClient_1.ECRClient {
|
|
|
304
366
|
return this.send(command, optionsOrCb);
|
|
305
367
|
}
|
|
306
368
|
}
|
|
369
|
+
getRegistryScanningConfiguration(args, optionsOrCb, cb) {
|
|
370
|
+
const command = new GetRegistryScanningConfigurationCommand_1.GetRegistryScanningConfigurationCommand(args);
|
|
371
|
+
if (typeof optionsOrCb === "function") {
|
|
372
|
+
this.send(command, optionsOrCb);
|
|
373
|
+
}
|
|
374
|
+
else if (typeof cb === "function") {
|
|
375
|
+
if (typeof optionsOrCb !== "object")
|
|
376
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
377
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
378
|
+
}
|
|
379
|
+
else {
|
|
380
|
+
return this.send(command, optionsOrCb);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
307
383
|
getRepositoryPolicy(args, optionsOrCb, cb) {
|
|
308
384
|
const command = new GetRepositoryPolicyCommand_1.GetRepositoryPolicyCommand(args);
|
|
309
385
|
if (typeof optionsOrCb === "function") {
|
|
@@ -430,6 +506,20 @@ class ECR extends ECRClient_1.ECRClient {
|
|
|
430
506
|
return this.send(command, optionsOrCb);
|
|
431
507
|
}
|
|
432
508
|
}
|
|
509
|
+
putRegistryScanningConfiguration(args, optionsOrCb, cb) {
|
|
510
|
+
const command = new PutRegistryScanningConfigurationCommand_1.PutRegistryScanningConfigurationCommand(args);
|
|
511
|
+
if (typeof optionsOrCb === "function") {
|
|
512
|
+
this.send(command, optionsOrCb);
|
|
513
|
+
}
|
|
514
|
+
else if (typeof cb === "function") {
|
|
515
|
+
if (typeof optionsOrCb !== "object")
|
|
516
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
517
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
518
|
+
}
|
|
519
|
+
else {
|
|
520
|
+
return this.send(command, optionsOrCb);
|
|
521
|
+
}
|
|
522
|
+
}
|
|
433
523
|
putReplicationConfiguration(args, optionsOrCb, cb) {
|
|
434
524
|
const command = new PutReplicationConfigurationCommand_1.PutReplicationConfigurationCommand(args);
|
|
435
525
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BatchGetRepositoryScanningConfigurationCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class BatchGetRepositoryScanningConfigurationCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "ECRClient";
|
|
18
|
+
const commandName = "BatchGetRepositoryScanningConfigurationCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.BatchGetRepositoryScanningConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.BatchGetRepositoryScanningConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.BatchGetRepositoryScanningConfigurationCommand = BatchGetRepositoryScanningConfigurationCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreatePullThroughCacheRuleCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class CreatePullThroughCacheRuleCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "ECRClient";
|
|
18
|
+
const commandName = "CreatePullThroughCacheRuleCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.CreatePullThroughCacheRuleRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.CreatePullThroughCacheRuleResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1CreatePullThroughCacheRuleCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1CreatePullThroughCacheRuleCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CreatePullThroughCacheRuleCommand = CreatePullThroughCacheRuleCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeletePullThroughCacheRuleCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class DeletePullThroughCacheRuleCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "ECRClient";
|
|
18
|
+
const commandName = "DeletePullThroughCacheRuleCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DeletePullThroughCacheRuleRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DeletePullThroughCacheRuleResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1DeletePullThroughCacheRuleCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1DeletePullThroughCacheRuleCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DeletePullThroughCacheRuleCommand = DeletePullThroughCacheRuleCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribePullThroughCacheRulesCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class DescribePullThroughCacheRulesCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "ECRClient";
|
|
18
|
+
const commandName = "DescribePullThroughCacheRulesCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DescribePullThroughCacheRulesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DescribePullThroughCacheRulesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1DescribePullThroughCacheRulesCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1DescribePullThroughCacheRulesCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DescribePullThroughCacheRulesCommand = DescribePullThroughCacheRulesCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetRegistryScanningConfigurationCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class GetRegistryScanningConfigurationCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "ECRClient";
|
|
18
|
+
const commandName = "GetRegistryScanningConfigurationCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetRegistryScanningConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetRegistryScanningConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1GetRegistryScanningConfigurationCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1GetRegistryScanningConfigurationCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GetRegistryScanningConfigurationCommand = GetRegistryScanningConfigurationCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutRegistryScanningConfigurationCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class PutRegistryScanningConfigurationCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "ECRClient";
|
|
18
|
+
const commandName = "PutRegistryScanningConfigurationCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.PutRegistryScanningConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.PutRegistryScanningConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1PutRegistryScanningConfigurationCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1PutRegistryScanningConfigurationCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.PutRegistryScanningConfigurationCommand = PutRegistryScanningConfigurationCommand;
|
|
@@ -4,15 +4,19 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./BatchCheckLayerAvailabilityCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./BatchDeleteImageCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./BatchGetImageCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./BatchGetRepositoryScanningConfigurationCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./CompleteLayerUploadCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./CreatePullThroughCacheRuleCommand"), exports);
|
|
8
10
|
tslib_1.__exportStar(require("./CreateRepositoryCommand"), exports);
|
|
9
11
|
tslib_1.__exportStar(require("./DeleteLifecyclePolicyCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./DeletePullThroughCacheRuleCommand"), exports);
|
|
10
13
|
tslib_1.__exportStar(require("./DeleteRegistryPolicyCommand"), exports);
|
|
11
14
|
tslib_1.__exportStar(require("./DeleteRepositoryCommand"), exports);
|
|
12
15
|
tslib_1.__exportStar(require("./DeleteRepositoryPolicyCommand"), exports);
|
|
13
16
|
tslib_1.__exportStar(require("./DescribeImageReplicationStatusCommand"), exports);
|
|
14
17
|
tslib_1.__exportStar(require("./DescribeImageScanFindingsCommand"), exports);
|
|
15
18
|
tslib_1.__exportStar(require("./DescribeImagesCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./DescribePullThroughCacheRulesCommand"), exports);
|
|
16
20
|
tslib_1.__exportStar(require("./DescribeRegistryCommand"), exports);
|
|
17
21
|
tslib_1.__exportStar(require("./DescribeRepositoriesCommand"), exports);
|
|
18
22
|
tslib_1.__exportStar(require("./GetAuthorizationTokenCommand"), exports);
|
|
@@ -20,6 +24,7 @@ tslib_1.__exportStar(require("./GetDownloadUrlForLayerCommand"), exports);
|
|
|
20
24
|
tslib_1.__exportStar(require("./GetLifecyclePolicyCommand"), exports);
|
|
21
25
|
tslib_1.__exportStar(require("./GetLifecyclePolicyPreviewCommand"), exports);
|
|
22
26
|
tslib_1.__exportStar(require("./GetRegistryPolicyCommand"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./GetRegistryScanningConfigurationCommand"), exports);
|
|
23
28
|
tslib_1.__exportStar(require("./GetRepositoryPolicyCommand"), exports);
|
|
24
29
|
tslib_1.__exportStar(require("./InitiateLayerUploadCommand"), exports);
|
|
25
30
|
tslib_1.__exportStar(require("./ListImagesCommand"), exports);
|
|
@@ -29,6 +34,7 @@ tslib_1.__exportStar(require("./PutImageScanningConfigurationCommand"), exports)
|
|
|
29
34
|
tslib_1.__exportStar(require("./PutImageTagMutabilityCommand"), exports);
|
|
30
35
|
tslib_1.__exportStar(require("./PutLifecyclePolicyCommand"), exports);
|
|
31
36
|
tslib_1.__exportStar(require("./PutRegistryPolicyCommand"), exports);
|
|
37
|
+
tslib_1.__exportStar(require("./PutRegistryScanningConfigurationCommand"), exports);
|
|
32
38
|
tslib_1.__exportStar(require("./PutReplicationConfigurationCommand"), exports);
|
|
33
39
|
tslib_1.__exportStar(require("./SetRepositoryPolicyCommand"), exports);
|
|
34
40
|
tslib_1.__exportStar(require("./StartImageScanCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -327,6 +327,14 @@ const partitionHash = {
|
|
|
327
327
|
hostname: "ecr-fips.{region}.amazonaws.com",
|
|
328
328
|
tags: ["fips"],
|
|
329
329
|
},
|
|
330
|
+
{
|
|
331
|
+
hostname: "api.ecr-fips.{region}.api.aws",
|
|
332
|
+
tags: ["dualstack", "fips"],
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
hostname: "api.ecr.{region}.api.aws",
|
|
336
|
+
tags: ["dualstack"],
|
|
337
|
+
},
|
|
330
338
|
],
|
|
331
339
|
},
|
|
332
340
|
"aws-cn": {
|
|
@@ -359,6 +367,10 @@ const partitionHash = {
|
|
|
359
367
|
hostname: "api.ecr.{region}.c2s.ic.gov",
|
|
360
368
|
tags: [],
|
|
361
369
|
},
|
|
370
|
+
{
|
|
371
|
+
hostname: "api.ecr-fips.{region}.c2s.ic.gov",
|
|
372
|
+
tags: ["fips"],
|
|
373
|
+
},
|
|
362
374
|
],
|
|
363
375
|
},
|
|
364
376
|
"aws-iso-b": {
|
|
@@ -369,6 +381,10 @@ const partitionHash = {
|
|
|
369
381
|
hostname: "api.ecr.{region}.sc2s.sgov.gov",
|
|
370
382
|
tags: [],
|
|
371
383
|
},
|
|
384
|
+
{
|
|
385
|
+
hostname: "api.ecr-fips.{region}.sc2s.sgov.gov",
|
|
386
|
+
tags: ["fips"],
|
|
387
|
+
},
|
|
372
388
|
],
|
|
373
389
|
},
|
|
374
390
|
"aws-us-gov": {
|
|
@@ -392,6 +408,14 @@ const partitionHash = {
|
|
|
392
408
|
hostname: "ecr-fips.{region}.amazonaws.com",
|
|
393
409
|
tags: ["fips"],
|
|
394
410
|
},
|
|
411
|
+
{
|
|
412
|
+
hostname: "api.ecr-fips.{region}.api.aws",
|
|
413
|
+
tags: ["dualstack", "fips"],
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
hostname: "api.ecr.{region}.api.aws",
|
|
417
|
+
tags: ["dualstack"],
|
|
418
|
+
},
|
|
395
419
|
],
|
|
396
420
|
},
|
|
397
421
|
};
|