import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CodeCommitClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeCommitClient"; import type { DeleteRepositoryInput, DeleteRepositoryOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteRepositoryCommand}. */ export interface DeleteRepositoryCommandInput extends DeleteRepositoryInput { } /** * @public * * The output of {@link DeleteRepositoryCommand}. */ export interface DeleteRepositoryCommandOutput extends DeleteRepositoryOutput, __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 a specified repository was already deleted, a null repository * ID is returned.

* *

Deleting a repository also deletes all associated objects and metadata. After a repository is * deleted, all future push calls to the deleted repository fail.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CodeCommitClient, DeleteRepositoryCommand } from "@aws-sdk/client-codecommit"; // ES Modules import * // const { CodeCommitClient, DeleteRepositoryCommand } = require("@aws-sdk/client-codecommit"); // CommonJS import * // import type { CodeCommitClientConfig } from "@aws-sdk/client-codecommit"; * const config = {}; // type is CodeCommitClientConfig * const client = new CodeCommitClient(config); * const input = { // DeleteRepositoryInput * repositoryName: "STRING_VALUE", // required * }; * const command = new DeleteRepositoryCommand(input); * const response = await client.send(command); * // { // DeleteRepositoryOutput * // repositoryId: "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 CodeCommitClientResolvedConfig | config} for CodeCommitClient's `config` shape. * * @throws {@link EncryptionIntegrityChecksFailedException} (server fault) *

An encryption integrity check failed.

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

An encryption key could not be accessed.

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

The encryption key is disabled.

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

No encryption key was found.

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

The encryption key is not available.

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

A specified repository name is not valid.

* *

This exception occurs only when a specified repository name is not valid. Other * exceptions occur when a required repository parameter is missing, or when a * specified repository does not exist.

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

A repository name is required, but was not specified.

* * @throws {@link CodeCommitServiceException} *

Base exception class for all service exceptions from CodeCommit service.

* * * @public */ export declare class DeleteRepositoryCommand extends DeleteRepositoryCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteRepositoryInput; output: DeleteRepositoryOutput; }; sdk: { input: DeleteRepositoryCommandInput; output: DeleteRepositoryCommandOutput; }; }; }