DeleteRepositoryCreationTemplateCommand

Deletes a repository creation template.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { ECRClient, DeleteRepositoryCreationTemplateCommand } from "@aws-sdk/client-ecr"; // ES Modules import
// const { ECRClient, DeleteRepositoryCreationTemplateCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
const client = new ECRClient(config);
const input = { // DeleteRepositoryCreationTemplateRequest
  prefix: "STRING_VALUE", // required
};
const command = new DeleteRepositoryCreationTemplateCommand(input);
const response = await client.send(command);
// { // DeleteRepositoryCreationTemplateResponse
//   registryId: "STRING_VALUE",
//   repositoryCreationTemplate: { // RepositoryCreationTemplate
//     prefix: "STRING_VALUE",
//     description: "STRING_VALUE",
//     encryptionConfiguration: { // EncryptionConfigurationForRepositoryCreationTemplate
//       encryptionType: "AES256" || "KMS" || "KMS_DSSE", // required
//       kmsKey: "STRING_VALUE",
//     },
//     resourceTags: [ // TagList
//       { // Tag
//         Key: "STRING_VALUE", // required
//         Value: "STRING_VALUE", // required
//       },
//     ],
//     imageTagMutability: "MUTABLE" || "IMMUTABLE",
//     repositoryPolicy: "STRING_VALUE",
//     lifecyclePolicy: "STRING_VALUE",
//     appliedFor: [ // RCTAppliedForList
//       "REPLICATION" || "PULL_THROUGH_CACHE",
//     ],
//     customRoleArn: "STRING_VALUE",
//     createdAt: new Date("TIMESTAMP"),
//     updatedAt: new Date("TIMESTAMP"),
//   },
// };

DeleteRepositoryCreationTemplateCommand Input

Parameter
Type
Description
prefix
Required
string | undefined

The repository namespace prefix associated with the repository creation template.

DeleteRepositoryCreationTemplateCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
registryId
string | undefined

The registry ID associated with the request.

repositoryCreationTemplate
RepositoryCreationTemplate | undefined

The details of the repository creation template that was deleted.

Throws

Name
Fault
Details
InvalidParameterException
client

The specified parameter is invalid. Review the available parameters for the API request.

ServerException
server

These errors are usually caused by a server-side issue.

TemplateNotFoundException
client

The specified repository creation template can't be found. Verify the registry ID and prefix and try again.

ValidationException
client

There was an exception validating this request.

ECRServiceException
Base exception class for all service exceptions from ECR service.