@aws-sdk/client-ecr 3.616.0 → 3.620.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 +32 -0
- package/dist-cjs/index.js +272 -0
- package/dist-es/ECR.js +8 -0
- package/dist-es/commands/CreateRepositoryCreationTemplateCommand.js +24 -0
- package/dist-es/commands/DeleteRepositoryCreationTemplateCommand.js +24 -0
- package/dist-es/commands/DescribeRepositoryCreationTemplatesCommand.js +24 -0
- package/dist-es/commands/UpdateRepositoryCreationTemplateCommand.js +24 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +28 -0
- package/dist-es/pagination/DescribeRepositoryCreationTemplatesPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +149 -1
- package/dist-types/ECR.d.ts +29 -0
- package/dist-types/ECRClient.d.ts +6 -2
- package/dist-types/commands/CreateRepositoryCreationTemplateCommand.d.ts +124 -0
- package/dist-types/commands/DeleteRepositoryCreationTemplateCommand.d.ts +97 -0
- package/dist-types/commands/DescribeRepositoryCreationTemplatesCommand.d.ts +102 -0
- package/dist-types/commands/PutReplicationConfigurationCommand.d.ts +2 -2
- package/dist-types/commands/UpdateRepositoryCreationTemplateCommand.d.ts +115 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +415 -11
- package/dist-types/pagination/DescribeRepositoryCreationTemplatesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +36 -0
- package/dist-types/ts3.4/ECR.d.ts +75 -0
- package/dist-types/ts3.4/ECRClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CreateRepositoryCreationTemplateCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/DeleteRepositoryCreationTemplateCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/DescribeRepositoryCreationTemplatesCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/UpdateRepositoryCreationTemplateCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +83 -0
- package/dist-types/ts3.4/pagination/DescribeRepositoryCreationTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +48 -0
- package/package.json +18 -18
|
@@ -0,0 +1,124 @@
|
|
|
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 { CreateRepositoryCreationTemplateRequest, CreateRepositoryCreationTemplateResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateRepositoryCreationTemplateCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateRepositoryCreationTemplateCommandInput extends CreateRepositoryCreationTemplateRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateRepositoryCreationTemplateCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateRepositoryCreationTemplateCommandOutput extends CreateRepositoryCreationTemplateResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateRepositoryCreationTemplateCommand_base: {
|
|
25
|
+
new (input: CreateRepositoryCreationTemplateCommandInput): import("@smithy/smithy-client").CommandImpl<CreateRepositoryCreationTemplateCommandInput, CreateRepositoryCreationTemplateCommandOutput, ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateRepositoryCreationTemplateCommandInput): import("@smithy/smithy-client").CommandImpl<CreateRepositoryCreationTemplateCommandInput, CreateRepositoryCreationTemplateCommandOutput, ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates a repository creation template. This template is used to define the settings
|
|
31
|
+
* for repositories created by Amazon ECR on your behalf. For example, repositories created
|
|
32
|
+
* through pull through cache actions. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-creation-templates.html">Private
|
|
33
|
+
* repository creation templates</a> in the
|
|
34
|
+
* <i>Amazon Elastic Container Registry User Guide</i>.</p>
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { ECRClient, CreateRepositoryCreationTemplateCommand } from "@aws-sdk/client-ecr"; // ES Modules import
|
|
39
|
+
* // const { ECRClient, CreateRepositoryCreationTemplateCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
|
|
40
|
+
* const client = new ECRClient(config);
|
|
41
|
+
* const input = { // CreateRepositoryCreationTemplateRequest
|
|
42
|
+
* prefix: "STRING_VALUE", // required
|
|
43
|
+
* description: "STRING_VALUE",
|
|
44
|
+
* encryptionConfiguration: { // EncryptionConfigurationForRepositoryCreationTemplate
|
|
45
|
+
* encryptionType: "AES256" || "KMS", // required
|
|
46
|
+
* kmsKey: "STRING_VALUE",
|
|
47
|
+
* },
|
|
48
|
+
* resourceTags: [ // TagList
|
|
49
|
+
* { // Tag
|
|
50
|
+
* Key: "STRING_VALUE", // required
|
|
51
|
+
* Value: "STRING_VALUE", // required
|
|
52
|
+
* },
|
|
53
|
+
* ],
|
|
54
|
+
* imageTagMutability: "MUTABLE" || "IMMUTABLE",
|
|
55
|
+
* repositoryPolicy: "STRING_VALUE",
|
|
56
|
+
* lifecyclePolicy: "STRING_VALUE",
|
|
57
|
+
* appliedFor: [ // RCTAppliedForList // required
|
|
58
|
+
* "REPLICATION" || "PULL_THROUGH_CACHE",
|
|
59
|
+
* ],
|
|
60
|
+
* customRoleArn: "STRING_VALUE",
|
|
61
|
+
* };
|
|
62
|
+
* const command = new CreateRepositoryCreationTemplateCommand(input);
|
|
63
|
+
* const response = await client.send(command);
|
|
64
|
+
* // { // CreateRepositoryCreationTemplateResponse
|
|
65
|
+
* // registryId: "STRING_VALUE",
|
|
66
|
+
* // repositoryCreationTemplate: { // RepositoryCreationTemplate
|
|
67
|
+
* // prefix: "STRING_VALUE",
|
|
68
|
+
* // description: "STRING_VALUE",
|
|
69
|
+
* // encryptionConfiguration: { // EncryptionConfigurationForRepositoryCreationTemplate
|
|
70
|
+
* // encryptionType: "AES256" || "KMS", // required
|
|
71
|
+
* // kmsKey: "STRING_VALUE",
|
|
72
|
+
* // },
|
|
73
|
+
* // resourceTags: [ // TagList
|
|
74
|
+
* // { // Tag
|
|
75
|
+
* // Key: "STRING_VALUE", // required
|
|
76
|
+
* // Value: "STRING_VALUE", // required
|
|
77
|
+
* // },
|
|
78
|
+
* // ],
|
|
79
|
+
* // imageTagMutability: "MUTABLE" || "IMMUTABLE",
|
|
80
|
+
* // repositoryPolicy: "STRING_VALUE",
|
|
81
|
+
* // lifecyclePolicy: "STRING_VALUE",
|
|
82
|
+
* // appliedFor: [ // RCTAppliedForList
|
|
83
|
+
* // "REPLICATION" || "PULL_THROUGH_CACHE",
|
|
84
|
+
* // ],
|
|
85
|
+
* // customRoleArn: "STRING_VALUE",
|
|
86
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
87
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
88
|
+
* // },
|
|
89
|
+
* // };
|
|
90
|
+
*
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
93
|
+
* @param CreateRepositoryCreationTemplateCommandInput - {@link CreateRepositoryCreationTemplateCommandInput}
|
|
94
|
+
* @returns {@link CreateRepositoryCreationTemplateCommandOutput}
|
|
95
|
+
* @see {@link CreateRepositoryCreationTemplateCommandInput} for command's `input` shape.
|
|
96
|
+
* @see {@link CreateRepositoryCreationTemplateCommandOutput} for command's `response` shape.
|
|
97
|
+
* @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape.
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
100
|
+
* <p>The specified parameter is invalid. Review the available parameters for the API
|
|
101
|
+
* request.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
104
|
+
* <p>The operation did not succeed because it would have exceeded a service limit for your
|
|
105
|
+
* account. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/service-quotas.html">Amazon ECR service quotas</a> in
|
|
106
|
+
* the Amazon Elastic Container Registry User Guide.</p>
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link ServerException} (server fault)
|
|
109
|
+
* <p>These errors are usually caused by a server-side issue.</p>
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link TemplateAlreadyExistsException} (client fault)
|
|
112
|
+
* <p>The repository creation template already exists. Specify a unique prefix and try
|
|
113
|
+
* again.</p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link ValidationException} (client fault)
|
|
116
|
+
* <p>There was an exception validating this request.</p>
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link ECRServiceException}
|
|
119
|
+
* <p>Base exception class for all service exceptions from ECR service.</p>
|
|
120
|
+
*
|
|
121
|
+
* @public
|
|
122
|
+
*/
|
|
123
|
+
export declare class CreateRepositoryCreationTemplateCommand extends CreateRepositoryCreationTemplateCommand_base {
|
|
124
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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 { DeleteRepositoryCreationTemplateRequest, DeleteRepositoryCreationTemplateResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteRepositoryCreationTemplateCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteRepositoryCreationTemplateCommandInput extends DeleteRepositoryCreationTemplateRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteRepositoryCreationTemplateCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteRepositoryCreationTemplateCommandOutput extends DeleteRepositoryCreationTemplateResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteRepositoryCreationTemplateCommand_base: {
|
|
25
|
+
new (input: DeleteRepositoryCreationTemplateCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteRepositoryCreationTemplateCommandInput, DeleteRepositoryCreationTemplateCommandOutput, ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DeleteRepositoryCreationTemplateCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteRepositoryCreationTemplateCommandInput, DeleteRepositoryCreationTemplateCommandOutput, ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Deletes a repository creation template.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ECRClient, DeleteRepositoryCreationTemplateCommand } from "@aws-sdk/client-ecr"; // ES Modules import
|
|
35
|
+
* // const { ECRClient, DeleteRepositoryCreationTemplateCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
|
|
36
|
+
* const client = new ECRClient(config);
|
|
37
|
+
* const input = { // DeleteRepositoryCreationTemplateRequest
|
|
38
|
+
* prefix: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new DeleteRepositoryCreationTemplateCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // DeleteRepositoryCreationTemplateResponse
|
|
43
|
+
* // registryId: "STRING_VALUE",
|
|
44
|
+
* // repositoryCreationTemplate: { // RepositoryCreationTemplate
|
|
45
|
+
* // prefix: "STRING_VALUE",
|
|
46
|
+
* // description: "STRING_VALUE",
|
|
47
|
+
* // encryptionConfiguration: { // EncryptionConfigurationForRepositoryCreationTemplate
|
|
48
|
+
* // encryptionType: "AES256" || "KMS", // required
|
|
49
|
+
* // kmsKey: "STRING_VALUE",
|
|
50
|
+
* // },
|
|
51
|
+
* // resourceTags: [ // TagList
|
|
52
|
+
* // { // Tag
|
|
53
|
+
* // Key: "STRING_VALUE", // required
|
|
54
|
+
* // Value: "STRING_VALUE", // required
|
|
55
|
+
* // },
|
|
56
|
+
* // ],
|
|
57
|
+
* // imageTagMutability: "MUTABLE" || "IMMUTABLE",
|
|
58
|
+
* // repositoryPolicy: "STRING_VALUE",
|
|
59
|
+
* // lifecyclePolicy: "STRING_VALUE",
|
|
60
|
+
* // appliedFor: [ // RCTAppliedForList
|
|
61
|
+
* // "REPLICATION" || "PULL_THROUGH_CACHE",
|
|
62
|
+
* // ],
|
|
63
|
+
* // customRoleArn: "STRING_VALUE",
|
|
64
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
65
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
66
|
+
* // },
|
|
67
|
+
* // };
|
|
68
|
+
*
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* @param DeleteRepositoryCreationTemplateCommandInput - {@link DeleteRepositoryCreationTemplateCommandInput}
|
|
72
|
+
* @returns {@link DeleteRepositoryCreationTemplateCommandOutput}
|
|
73
|
+
* @see {@link DeleteRepositoryCreationTemplateCommandInput} for command's `input` shape.
|
|
74
|
+
* @see {@link DeleteRepositoryCreationTemplateCommandOutput} for command's `response` shape.
|
|
75
|
+
* @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
78
|
+
* <p>The specified parameter is invalid. Review the available parameters for the API
|
|
79
|
+
* request.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ServerException} (server fault)
|
|
82
|
+
* <p>These errors are usually caused by a server-side issue.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link TemplateNotFoundException} (client fault)
|
|
85
|
+
* <p>The specified repository creation template can't be found. Verify the registry ID and
|
|
86
|
+
* prefix and try again.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ValidationException} (client fault)
|
|
89
|
+
* <p>There was an exception validating this request.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ECRServiceException}
|
|
92
|
+
* <p>Base exception class for all service exceptions from ECR service.</p>
|
|
93
|
+
*
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
export declare class DeleteRepositoryCreationTemplateCommand extends DeleteRepositoryCreationTemplateCommand_base {
|
|
97
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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 { DescribeRepositoryCreationTemplatesRequest, DescribeRepositoryCreationTemplatesResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DescribeRepositoryCreationTemplatesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DescribeRepositoryCreationTemplatesCommandInput extends DescribeRepositoryCreationTemplatesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DescribeRepositoryCreationTemplatesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DescribeRepositoryCreationTemplatesCommandOutput extends DescribeRepositoryCreationTemplatesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DescribeRepositoryCreationTemplatesCommand_base: {
|
|
25
|
+
new (input: DescribeRepositoryCreationTemplatesCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeRepositoryCreationTemplatesCommandInput, DescribeRepositoryCreationTemplatesCommandOutput, ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [DescribeRepositoryCreationTemplatesCommandInput]): import("@smithy/smithy-client").CommandImpl<DescribeRepositoryCreationTemplatesCommandInput, DescribeRepositoryCreationTemplatesCommandOutput, ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns details about the repository creation templates in a registry. The
|
|
31
|
+
* <code>prefixes</code> request parameter can be used to return the details for a
|
|
32
|
+
* specific repository creation template.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { ECRClient, DescribeRepositoryCreationTemplatesCommand } from "@aws-sdk/client-ecr"; // ES Modules import
|
|
37
|
+
* // const { ECRClient, DescribeRepositoryCreationTemplatesCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
|
|
38
|
+
* const client = new ECRClient(config);
|
|
39
|
+
* const input = { // DescribeRepositoryCreationTemplatesRequest
|
|
40
|
+
* prefixes: [ // PrefixList
|
|
41
|
+
* "STRING_VALUE",
|
|
42
|
+
* ],
|
|
43
|
+
* nextToken: "STRING_VALUE",
|
|
44
|
+
* maxResults: Number("int"),
|
|
45
|
+
* };
|
|
46
|
+
* const command = new DescribeRepositoryCreationTemplatesCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // DescribeRepositoryCreationTemplatesResponse
|
|
49
|
+
* // registryId: "STRING_VALUE",
|
|
50
|
+
* // repositoryCreationTemplates: [ // RepositoryCreationTemplateList
|
|
51
|
+
* // { // RepositoryCreationTemplate
|
|
52
|
+
* // prefix: "STRING_VALUE",
|
|
53
|
+
* // description: "STRING_VALUE",
|
|
54
|
+
* // encryptionConfiguration: { // EncryptionConfigurationForRepositoryCreationTemplate
|
|
55
|
+
* // encryptionType: "AES256" || "KMS", // required
|
|
56
|
+
* // kmsKey: "STRING_VALUE",
|
|
57
|
+
* // },
|
|
58
|
+
* // resourceTags: [ // TagList
|
|
59
|
+
* // { // Tag
|
|
60
|
+
* // Key: "STRING_VALUE", // required
|
|
61
|
+
* // Value: "STRING_VALUE", // required
|
|
62
|
+
* // },
|
|
63
|
+
* // ],
|
|
64
|
+
* // imageTagMutability: "MUTABLE" || "IMMUTABLE",
|
|
65
|
+
* // repositoryPolicy: "STRING_VALUE",
|
|
66
|
+
* // lifecyclePolicy: "STRING_VALUE",
|
|
67
|
+
* // appliedFor: [ // RCTAppliedForList
|
|
68
|
+
* // "REPLICATION" || "PULL_THROUGH_CACHE",
|
|
69
|
+
* // ],
|
|
70
|
+
* // customRoleArn: "STRING_VALUE",
|
|
71
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
72
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
73
|
+
* // },
|
|
74
|
+
* // ],
|
|
75
|
+
* // nextToken: "STRING_VALUE",
|
|
76
|
+
* // };
|
|
77
|
+
*
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* @param DescribeRepositoryCreationTemplatesCommandInput - {@link DescribeRepositoryCreationTemplatesCommandInput}
|
|
81
|
+
* @returns {@link DescribeRepositoryCreationTemplatesCommandOutput}
|
|
82
|
+
* @see {@link DescribeRepositoryCreationTemplatesCommandInput} for command's `input` shape.
|
|
83
|
+
* @see {@link DescribeRepositoryCreationTemplatesCommandOutput} for command's `response` shape.
|
|
84
|
+
* @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape.
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
87
|
+
* <p>The specified parameter is invalid. Review the available parameters for the API
|
|
88
|
+
* request.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ServerException} (server fault)
|
|
91
|
+
* <p>These errors are usually caused by a server-side issue.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link ValidationException} (client fault)
|
|
94
|
+
* <p>There was an exception validating this request.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link ECRServiceException}
|
|
97
|
+
* <p>Base exception class for all service exceptions from ECR service.</p>
|
|
98
|
+
*
|
|
99
|
+
* @public
|
|
100
|
+
*/
|
|
101
|
+
export declare class DescribeRepositoryCreationTemplatesCommand extends DescribeRepositoryCreationTemplatesCommand_base {
|
|
102
|
+
}
|
|
@@ -31,8 +31,8 @@ declare const PutReplicationConfigurationCommand_base: {
|
|
|
31
31
|
* replication configuration for a repository can be retrieved with the <a>DescribeRegistry</a> API action. The first time the
|
|
32
32
|
* PutReplicationConfiguration API is called, a service-linked IAM role is created in
|
|
33
33
|
* your account for the replication process. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/using-service-linked-roles.html">Using
|
|
34
|
-
* service-linked roles for Amazon ECR</a> in the
|
|
35
|
-
* <
|
|
34
|
+
* service-linked roles for Amazon ECR</a> in the <i>Amazon Elastic Container Registry User Guide</i>.
|
|
35
|
+
* For more information on the custom role for replication, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/replication-creation-templates.html#roles-creatingrole-user-console">Creating an IAM role for replication</a>.</p>
|
|
36
36
|
* <note>
|
|
37
37
|
* <p>When configuring cross-account replication, the destination account must grant the
|
|
38
38
|
* source account permission to replicate. This permission is controlled using a
|
|
@@ -0,0 +1,115 @@
|
|
|
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 { UpdateRepositoryCreationTemplateRequest, UpdateRepositoryCreationTemplateResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateRepositoryCreationTemplateCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateRepositoryCreationTemplateCommandInput extends UpdateRepositoryCreationTemplateRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateRepositoryCreationTemplateCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateRepositoryCreationTemplateCommandOutput extends UpdateRepositoryCreationTemplateResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateRepositoryCreationTemplateCommand_base: {
|
|
25
|
+
new (input: UpdateRepositoryCreationTemplateCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateRepositoryCreationTemplateCommandInput, UpdateRepositoryCreationTemplateCommandOutput, ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateRepositoryCreationTemplateCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateRepositoryCreationTemplateCommandInput, UpdateRepositoryCreationTemplateCommandOutput, ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Updates an existing repository creation template.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ECRClient, UpdateRepositoryCreationTemplateCommand } from "@aws-sdk/client-ecr"; // ES Modules import
|
|
35
|
+
* // const { ECRClient, UpdateRepositoryCreationTemplateCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
|
|
36
|
+
* const client = new ECRClient(config);
|
|
37
|
+
* const input = { // UpdateRepositoryCreationTemplateRequest
|
|
38
|
+
* prefix: "STRING_VALUE", // required
|
|
39
|
+
* description: "STRING_VALUE",
|
|
40
|
+
* encryptionConfiguration: { // EncryptionConfigurationForRepositoryCreationTemplate
|
|
41
|
+
* encryptionType: "AES256" || "KMS", // required
|
|
42
|
+
* kmsKey: "STRING_VALUE",
|
|
43
|
+
* },
|
|
44
|
+
* resourceTags: [ // TagList
|
|
45
|
+
* { // Tag
|
|
46
|
+
* Key: "STRING_VALUE", // required
|
|
47
|
+
* Value: "STRING_VALUE", // required
|
|
48
|
+
* },
|
|
49
|
+
* ],
|
|
50
|
+
* imageTagMutability: "MUTABLE" || "IMMUTABLE",
|
|
51
|
+
* repositoryPolicy: "STRING_VALUE",
|
|
52
|
+
* lifecyclePolicy: "STRING_VALUE",
|
|
53
|
+
* appliedFor: [ // RCTAppliedForList
|
|
54
|
+
* "REPLICATION" || "PULL_THROUGH_CACHE",
|
|
55
|
+
* ],
|
|
56
|
+
* customRoleArn: "STRING_VALUE",
|
|
57
|
+
* };
|
|
58
|
+
* const command = new UpdateRepositoryCreationTemplateCommand(input);
|
|
59
|
+
* const response = await client.send(command);
|
|
60
|
+
* // { // UpdateRepositoryCreationTemplateResponse
|
|
61
|
+
* // registryId: "STRING_VALUE",
|
|
62
|
+
* // repositoryCreationTemplate: { // RepositoryCreationTemplate
|
|
63
|
+
* // prefix: "STRING_VALUE",
|
|
64
|
+
* // description: "STRING_VALUE",
|
|
65
|
+
* // encryptionConfiguration: { // EncryptionConfigurationForRepositoryCreationTemplate
|
|
66
|
+
* // encryptionType: "AES256" || "KMS", // required
|
|
67
|
+
* // kmsKey: "STRING_VALUE",
|
|
68
|
+
* // },
|
|
69
|
+
* // resourceTags: [ // TagList
|
|
70
|
+
* // { // Tag
|
|
71
|
+
* // Key: "STRING_VALUE", // required
|
|
72
|
+
* // Value: "STRING_VALUE", // required
|
|
73
|
+
* // },
|
|
74
|
+
* // ],
|
|
75
|
+
* // imageTagMutability: "MUTABLE" || "IMMUTABLE",
|
|
76
|
+
* // repositoryPolicy: "STRING_VALUE",
|
|
77
|
+
* // lifecyclePolicy: "STRING_VALUE",
|
|
78
|
+
* // appliedFor: [ // RCTAppliedForList
|
|
79
|
+
* // "REPLICATION" || "PULL_THROUGH_CACHE",
|
|
80
|
+
* // ],
|
|
81
|
+
* // customRoleArn: "STRING_VALUE",
|
|
82
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
83
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
84
|
+
* // },
|
|
85
|
+
* // };
|
|
86
|
+
*
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* @param UpdateRepositoryCreationTemplateCommandInput - {@link UpdateRepositoryCreationTemplateCommandInput}
|
|
90
|
+
* @returns {@link UpdateRepositoryCreationTemplateCommandOutput}
|
|
91
|
+
* @see {@link UpdateRepositoryCreationTemplateCommandInput} for command's `input` shape.
|
|
92
|
+
* @see {@link UpdateRepositoryCreationTemplateCommandOutput} for command's `response` shape.
|
|
93
|
+
* @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape.
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
96
|
+
* <p>The specified parameter is invalid. Review the available parameters for the API
|
|
97
|
+
* request.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link ServerException} (server fault)
|
|
100
|
+
* <p>These errors are usually caused by a server-side issue.</p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link TemplateNotFoundException} (client fault)
|
|
103
|
+
* <p>The specified repository creation template can't be found. Verify the registry ID and
|
|
104
|
+
* prefix and try again.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ValidationException} (client fault)
|
|
107
|
+
* <p>There was an exception validating this request.</p>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link ECRServiceException}
|
|
110
|
+
* <p>Base exception class for all service exceptions from ECR service.</p>
|
|
111
|
+
*
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
export declare class UpdateRepositoryCreationTemplateCommand extends UpdateRepositoryCreationTemplateCommand_base {
|
|
115
|
+
}
|
|
@@ -5,10 +5,12 @@ export * from "./BatchGetRepositoryScanningConfigurationCommand";
|
|
|
5
5
|
export * from "./CompleteLayerUploadCommand";
|
|
6
6
|
export * from "./CreatePullThroughCacheRuleCommand";
|
|
7
7
|
export * from "./CreateRepositoryCommand";
|
|
8
|
+
export * from "./CreateRepositoryCreationTemplateCommand";
|
|
8
9
|
export * from "./DeleteLifecyclePolicyCommand";
|
|
9
10
|
export * from "./DeletePullThroughCacheRuleCommand";
|
|
10
11
|
export * from "./DeleteRegistryPolicyCommand";
|
|
11
12
|
export * from "./DeleteRepositoryCommand";
|
|
13
|
+
export * from "./DeleteRepositoryCreationTemplateCommand";
|
|
12
14
|
export * from "./DeleteRepositoryPolicyCommand";
|
|
13
15
|
export * from "./DescribeImageReplicationStatusCommand";
|
|
14
16
|
export * from "./DescribeImageScanFindingsCommand";
|
|
@@ -16,6 +18,7 @@ export * from "./DescribeImagesCommand";
|
|
|
16
18
|
export * from "./DescribePullThroughCacheRulesCommand";
|
|
17
19
|
export * from "./DescribeRegistryCommand";
|
|
18
20
|
export * from "./DescribeRepositoriesCommand";
|
|
21
|
+
export * from "./DescribeRepositoryCreationTemplatesCommand";
|
|
19
22
|
export * from "./GetAuthorizationTokenCommand";
|
|
20
23
|
export * from "./GetDownloadUrlForLayerCommand";
|
|
21
24
|
export * from "./GetLifecyclePolicyCommand";
|
|
@@ -39,5 +42,6 @@ export * from "./StartLifecyclePolicyPreviewCommand";
|
|
|
39
42
|
export * from "./TagResourceCommand";
|
|
40
43
|
export * from "./UntagResourceCommand";
|
|
41
44
|
export * from "./UpdatePullThroughCacheRuleCommand";
|
|
45
|
+
export * from "./UpdateRepositoryCreationTemplateCommand";
|
|
42
46
|
export * from "./UploadLayerPartCommand";
|
|
43
47
|
export * from "./ValidatePullThroughCacheRuleCommand";
|