@aws-sdk/client-ecr 3.41.0 → 3.45.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 +26 -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 +26 -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/BatchGetRepositoryScanningConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/CreatePullThroughCacheRuleCommand.d.ts +36 -0
- package/dist-types/commands/DeletePullThroughCacheRuleCommand.d.ts +35 -0
- package/dist-types/commands/DescribePullThroughCacheRulesCommand.d.ts +35 -0
- package/dist-types/commands/GetRegistryScanningConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/PutRegistryScanningConfigurationCommand.d.ts +35 -0
- 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 +5 -5
package/dist-es/ECR.js
CHANGED
|
@@ -2,15 +2,19 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { BatchCheckLayerAvailabilityCommand, } from "./commands/BatchCheckLayerAvailabilityCommand";
|
|
3
3
|
import { BatchDeleteImageCommand, } from "./commands/BatchDeleteImageCommand";
|
|
4
4
|
import { BatchGetImageCommand, } from "./commands/BatchGetImageCommand";
|
|
5
|
+
import { BatchGetRepositoryScanningConfigurationCommand, } from "./commands/BatchGetRepositoryScanningConfigurationCommand";
|
|
5
6
|
import { CompleteLayerUploadCommand, } from "./commands/CompleteLayerUploadCommand";
|
|
7
|
+
import { CreatePullThroughCacheRuleCommand, } from "./commands/CreatePullThroughCacheRuleCommand";
|
|
6
8
|
import { CreateRepositoryCommand, } from "./commands/CreateRepositoryCommand";
|
|
7
9
|
import { DeleteLifecyclePolicyCommand, } from "./commands/DeleteLifecyclePolicyCommand";
|
|
10
|
+
import { DeletePullThroughCacheRuleCommand, } from "./commands/DeletePullThroughCacheRuleCommand";
|
|
8
11
|
import { DeleteRegistryPolicyCommand, } from "./commands/DeleteRegistryPolicyCommand";
|
|
9
12
|
import { DeleteRepositoryCommand, } from "./commands/DeleteRepositoryCommand";
|
|
10
13
|
import { DeleteRepositoryPolicyCommand, } from "./commands/DeleteRepositoryPolicyCommand";
|
|
11
14
|
import { DescribeImageReplicationStatusCommand, } from "./commands/DescribeImageReplicationStatusCommand";
|
|
12
15
|
import { DescribeImageScanFindingsCommand, } from "./commands/DescribeImageScanFindingsCommand";
|
|
13
16
|
import { DescribeImagesCommand, } from "./commands/DescribeImagesCommand";
|
|
17
|
+
import { DescribePullThroughCacheRulesCommand, } from "./commands/DescribePullThroughCacheRulesCommand";
|
|
14
18
|
import { DescribeRegistryCommand, } from "./commands/DescribeRegistryCommand";
|
|
15
19
|
import { DescribeRepositoriesCommand, } from "./commands/DescribeRepositoriesCommand";
|
|
16
20
|
import { GetAuthorizationTokenCommand, } from "./commands/GetAuthorizationTokenCommand";
|
|
@@ -18,6 +22,7 @@ import { GetDownloadUrlForLayerCommand, } from "./commands/GetDownloadUrlForLaye
|
|
|
18
22
|
import { GetLifecyclePolicyCommand, } from "./commands/GetLifecyclePolicyCommand";
|
|
19
23
|
import { GetLifecyclePolicyPreviewCommand, } from "./commands/GetLifecyclePolicyPreviewCommand";
|
|
20
24
|
import { GetRegistryPolicyCommand, } from "./commands/GetRegistryPolicyCommand";
|
|
25
|
+
import { GetRegistryScanningConfigurationCommand, } from "./commands/GetRegistryScanningConfigurationCommand";
|
|
21
26
|
import { GetRepositoryPolicyCommand, } from "./commands/GetRepositoryPolicyCommand";
|
|
22
27
|
import { InitiateLayerUploadCommand, } from "./commands/InitiateLayerUploadCommand";
|
|
23
28
|
import { ListImagesCommand } from "./commands/ListImagesCommand";
|
|
@@ -27,6 +32,7 @@ import { PutImageScanningConfigurationCommand, } from "./commands/PutImageScanni
|
|
|
27
32
|
import { PutImageTagMutabilityCommand, } from "./commands/PutImageTagMutabilityCommand";
|
|
28
33
|
import { PutLifecyclePolicyCommand, } from "./commands/PutLifecyclePolicyCommand";
|
|
29
34
|
import { PutRegistryPolicyCommand, } from "./commands/PutRegistryPolicyCommand";
|
|
35
|
+
import { PutRegistryScanningConfigurationCommand, } from "./commands/PutRegistryScanningConfigurationCommand";
|
|
30
36
|
import { PutReplicationConfigurationCommand, } from "./commands/PutReplicationConfigurationCommand";
|
|
31
37
|
import { SetRepositoryPolicyCommand, } from "./commands/SetRepositoryPolicyCommand";
|
|
32
38
|
import { StartImageScanCommand, } from "./commands/StartImageScanCommand";
|
|
@@ -82,6 +88,20 @@ var ECR = (function (_super) {
|
|
|
82
88
|
return this.send(command, optionsOrCb);
|
|
83
89
|
}
|
|
84
90
|
};
|
|
91
|
+
ECR.prototype.batchGetRepositoryScanningConfiguration = function (args, optionsOrCb, cb) {
|
|
92
|
+
var command = new BatchGetRepositoryScanningConfigurationCommand(args);
|
|
93
|
+
if (typeof optionsOrCb === "function") {
|
|
94
|
+
this.send(command, optionsOrCb);
|
|
95
|
+
}
|
|
96
|
+
else if (typeof cb === "function") {
|
|
97
|
+
if (typeof optionsOrCb !== "object")
|
|
98
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
99
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
return this.send(command, optionsOrCb);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
85
105
|
ECR.prototype.completeLayerUpload = function (args, optionsOrCb, cb) {
|
|
86
106
|
var command = new CompleteLayerUploadCommand(args);
|
|
87
107
|
if (typeof optionsOrCb === "function") {
|
|
@@ -96,6 +116,20 @@ var ECR = (function (_super) {
|
|
|
96
116
|
return this.send(command, optionsOrCb);
|
|
97
117
|
}
|
|
98
118
|
};
|
|
119
|
+
ECR.prototype.createPullThroughCacheRule = function (args, optionsOrCb, cb) {
|
|
120
|
+
var command = new CreatePullThroughCacheRuleCommand(args);
|
|
121
|
+
if (typeof optionsOrCb === "function") {
|
|
122
|
+
this.send(command, optionsOrCb);
|
|
123
|
+
}
|
|
124
|
+
else if (typeof cb === "function") {
|
|
125
|
+
if (typeof optionsOrCb !== "object")
|
|
126
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
127
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
return this.send(command, optionsOrCb);
|
|
131
|
+
}
|
|
132
|
+
};
|
|
99
133
|
ECR.prototype.createRepository = function (args, optionsOrCb, cb) {
|
|
100
134
|
var command = new CreateRepositoryCommand(args);
|
|
101
135
|
if (typeof optionsOrCb === "function") {
|
|
@@ -124,6 +158,20 @@ var ECR = (function (_super) {
|
|
|
124
158
|
return this.send(command, optionsOrCb);
|
|
125
159
|
}
|
|
126
160
|
};
|
|
161
|
+
ECR.prototype.deletePullThroughCacheRule = function (args, optionsOrCb, cb) {
|
|
162
|
+
var command = new DeletePullThroughCacheRuleCommand(args);
|
|
163
|
+
if (typeof optionsOrCb === "function") {
|
|
164
|
+
this.send(command, optionsOrCb);
|
|
165
|
+
}
|
|
166
|
+
else if (typeof cb === "function") {
|
|
167
|
+
if (typeof optionsOrCb !== "object")
|
|
168
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
169
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
return this.send(command, optionsOrCb);
|
|
173
|
+
}
|
|
174
|
+
};
|
|
127
175
|
ECR.prototype.deleteRegistryPolicy = function (args, optionsOrCb, cb) {
|
|
128
176
|
var command = new DeleteRegistryPolicyCommand(args);
|
|
129
177
|
if (typeof optionsOrCb === "function") {
|
|
@@ -208,6 +256,20 @@ var ECR = (function (_super) {
|
|
|
208
256
|
return this.send(command, optionsOrCb);
|
|
209
257
|
}
|
|
210
258
|
};
|
|
259
|
+
ECR.prototype.describePullThroughCacheRules = function (args, optionsOrCb, cb) {
|
|
260
|
+
var command = new DescribePullThroughCacheRulesCommand(args);
|
|
261
|
+
if (typeof optionsOrCb === "function") {
|
|
262
|
+
this.send(command, optionsOrCb);
|
|
263
|
+
}
|
|
264
|
+
else if (typeof cb === "function") {
|
|
265
|
+
if (typeof optionsOrCb !== "object")
|
|
266
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
267
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
268
|
+
}
|
|
269
|
+
else {
|
|
270
|
+
return this.send(command, optionsOrCb);
|
|
271
|
+
}
|
|
272
|
+
};
|
|
211
273
|
ECR.prototype.describeRegistry = function (args, optionsOrCb, cb) {
|
|
212
274
|
var command = new DescribeRegistryCommand(args);
|
|
213
275
|
if (typeof optionsOrCb === "function") {
|
|
@@ -306,6 +368,20 @@ var ECR = (function (_super) {
|
|
|
306
368
|
return this.send(command, optionsOrCb);
|
|
307
369
|
}
|
|
308
370
|
};
|
|
371
|
+
ECR.prototype.getRegistryScanningConfiguration = function (args, optionsOrCb, cb) {
|
|
372
|
+
var command = new GetRegistryScanningConfigurationCommand(args);
|
|
373
|
+
if (typeof optionsOrCb === "function") {
|
|
374
|
+
this.send(command, optionsOrCb);
|
|
375
|
+
}
|
|
376
|
+
else if (typeof cb === "function") {
|
|
377
|
+
if (typeof optionsOrCb !== "object")
|
|
378
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
379
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
380
|
+
}
|
|
381
|
+
else {
|
|
382
|
+
return this.send(command, optionsOrCb);
|
|
383
|
+
}
|
|
384
|
+
};
|
|
309
385
|
ECR.prototype.getRepositoryPolicy = function (args, optionsOrCb, cb) {
|
|
310
386
|
var command = new GetRepositoryPolicyCommand(args);
|
|
311
387
|
if (typeof optionsOrCb === "function") {
|
|
@@ -432,6 +508,20 @@ var ECR = (function (_super) {
|
|
|
432
508
|
return this.send(command, optionsOrCb);
|
|
433
509
|
}
|
|
434
510
|
};
|
|
511
|
+
ECR.prototype.putRegistryScanningConfiguration = function (args, optionsOrCb, cb) {
|
|
512
|
+
var command = new PutRegistryScanningConfigurationCommand(args);
|
|
513
|
+
if (typeof optionsOrCb === "function") {
|
|
514
|
+
this.send(command, optionsOrCb);
|
|
515
|
+
}
|
|
516
|
+
else if (typeof cb === "function") {
|
|
517
|
+
if (typeof optionsOrCb !== "object")
|
|
518
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
519
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
520
|
+
}
|
|
521
|
+
else {
|
|
522
|
+
return this.send(command, optionsOrCb);
|
|
523
|
+
}
|
|
524
|
+
};
|
|
435
525
|
ECR.prototype.putReplicationConfiguration = function (args, optionsOrCb, cb) {
|
|
436
526
|
var command = new PutReplicationConfigurationCommand(args);
|
|
437
527
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { BatchGetRepositoryScanningConfigurationRequest, BatchGetRepositoryScanningConfigurationResponse, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand, serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var BatchGetRepositoryScanningConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(BatchGetRepositoryScanningConfigurationCommand, _super);
|
|
8
|
+
function BatchGetRepositoryScanningConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
BatchGetRepositoryScanningConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ECRClient";
|
|
18
|
+
var commandName = "BatchGetRepositoryScanningConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: BatchGetRepositoryScanningConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: BatchGetRepositoryScanningConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
BatchGetRepositoryScanningConfigurationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
BatchGetRepositoryScanningConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return BatchGetRepositoryScanningConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { BatchGetRepositoryScanningConfigurationCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreatePullThroughCacheRuleRequest, CreatePullThroughCacheRuleResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1CreatePullThroughCacheRuleCommand, serializeAws_json1_1CreatePullThroughCacheRuleCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var CreatePullThroughCacheRuleCommand = (function (_super) {
|
|
7
|
+
__extends(CreatePullThroughCacheRuleCommand, _super);
|
|
8
|
+
function CreatePullThroughCacheRuleCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreatePullThroughCacheRuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ECRClient";
|
|
18
|
+
var commandName = "CreatePullThroughCacheRuleCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreatePullThroughCacheRuleRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreatePullThroughCacheRuleResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreatePullThroughCacheRuleCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1CreatePullThroughCacheRuleCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreatePullThroughCacheRuleCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1CreatePullThroughCacheRuleCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreatePullThroughCacheRuleCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreatePullThroughCacheRuleCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeletePullThroughCacheRuleRequest, DeletePullThroughCacheRuleResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DeletePullThroughCacheRuleCommand, serializeAws_json1_1DeletePullThroughCacheRuleCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var DeletePullThroughCacheRuleCommand = (function (_super) {
|
|
7
|
+
__extends(DeletePullThroughCacheRuleCommand, _super);
|
|
8
|
+
function DeletePullThroughCacheRuleCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DeletePullThroughCacheRuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ECRClient";
|
|
18
|
+
var commandName = "DeletePullThroughCacheRuleCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DeletePullThroughCacheRuleRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeletePullThroughCacheRuleResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeletePullThroughCacheRuleCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1DeletePullThroughCacheRuleCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DeletePullThroughCacheRuleCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1DeletePullThroughCacheRuleCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DeletePullThroughCacheRuleCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeletePullThroughCacheRuleCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribePullThroughCacheRulesRequest, DescribePullThroughCacheRulesResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DescribePullThroughCacheRulesCommand, serializeAws_json1_1DescribePullThroughCacheRulesCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var DescribePullThroughCacheRulesCommand = (function (_super) {
|
|
7
|
+
__extends(DescribePullThroughCacheRulesCommand, _super);
|
|
8
|
+
function DescribePullThroughCacheRulesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DescribePullThroughCacheRulesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
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 = "DescribePullThroughCacheRulesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DescribePullThroughCacheRulesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribePullThroughCacheRulesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribePullThroughCacheRulesCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1DescribePullThroughCacheRulesCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DescribePullThroughCacheRulesCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1DescribePullThroughCacheRulesCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DescribePullThroughCacheRulesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribePullThroughCacheRulesCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetRegistryScanningConfigurationRequest, GetRegistryScanningConfigurationResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1GetRegistryScanningConfigurationCommand, serializeAws_json1_1GetRegistryScanningConfigurationCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var GetRegistryScanningConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(GetRegistryScanningConfigurationCommand, _super);
|
|
8
|
+
function GetRegistryScanningConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetRegistryScanningConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
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 = "GetRegistryScanningConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetRegistryScanningConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetRegistryScanningConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetRegistryScanningConfigurationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1GetRegistryScanningConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetRegistryScanningConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1GetRegistryScanningConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetRegistryScanningConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetRegistryScanningConfigurationCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { PutRegistryScanningConfigurationRequest, PutRegistryScanningConfigurationResponse } from "../models/models_0";
|
|
5
|
+
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;
|
|
12
|
+
}
|
|
13
|
+
PutRegistryScanningConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
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,
|
|
23
|
+
inputFilterSensitiveLog: PutRegistryScanningConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: PutRegistryScanningConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
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) {
|
|
32
|
+
return serializeAws_json1_1PutRegistryScanningConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
PutRegistryScanningConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1PutRegistryScanningConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return PutRegistryScanningConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { PutRegistryScanningConfigurationCommand };
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
export * from "./BatchCheckLayerAvailabilityCommand";
|
|
2
2
|
export * from "./BatchDeleteImageCommand";
|
|
3
3
|
export * from "./BatchGetImageCommand";
|
|
4
|
+
export * from "./BatchGetRepositoryScanningConfigurationCommand";
|
|
4
5
|
export * from "./CompleteLayerUploadCommand";
|
|
6
|
+
export * from "./CreatePullThroughCacheRuleCommand";
|
|
5
7
|
export * from "./CreateRepositoryCommand";
|
|
6
8
|
export * from "./DeleteLifecyclePolicyCommand";
|
|
9
|
+
export * from "./DeletePullThroughCacheRuleCommand";
|
|
7
10
|
export * from "./DeleteRegistryPolicyCommand";
|
|
8
11
|
export * from "./DeleteRepositoryCommand";
|
|
9
12
|
export * from "./DeleteRepositoryPolicyCommand";
|
|
10
13
|
export * from "./DescribeImageReplicationStatusCommand";
|
|
11
14
|
export * from "./DescribeImageScanFindingsCommand";
|
|
12
15
|
export * from "./DescribeImagesCommand";
|
|
16
|
+
export * from "./DescribePullThroughCacheRulesCommand";
|
|
13
17
|
export * from "./DescribeRegistryCommand";
|
|
14
18
|
export * from "./DescribeRepositoriesCommand";
|
|
15
19
|
export * from "./GetAuthorizationTokenCommand";
|
|
@@ -17,6 +21,7 @@ export * from "./GetDownloadUrlForLayerCommand";
|
|
|
17
21
|
export * from "./GetLifecyclePolicyCommand";
|
|
18
22
|
export * from "./GetLifecyclePolicyPreviewCommand";
|
|
19
23
|
export * from "./GetRegistryPolicyCommand";
|
|
24
|
+
export * from "./GetRegistryScanningConfigurationCommand";
|
|
20
25
|
export * from "./GetRepositoryPolicyCommand";
|
|
21
26
|
export * from "./InitiateLayerUploadCommand";
|
|
22
27
|
export * from "./ListImagesCommand";
|
|
@@ -26,6 +31,7 @@ export * from "./PutImageScanningConfigurationCommand";
|
|
|
26
31
|
export * from "./PutImageTagMutabilityCommand";
|
|
27
32
|
export * from "./PutLifecyclePolicyCommand";
|
|
28
33
|
export * from "./PutRegistryPolicyCommand";
|
|
34
|
+
export * from "./PutRegistryScanningConfigurationCommand";
|
|
29
35
|
export * from "./PutReplicationConfigurationCommand";
|
|
30
36
|
export * from "./SetRepositoryPolicyCommand";
|
|
31
37
|
export * from "./StartImageScanCommand";
|
package/dist-es/endpoints.js
CHANGED
|
@@ -73,6 +73,15 @@ var regionHash = {
|
|
|
73
73
|
],
|
|
74
74
|
signingRegion: "ap-southeast-2",
|
|
75
75
|
},
|
|
76
|
+
"ap-southeast-3": {
|
|
77
|
+
variants: [
|
|
78
|
+
{
|
|
79
|
+
hostname: "api.ecr.ap-southeast-3.amazonaws.com",
|
|
80
|
+
tags: [],
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
signingRegion: "ap-southeast-3",
|
|
84
|
+
},
|
|
76
85
|
"ca-central-1": {
|
|
77
86
|
variants: [
|
|
78
87
|
{
|
|
@@ -289,6 +298,7 @@ var partitionHash = {
|
|
|
289
298
|
"ap-south-1",
|
|
290
299
|
"ap-southeast-1",
|
|
291
300
|
"ap-southeast-2",
|
|
301
|
+
"ap-southeast-3",
|
|
292
302
|
"ca-central-1",
|
|
293
303
|
"dkr-us-east-1",
|
|
294
304
|
"dkr-us-east-2",
|
|
@@ -325,6 +335,14 @@ var partitionHash = {
|
|
|
325
335
|
hostname: "ecr-fips.{region}.amazonaws.com",
|
|
326
336
|
tags: ["fips"],
|
|
327
337
|
},
|
|
338
|
+
{
|
|
339
|
+
hostname: "api.ecr-fips.{region}.api.aws",
|
|
340
|
+
tags: ["dualstack", "fips"],
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
hostname: "api.ecr.{region}.api.aws",
|
|
344
|
+
tags: ["dualstack"],
|
|
345
|
+
},
|
|
328
346
|
],
|
|
329
347
|
},
|
|
330
348
|
"aws-cn": {
|
|
@@ -398,6 +416,14 @@ var partitionHash = {
|
|
|
398
416
|
hostname: "ecr-fips.{region}.amazonaws.com",
|
|
399
417
|
tags: ["fips"],
|
|
400
418
|
},
|
|
419
|
+
{
|
|
420
|
+
hostname: "api.ecr-fips.{region}.api.aws",
|
|
421
|
+
tags: ["dualstack", "fips"],
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
hostname: "api.ecr.{region}.api.aws",
|
|
425
|
+
tags: ["dualstack"],
|
|
426
|
+
},
|
|
401
427
|
],
|
|
402
428
|
},
|
|
403
429
|
};
|