Skip to content

Commit 83e5411

Browse files
author
awstools
committed
feat(client-ecr): API and documentation updates for Amazon ECR, adding support for creating, updating, describing and deleting ECR Repository Creation Template.
1 parent ef30775 commit 83e5411

14 files changed

+2094
-21
lines changed

clients/client-ecr/README.md

+32
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,14 @@ CreateRepository
267267

268268
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecr/command/CreateRepositoryCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/CreateRepositoryCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/CreateRepositoryCommandOutput/)
269269

270+
</details>
271+
<details>
272+
<summary>
273+
CreateRepositoryCreationTemplate
274+
</summary>
275+
276+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecr/command/CreateRepositoryCreationTemplateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/CreateRepositoryCreationTemplateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/CreateRepositoryCreationTemplateCommandOutput/)
277+
270278
</details>
271279
<details>
272280
<summary>
@@ -299,6 +307,14 @@ DeleteRepository
299307

300308
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecr/command/DeleteRepositoryCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/DeleteRepositoryCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/DeleteRepositoryCommandOutput/)
301309

310+
</details>
311+
<details>
312+
<summary>
313+
DeleteRepositoryCreationTemplate
314+
</summary>
315+
316+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecr/command/DeleteRepositoryCreationTemplateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/DeleteRepositoryCreationTemplateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/DeleteRepositoryCreationTemplateCommandOutput/)
317+
302318
</details>
303319
<details>
304320
<summary>
@@ -355,6 +371,14 @@ DescribeRepositories
355371

356372
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecr/command/DescribeRepositoriesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/DescribeRepositoriesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/DescribeRepositoriesCommandOutput/)
357373

374+
</details>
375+
<details>
376+
<summary>
377+
DescribeRepositoryCreationTemplates
378+
</summary>
379+
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+
358382
</details>
359383
<details>
360384
<summary>
@@ -539,6 +563,14 @@ UpdatePullThroughCacheRule
539563

540564
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecr/command/UpdatePullThroughCacheRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/UpdatePullThroughCacheRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/UpdatePullThroughCacheRuleCommandOutput/)
541565

566+
</details>
567+
<details>
568+
<summary>
569+
UpdateRepositoryCreationTemplate
570+
</summary>
571+
572+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ecr/command/UpdateRepositoryCreationTemplateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/UpdateRepositoryCreationTemplateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ecr/Interface/UpdateRepositoryCreationTemplateCommandOutput/)
573+
542574
</details>
543575
<details>
544576
<summary>

clients/client-ecr/src/ECR.ts

+93
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ import {
3737
CreateRepositoryCommandInput,
3838
CreateRepositoryCommandOutput,
3939
} from "./commands/CreateRepositoryCommand";
40+
import {
41+
CreateRepositoryCreationTemplateCommand,
42+
CreateRepositoryCreationTemplateCommandInput,
43+
CreateRepositoryCreationTemplateCommandOutput,
44+
} from "./commands/CreateRepositoryCreationTemplateCommand";
4045
import {
4146
DeleteLifecyclePolicyCommand,
4247
DeleteLifecyclePolicyCommandInput,
@@ -57,6 +62,11 @@ import {
5762
DeleteRepositoryCommandInput,
5863
DeleteRepositoryCommandOutput,
5964
} from "./commands/DeleteRepositoryCommand";
65+
import {
66+
DeleteRepositoryCreationTemplateCommand,
67+
DeleteRepositoryCreationTemplateCommandInput,
68+
DeleteRepositoryCreationTemplateCommandOutput,
69+
} from "./commands/DeleteRepositoryCreationTemplateCommand";
6070
import {
6171
DeleteRepositoryPolicyCommand,
6272
DeleteRepositoryPolicyCommandInput,
@@ -92,6 +102,11 @@ import {
92102
DescribeRepositoriesCommandInput,
93103
DescribeRepositoriesCommandOutput,
94104
} from "./commands/DescribeRepositoriesCommand";
105+
import {
106+
DescribeRepositoryCreationTemplatesCommand,
107+
DescribeRepositoryCreationTemplatesCommandInput,
108+
DescribeRepositoryCreationTemplatesCommandOutput,
109+
} from "./commands/DescribeRepositoryCreationTemplatesCommand";
95110
import {
96111
GetAuthorizationTokenCommand,
97112
GetAuthorizationTokenCommandInput,
@@ -195,6 +210,11 @@ import {
195210
UpdatePullThroughCacheRuleCommandInput,
196211
UpdatePullThroughCacheRuleCommandOutput,
197212
} from "./commands/UpdatePullThroughCacheRuleCommand";
213+
import {
214+
UpdateRepositoryCreationTemplateCommand,
215+
UpdateRepositoryCreationTemplateCommandInput,
216+
UpdateRepositoryCreationTemplateCommandOutput,
217+
} from "./commands/UpdateRepositoryCreationTemplateCommand";
198218
import {
199219
UploadLayerPartCommand,
200220
UploadLayerPartCommandInput,
@@ -215,17 +235,20 @@ const commands = {
215235
CompleteLayerUploadCommand,
216236
CreatePullThroughCacheRuleCommand,
217237
CreateRepositoryCommand,
238+
CreateRepositoryCreationTemplateCommand,
218239
DeleteLifecyclePolicyCommand,
219240
DeletePullThroughCacheRuleCommand,
220241
DeleteRegistryPolicyCommand,
221242
DeleteRepositoryCommand,
243+
DeleteRepositoryCreationTemplateCommand,
222244
DeleteRepositoryPolicyCommand,
223245
DescribeImageReplicationStatusCommand,
224246
DescribeImagesCommand,
225247
DescribeImageScanFindingsCommand,
226248
DescribePullThroughCacheRulesCommand,
227249
DescribeRegistryCommand,
228250
DescribeRepositoriesCommand,
251+
DescribeRepositoryCreationTemplatesCommand,
229252
GetAuthorizationTokenCommand,
230253
GetDownloadUrlForLayerCommand,
231254
GetLifecyclePolicyCommand,
@@ -249,6 +272,7 @@ const commands = {
249272
TagResourceCommand,
250273
UntagResourceCommand,
251274
UpdatePullThroughCacheRuleCommand,
275+
UpdateRepositoryCreationTemplateCommand,
252276
UploadLayerPartCommand,
253277
ValidatePullThroughCacheRuleCommand,
254278
};
@@ -367,6 +391,23 @@ export interface ECR {
367391
cb: (err: any, data?: CreateRepositoryCommandOutput) => void
368392
): void;
369393

394+
/**
395+
* @see {@link CreateRepositoryCreationTemplateCommand}
396+
*/
397+
createRepositoryCreationTemplate(
398+
args: CreateRepositoryCreationTemplateCommandInput,
399+
options?: __HttpHandlerOptions
400+
): Promise<CreateRepositoryCreationTemplateCommandOutput>;
401+
createRepositoryCreationTemplate(
402+
args: CreateRepositoryCreationTemplateCommandInput,
403+
cb: (err: any, data?: CreateRepositoryCreationTemplateCommandOutput) => void
404+
): void;
405+
createRepositoryCreationTemplate(
406+
args: CreateRepositoryCreationTemplateCommandInput,
407+
options: __HttpHandlerOptions,
408+
cb: (err: any, data?: CreateRepositoryCreationTemplateCommandOutput) => void
409+
): void;
410+
370411
/**
371412
* @see {@link DeleteLifecyclePolicyCommand}
372413
*/
@@ -436,6 +477,23 @@ export interface ECR {
436477
cb: (err: any, data?: DeleteRepositoryCommandOutput) => void
437478
): void;
438479

480+
/**
481+
* @see {@link DeleteRepositoryCreationTemplateCommand}
482+
*/
483+
deleteRepositoryCreationTemplate(
484+
args: DeleteRepositoryCreationTemplateCommandInput,
485+
options?: __HttpHandlerOptions
486+
): Promise<DeleteRepositoryCreationTemplateCommandOutput>;
487+
deleteRepositoryCreationTemplate(
488+
args: DeleteRepositoryCreationTemplateCommandInput,
489+
cb: (err: any, data?: DeleteRepositoryCreationTemplateCommandOutput) => void
490+
): void;
491+
deleteRepositoryCreationTemplate(
492+
args: DeleteRepositoryCreationTemplateCommandInput,
493+
options: __HttpHandlerOptions,
494+
cb: (err: any, data?: DeleteRepositoryCreationTemplateCommandOutput) => void
495+
): void;
496+
439497
/**
440498
* @see {@link DeleteRepositoryPolicyCommand}
441499
*/
@@ -555,6 +613,24 @@ export interface ECR {
555613
cb: (err: any, data?: DescribeRepositoriesCommandOutput) => void
556614
): void;
557615

616+
/**
617+
* @see {@link DescribeRepositoryCreationTemplatesCommand}
618+
*/
619+
describeRepositoryCreationTemplates(): Promise<DescribeRepositoryCreationTemplatesCommandOutput>;
620+
describeRepositoryCreationTemplates(
621+
args: DescribeRepositoryCreationTemplatesCommandInput,
622+
options?: __HttpHandlerOptions
623+
): Promise<DescribeRepositoryCreationTemplatesCommandOutput>;
624+
describeRepositoryCreationTemplates(
625+
args: DescribeRepositoryCreationTemplatesCommandInput,
626+
cb: (err: any, data?: DescribeRepositoryCreationTemplatesCommandOutput) => void
627+
): void;
628+
describeRepositoryCreationTemplates(
629+
args: DescribeRepositoryCreationTemplatesCommandInput,
630+
options: __HttpHandlerOptions,
631+
cb: (err: any, data?: DescribeRepositoryCreationTemplatesCommandOutput) => void
632+
): void;
633+
558634
/**
559635
* @see {@link GetAuthorizationTokenCommand}
560636
*/
@@ -923,6 +999,23 @@ export interface ECR {
923999
cb: (err: any, data?: UpdatePullThroughCacheRuleCommandOutput) => void
9241000
): void;
9251001

1002+
/**
1003+
* @see {@link UpdateRepositoryCreationTemplateCommand}
1004+
*/
1005+
updateRepositoryCreationTemplate(
1006+
args: UpdateRepositoryCreationTemplateCommandInput,
1007+
options?: __HttpHandlerOptions
1008+
): Promise<UpdateRepositoryCreationTemplateCommandOutput>;
1009+
updateRepositoryCreationTemplate(
1010+
args: UpdateRepositoryCreationTemplateCommandInput,
1011+
cb: (err: any, data?: UpdateRepositoryCreationTemplateCommandOutput) => void
1012+
): void;
1013+
updateRepositoryCreationTemplate(
1014+
args: UpdateRepositoryCreationTemplateCommandInput,
1015+
options: __HttpHandlerOptions,
1016+
cb: (err: any, data?: UpdateRepositoryCreationTemplateCommandOutput) => void
1017+
): void;
1018+
9261019
/**
9271020
* @see {@link UploadLayerPartCommand}
9281021
*/

clients/client-ecr/src/ECRClient.ts

+24
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ import {
7272
CreatePullThroughCacheRuleCommandOutput,
7373
} from "./commands/CreatePullThroughCacheRuleCommand";
7474
import { CreateRepositoryCommandInput, CreateRepositoryCommandOutput } from "./commands/CreateRepositoryCommand";
75+
import {
76+
CreateRepositoryCreationTemplateCommandInput,
77+
CreateRepositoryCreationTemplateCommandOutput,
78+
} from "./commands/CreateRepositoryCreationTemplateCommand";
7579
import {
7680
DeleteLifecyclePolicyCommandInput,
7781
DeleteLifecyclePolicyCommandOutput,
@@ -85,6 +89,10 @@ import {
8589
DeleteRegistryPolicyCommandOutput,
8690
} from "./commands/DeleteRegistryPolicyCommand";
8791
import { DeleteRepositoryCommandInput, DeleteRepositoryCommandOutput } from "./commands/DeleteRepositoryCommand";
92+
import {
93+
DeleteRepositoryCreationTemplateCommandInput,
94+
DeleteRepositoryCreationTemplateCommandOutput,
95+
} from "./commands/DeleteRepositoryCreationTemplateCommand";
8896
import {
8997
DeleteRepositoryPolicyCommandInput,
9098
DeleteRepositoryPolicyCommandOutput,
@@ -107,6 +115,10 @@ import {
107115
DescribeRepositoriesCommandInput,
108116
DescribeRepositoriesCommandOutput,
109117
} from "./commands/DescribeRepositoriesCommand";
118+
import {
119+
DescribeRepositoryCreationTemplatesCommandInput,
120+
DescribeRepositoryCreationTemplatesCommandOutput,
121+
} from "./commands/DescribeRepositoryCreationTemplatesCommand";
110122
import {
111123
GetAuthorizationTokenCommandInput,
112124
GetAuthorizationTokenCommandOutput,
@@ -172,6 +184,10 @@ import {
172184
UpdatePullThroughCacheRuleCommandInput,
173185
UpdatePullThroughCacheRuleCommandOutput,
174186
} from "./commands/UpdatePullThroughCacheRuleCommand";
187+
import {
188+
UpdateRepositoryCreationTemplateCommandInput,
189+
UpdateRepositoryCreationTemplateCommandOutput,
190+
} from "./commands/UpdateRepositoryCreationTemplateCommand";
175191
import { UploadLayerPartCommandInput, UploadLayerPartCommandOutput } from "./commands/UploadLayerPartCommand";
176192
import {
177193
ValidatePullThroughCacheRuleCommandInput,
@@ -199,17 +215,20 @@ export type ServiceInputTypes =
199215
| CompleteLayerUploadCommandInput
200216
| CreatePullThroughCacheRuleCommandInput
201217
| CreateRepositoryCommandInput
218+
| CreateRepositoryCreationTemplateCommandInput
202219
| DeleteLifecyclePolicyCommandInput
203220
| DeletePullThroughCacheRuleCommandInput
204221
| DeleteRegistryPolicyCommandInput
205222
| DeleteRepositoryCommandInput
223+
| DeleteRepositoryCreationTemplateCommandInput
206224
| DeleteRepositoryPolicyCommandInput
207225
| DescribeImageReplicationStatusCommandInput
208226
| DescribeImageScanFindingsCommandInput
209227
| DescribeImagesCommandInput
210228
| DescribePullThroughCacheRulesCommandInput
211229
| DescribeRegistryCommandInput
212230
| DescribeRepositoriesCommandInput
231+
| DescribeRepositoryCreationTemplatesCommandInput
213232
| GetAuthorizationTokenCommandInput
214233
| GetDownloadUrlForLayerCommandInput
215234
| GetLifecyclePolicyCommandInput
@@ -233,6 +252,7 @@ export type ServiceInputTypes =
233252
| TagResourceCommandInput
234253
| UntagResourceCommandInput
235254
| UpdatePullThroughCacheRuleCommandInput
255+
| UpdateRepositoryCreationTemplateCommandInput
236256
| UploadLayerPartCommandInput
237257
| ValidatePullThroughCacheRuleCommandInput;
238258

@@ -247,17 +267,20 @@ export type ServiceOutputTypes =
247267
| CompleteLayerUploadCommandOutput
248268
| CreatePullThroughCacheRuleCommandOutput
249269
| CreateRepositoryCommandOutput
270+
| CreateRepositoryCreationTemplateCommandOutput
250271
| DeleteLifecyclePolicyCommandOutput
251272
| DeletePullThroughCacheRuleCommandOutput
252273
| DeleteRegistryPolicyCommandOutput
253274
| DeleteRepositoryCommandOutput
275+
| DeleteRepositoryCreationTemplateCommandOutput
254276
| DeleteRepositoryPolicyCommandOutput
255277
| DescribeImageReplicationStatusCommandOutput
256278
| DescribeImageScanFindingsCommandOutput
257279
| DescribeImagesCommandOutput
258280
| DescribePullThroughCacheRulesCommandOutput
259281
| DescribeRegistryCommandOutput
260282
| DescribeRepositoriesCommandOutput
283+
| DescribeRepositoryCreationTemplatesCommandOutput
261284
| GetAuthorizationTokenCommandOutput
262285
| GetDownloadUrlForLayerCommandOutput
263286
| GetLifecyclePolicyCommandOutput
@@ -281,6 +304,7 @@ export type ServiceOutputTypes =
281304
| TagResourceCommandOutput
282305
| UntagResourceCommandOutput
283306
| UpdatePullThroughCacheRuleCommandOutput
307+
| UpdateRepositoryCreationTemplateCommandOutput
284308
| UploadLayerPartCommandOutput
285309
| ValidatePullThroughCacheRuleCommandOutput;
286310

0 commit comments

Comments
 (0)