Skip to content

Commit

Permalink
feat(client-ecr): API and documentation updates for Amazon ECR, addin…
Browse files Browse the repository at this point in the history
…g support for creating, updating, describing and deleting ECR Repository Creation Template.
  • Loading branch information
awstools committed Jul 25, 2024
1 parent ef30775 commit 83e5411
Show file tree
Hide file tree
Showing 14 changed files with 2,094 additions and 21 deletions.
32 changes: 32 additions & 0 deletions clients/client-ecr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,14 @@ CreateRepository

[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/)

</details>
<details>
<summary>
CreateRepositoryCreationTemplate
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -299,6 +307,14 @@ DeleteRepository

[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/)

</details>
<details>
<summary>
DeleteRepositoryCreationTemplate
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -355,6 +371,14 @@ DescribeRepositories

[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/)

</details>
<details>
<summary>
DescribeRepositoryCreationTemplates
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -539,6 +563,14 @@ UpdatePullThroughCacheRule

[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/)

</details>
<details>
<summary>
UpdateRepositoryCreationTemplate
</summary>

[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/)

</details>
<details>
<summary>
Expand Down
93 changes: 93 additions & 0 deletions clients/client-ecr/src/ECR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ import {
CreateRepositoryCommandInput,
CreateRepositoryCommandOutput,
} from "./commands/CreateRepositoryCommand";
import {
CreateRepositoryCreationTemplateCommand,
CreateRepositoryCreationTemplateCommandInput,
CreateRepositoryCreationTemplateCommandOutput,
} from "./commands/CreateRepositoryCreationTemplateCommand";
import {
DeleteLifecyclePolicyCommand,
DeleteLifecyclePolicyCommandInput,
Expand All @@ -57,6 +62,11 @@ import {
DeleteRepositoryCommandInput,
DeleteRepositoryCommandOutput,
} from "./commands/DeleteRepositoryCommand";
import {
DeleteRepositoryCreationTemplateCommand,
DeleteRepositoryCreationTemplateCommandInput,
DeleteRepositoryCreationTemplateCommandOutput,
} from "./commands/DeleteRepositoryCreationTemplateCommand";
import {
DeleteRepositoryPolicyCommand,
DeleteRepositoryPolicyCommandInput,
Expand Down Expand Up @@ -92,6 +102,11 @@ import {
DescribeRepositoriesCommandInput,
DescribeRepositoriesCommandOutput,
} from "./commands/DescribeRepositoriesCommand";
import {
DescribeRepositoryCreationTemplatesCommand,
DescribeRepositoryCreationTemplatesCommandInput,
DescribeRepositoryCreationTemplatesCommandOutput,
} from "./commands/DescribeRepositoryCreationTemplatesCommand";
import {
GetAuthorizationTokenCommand,
GetAuthorizationTokenCommandInput,
Expand Down Expand Up @@ -195,6 +210,11 @@ import {
UpdatePullThroughCacheRuleCommandInput,
UpdatePullThroughCacheRuleCommandOutput,
} from "./commands/UpdatePullThroughCacheRuleCommand";
import {
UpdateRepositoryCreationTemplateCommand,
UpdateRepositoryCreationTemplateCommandInput,
UpdateRepositoryCreationTemplateCommandOutput,
} from "./commands/UpdateRepositoryCreationTemplateCommand";
import {
UploadLayerPartCommand,
UploadLayerPartCommandInput,
Expand All @@ -215,17 +235,20 @@ const commands = {
CompleteLayerUploadCommand,
CreatePullThroughCacheRuleCommand,
CreateRepositoryCommand,
CreateRepositoryCreationTemplateCommand,
DeleteLifecyclePolicyCommand,
DeletePullThroughCacheRuleCommand,
DeleteRegistryPolicyCommand,
DeleteRepositoryCommand,
DeleteRepositoryCreationTemplateCommand,
DeleteRepositoryPolicyCommand,
DescribeImageReplicationStatusCommand,
DescribeImagesCommand,
DescribeImageScanFindingsCommand,
DescribePullThroughCacheRulesCommand,
DescribeRegistryCommand,
DescribeRepositoriesCommand,
DescribeRepositoryCreationTemplatesCommand,
GetAuthorizationTokenCommand,
GetDownloadUrlForLayerCommand,
GetLifecyclePolicyCommand,
Expand All @@ -249,6 +272,7 @@ const commands = {
TagResourceCommand,
UntagResourceCommand,
UpdatePullThroughCacheRuleCommand,
UpdateRepositoryCreationTemplateCommand,
UploadLayerPartCommand,
ValidatePullThroughCacheRuleCommand,
};
Expand Down Expand Up @@ -367,6 +391,23 @@ export interface ECR {
cb: (err: any, data?: CreateRepositoryCommandOutput) => void
): void;

/**
* @see {@link CreateRepositoryCreationTemplateCommand}
*/
createRepositoryCreationTemplate(
args: CreateRepositoryCreationTemplateCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateRepositoryCreationTemplateCommandOutput>;
createRepositoryCreationTemplate(
args: CreateRepositoryCreationTemplateCommandInput,
cb: (err: any, data?: CreateRepositoryCreationTemplateCommandOutput) => void
): void;
createRepositoryCreationTemplate(
args: CreateRepositoryCreationTemplateCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateRepositoryCreationTemplateCommandOutput) => void
): void;

/**
* @see {@link DeleteLifecyclePolicyCommand}
*/
Expand Down Expand Up @@ -436,6 +477,23 @@ export interface ECR {
cb: (err: any, data?: DeleteRepositoryCommandOutput) => void
): void;

/**
* @see {@link DeleteRepositoryCreationTemplateCommand}
*/
deleteRepositoryCreationTemplate(
args: DeleteRepositoryCreationTemplateCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteRepositoryCreationTemplateCommandOutput>;
deleteRepositoryCreationTemplate(
args: DeleteRepositoryCreationTemplateCommandInput,
cb: (err: any, data?: DeleteRepositoryCreationTemplateCommandOutput) => void
): void;
deleteRepositoryCreationTemplate(
args: DeleteRepositoryCreationTemplateCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteRepositoryCreationTemplateCommandOutput) => void
): void;

/**
* @see {@link DeleteRepositoryPolicyCommand}
*/
Expand Down Expand Up @@ -555,6 +613,24 @@ export interface ECR {
cb: (err: any, data?: DescribeRepositoriesCommandOutput) => void
): void;

/**
* @see {@link DescribeRepositoryCreationTemplatesCommand}
*/
describeRepositoryCreationTemplates(): Promise<DescribeRepositoryCreationTemplatesCommandOutput>;
describeRepositoryCreationTemplates(
args: DescribeRepositoryCreationTemplatesCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeRepositoryCreationTemplatesCommandOutput>;
describeRepositoryCreationTemplates(
args: DescribeRepositoryCreationTemplatesCommandInput,
cb: (err: any, data?: DescribeRepositoryCreationTemplatesCommandOutput) => void
): void;
describeRepositoryCreationTemplates(
args: DescribeRepositoryCreationTemplatesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeRepositoryCreationTemplatesCommandOutput) => void
): void;

/**
* @see {@link GetAuthorizationTokenCommand}
*/
Expand Down Expand Up @@ -923,6 +999,23 @@ export interface ECR {
cb: (err: any, data?: UpdatePullThroughCacheRuleCommandOutput) => void
): void;

/**
* @see {@link UpdateRepositoryCreationTemplateCommand}
*/
updateRepositoryCreationTemplate(
args: UpdateRepositoryCreationTemplateCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateRepositoryCreationTemplateCommandOutput>;
updateRepositoryCreationTemplate(
args: UpdateRepositoryCreationTemplateCommandInput,
cb: (err: any, data?: UpdateRepositoryCreationTemplateCommandOutput) => void
): void;
updateRepositoryCreationTemplate(
args: UpdateRepositoryCreationTemplateCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateRepositoryCreationTemplateCommandOutput) => void
): void;

/**
* @see {@link UploadLayerPartCommand}
*/
Expand Down
24 changes: 24 additions & 0 deletions clients/client-ecr/src/ECRClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ import {
CreatePullThroughCacheRuleCommandOutput,
} from "./commands/CreatePullThroughCacheRuleCommand";
import { CreateRepositoryCommandInput, CreateRepositoryCommandOutput } from "./commands/CreateRepositoryCommand";
import {
CreateRepositoryCreationTemplateCommandInput,
CreateRepositoryCreationTemplateCommandOutput,
} from "./commands/CreateRepositoryCreationTemplateCommand";
import {
DeleteLifecyclePolicyCommandInput,
DeleteLifecyclePolicyCommandOutput,
Expand All @@ -85,6 +89,10 @@ import {
DeleteRegistryPolicyCommandOutput,
} from "./commands/DeleteRegistryPolicyCommand";
import { DeleteRepositoryCommandInput, DeleteRepositoryCommandOutput } from "./commands/DeleteRepositoryCommand";
import {
DeleteRepositoryCreationTemplateCommandInput,
DeleteRepositoryCreationTemplateCommandOutput,
} from "./commands/DeleteRepositoryCreationTemplateCommand";
import {
DeleteRepositoryPolicyCommandInput,
DeleteRepositoryPolicyCommandOutput,
Expand All @@ -107,6 +115,10 @@ import {
DescribeRepositoriesCommandInput,
DescribeRepositoriesCommandOutput,
} from "./commands/DescribeRepositoriesCommand";
import {
DescribeRepositoryCreationTemplatesCommandInput,
DescribeRepositoryCreationTemplatesCommandOutput,
} from "./commands/DescribeRepositoryCreationTemplatesCommand";
import {
GetAuthorizationTokenCommandInput,
GetAuthorizationTokenCommandOutput,
Expand Down Expand Up @@ -172,6 +184,10 @@ import {
UpdatePullThroughCacheRuleCommandInput,
UpdatePullThroughCacheRuleCommandOutput,
} from "./commands/UpdatePullThroughCacheRuleCommand";
import {
UpdateRepositoryCreationTemplateCommandInput,
UpdateRepositoryCreationTemplateCommandOutput,
} from "./commands/UpdateRepositoryCreationTemplateCommand";
import { UploadLayerPartCommandInput, UploadLayerPartCommandOutput } from "./commands/UploadLayerPartCommand";
import {
ValidatePullThroughCacheRuleCommandInput,
Expand Down Expand Up @@ -199,17 +215,20 @@ export type ServiceInputTypes =
| CompleteLayerUploadCommandInput
| CreatePullThroughCacheRuleCommandInput
| CreateRepositoryCommandInput
| CreateRepositoryCreationTemplateCommandInput
| DeleteLifecyclePolicyCommandInput
| DeletePullThroughCacheRuleCommandInput
| DeleteRegistryPolicyCommandInput
| DeleteRepositoryCommandInput
| DeleteRepositoryCreationTemplateCommandInput
| DeleteRepositoryPolicyCommandInput
| DescribeImageReplicationStatusCommandInput
| DescribeImageScanFindingsCommandInput
| DescribeImagesCommandInput
| DescribePullThroughCacheRulesCommandInput
| DescribeRegistryCommandInput
| DescribeRepositoriesCommandInput
| DescribeRepositoryCreationTemplatesCommandInput
| GetAuthorizationTokenCommandInput
| GetDownloadUrlForLayerCommandInput
| GetLifecyclePolicyCommandInput
Expand All @@ -233,6 +252,7 @@ export type ServiceInputTypes =
| TagResourceCommandInput
| UntagResourceCommandInput
| UpdatePullThroughCacheRuleCommandInput
| UpdateRepositoryCreationTemplateCommandInput
| UploadLayerPartCommandInput
| ValidatePullThroughCacheRuleCommandInput;

Expand All @@ -247,17 +267,20 @@ export type ServiceOutputTypes =
| CompleteLayerUploadCommandOutput
| CreatePullThroughCacheRuleCommandOutput
| CreateRepositoryCommandOutput
| CreateRepositoryCreationTemplateCommandOutput
| DeleteLifecyclePolicyCommandOutput
| DeletePullThroughCacheRuleCommandOutput
| DeleteRegistryPolicyCommandOutput
| DeleteRepositoryCommandOutput
| DeleteRepositoryCreationTemplateCommandOutput
| DeleteRepositoryPolicyCommandOutput
| DescribeImageReplicationStatusCommandOutput
| DescribeImageScanFindingsCommandOutput
| DescribeImagesCommandOutput
| DescribePullThroughCacheRulesCommandOutput
| DescribeRegistryCommandOutput
| DescribeRepositoriesCommandOutput
| DescribeRepositoryCreationTemplatesCommandOutput
| GetAuthorizationTokenCommandOutput
| GetDownloadUrlForLayerCommandOutput
| GetLifecyclePolicyCommandOutput
Expand All @@ -281,6 +304,7 @@ export type ServiceOutputTypes =
| TagResourceCommandOutput
| UntagResourceCommandOutput
| UpdatePullThroughCacheRuleCommandOutput
| UpdateRepositoryCreationTemplateCommandOutput
| UploadLayerPartCommandOutput
| ValidatePullThroughCacheRuleCommandOutput;

Expand Down
Loading

0 comments on commit 83e5411

Please sign in to comment.