import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRClient"; import type { DeleteRepositoryRequest, DeleteRepositoryResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteRepositoryCommand}. */ export interface DeleteRepositoryCommandInput extends DeleteRepositoryRequest { } /** * @public * * The output of {@link DeleteRepositoryCommand}. */ export interface DeleteRepositoryCommandOutput extends DeleteRepositoryResponse, __MetadataBearer { } declare const DeleteRepositoryCommand_base: { new (input: DeleteRepositoryCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteRepositoryCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Deletes a repository. If the repository isn't empty, you must either delete the * contents of the repository or use the force option to delete the repository * and have Amazon ECR delete all of its contents on your behalf.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ECRClient, DeleteRepositoryCommand } from "@aws-sdk/client-ecr"; // ES Modules import * // const { ECRClient, DeleteRepositoryCommand } = require("@aws-sdk/client-ecr"); // CommonJS import * // import type { ECRClientConfig } from "@aws-sdk/client-ecr"; * const config = {}; // type is ECRClientConfig * const client = new ECRClient(config); * const input = { // DeleteRepositoryRequest * registryId: "STRING_VALUE", * repositoryName: "STRING_VALUE", // required * force: true || false, * }; * const command = new DeleteRepositoryCommand(input); * const response = await client.send(command); * // { // DeleteRepositoryResponse * // repository: { // Repository * // repositoryArn: "STRING_VALUE", * // registryId: "STRING_VALUE", * // repositoryName: "STRING_VALUE", * // repositoryUri: "STRING_VALUE", * // createdAt: new Date("TIMESTAMP"), * // imageTagMutability: "MUTABLE" || "IMMUTABLE" || "IMMUTABLE_WITH_EXCLUSION" || "MUTABLE_WITH_EXCLUSION", * // imageTagMutabilityExclusionFilters: [ // ImageTagMutabilityExclusionFilters * // { // ImageTagMutabilityExclusionFilter * // filterType: "WILDCARD", // required * // filter: "STRING_VALUE", // required * // }, * // ], * // imageScanningConfiguration: { // ImageScanningConfiguration * // scanOnPush: true || false, * // }, * // encryptionConfiguration: { // EncryptionConfiguration * // encryptionType: "AES256" || "KMS" || "KMS_DSSE", // required * // kmsKey: "STRING_VALUE", * // }, * // }, * // }; * * ``` * * @param DeleteRepositoryCommandInput - {@link DeleteRepositoryCommandInput} * @returns {@link DeleteRepositoryCommandOutput} * @see {@link DeleteRepositoryCommandInput} for command's `input` shape. * @see {@link DeleteRepositoryCommandOutput} for command's `response` shape. * @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape. * * @throws {@link InvalidParameterException} (client fault) *

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

* * @throws {@link KmsException} (client fault) *

The operation failed due to a KMS exception.

* * @throws {@link RepositoryNotEmptyException} (client fault) *

The specified repository contains images. To delete a repository that contains images, * you must force the deletion with the force parameter.

* * @throws {@link RepositoryNotFoundException} (client fault) *

The specified repository could not be found. Check the spelling of the specified * repository and ensure that you are performing operations on the correct registry.

* * @throws {@link ServerException} (server fault) *

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

* * @throws {@link ECRServiceException} *

Base exception class for all service exceptions from ECR service.

* * * @example To force delete a repository * ```javascript * // This example force deletes a repository named ubuntu in the default registry for an account. The force parameter is required if the repository contains images. * const input = { * force: true, * repositoryName: "ubuntu" * }; * const command = new DeleteRepositoryCommand(input); * const response = await client.send(command); * /* response is * { * repository: { * registryId: "012345678901", * repositoryArn: "arn:aws:ecr:us-west-2:012345678901:repository/ubuntu", * repositoryName: "ubuntu" * } * } * *\/ * ``` * * @public */ export declare class DeleteRepositoryCommand extends DeleteRepositoryCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteRepositoryRequest; output: DeleteRepositoryResponse; }; sdk: { input: DeleteRepositoryCommandInput; output: DeleteRepositoryCommandOutput; }; }; }