@aws-sdk/client-ecr 3.620.0 → 3.620.1
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/dist-types/commands/CreateRepositoryCreationTemplateCommand.d.ts +55 -0
- package/dist-types/commands/DeleteRepositoryCreationTemplateCommand.d.ts +25 -0
- package/dist-types/commands/DescribeRepositoryCreationTemplatesCommand.d.ts +48 -0
- package/dist-types/commands/UpdateRepositoryCreationTemplateCommand.d.ts +46 -0
- package/package.json +5 -5
|
@@ -119,6 +119,61 @@ declare const CreateRepositoryCreationTemplateCommand_base: {
|
|
|
119
119
|
* <p>Base exception class for all service exceptions from ECR service.</p>
|
|
120
120
|
*
|
|
121
121
|
* @public
|
|
122
|
+
* @example Create a new repository creation template
|
|
123
|
+
* ```javascript
|
|
124
|
+
* // This example creates a repository creation template.
|
|
125
|
+
* const input = {
|
|
126
|
+
* "appliedFor": [
|
|
127
|
+
* "REPLICATION",
|
|
128
|
+
* "PULL_THROUGH_CACHE"
|
|
129
|
+
* ],
|
|
130
|
+
* "description": "Repos for testing images",
|
|
131
|
+
* "encryptionConfiguration": {
|
|
132
|
+
* "encryptionType": "AES256"
|
|
133
|
+
* },
|
|
134
|
+
* "imageTagMutability": "MUTABLE",
|
|
135
|
+
* "lifecyclePolicy": "{\r\n \"rules\": [\r\n {\r\n \"rulePriority\": 1,\r\n \"description\": \"Expire images older than 14 days\",\r\n \"selection\": {\r\n \"tagStatus\": \"untagged\",\r\n \"countType\": \"sinceImagePushed\",\r\n \"countUnit\": \"days\",\r\n \"countNumber\": 14\r\n },\r\n \"action\": {\r\n \"type\": \"expire\"\r\n }\r\n }\r\n ]\r\n}",
|
|
136
|
+
* "prefix": "eng/test",
|
|
137
|
+
* "repositoryPolicy": "{\r\n \"Version\": \"2012-10-17\",\r\n \"Statement\": [\r\n {\r\n \"Sid\": \"LambdaECRPullPolicy\",\r\n \"Effect\": \"Allow\",\r\n \"Principal\": {\r\n \"Service\": \"lambda.amazonaws.com\"\r\n },\r\n \"Action\": \"ecr:BatchGetImage\"\r\n }\r\n ]\r\n}",
|
|
138
|
+
* "resourceTags": [
|
|
139
|
+
* {
|
|
140
|
+
* "Key": "environment",
|
|
141
|
+
* "Value": "test"
|
|
142
|
+
* }
|
|
143
|
+
* ]
|
|
144
|
+
* };
|
|
145
|
+
* const command = new CreateRepositoryCreationTemplateCommand(input);
|
|
146
|
+
* const response = await client.send(command);
|
|
147
|
+
* /* response ==
|
|
148
|
+
* {
|
|
149
|
+
* "registryId": "012345678901",
|
|
150
|
+
* "repositoryCreationTemplate": {
|
|
151
|
+
* "appliedFor": [
|
|
152
|
+
* "REPLICATION",
|
|
153
|
+
* "PULL_THROUGH_CACHE"
|
|
154
|
+
* ],
|
|
155
|
+
* "createdAt": "2023-12-16T17:29:02-07:00",
|
|
156
|
+
* "description": "Repos for testing images",
|
|
157
|
+
* "encryptionConfiguration": {
|
|
158
|
+
* "encryptionType": "AES256"
|
|
159
|
+
* },
|
|
160
|
+
* "imageTagMutability": "MUTABLE",
|
|
161
|
+
* "lifecyclePolicy": "{\r\n \"rules\": [\r\n {\r\n \"rulePriority\": 1,\r\n \"description\": \"Expire images older than 14 days\",\r\n \"selection\": {\r\n \"tagStatus\": \"untagged\",\r\n \"countType\": \"sinceImagePushed\",\r\n \"countUnit\": \"days\",\r\n \"countNumber\": 14\r\n },\r\n \"action\": {\r\n \"type\": \"expire\"\r\n }\r\n }\r\n ]\r\n}",
|
|
162
|
+
* "prefix": "eng/test",
|
|
163
|
+
* "repositoryPolicy": "{\n \"Version\" : \"2012-10-17\",\n \"Statement\" : [ {\n \"Sid\" : \"LambdaECRPullPolicy\",\n \"Effect\" : \"Allow\",\n \"Principal\" : {\n \"Service\" : \"lambda.amazonaws.com\"\n },\n \"Action\" : \"ecr:BatchGetImage\"\n } ]\n}",
|
|
164
|
+
* "resourceTags": [
|
|
165
|
+
* {
|
|
166
|
+
* "Key": "environment",
|
|
167
|
+
* "Value": "test"
|
|
168
|
+
* }
|
|
169
|
+
* ],
|
|
170
|
+
* "updatedAt": "2023-12-16T17:29:02-07:00"
|
|
171
|
+
* }
|
|
172
|
+
* }
|
|
173
|
+
* *\/
|
|
174
|
+
* // example id: create-a-new-repository-creation-template-1713296923053
|
|
175
|
+
* ```
|
|
176
|
+
*
|
|
122
177
|
*/
|
|
123
178
|
export declare class CreateRepositoryCreationTemplateCommand extends CreateRepositoryCreationTemplateCommand_base {
|
|
124
179
|
}
|
|
@@ -92,6 +92,31 @@ declare const DeleteRepositoryCreationTemplateCommand_base: {
|
|
|
92
92
|
* <p>Base exception class for all service exceptions from ECR service.</p>
|
|
93
93
|
*
|
|
94
94
|
* @public
|
|
95
|
+
* @example Delete a repository creation template
|
|
96
|
+
* ```javascript
|
|
97
|
+
* // This example deletes a repository creation template.
|
|
98
|
+
* const input = {
|
|
99
|
+
* "prefix": "eng"
|
|
100
|
+
* };
|
|
101
|
+
* const command = new DeleteRepositoryCreationTemplateCommand(input);
|
|
102
|
+
* const response = await client.send(command);
|
|
103
|
+
* /* response ==
|
|
104
|
+
* {
|
|
105
|
+
* "registryId": "012345678901",
|
|
106
|
+
* "repositoryCreationTemplate": {
|
|
107
|
+
* "createdAt": "2023-12-03T16:27:57.933000-08:00",
|
|
108
|
+
* "encryptionConfiguration": {
|
|
109
|
+
* "encryptionType": "AES256"
|
|
110
|
+
* },
|
|
111
|
+
* "imageTagMutability": "MUTABLE",
|
|
112
|
+
* "prefix": "eng",
|
|
113
|
+
* "updatedAt": "2023-12-03T16:27:57.933000-08:00"
|
|
114
|
+
* }
|
|
115
|
+
* }
|
|
116
|
+
* *\/
|
|
117
|
+
* // example id: delete-a-repository-creation-template-1713298142230
|
|
118
|
+
* ```
|
|
119
|
+
*
|
|
95
120
|
*/
|
|
96
121
|
export declare class DeleteRepositoryCreationTemplateCommand extends DeleteRepositoryCreationTemplateCommand_base {
|
|
97
122
|
}
|
|
@@ -97,6 +97,54 @@ declare const DescribeRepositoryCreationTemplatesCommand_base: {
|
|
|
97
97
|
* <p>Base exception class for all service exceptions from ECR service.</p>
|
|
98
98
|
*
|
|
99
99
|
* @public
|
|
100
|
+
* @example Describe a repository creation template
|
|
101
|
+
* ```javascript
|
|
102
|
+
* // This example describes the contents of a repository creation template.
|
|
103
|
+
* const input = {
|
|
104
|
+
* "maxResults": 123,
|
|
105
|
+
* "nextToken": "",
|
|
106
|
+
* "prefixes": [
|
|
107
|
+
* "eng"
|
|
108
|
+
* ]
|
|
109
|
+
* };
|
|
110
|
+
* const command = new DescribeRepositoryCreationTemplatesCommand(input);
|
|
111
|
+
* const response = await client.send(command);
|
|
112
|
+
* /* response ==
|
|
113
|
+
* {
|
|
114
|
+
* "nextToken": "",
|
|
115
|
+
* "registryId": "012345678901",
|
|
116
|
+
* "repositoryCreationTemplates": [
|
|
117
|
+
* {
|
|
118
|
+
* "appliedFor": [
|
|
119
|
+
* "PULL_THROUGH_CACHE",
|
|
120
|
+
* "REPLICATION"
|
|
121
|
+
* ],
|
|
122
|
+
* "createdAt": "2023-12-16T17:29:02-07:00",
|
|
123
|
+
* "encryptionConfiguration": {
|
|
124
|
+
* "encryptionType": "AES256"
|
|
125
|
+
* },
|
|
126
|
+
* "imageTagMutability": "MUTABLE",
|
|
127
|
+
* "prefix": "eng/test",
|
|
128
|
+
* "updatedAt": "2023-12-16T19:55:02-07:00"
|
|
129
|
+
* },
|
|
130
|
+
* {
|
|
131
|
+
* "appliedFor": [
|
|
132
|
+
* "REPLICATION"
|
|
133
|
+
* ],
|
|
134
|
+
* "createdAt": "2023-12-14T17:29:02-07:00",
|
|
135
|
+
* "encryptionConfiguration": {
|
|
136
|
+
* "encryptionType": "AES256"
|
|
137
|
+
* },
|
|
138
|
+
* "imageTagMutability": "IMMUTABLE",
|
|
139
|
+
* "prefix": "eng/replication-test",
|
|
140
|
+
* "updatedAt": "2023-12-14T19:55:02-07:00"
|
|
141
|
+
* }
|
|
142
|
+
* ]
|
|
143
|
+
* }
|
|
144
|
+
* *\/
|
|
145
|
+
* // example id: describe-a-repository-creation-template-1713298784302
|
|
146
|
+
* ```
|
|
147
|
+
*
|
|
100
148
|
*/
|
|
101
149
|
export declare class DescribeRepositoryCreationTemplatesCommand extends DescribeRepositoryCreationTemplatesCommand_base {
|
|
102
150
|
}
|
|
@@ -110,6 +110,52 @@ declare const UpdateRepositoryCreationTemplateCommand_base: {
|
|
|
110
110
|
* <p>Base exception class for all service exceptions from ECR service.</p>
|
|
111
111
|
*
|
|
112
112
|
* @public
|
|
113
|
+
* @example Update a repository creation template
|
|
114
|
+
* ```javascript
|
|
115
|
+
* // This example updates a repository creation template.
|
|
116
|
+
* const input = {
|
|
117
|
+
* "appliedFor": [
|
|
118
|
+
* "REPLICATION"
|
|
119
|
+
* ],
|
|
120
|
+
* "prefix": "eng/test",
|
|
121
|
+
* "resourceTags": [
|
|
122
|
+
* {
|
|
123
|
+
* "Key": "environment",
|
|
124
|
+
* "Value": "test"
|
|
125
|
+
* }
|
|
126
|
+
* ]
|
|
127
|
+
* };
|
|
128
|
+
* const command = new UpdateRepositoryCreationTemplateCommand(input);
|
|
129
|
+
* const response = await client.send(command);
|
|
130
|
+
* /* response ==
|
|
131
|
+
* {
|
|
132
|
+
* "registryId": "012345678901",
|
|
133
|
+
* "repositoryCreationTemplate": {
|
|
134
|
+
* "appliedFor": [
|
|
135
|
+
* "REPLICATION"
|
|
136
|
+
* ],
|
|
137
|
+
* "createdAt": "2023-12-16T17:29:02-07:00",
|
|
138
|
+
* "description": "Repos for testing images",
|
|
139
|
+
* "encryptionConfiguration": {
|
|
140
|
+
* "encryptionType": "AES256"
|
|
141
|
+
* },
|
|
142
|
+
* "imageTagMutability": "MUTABLE",
|
|
143
|
+
* "lifecyclePolicy": "{\r\n \"rules\": [\r\n {\r\n \"rulePriority\": 1,\r\n \"description\": \"Expire images older than 14 days\",\r\n \"selection\": {\r\n \"tagStatus\": \"untagged\",\r\n \"countType\": \"sinceImagePushed\",\r\n \"countUnit\": \"days\",\r\n \"countNumber\": 14\r\n },\r\n \"action\": {\r\n \"type\": \"expire\"\r\n }\r\n }\r\n ]\r\n}",
|
|
144
|
+
* "prefix": "eng/test",
|
|
145
|
+
* "repositoryPolicy": "{\n \"Version\" : \"2012-10-17\",\n \"Statement\" : [ {\n \"Sid\" : \"LambdaECRPullPolicy\",\n \"Effect\" : \"Allow\",\n \"Principal\" : {\n \"Service\" : \"lambda.amazonaws.com\"\n },\n \"Action\" : \"ecr:BatchGetImage\"\n } ]\n}",
|
|
146
|
+
* "resourceTags": [
|
|
147
|
+
* {
|
|
148
|
+
* "Key": "environment",
|
|
149
|
+
* "Value": "test"
|
|
150
|
+
* }
|
|
151
|
+
* ],
|
|
152
|
+
* "updatedAt": "2023-12-16T19:55:02-07:00"
|
|
153
|
+
* }
|
|
154
|
+
* }
|
|
155
|
+
* *\/
|
|
156
|
+
* // example id: update-a-repository-creation-template-1713299261276
|
|
157
|
+
* ```
|
|
158
|
+
*
|
|
113
159
|
*/
|
|
114
160
|
export declare class UpdateRepositoryCreationTemplateCommand extends UpdateRepositoryCreationTemplateCommand_base {
|
|
115
161
|
}
|
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.620.
|
|
4
|
+
"version": "3.620.1",
|
|
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.620.
|
|
24
|
-
"@aws-sdk/client-sts": "3.620.
|
|
25
|
-
"@aws-sdk/core": "3.620.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.620.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.620.1",
|
|
24
|
+
"@aws-sdk/client-sts": "3.620.1",
|
|
25
|
+
"@aws-sdk/core": "3.620.1",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.620.1",
|
|
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",
|