@aws-sdk/client-ecr 3.623.0 → 3.624.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/README.md +16 -0
- package/dist-cjs/index.js +76 -0
- package/dist-es/ECR.js +4 -0
- package/dist-es/commands/GetAccountSettingCommand.js +24 -0
- package/dist-es/commands/PutAccountSettingCommand.js +24 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +38 -0
- package/dist-types/ECR.d.ts +14 -0
- package/dist-types/ECRClient.d.ts +4 -2
- package/dist-types/commands/GetAccountSettingCommand.d.ts +71 -0
- package/dist-types/commands/PutAccountSettingCommand.d.ts +78 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +67 -3
- package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
- package/dist-types/ts3.4/ECR.d.ts +34 -0
- package/dist-types/ts3.4/ECRClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/GetAccountSettingCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/PutAccountSettingCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +15 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -379,6 +379,14 @@ DescribeRepositoryCreationTemplates
|
|
|
379
379
|
|
|
380
380
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecr/command/DescribeRepositoryCreationTemplatesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/DescribeRepositoryCreationTemplatesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/DescribeRepositoryCreationTemplatesCommandOutput/)
|
|
381
381
|
|
|
382
|
+
</details>
|
|
383
|
+
<details>
|
|
384
|
+
<summary>
|
|
385
|
+
GetAccountSetting
|
|
386
|
+
</summary>
|
|
387
|
+
|
|
388
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecr/command/GetAccountSettingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/GetAccountSettingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/GetAccountSettingCommandOutput/)
|
|
389
|
+
|
|
382
390
|
</details>
|
|
383
391
|
<details>
|
|
384
392
|
<summary>
|
|
@@ -459,6 +467,14 @@ ListTagsForResource
|
|
|
459
467
|
|
|
460
468
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecr/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/ListTagsForResourceCommandOutput/)
|
|
461
469
|
|
|
470
|
+
</details>
|
|
471
|
+
<details>
|
|
472
|
+
<summary>
|
|
473
|
+
PutAccountSetting
|
|
474
|
+
</summary>
|
|
475
|
+
|
|
476
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecr/command/PutAccountSettingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/PutAccountSettingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/PutAccountSettingCommandOutput/)
|
|
477
|
+
|
|
462
478
|
</details>
|
|
463
479
|
<details>
|
|
464
480
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -48,6 +48,7 @@ __export(src_exports, {
|
|
|
48
48
|
EmptyUploadException: () => EmptyUploadException,
|
|
49
49
|
EncryptionType: () => EncryptionType,
|
|
50
50
|
FindingSeverity: () => FindingSeverity,
|
|
51
|
+
GetAccountSettingCommand: () => GetAccountSettingCommand,
|
|
51
52
|
GetAuthorizationTokenCommand: () => GetAuthorizationTokenCommand,
|
|
52
53
|
GetDownloadUrlForLayerCommand: () => GetDownloadUrlForLayerCommand,
|
|
53
54
|
GetLifecyclePolicyCommand: () => GetLifecyclePolicyCommand,
|
|
@@ -83,6 +84,7 @@ __export(src_exports, {
|
|
|
83
84
|
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
84
85
|
PullThroughCacheRuleAlreadyExistsException: () => PullThroughCacheRuleAlreadyExistsException,
|
|
85
86
|
PullThroughCacheRuleNotFoundException: () => PullThroughCacheRuleNotFoundException,
|
|
87
|
+
PutAccountSettingCommand: () => PutAccountSettingCommand,
|
|
86
88
|
PutImageCommand: () => PutImageCommand,
|
|
87
89
|
PutImageScanningConfigurationCommand: () => PutImageScanningConfigurationCommand,
|
|
88
90
|
PutImageTagMutabilityCommand: () => PutImageTagMutabilityCommand,
|
|
@@ -1218,6 +1220,12 @@ var se_DescribeRepositoryCreationTemplatesCommand = /* @__PURE__ */ __name(async
|
|
|
1218
1220
|
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
1219
1221
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
1220
1222
|
}, "se_DescribeRepositoryCreationTemplatesCommand");
|
|
1223
|
+
var se_GetAccountSettingCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1224
|
+
const headers = sharedHeaders("GetAccountSetting");
|
|
1225
|
+
let body;
|
|
1226
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
1227
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
1228
|
+
}, "se_GetAccountSettingCommand");
|
|
1221
1229
|
var se_GetAuthorizationTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1222
1230
|
const headers = sharedHeaders("GetAuthorizationToken");
|
|
1223
1231
|
let body;
|
|
@@ -1278,6 +1286,12 @@ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
1278
1286
|
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
1279
1287
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
1280
1288
|
}, "se_ListTagsForResourceCommand");
|
|
1289
|
+
var se_PutAccountSettingCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1290
|
+
const headers = sharedHeaders("PutAccountSetting");
|
|
1291
|
+
let body;
|
|
1292
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
1293
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
1294
|
+
}, "se_PutAccountSettingCommand");
|
|
1281
1295
|
var se_PutImageCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1282
1296
|
const headers = sharedHeaders("PutImage");
|
|
1283
1297
|
let body;
|
|
@@ -1647,6 +1661,19 @@ var de_DescribeRepositoryCreationTemplatesCommand = /* @__PURE__ */ __name(async
|
|
|
1647
1661
|
};
|
|
1648
1662
|
return response;
|
|
1649
1663
|
}, "de_DescribeRepositoryCreationTemplatesCommand");
|
|
1664
|
+
var de_GetAccountSettingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1665
|
+
if (output.statusCode >= 300) {
|
|
1666
|
+
return de_CommandError(output, context);
|
|
1667
|
+
}
|
|
1668
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1669
|
+
let contents = {};
|
|
1670
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1671
|
+
const response = {
|
|
1672
|
+
$metadata: deserializeMetadata(output),
|
|
1673
|
+
...contents
|
|
1674
|
+
};
|
|
1675
|
+
return response;
|
|
1676
|
+
}, "de_GetAccountSettingCommand");
|
|
1650
1677
|
var de_GetAuthorizationTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1651
1678
|
if (output.statusCode >= 300) {
|
|
1652
1679
|
return de_CommandError(output, context);
|
|
@@ -1777,6 +1804,19 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1777
1804
|
};
|
|
1778
1805
|
return response;
|
|
1779
1806
|
}, "de_ListTagsForResourceCommand");
|
|
1807
|
+
var de_PutAccountSettingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1808
|
+
if (output.statusCode >= 300) {
|
|
1809
|
+
return de_CommandError(output, context);
|
|
1810
|
+
}
|
|
1811
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1812
|
+
let contents = {};
|
|
1813
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1814
|
+
const response = {
|
|
1815
|
+
$metadata: deserializeMetadata(output),
|
|
1816
|
+
...contents
|
|
1817
|
+
};
|
|
1818
|
+
return response;
|
|
1819
|
+
}, "de_PutAccountSettingCommand");
|
|
1780
1820
|
var de_PutImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1781
1821
|
if (output.statusCode >= 300) {
|
|
1782
1822
|
return de_CommandError(output, context);
|
|
@@ -3198,6 +3238,22 @@ var _DescribeRepositoryCreationTemplatesCommand = class _DescribeRepositoryCreat
|
|
|
3198
3238
|
__name(_DescribeRepositoryCreationTemplatesCommand, "DescribeRepositoryCreationTemplatesCommand");
|
|
3199
3239
|
var DescribeRepositoryCreationTemplatesCommand = _DescribeRepositoryCreationTemplatesCommand;
|
|
3200
3240
|
|
|
3241
|
+
// src/commands/GetAccountSettingCommand.ts
|
|
3242
|
+
|
|
3243
|
+
|
|
3244
|
+
|
|
3245
|
+
var _GetAccountSettingCommand = class _GetAccountSettingCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3246
|
+
...commonParams
|
|
3247
|
+
}).m(function(Command, cs, config, o) {
|
|
3248
|
+
return [
|
|
3249
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3250
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3251
|
+
];
|
|
3252
|
+
}).s("AmazonEC2ContainerRegistry_V20150921", "GetAccountSetting", {}).n("ECRClient", "GetAccountSettingCommand").f(void 0, void 0).ser(se_GetAccountSettingCommand).de(de_GetAccountSettingCommand).build() {
|
|
3253
|
+
};
|
|
3254
|
+
__name(_GetAccountSettingCommand, "GetAccountSettingCommand");
|
|
3255
|
+
var GetAccountSettingCommand = _GetAccountSettingCommand;
|
|
3256
|
+
|
|
3201
3257
|
// src/commands/GetAuthorizationTokenCommand.ts
|
|
3202
3258
|
|
|
3203
3259
|
|
|
@@ -3358,6 +3414,22 @@ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends impo
|
|
|
3358
3414
|
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
3359
3415
|
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
3360
3416
|
|
|
3417
|
+
// src/commands/PutAccountSettingCommand.ts
|
|
3418
|
+
|
|
3419
|
+
|
|
3420
|
+
|
|
3421
|
+
var _PutAccountSettingCommand = class _PutAccountSettingCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3422
|
+
...commonParams
|
|
3423
|
+
}).m(function(Command, cs, config, o) {
|
|
3424
|
+
return [
|
|
3425
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3426
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3427
|
+
];
|
|
3428
|
+
}).s("AmazonEC2ContainerRegistry_V20150921", "PutAccountSetting", {}).n("ECRClient", "PutAccountSettingCommand").f(void 0, void 0).ser(se_PutAccountSettingCommand).de(de_PutAccountSettingCommand).build() {
|
|
3429
|
+
};
|
|
3430
|
+
__name(_PutAccountSettingCommand, "PutAccountSettingCommand");
|
|
3431
|
+
var PutAccountSettingCommand = _PutAccountSettingCommand;
|
|
3432
|
+
|
|
3361
3433
|
// src/commands/PutImageCommand.ts
|
|
3362
3434
|
|
|
3363
3435
|
|
|
@@ -3637,6 +3709,7 @@ var commands = {
|
|
|
3637
3709
|
DescribeRegistryCommand,
|
|
3638
3710
|
DescribeRepositoriesCommand,
|
|
3639
3711
|
DescribeRepositoryCreationTemplatesCommand,
|
|
3712
|
+
GetAccountSettingCommand,
|
|
3640
3713
|
GetAuthorizationTokenCommand,
|
|
3641
3714
|
GetDownloadUrlForLayerCommand,
|
|
3642
3715
|
GetLifecyclePolicyCommand,
|
|
@@ -3647,6 +3720,7 @@ var commands = {
|
|
|
3647
3720
|
InitiateLayerUploadCommand,
|
|
3648
3721
|
ListImagesCommand,
|
|
3649
3722
|
ListTagsForResourceCommand,
|
|
3723
|
+
PutAccountSettingCommand,
|
|
3650
3724
|
PutImageCommand,
|
|
3651
3725
|
PutImageScanningConfigurationCommand,
|
|
3652
3726
|
PutImageTagMutabilityCommand,
|
|
@@ -3806,6 +3880,7 @@ var waitUntilLifecyclePolicyPreviewComplete = /* @__PURE__ */ __name(async (para
|
|
|
3806
3880
|
DescribeRegistryCommand,
|
|
3807
3881
|
DescribeRepositoriesCommand,
|
|
3808
3882
|
DescribeRepositoryCreationTemplatesCommand,
|
|
3883
|
+
GetAccountSettingCommand,
|
|
3809
3884
|
GetAuthorizationTokenCommand,
|
|
3810
3885
|
GetDownloadUrlForLayerCommand,
|
|
3811
3886
|
GetLifecyclePolicyCommand,
|
|
@@ -3816,6 +3891,7 @@ var waitUntilLifecyclePolicyPreviewComplete = /* @__PURE__ */ __name(async (para
|
|
|
3816
3891
|
InitiateLayerUploadCommand,
|
|
3817
3892
|
ListImagesCommand,
|
|
3818
3893
|
ListTagsForResourceCommand,
|
|
3894
|
+
PutAccountSettingCommand,
|
|
3819
3895
|
PutImageCommand,
|
|
3820
3896
|
PutImageScanningConfigurationCommand,
|
|
3821
3897
|
PutImageTagMutabilityCommand,
|
package/dist-es/ECR.js
CHANGED
|
@@ -20,6 +20,7 @@ import { DescribePullThroughCacheRulesCommand, } from "./commands/DescribePullTh
|
|
|
20
20
|
import { DescribeRegistryCommand, } from "./commands/DescribeRegistryCommand";
|
|
21
21
|
import { DescribeRepositoriesCommand, } from "./commands/DescribeRepositoriesCommand";
|
|
22
22
|
import { DescribeRepositoryCreationTemplatesCommand, } from "./commands/DescribeRepositoryCreationTemplatesCommand";
|
|
23
|
+
import { GetAccountSettingCommand, } from "./commands/GetAccountSettingCommand";
|
|
23
24
|
import { GetAuthorizationTokenCommand, } from "./commands/GetAuthorizationTokenCommand";
|
|
24
25
|
import { GetDownloadUrlForLayerCommand, } from "./commands/GetDownloadUrlForLayerCommand";
|
|
25
26
|
import { GetLifecyclePolicyCommand, } from "./commands/GetLifecyclePolicyCommand";
|
|
@@ -30,6 +31,7 @@ import { GetRepositoryPolicyCommand, } from "./commands/GetRepositoryPolicyComma
|
|
|
30
31
|
import { InitiateLayerUploadCommand, } from "./commands/InitiateLayerUploadCommand";
|
|
31
32
|
import { ListImagesCommand } from "./commands/ListImagesCommand";
|
|
32
33
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
34
|
+
import { PutAccountSettingCommand, } from "./commands/PutAccountSettingCommand";
|
|
33
35
|
import { PutImageCommand } from "./commands/PutImageCommand";
|
|
34
36
|
import { PutImageScanningConfigurationCommand, } from "./commands/PutImageScanningConfigurationCommand";
|
|
35
37
|
import { PutImageTagMutabilityCommand, } from "./commands/PutImageTagMutabilityCommand";
|
|
@@ -69,6 +71,7 @@ const commands = {
|
|
|
69
71
|
DescribeRegistryCommand,
|
|
70
72
|
DescribeRepositoriesCommand,
|
|
71
73
|
DescribeRepositoryCreationTemplatesCommand,
|
|
74
|
+
GetAccountSettingCommand,
|
|
72
75
|
GetAuthorizationTokenCommand,
|
|
73
76
|
GetDownloadUrlForLayerCommand,
|
|
74
77
|
GetLifecyclePolicyCommand,
|
|
@@ -79,6 +82,7 @@ const commands = {
|
|
|
79
82
|
InitiateLayerUploadCommand,
|
|
80
83
|
ListImagesCommand,
|
|
81
84
|
ListTagsForResourceCommand,
|
|
85
|
+
PutAccountSettingCommand,
|
|
82
86
|
PutImageCommand,
|
|
83
87
|
PutImageScanningConfigurationCommand,
|
|
84
88
|
PutImageTagMutabilityCommand,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_GetAccountSettingCommand, se_GetAccountSettingCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetAccountSettingCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonEC2ContainerRegistry_V20150921", "GetAccountSetting", {})
|
|
19
|
+
.n("ECRClient", "GetAccountSettingCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_GetAccountSettingCommand)
|
|
22
|
+
.de(de_GetAccountSettingCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_PutAccountSettingCommand, se_PutAccountSettingCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class PutAccountSettingCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonEC2ContainerRegistry_V20150921", "PutAccountSetting", {})
|
|
19
|
+
.n("ECRClient", "PutAccountSettingCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_PutAccountSettingCommand)
|
|
22
|
+
.de(de_PutAccountSettingCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -19,6 +19,7 @@ export * from "./DescribePullThroughCacheRulesCommand";
|
|
|
19
19
|
export * from "./DescribeRegistryCommand";
|
|
20
20
|
export * from "./DescribeRepositoriesCommand";
|
|
21
21
|
export * from "./DescribeRepositoryCreationTemplatesCommand";
|
|
22
|
+
export * from "./GetAccountSettingCommand";
|
|
22
23
|
export * from "./GetAuthorizationTokenCommand";
|
|
23
24
|
export * from "./GetDownloadUrlForLayerCommand";
|
|
24
25
|
export * from "./GetLifecyclePolicyCommand";
|
|
@@ -29,6 +30,7 @@ export * from "./GetRepositoryPolicyCommand";
|
|
|
29
30
|
export * from "./InitiateLayerUploadCommand";
|
|
30
31
|
export * from "./ListImagesCommand";
|
|
31
32
|
export * from "./ListTagsForResourceCommand";
|
|
33
|
+
export * from "./PutAccountSettingCommand";
|
|
32
34
|
export * from "./PutImageCommand";
|
|
33
35
|
export * from "./PutImageScanningConfigurationCommand";
|
|
34
36
|
export * from "./PutImageTagMutabilityCommand";
|
|
@@ -129,6 +129,12 @@ export const se_DescribeRepositoryCreationTemplatesCommand = async (input, conte
|
|
|
129
129
|
body = JSON.stringify(_json(input));
|
|
130
130
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
131
|
};
|
|
132
|
+
export const se_GetAccountSettingCommand = async (input, context) => {
|
|
133
|
+
const headers = sharedHeaders("GetAccountSetting");
|
|
134
|
+
let body;
|
|
135
|
+
body = JSON.stringify(_json(input));
|
|
136
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
|
+
};
|
|
132
138
|
export const se_GetAuthorizationTokenCommand = async (input, context) => {
|
|
133
139
|
const headers = sharedHeaders("GetAuthorizationToken");
|
|
134
140
|
let body;
|
|
@@ -189,6 +195,12 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
189
195
|
body = JSON.stringify(_json(input));
|
|
190
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
197
|
};
|
|
198
|
+
export const se_PutAccountSettingCommand = async (input, context) => {
|
|
199
|
+
const headers = sharedHeaders("PutAccountSetting");
|
|
200
|
+
let body;
|
|
201
|
+
body = JSON.stringify(_json(input));
|
|
202
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
+
};
|
|
192
204
|
export const se_PutImageCommand = async (input, context) => {
|
|
193
205
|
const headers = sharedHeaders("PutImage");
|
|
194
206
|
let body;
|
|
@@ -558,6 +570,19 @@ export const de_DescribeRepositoryCreationTemplatesCommand = async (output, cont
|
|
|
558
570
|
};
|
|
559
571
|
return response;
|
|
560
572
|
};
|
|
573
|
+
export const de_GetAccountSettingCommand = async (output, context) => {
|
|
574
|
+
if (output.statusCode >= 300) {
|
|
575
|
+
return de_CommandError(output, context);
|
|
576
|
+
}
|
|
577
|
+
const data = await parseBody(output.body, context);
|
|
578
|
+
let contents = {};
|
|
579
|
+
contents = _json(data);
|
|
580
|
+
const response = {
|
|
581
|
+
$metadata: deserializeMetadata(output),
|
|
582
|
+
...contents,
|
|
583
|
+
};
|
|
584
|
+
return response;
|
|
585
|
+
};
|
|
561
586
|
export const de_GetAuthorizationTokenCommand = async (output, context) => {
|
|
562
587
|
if (output.statusCode >= 300) {
|
|
563
588
|
return de_CommandError(output, context);
|
|
@@ -688,6 +713,19 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
688
713
|
};
|
|
689
714
|
return response;
|
|
690
715
|
};
|
|
716
|
+
export const de_PutAccountSettingCommand = async (output, context) => {
|
|
717
|
+
if (output.statusCode >= 300) {
|
|
718
|
+
return de_CommandError(output, context);
|
|
719
|
+
}
|
|
720
|
+
const data = await parseBody(output.body, context);
|
|
721
|
+
let contents = {};
|
|
722
|
+
contents = _json(data);
|
|
723
|
+
const response = {
|
|
724
|
+
$metadata: deserializeMetadata(output),
|
|
725
|
+
...contents,
|
|
726
|
+
};
|
|
727
|
+
return response;
|
|
728
|
+
};
|
|
691
729
|
export const de_PutImageCommand = async (output, context) => {
|
|
692
730
|
if (output.statusCode >= 300) {
|
|
693
731
|
return de_CommandError(output, context);
|
package/dist-types/ECR.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { DescribePullThroughCacheRulesCommandInput, DescribePullThroughCacheRule
|
|
|
20
20
|
import { DescribeRegistryCommandInput, DescribeRegistryCommandOutput } from "./commands/DescribeRegistryCommand";
|
|
21
21
|
import { DescribeRepositoriesCommandInput, DescribeRepositoriesCommandOutput } from "./commands/DescribeRepositoriesCommand";
|
|
22
22
|
import { DescribeRepositoryCreationTemplatesCommandInput, DescribeRepositoryCreationTemplatesCommandOutput } from "./commands/DescribeRepositoryCreationTemplatesCommand";
|
|
23
|
+
import { GetAccountSettingCommandInput, GetAccountSettingCommandOutput } from "./commands/GetAccountSettingCommand";
|
|
23
24
|
import { GetAuthorizationTokenCommandInput, GetAuthorizationTokenCommandOutput } from "./commands/GetAuthorizationTokenCommand";
|
|
24
25
|
import { GetDownloadUrlForLayerCommandInput, GetDownloadUrlForLayerCommandOutput } from "./commands/GetDownloadUrlForLayerCommand";
|
|
25
26
|
import { GetLifecyclePolicyCommandInput, GetLifecyclePolicyCommandOutput } from "./commands/GetLifecyclePolicyCommand";
|
|
@@ -30,6 +31,7 @@ import { GetRepositoryPolicyCommandInput, GetRepositoryPolicyCommandOutput } fro
|
|
|
30
31
|
import { InitiateLayerUploadCommandInput, InitiateLayerUploadCommandOutput } from "./commands/InitiateLayerUploadCommand";
|
|
31
32
|
import { ListImagesCommandInput, ListImagesCommandOutput } from "./commands/ListImagesCommand";
|
|
32
33
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
34
|
+
import { PutAccountSettingCommandInput, PutAccountSettingCommandOutput } from "./commands/PutAccountSettingCommand";
|
|
33
35
|
import { PutImageCommandInput, PutImageCommandOutput } from "./commands/PutImageCommand";
|
|
34
36
|
import { PutImageScanningConfigurationCommandInput, PutImageScanningConfigurationCommandOutput } from "./commands/PutImageScanningConfigurationCommand";
|
|
35
37
|
import { PutImageTagMutabilityCommandInput, PutImageTagMutabilityCommandOutput } from "./commands/PutImageTagMutabilityCommand";
|
|
@@ -179,6 +181,12 @@ export interface ECR {
|
|
|
179
181
|
describeRepositoryCreationTemplates(args: DescribeRepositoryCreationTemplatesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeRepositoryCreationTemplatesCommandOutput>;
|
|
180
182
|
describeRepositoryCreationTemplates(args: DescribeRepositoryCreationTemplatesCommandInput, cb: (err: any, data?: DescribeRepositoryCreationTemplatesCommandOutput) => void): void;
|
|
181
183
|
describeRepositoryCreationTemplates(args: DescribeRepositoryCreationTemplatesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeRepositoryCreationTemplatesCommandOutput) => void): void;
|
|
184
|
+
/**
|
|
185
|
+
* @see {@link GetAccountSettingCommand}
|
|
186
|
+
*/
|
|
187
|
+
getAccountSetting(args: GetAccountSettingCommandInput, options?: __HttpHandlerOptions): Promise<GetAccountSettingCommandOutput>;
|
|
188
|
+
getAccountSetting(args: GetAccountSettingCommandInput, cb: (err: any, data?: GetAccountSettingCommandOutput) => void): void;
|
|
189
|
+
getAccountSetting(args: GetAccountSettingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAccountSettingCommandOutput) => void): void;
|
|
182
190
|
/**
|
|
183
191
|
* @see {@link GetAuthorizationTokenCommand}
|
|
184
192
|
*/
|
|
@@ -242,6 +250,12 @@ export interface ECR {
|
|
|
242
250
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
243
251
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
244
252
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
253
|
+
/**
|
|
254
|
+
* @see {@link PutAccountSettingCommand}
|
|
255
|
+
*/
|
|
256
|
+
putAccountSetting(args: PutAccountSettingCommandInput, options?: __HttpHandlerOptions): Promise<PutAccountSettingCommandOutput>;
|
|
257
|
+
putAccountSetting(args: PutAccountSettingCommandInput, cb: (err: any, data?: PutAccountSettingCommandOutput) => void): void;
|
|
258
|
+
putAccountSetting(args: PutAccountSettingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutAccountSettingCommandOutput) => void): void;
|
|
245
259
|
/**
|
|
246
260
|
* @see {@link PutImageCommand}
|
|
247
261
|
*/
|
|
@@ -28,6 +28,7 @@ import { DescribePullThroughCacheRulesCommandInput, DescribePullThroughCacheRule
|
|
|
28
28
|
import { DescribeRegistryCommandInput, DescribeRegistryCommandOutput } from "./commands/DescribeRegistryCommand";
|
|
29
29
|
import { DescribeRepositoriesCommandInput, DescribeRepositoriesCommandOutput } from "./commands/DescribeRepositoriesCommand";
|
|
30
30
|
import { DescribeRepositoryCreationTemplatesCommandInput, DescribeRepositoryCreationTemplatesCommandOutput } from "./commands/DescribeRepositoryCreationTemplatesCommand";
|
|
31
|
+
import { GetAccountSettingCommandInput, GetAccountSettingCommandOutput } from "./commands/GetAccountSettingCommand";
|
|
31
32
|
import { GetAuthorizationTokenCommandInput, GetAuthorizationTokenCommandOutput } from "./commands/GetAuthorizationTokenCommand";
|
|
32
33
|
import { GetDownloadUrlForLayerCommandInput, GetDownloadUrlForLayerCommandOutput } from "./commands/GetDownloadUrlForLayerCommand";
|
|
33
34
|
import { GetLifecyclePolicyCommandInput, GetLifecyclePolicyCommandOutput } from "./commands/GetLifecyclePolicyCommand";
|
|
@@ -38,6 +39,7 @@ import { GetRepositoryPolicyCommandInput, GetRepositoryPolicyCommandOutput } fro
|
|
|
38
39
|
import { InitiateLayerUploadCommandInput, InitiateLayerUploadCommandOutput } from "./commands/InitiateLayerUploadCommand";
|
|
39
40
|
import { ListImagesCommandInput, ListImagesCommandOutput } from "./commands/ListImagesCommand";
|
|
40
41
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
42
|
+
import { PutAccountSettingCommandInput, PutAccountSettingCommandOutput } from "./commands/PutAccountSettingCommand";
|
|
41
43
|
import { PutImageCommandInput, PutImageCommandOutput } from "./commands/PutImageCommand";
|
|
42
44
|
import { PutImageScanningConfigurationCommandInput, PutImageScanningConfigurationCommandOutput } from "./commands/PutImageScanningConfigurationCommand";
|
|
43
45
|
import { PutImageTagMutabilityCommandInput, PutImageTagMutabilityCommandOutput } from "./commands/PutImageTagMutabilityCommand";
|
|
@@ -60,11 +62,11 @@ export { __Client };
|
|
|
60
62
|
/**
|
|
61
63
|
* @public
|
|
62
64
|
*/
|
|
63
|
-
export type ServiceInputTypes = BatchCheckLayerAvailabilityCommandInput | BatchDeleteImageCommandInput | BatchGetImageCommandInput | BatchGetRepositoryScanningConfigurationCommandInput | CompleteLayerUploadCommandInput | CreatePullThroughCacheRuleCommandInput | CreateRepositoryCommandInput | CreateRepositoryCreationTemplateCommandInput | DeleteLifecyclePolicyCommandInput | DeletePullThroughCacheRuleCommandInput | DeleteRegistryPolicyCommandInput | DeleteRepositoryCommandInput | DeleteRepositoryCreationTemplateCommandInput | DeleteRepositoryPolicyCommandInput | DescribeImageReplicationStatusCommandInput | DescribeImageScanFindingsCommandInput | DescribeImagesCommandInput | DescribePullThroughCacheRulesCommandInput | DescribeRegistryCommandInput | DescribeRepositoriesCommandInput | DescribeRepositoryCreationTemplatesCommandInput | GetAuthorizationTokenCommandInput | GetDownloadUrlForLayerCommandInput | GetLifecyclePolicyCommandInput | GetLifecyclePolicyPreviewCommandInput | GetRegistryPolicyCommandInput | GetRegistryScanningConfigurationCommandInput | GetRepositoryPolicyCommandInput | InitiateLayerUploadCommandInput | ListImagesCommandInput | ListTagsForResourceCommandInput | PutImageCommandInput | PutImageScanningConfigurationCommandInput | PutImageTagMutabilityCommandInput | PutLifecyclePolicyCommandInput | PutRegistryPolicyCommandInput | PutRegistryScanningConfigurationCommandInput | PutReplicationConfigurationCommandInput | SetRepositoryPolicyCommandInput | StartImageScanCommandInput | StartLifecyclePolicyPreviewCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdatePullThroughCacheRuleCommandInput | UpdateRepositoryCreationTemplateCommandInput | UploadLayerPartCommandInput | ValidatePullThroughCacheRuleCommandInput;
|
|
65
|
+
export type ServiceInputTypes = BatchCheckLayerAvailabilityCommandInput | BatchDeleteImageCommandInput | BatchGetImageCommandInput | BatchGetRepositoryScanningConfigurationCommandInput | CompleteLayerUploadCommandInput | CreatePullThroughCacheRuleCommandInput | CreateRepositoryCommandInput | CreateRepositoryCreationTemplateCommandInput | DeleteLifecyclePolicyCommandInput | DeletePullThroughCacheRuleCommandInput | DeleteRegistryPolicyCommandInput | DeleteRepositoryCommandInput | DeleteRepositoryCreationTemplateCommandInput | DeleteRepositoryPolicyCommandInput | DescribeImageReplicationStatusCommandInput | DescribeImageScanFindingsCommandInput | DescribeImagesCommandInput | DescribePullThroughCacheRulesCommandInput | DescribeRegistryCommandInput | DescribeRepositoriesCommandInput | DescribeRepositoryCreationTemplatesCommandInput | GetAccountSettingCommandInput | GetAuthorizationTokenCommandInput | GetDownloadUrlForLayerCommandInput | GetLifecyclePolicyCommandInput | GetLifecyclePolicyPreviewCommandInput | GetRegistryPolicyCommandInput | GetRegistryScanningConfigurationCommandInput | GetRepositoryPolicyCommandInput | InitiateLayerUploadCommandInput | ListImagesCommandInput | ListTagsForResourceCommandInput | PutAccountSettingCommandInput | PutImageCommandInput | PutImageScanningConfigurationCommandInput | PutImageTagMutabilityCommandInput | PutLifecyclePolicyCommandInput | PutRegistryPolicyCommandInput | PutRegistryScanningConfigurationCommandInput | PutReplicationConfigurationCommandInput | SetRepositoryPolicyCommandInput | StartImageScanCommandInput | StartLifecyclePolicyPreviewCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdatePullThroughCacheRuleCommandInput | UpdateRepositoryCreationTemplateCommandInput | UploadLayerPartCommandInput | ValidatePullThroughCacheRuleCommandInput;
|
|
64
66
|
/**
|
|
65
67
|
* @public
|
|
66
68
|
*/
|
|
67
|
-
export type ServiceOutputTypes = BatchCheckLayerAvailabilityCommandOutput | BatchDeleteImageCommandOutput | BatchGetImageCommandOutput | BatchGetRepositoryScanningConfigurationCommandOutput | CompleteLayerUploadCommandOutput | CreatePullThroughCacheRuleCommandOutput | CreateRepositoryCommandOutput | CreateRepositoryCreationTemplateCommandOutput | DeleteLifecyclePolicyCommandOutput | DeletePullThroughCacheRuleCommandOutput | DeleteRegistryPolicyCommandOutput | DeleteRepositoryCommandOutput | DeleteRepositoryCreationTemplateCommandOutput | DeleteRepositoryPolicyCommandOutput | DescribeImageReplicationStatusCommandOutput | DescribeImageScanFindingsCommandOutput | DescribeImagesCommandOutput | DescribePullThroughCacheRulesCommandOutput | DescribeRegistryCommandOutput | DescribeRepositoriesCommandOutput | DescribeRepositoryCreationTemplatesCommandOutput | GetAuthorizationTokenCommandOutput | GetDownloadUrlForLayerCommandOutput | GetLifecyclePolicyCommandOutput | GetLifecyclePolicyPreviewCommandOutput | GetRegistryPolicyCommandOutput | GetRegistryScanningConfigurationCommandOutput | GetRepositoryPolicyCommandOutput | InitiateLayerUploadCommandOutput | ListImagesCommandOutput | ListTagsForResourceCommandOutput | PutImageCommandOutput | PutImageScanningConfigurationCommandOutput | PutImageTagMutabilityCommandOutput | PutLifecyclePolicyCommandOutput | PutRegistryPolicyCommandOutput | PutRegistryScanningConfigurationCommandOutput | PutReplicationConfigurationCommandOutput | SetRepositoryPolicyCommandOutput | StartImageScanCommandOutput | StartLifecyclePolicyPreviewCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdatePullThroughCacheRuleCommandOutput | UpdateRepositoryCreationTemplateCommandOutput | UploadLayerPartCommandOutput | ValidatePullThroughCacheRuleCommandOutput;
|
|
69
|
+
export type ServiceOutputTypes = BatchCheckLayerAvailabilityCommandOutput | BatchDeleteImageCommandOutput | BatchGetImageCommandOutput | BatchGetRepositoryScanningConfigurationCommandOutput | CompleteLayerUploadCommandOutput | CreatePullThroughCacheRuleCommandOutput | CreateRepositoryCommandOutput | CreateRepositoryCreationTemplateCommandOutput | DeleteLifecyclePolicyCommandOutput | DeletePullThroughCacheRuleCommandOutput | DeleteRegistryPolicyCommandOutput | DeleteRepositoryCommandOutput | DeleteRepositoryCreationTemplateCommandOutput | DeleteRepositoryPolicyCommandOutput | DescribeImageReplicationStatusCommandOutput | DescribeImageScanFindingsCommandOutput | DescribeImagesCommandOutput | DescribePullThroughCacheRulesCommandOutput | DescribeRegistryCommandOutput | DescribeRepositoriesCommandOutput | DescribeRepositoryCreationTemplatesCommandOutput | GetAccountSettingCommandOutput | GetAuthorizationTokenCommandOutput | GetDownloadUrlForLayerCommandOutput | GetLifecyclePolicyCommandOutput | GetLifecyclePolicyPreviewCommandOutput | GetRegistryPolicyCommandOutput | GetRegistryScanningConfigurationCommandOutput | GetRepositoryPolicyCommandOutput | InitiateLayerUploadCommandOutput | ListImagesCommandOutput | ListTagsForResourceCommandOutput | PutAccountSettingCommandOutput | PutImageCommandOutput | PutImageScanningConfigurationCommandOutput | PutImageTagMutabilityCommandOutput | PutLifecyclePolicyCommandOutput | PutRegistryPolicyCommandOutput | PutRegistryScanningConfigurationCommandOutput | PutReplicationConfigurationCommandOutput | SetRepositoryPolicyCommandOutput | StartImageScanCommandOutput | StartLifecyclePolicyPreviewCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdatePullThroughCacheRuleCommandOutput | UpdateRepositoryCreationTemplateCommandOutput | UploadLayerPartCommandOutput | ValidatePullThroughCacheRuleCommandOutput;
|
|
68
70
|
/**
|
|
69
71
|
* @public
|
|
70
72
|
*/
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRClient";
|
|
4
|
+
import { GetAccountSettingRequest, GetAccountSettingResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetAccountSettingCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetAccountSettingCommandInput extends GetAccountSettingRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetAccountSettingCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetAccountSettingCommandOutput extends GetAccountSettingResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetAccountSettingCommand_base: {
|
|
25
|
+
new (input: GetAccountSettingCommandInput): import("@smithy/smithy-client").CommandImpl<GetAccountSettingCommandInput, GetAccountSettingCommandOutput, ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetAccountSettingCommandInput): import("@smithy/smithy-client").CommandImpl<GetAccountSettingCommandInput, GetAccountSettingCommandOutput, ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves the basic scan type version name.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ECRClient, GetAccountSettingCommand } from "@aws-sdk/client-ecr"; // ES Modules import
|
|
35
|
+
* // const { ECRClient, GetAccountSettingCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
|
|
36
|
+
* const client = new ECRClient(config);
|
|
37
|
+
* const input = { // GetAccountSettingRequest
|
|
38
|
+
* name: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetAccountSettingCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetAccountSettingResponse
|
|
43
|
+
* // name: "STRING_VALUE",
|
|
44
|
+
* // value: "STRING_VALUE",
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param GetAccountSettingCommandInput - {@link GetAccountSettingCommandInput}
|
|
50
|
+
* @returns {@link GetAccountSettingCommandOutput}
|
|
51
|
+
* @see {@link GetAccountSettingCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link GetAccountSettingCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
56
|
+
* <p>The specified parameter is invalid. Review the available parameters for the API
|
|
57
|
+
* request.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ServerException} (server fault)
|
|
60
|
+
* <p>These errors are usually caused by a server-side issue.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ValidationException} (client fault)
|
|
63
|
+
* <p>There was an exception validating this request.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ECRServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from ECR service.</p>
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
export declare class GetAccountSettingCommand extends GetAccountSettingCommand_base {
|
|
71
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRClient";
|
|
4
|
+
import { PutAccountSettingRequest, PutAccountSettingResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link PutAccountSettingCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface PutAccountSettingCommandInput extends PutAccountSettingRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link PutAccountSettingCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface PutAccountSettingCommandOutput extends PutAccountSettingResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const PutAccountSettingCommand_base: {
|
|
25
|
+
new (input: PutAccountSettingCommandInput): import("@smithy/smithy-client").CommandImpl<PutAccountSettingCommandInput, PutAccountSettingCommandOutput, ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: PutAccountSettingCommandInput): import("@smithy/smithy-client").CommandImpl<PutAccountSettingCommandInput, PutAccountSettingCommandOutput, ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Allows you to change the basic scan type version by setting the <code>name</code>
|
|
31
|
+
* parameter to either <code>CLAIR</code> to <code>AWS_NATIVE</code>.</p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { ECRClient, PutAccountSettingCommand } from "@aws-sdk/client-ecr"; // ES Modules import
|
|
36
|
+
* // const { ECRClient, PutAccountSettingCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
|
|
37
|
+
* const client = new ECRClient(config);
|
|
38
|
+
* const input = { // PutAccountSettingRequest
|
|
39
|
+
* name: "STRING_VALUE", // required
|
|
40
|
+
* value: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new PutAccountSettingCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // PutAccountSettingResponse
|
|
45
|
+
* // name: "STRING_VALUE",
|
|
46
|
+
* // value: "STRING_VALUE",
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param PutAccountSettingCommandInput - {@link PutAccountSettingCommandInput}
|
|
52
|
+
* @returns {@link PutAccountSettingCommandOutput}
|
|
53
|
+
* @see {@link PutAccountSettingCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link PutAccountSettingCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
58
|
+
* <p>The specified parameter is invalid. Review the available parameters for the API
|
|
59
|
+
* request.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
62
|
+
* <p>The operation did not succeed because it would have exceeded a service limit for your
|
|
63
|
+
* account. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/service-quotas.html">Amazon ECR service quotas</a> in
|
|
64
|
+
* the Amazon Elastic Container Registry User Guide.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ServerException} (server fault)
|
|
67
|
+
* <p>These errors are usually caused by a server-side issue.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ValidationException} (client fault)
|
|
70
|
+
* <p>There was an exception validating this request.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ECRServiceException}
|
|
73
|
+
* <p>Base exception class for all service exceptions from ECR service.</p>
|
|
74
|
+
*
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
export declare class PutAccountSettingCommand extends PutAccountSettingCommand_base {
|
|
78
|
+
}
|
|
@@ -19,6 +19,7 @@ export * from "./DescribePullThroughCacheRulesCommand";
|
|
|
19
19
|
export * from "./DescribeRegistryCommand";
|
|
20
20
|
export * from "./DescribeRepositoriesCommand";
|
|
21
21
|
export * from "./DescribeRepositoryCreationTemplatesCommand";
|
|
22
|
+
export * from "./GetAccountSettingCommand";
|
|
22
23
|
export * from "./GetAuthorizationTokenCommand";
|
|
23
24
|
export * from "./GetDownloadUrlForLayerCommand";
|
|
24
25
|
export * from "./GetLifecyclePolicyCommand";
|
|
@@ -29,6 +30,7 @@ export * from "./GetRepositoryPolicyCommand";
|
|
|
29
30
|
export * from "./InitiateLayerUploadCommand";
|
|
30
31
|
export * from "./ListImagesCommand";
|
|
31
32
|
export * from "./ListTagsForResourceCommand";
|
|
33
|
+
export * from "./PutAccountSettingCommand";
|
|
32
34
|
export * from "./PutImageCommand";
|
|
33
35
|
export * from "./PutImageScanningConfigurationCommand";
|
|
34
36
|
export * from "./PutImageTagMutabilityCommand";
|
|
@@ -1163,7 +1163,9 @@ export interface CreateRepositoryCreationTemplateRequest {
|
|
|
1163
1163
|
appliedFor: RCTAppliedFor[] | undefined;
|
|
1164
1164
|
/**
|
|
1165
1165
|
* <p>The ARN of the role to be assumed by Amazon ECR. This role must be in the same account as
|
|
1166
|
-
* the registry that you are configuring
|
|
1166
|
+
* the registry that you are configuring. Amazon ECR will assume your supplied role when
|
|
1167
|
+
* the customRoleArn is specified. When this field isn't specified, Amazon ECR will
|
|
1168
|
+
* use the service-linked role for the repository creation template.</p>
|
|
1167
1169
|
* @public
|
|
1168
1170
|
*/
|
|
1169
1171
|
customRoleArn?: string;
|
|
@@ -1224,7 +1226,9 @@ export interface RepositoryCreationTemplate {
|
|
|
1224
1226
|
*/
|
|
1225
1227
|
appliedFor?: RCTAppliedFor[];
|
|
1226
1228
|
/**
|
|
1227
|
-
* <p>The ARN of the role to be assumed by Amazon ECR
|
|
1229
|
+
* <p>The ARN of the role to be assumed by Amazon ECR. Amazon ECR will assume your supplied role when
|
|
1230
|
+
* the customRoleArn is specified. When this field isn't specified, Amazon ECR will
|
|
1231
|
+
* use the service-linked role for the repository creation template.</p>
|
|
1228
1232
|
* @public
|
|
1229
1233
|
*/
|
|
1230
1234
|
customRoleArn?: string;
|
|
@@ -2779,6 +2783,32 @@ export interface DescribeRepositoryCreationTemplatesResponse {
|
|
|
2779
2783
|
*/
|
|
2780
2784
|
nextToken?: string;
|
|
2781
2785
|
}
|
|
2786
|
+
/**
|
|
2787
|
+
* @public
|
|
2788
|
+
*/
|
|
2789
|
+
export interface GetAccountSettingRequest {
|
|
2790
|
+
/**
|
|
2791
|
+
* <p>Basic scan type version name. </p>
|
|
2792
|
+
* @public
|
|
2793
|
+
*/
|
|
2794
|
+
name: string | undefined;
|
|
2795
|
+
}
|
|
2796
|
+
/**
|
|
2797
|
+
* @public
|
|
2798
|
+
*/
|
|
2799
|
+
export interface GetAccountSettingResponse {
|
|
2800
|
+
/**
|
|
2801
|
+
* <p>Retrieves the basic scan type version name.</p>
|
|
2802
|
+
* @public
|
|
2803
|
+
*/
|
|
2804
|
+
name?: string;
|
|
2805
|
+
/**
|
|
2806
|
+
* <p>Retrieves the value that specifies what basic scan type is being used:
|
|
2807
|
+
* <code>AWS_NATIVE</code> or <code>CLAIR</code>.</p>
|
|
2808
|
+
* @public
|
|
2809
|
+
*/
|
|
2810
|
+
value?: string;
|
|
2811
|
+
}
|
|
2782
2812
|
/**
|
|
2783
2813
|
* @public
|
|
2784
2814
|
*/
|
|
@@ -3413,6 +3443,38 @@ export interface ListTagsForResourceResponse {
|
|
|
3413
3443
|
*/
|
|
3414
3444
|
tags?: Tag[];
|
|
3415
3445
|
}
|
|
3446
|
+
/**
|
|
3447
|
+
* @public
|
|
3448
|
+
*/
|
|
3449
|
+
export interface PutAccountSettingRequest {
|
|
3450
|
+
/**
|
|
3451
|
+
* <p>Basic scan type version name. </p>
|
|
3452
|
+
* @public
|
|
3453
|
+
*/
|
|
3454
|
+
name: string | undefined;
|
|
3455
|
+
/**
|
|
3456
|
+
* <p>Setting value that determines what basic scan type is being used:
|
|
3457
|
+
* <code>AWS_NATIVE</code> or <code>CLAIR</code>.</p>
|
|
3458
|
+
* @public
|
|
3459
|
+
*/
|
|
3460
|
+
value: string | undefined;
|
|
3461
|
+
}
|
|
3462
|
+
/**
|
|
3463
|
+
* @public
|
|
3464
|
+
*/
|
|
3465
|
+
export interface PutAccountSettingResponse {
|
|
3466
|
+
/**
|
|
3467
|
+
* <p>Retrieves the the basic scan type version name.</p>
|
|
3468
|
+
* @public
|
|
3469
|
+
*/
|
|
3470
|
+
name?: string;
|
|
3471
|
+
/**
|
|
3472
|
+
* <p>Retrieves the basic scan type value, either <code>AWS_NATIVE</code> or
|
|
3473
|
+
* <code>-</code>.</p>
|
|
3474
|
+
* @public
|
|
3475
|
+
*/
|
|
3476
|
+
value?: string;
|
|
3477
|
+
}
|
|
3416
3478
|
/**
|
|
3417
3479
|
* <p>The specified image has already been pushed, and there were no changes to the manifest
|
|
3418
3480
|
* or image tag after the last push.</p>
|
|
@@ -4052,7 +4114,9 @@ export interface UpdateRepositoryCreationTemplateRequest {
|
|
|
4052
4114
|
appliedFor?: RCTAppliedFor[];
|
|
4053
4115
|
/**
|
|
4054
4116
|
* <p>The ARN of the role to be assumed by Amazon ECR. This role must be in the same account as
|
|
4055
|
-
* the registry that you are configuring
|
|
4117
|
+
* the registry that you are configuring. Amazon ECR will assume your supplied role when
|
|
4118
|
+
* the customRoleArn is specified. When this field isn't specified, Amazon ECR will
|
|
4119
|
+
* use the service-linked role for the repository creation template.</p>
|
|
4056
4120
|
* @public
|
|
4057
4121
|
*/
|
|
4058
4122
|
customRoleArn?: string;
|
|
@@ -21,6 +21,7 @@ import { DescribePullThroughCacheRulesCommandInput, DescribePullThroughCacheRule
|
|
|
21
21
|
import { DescribeRegistryCommandInput, DescribeRegistryCommandOutput } from "../commands/DescribeRegistryCommand";
|
|
22
22
|
import { DescribeRepositoriesCommandInput, DescribeRepositoriesCommandOutput } from "../commands/DescribeRepositoriesCommand";
|
|
23
23
|
import { DescribeRepositoryCreationTemplatesCommandInput, DescribeRepositoryCreationTemplatesCommandOutput } from "../commands/DescribeRepositoryCreationTemplatesCommand";
|
|
24
|
+
import { GetAccountSettingCommandInput, GetAccountSettingCommandOutput } from "../commands/GetAccountSettingCommand";
|
|
24
25
|
import { GetAuthorizationTokenCommandInput, GetAuthorizationTokenCommandOutput } from "../commands/GetAuthorizationTokenCommand";
|
|
25
26
|
import { GetDownloadUrlForLayerCommandInput, GetDownloadUrlForLayerCommandOutput } from "../commands/GetDownloadUrlForLayerCommand";
|
|
26
27
|
import { GetLifecyclePolicyCommandInput, GetLifecyclePolicyCommandOutput } from "../commands/GetLifecyclePolicyCommand";
|
|
@@ -31,6 +32,7 @@ import { GetRepositoryPolicyCommandInput, GetRepositoryPolicyCommandOutput } fro
|
|
|
31
32
|
import { InitiateLayerUploadCommandInput, InitiateLayerUploadCommandOutput } from "../commands/InitiateLayerUploadCommand";
|
|
32
33
|
import { ListImagesCommandInput, ListImagesCommandOutput } from "../commands/ListImagesCommand";
|
|
33
34
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
35
|
+
import { PutAccountSettingCommandInput, PutAccountSettingCommandOutput } from "../commands/PutAccountSettingCommand";
|
|
34
36
|
import { PutImageCommandInput, PutImageCommandOutput } from "../commands/PutImageCommand";
|
|
35
37
|
import { PutImageScanningConfigurationCommandInput, PutImageScanningConfigurationCommandOutput } from "../commands/PutImageScanningConfigurationCommand";
|
|
36
38
|
import { PutImageTagMutabilityCommandInput, PutImageTagMutabilityCommandOutput } from "../commands/PutImageTagMutabilityCommand";
|
|
@@ -131,6 +133,10 @@ export declare const se_DescribeRepositoriesCommand: (input: DescribeRepositorie
|
|
|
131
133
|
* serializeAws_json1_1DescribeRepositoryCreationTemplatesCommand
|
|
132
134
|
*/
|
|
133
135
|
export declare const se_DescribeRepositoryCreationTemplatesCommand: (input: DescribeRepositoryCreationTemplatesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
136
|
+
/**
|
|
137
|
+
* serializeAws_json1_1GetAccountSettingCommand
|
|
138
|
+
*/
|
|
139
|
+
export declare const se_GetAccountSettingCommand: (input: GetAccountSettingCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
134
140
|
/**
|
|
135
141
|
* serializeAws_json1_1GetAuthorizationTokenCommand
|
|
136
142
|
*/
|
|
@@ -171,6 +177,10 @@ export declare const se_ListImagesCommand: (input: ListImagesCommandInput, conte
|
|
|
171
177
|
* serializeAws_json1_1ListTagsForResourceCommand
|
|
172
178
|
*/
|
|
173
179
|
export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
180
|
+
/**
|
|
181
|
+
* serializeAws_json1_1PutAccountSettingCommand
|
|
182
|
+
*/
|
|
183
|
+
export declare const se_PutAccountSettingCommand: (input: PutAccountSettingCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
174
184
|
/**
|
|
175
185
|
* serializeAws_json1_1PutImageCommand
|
|
176
186
|
*/
|
|
@@ -319,6 +329,10 @@ export declare const de_DescribeRepositoriesCommand: (output: __HttpResponse, co
|
|
|
319
329
|
* deserializeAws_json1_1DescribeRepositoryCreationTemplatesCommand
|
|
320
330
|
*/
|
|
321
331
|
export declare const de_DescribeRepositoryCreationTemplatesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeRepositoryCreationTemplatesCommandOutput>;
|
|
332
|
+
/**
|
|
333
|
+
* deserializeAws_json1_1GetAccountSettingCommand
|
|
334
|
+
*/
|
|
335
|
+
export declare const de_GetAccountSettingCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAccountSettingCommandOutput>;
|
|
322
336
|
/**
|
|
323
337
|
* deserializeAws_json1_1GetAuthorizationTokenCommand
|
|
324
338
|
*/
|
|
@@ -359,6 +373,10 @@ export declare const de_ListImagesCommand: (output: __HttpResponse, context: __S
|
|
|
359
373
|
* deserializeAws_json1_1ListTagsForResourceCommand
|
|
360
374
|
*/
|
|
361
375
|
export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
|
|
376
|
+
/**
|
|
377
|
+
* deserializeAws_json1_1PutAccountSettingCommand
|
|
378
|
+
*/
|
|
379
|
+
export declare const de_PutAccountSettingCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutAccountSettingCommandOutput>;
|
|
362
380
|
/**
|
|
363
381
|
* deserializeAws_json1_1PutImageCommand
|
|
364
382
|
*/
|
|
@@ -83,6 +83,10 @@ import {
|
|
|
83
83
|
DescribeRepositoryCreationTemplatesCommandInput,
|
|
84
84
|
DescribeRepositoryCreationTemplatesCommandOutput,
|
|
85
85
|
} from "./commands/DescribeRepositoryCreationTemplatesCommand";
|
|
86
|
+
import {
|
|
87
|
+
GetAccountSettingCommandInput,
|
|
88
|
+
GetAccountSettingCommandOutput,
|
|
89
|
+
} from "./commands/GetAccountSettingCommand";
|
|
86
90
|
import {
|
|
87
91
|
GetAuthorizationTokenCommandInput,
|
|
88
92
|
GetAuthorizationTokenCommandOutput,
|
|
@@ -123,6 +127,10 @@ import {
|
|
|
123
127
|
ListTagsForResourceCommandInput,
|
|
124
128
|
ListTagsForResourceCommandOutput,
|
|
125
129
|
} from "./commands/ListTagsForResourceCommand";
|
|
130
|
+
import {
|
|
131
|
+
PutAccountSettingCommandInput,
|
|
132
|
+
PutAccountSettingCommandOutput,
|
|
133
|
+
} from "./commands/PutAccountSettingCommand";
|
|
126
134
|
import {
|
|
127
135
|
PutImageCommandInput,
|
|
128
136
|
PutImageCommandOutput,
|
|
@@ -479,6 +487,19 @@ export interface ECR {
|
|
|
479
487
|
data?: DescribeRepositoryCreationTemplatesCommandOutput
|
|
480
488
|
) => void
|
|
481
489
|
): void;
|
|
490
|
+
getAccountSetting(
|
|
491
|
+
args: GetAccountSettingCommandInput,
|
|
492
|
+
options?: __HttpHandlerOptions
|
|
493
|
+
): Promise<GetAccountSettingCommandOutput>;
|
|
494
|
+
getAccountSetting(
|
|
495
|
+
args: GetAccountSettingCommandInput,
|
|
496
|
+
cb: (err: any, data?: GetAccountSettingCommandOutput) => void
|
|
497
|
+
): void;
|
|
498
|
+
getAccountSetting(
|
|
499
|
+
args: GetAccountSettingCommandInput,
|
|
500
|
+
options: __HttpHandlerOptions,
|
|
501
|
+
cb: (err: any, data?: GetAccountSettingCommandOutput) => void
|
|
502
|
+
): void;
|
|
482
503
|
getAuthorizationToken(): Promise<GetAuthorizationTokenCommandOutput>;
|
|
483
504
|
getAuthorizationToken(
|
|
484
505
|
args: GetAuthorizationTokenCommandInput,
|
|
@@ -612,6 +633,19 @@ export interface ECR {
|
|
|
612
633
|
options: __HttpHandlerOptions,
|
|
613
634
|
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
614
635
|
): void;
|
|
636
|
+
putAccountSetting(
|
|
637
|
+
args: PutAccountSettingCommandInput,
|
|
638
|
+
options?: __HttpHandlerOptions
|
|
639
|
+
): Promise<PutAccountSettingCommandOutput>;
|
|
640
|
+
putAccountSetting(
|
|
641
|
+
args: PutAccountSettingCommandInput,
|
|
642
|
+
cb: (err: any, data?: PutAccountSettingCommandOutput) => void
|
|
643
|
+
): void;
|
|
644
|
+
putAccountSetting(
|
|
645
|
+
args: PutAccountSettingCommandInput,
|
|
646
|
+
options: __HttpHandlerOptions,
|
|
647
|
+
cb: (err: any, data?: PutAccountSettingCommandOutput) => void
|
|
648
|
+
): void;
|
|
615
649
|
putImage(
|
|
616
650
|
args: PutImageCommandInput,
|
|
617
651
|
options?: __HttpHandlerOptions
|
|
@@ -129,6 +129,10 @@ import {
|
|
|
129
129
|
DescribeRepositoryCreationTemplatesCommandInput,
|
|
130
130
|
DescribeRepositoryCreationTemplatesCommandOutput,
|
|
131
131
|
} from "./commands/DescribeRepositoryCreationTemplatesCommand";
|
|
132
|
+
import {
|
|
133
|
+
GetAccountSettingCommandInput,
|
|
134
|
+
GetAccountSettingCommandOutput,
|
|
135
|
+
} from "./commands/GetAccountSettingCommand";
|
|
132
136
|
import {
|
|
133
137
|
GetAuthorizationTokenCommandInput,
|
|
134
138
|
GetAuthorizationTokenCommandOutput,
|
|
@@ -169,6 +173,10 @@ import {
|
|
|
169
173
|
ListTagsForResourceCommandInput,
|
|
170
174
|
ListTagsForResourceCommandOutput,
|
|
171
175
|
} from "./commands/ListTagsForResourceCommand";
|
|
176
|
+
import {
|
|
177
|
+
PutAccountSettingCommandInput,
|
|
178
|
+
PutAccountSettingCommandOutput,
|
|
179
|
+
} from "./commands/PutAccountSettingCommand";
|
|
172
180
|
import {
|
|
173
181
|
PutImageCommandInput,
|
|
174
182
|
PutImageCommandOutput,
|
|
@@ -262,6 +270,7 @@ export type ServiceInputTypes =
|
|
|
262
270
|
| DescribeRegistryCommandInput
|
|
263
271
|
| DescribeRepositoriesCommandInput
|
|
264
272
|
| DescribeRepositoryCreationTemplatesCommandInput
|
|
273
|
+
| GetAccountSettingCommandInput
|
|
265
274
|
| GetAuthorizationTokenCommandInput
|
|
266
275
|
| GetDownloadUrlForLayerCommandInput
|
|
267
276
|
| GetLifecyclePolicyCommandInput
|
|
@@ -272,6 +281,7 @@ export type ServiceInputTypes =
|
|
|
272
281
|
| InitiateLayerUploadCommandInput
|
|
273
282
|
| ListImagesCommandInput
|
|
274
283
|
| ListTagsForResourceCommandInput
|
|
284
|
+
| PutAccountSettingCommandInput
|
|
275
285
|
| PutImageCommandInput
|
|
276
286
|
| PutImageScanningConfigurationCommandInput
|
|
277
287
|
| PutImageTagMutabilityCommandInput
|
|
@@ -310,6 +320,7 @@ export type ServiceOutputTypes =
|
|
|
310
320
|
| DescribeRegistryCommandOutput
|
|
311
321
|
| DescribeRepositoriesCommandOutput
|
|
312
322
|
| DescribeRepositoryCreationTemplatesCommandOutput
|
|
323
|
+
| GetAccountSettingCommandOutput
|
|
313
324
|
| GetAuthorizationTokenCommandOutput
|
|
314
325
|
| GetDownloadUrlForLayerCommandOutput
|
|
315
326
|
| GetLifecyclePolicyCommandOutput
|
|
@@ -320,6 +331,7 @@ export type ServiceOutputTypes =
|
|
|
320
331
|
| InitiateLayerUploadCommandOutput
|
|
321
332
|
| ListImagesCommandOutput
|
|
322
333
|
| ListTagsForResourceCommandOutput
|
|
334
|
+
| PutAccountSettingCommandOutput
|
|
323
335
|
| PutImageCommandOutput
|
|
324
336
|
| PutImageScanningConfigurationCommandOutput
|
|
325
337
|
| PutImageTagMutabilityCommandOutput
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
ECRClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../ECRClient";
|
|
8
|
+
import {
|
|
9
|
+
GetAccountSettingRequest,
|
|
10
|
+
GetAccountSettingResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface GetAccountSettingCommandInput
|
|
15
|
+
extends GetAccountSettingRequest {}
|
|
16
|
+
export interface GetAccountSettingCommandOutput
|
|
17
|
+
extends GetAccountSettingResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const GetAccountSettingCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: GetAccountSettingCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
GetAccountSettingCommandInput,
|
|
24
|
+
GetAccountSettingCommandOutput,
|
|
25
|
+
ECRClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
__0_0: GetAccountSettingCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
GetAccountSettingCommandInput,
|
|
33
|
+
GetAccountSettingCommandOutput,
|
|
34
|
+
ECRClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class GetAccountSettingCommand extends GetAccountSettingCommand_base {}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
ECRClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../ECRClient";
|
|
8
|
+
import {
|
|
9
|
+
PutAccountSettingRequest,
|
|
10
|
+
PutAccountSettingResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface PutAccountSettingCommandInput
|
|
15
|
+
extends PutAccountSettingRequest {}
|
|
16
|
+
export interface PutAccountSettingCommandOutput
|
|
17
|
+
extends PutAccountSettingResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const PutAccountSettingCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: PutAccountSettingCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
PutAccountSettingCommandInput,
|
|
24
|
+
PutAccountSettingCommandOutput,
|
|
25
|
+
ECRClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
__0_0: PutAccountSettingCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
PutAccountSettingCommandInput,
|
|
33
|
+
PutAccountSettingCommandOutput,
|
|
34
|
+
ECRClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class PutAccountSettingCommand extends PutAccountSettingCommand_base {}
|
|
@@ -19,6 +19,7 @@ export * from "./DescribePullThroughCacheRulesCommand";
|
|
|
19
19
|
export * from "./DescribeRegistryCommand";
|
|
20
20
|
export * from "./DescribeRepositoriesCommand";
|
|
21
21
|
export * from "./DescribeRepositoryCreationTemplatesCommand";
|
|
22
|
+
export * from "./GetAccountSettingCommand";
|
|
22
23
|
export * from "./GetAuthorizationTokenCommand";
|
|
23
24
|
export * from "./GetDownloadUrlForLayerCommand";
|
|
24
25
|
export * from "./GetLifecyclePolicyCommand";
|
|
@@ -29,6 +30,7 @@ export * from "./GetRepositoryPolicyCommand";
|
|
|
29
30
|
export * from "./InitiateLayerUploadCommand";
|
|
30
31
|
export * from "./ListImagesCommand";
|
|
31
32
|
export * from "./ListTagsForResourceCommand";
|
|
33
|
+
export * from "./PutAccountSettingCommand";
|
|
32
34
|
export * from "./PutImageCommand";
|
|
33
35
|
export * from "./PutImageScanningConfigurationCommand";
|
|
34
36
|
export * from "./PutImageTagMutabilityCommand";
|
|
@@ -785,6 +785,13 @@ export interface DescribeRepositoryCreationTemplatesResponse {
|
|
|
785
785
|
repositoryCreationTemplates?: RepositoryCreationTemplate[];
|
|
786
786
|
nextToken?: string;
|
|
787
787
|
}
|
|
788
|
+
export interface GetAccountSettingRequest {
|
|
789
|
+
name: string | undefined;
|
|
790
|
+
}
|
|
791
|
+
export interface GetAccountSettingResponse {
|
|
792
|
+
name?: string;
|
|
793
|
+
value?: string;
|
|
794
|
+
}
|
|
788
795
|
export interface GetAuthorizationTokenRequest {
|
|
789
796
|
registryIds?: string[];
|
|
790
797
|
}
|
|
@@ -955,6 +962,14 @@ export interface ListTagsForResourceRequest {
|
|
|
955
962
|
export interface ListTagsForResourceResponse {
|
|
956
963
|
tags?: Tag[];
|
|
957
964
|
}
|
|
965
|
+
export interface PutAccountSettingRequest {
|
|
966
|
+
name: string | undefined;
|
|
967
|
+
value: string | undefined;
|
|
968
|
+
}
|
|
969
|
+
export interface PutAccountSettingResponse {
|
|
970
|
+
name?: string;
|
|
971
|
+
value?: string;
|
|
972
|
+
}
|
|
958
973
|
export declare class ImageAlreadyExistsException extends __BaseException {
|
|
959
974
|
readonly name: "ImageAlreadyExistsException";
|
|
960
975
|
readonly $fault: "client";
|
|
@@ -87,6 +87,10 @@ import {
|
|
|
87
87
|
DescribeRepositoryCreationTemplatesCommandInput,
|
|
88
88
|
DescribeRepositoryCreationTemplatesCommandOutput,
|
|
89
89
|
} from "../commands/DescribeRepositoryCreationTemplatesCommand";
|
|
90
|
+
import {
|
|
91
|
+
GetAccountSettingCommandInput,
|
|
92
|
+
GetAccountSettingCommandOutput,
|
|
93
|
+
} from "../commands/GetAccountSettingCommand";
|
|
90
94
|
import {
|
|
91
95
|
GetAuthorizationTokenCommandInput,
|
|
92
96
|
GetAuthorizationTokenCommandOutput,
|
|
@@ -127,6 +131,10 @@ import {
|
|
|
127
131
|
ListTagsForResourceCommandInput,
|
|
128
132
|
ListTagsForResourceCommandOutput,
|
|
129
133
|
} from "../commands/ListTagsForResourceCommand";
|
|
134
|
+
import {
|
|
135
|
+
PutAccountSettingCommandInput,
|
|
136
|
+
PutAccountSettingCommandOutput,
|
|
137
|
+
} from "../commands/PutAccountSettingCommand";
|
|
130
138
|
import {
|
|
131
139
|
PutImageCommandInput,
|
|
132
140
|
PutImageCommandOutput,
|
|
@@ -275,6 +283,10 @@ export declare const se_DescribeRepositoryCreationTemplatesCommand: (
|
|
|
275
283
|
input: DescribeRepositoryCreationTemplatesCommandInput,
|
|
276
284
|
context: __SerdeContext
|
|
277
285
|
) => Promise<__HttpRequest>;
|
|
286
|
+
export declare const se_GetAccountSettingCommand: (
|
|
287
|
+
input: GetAccountSettingCommandInput,
|
|
288
|
+
context: __SerdeContext
|
|
289
|
+
) => Promise<__HttpRequest>;
|
|
278
290
|
export declare const se_GetAuthorizationTokenCommand: (
|
|
279
291
|
input: GetAuthorizationTokenCommandInput,
|
|
280
292
|
context: __SerdeContext
|
|
@@ -315,6 +327,10 @@ export declare const se_ListTagsForResourceCommand: (
|
|
|
315
327
|
input: ListTagsForResourceCommandInput,
|
|
316
328
|
context: __SerdeContext
|
|
317
329
|
) => Promise<__HttpRequest>;
|
|
330
|
+
export declare const se_PutAccountSettingCommand: (
|
|
331
|
+
input: PutAccountSettingCommandInput,
|
|
332
|
+
context: __SerdeContext
|
|
333
|
+
) => Promise<__HttpRequest>;
|
|
318
334
|
export declare const se_PutImageCommand: (
|
|
319
335
|
input: PutImageCommandInput,
|
|
320
336
|
context: __SerdeContext
|
|
@@ -463,6 +479,10 @@ export declare const de_DescribeRepositoryCreationTemplatesCommand: (
|
|
|
463
479
|
output: __HttpResponse,
|
|
464
480
|
context: __SerdeContext
|
|
465
481
|
) => Promise<DescribeRepositoryCreationTemplatesCommandOutput>;
|
|
482
|
+
export declare const de_GetAccountSettingCommand: (
|
|
483
|
+
output: __HttpResponse,
|
|
484
|
+
context: __SerdeContext
|
|
485
|
+
) => Promise<GetAccountSettingCommandOutput>;
|
|
466
486
|
export declare const de_GetAuthorizationTokenCommand: (
|
|
467
487
|
output: __HttpResponse,
|
|
468
488
|
context: __SerdeContext
|
|
@@ -503,6 +523,10 @@ export declare const de_ListTagsForResourceCommand: (
|
|
|
503
523
|
output: __HttpResponse,
|
|
504
524
|
context: __SerdeContext
|
|
505
525
|
) => Promise<ListTagsForResourceCommandOutput>;
|
|
526
|
+
export declare const de_PutAccountSettingCommand: (
|
|
527
|
+
output: __HttpResponse,
|
|
528
|
+
context: __SerdeContext
|
|
529
|
+
) => Promise<PutAccountSettingCommandOutput>;
|
|
506
530
|
export declare const de_PutImageCommand: (
|
|
507
531
|
output: __HttpResponse,
|
|
508
532
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ecr",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.624.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ecr",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.624.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.624.0",
|
|
25
|
+
"@aws-sdk/core": "3.624.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.624.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.620.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.609.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.620.0",
|