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 { UpdateRepositoryNameInput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateRepositoryNameCommand}. */ export interface UpdateRepositoryNameCommandInput extends UpdateRepositoryNameInput { } /** * @public * * The output of {@link UpdateRepositoryNameCommand}. */ export interface UpdateRepositoryNameCommandOutput extends __MetadataBearer { } declare const UpdateRepositoryNameCommand_base: { new (input: UpdateRepositoryNameCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: UpdateRepositoryNameCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Renames a repository. The repository name must be unique across the calling Amazon Web Services account. * Repository names are limited to 100 alphanumeric, dash, and underscore * characters, and cannot include certain characters. The suffix .git is prohibited. For * more information about the limits on repository names, see Quotas in the CodeCommit * User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CodeCommitClient, UpdateRepositoryNameCommand } from "@aws-sdk/client-codecommit"; // ES Modules import * // const { CodeCommitClient, UpdateRepositoryNameCommand } = 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 = { // UpdateRepositoryNameInput * oldName: "STRING_VALUE", // required * newName: "STRING_VALUE", // required * }; * const command = new UpdateRepositoryNameCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param UpdateRepositoryNameCommandInput - {@link UpdateRepositoryNameCommandInput} * @returns {@link UpdateRepositoryNameCommandOutput} * @see {@link UpdateRepositoryNameCommandInput} for command's `input` shape. * @see {@link UpdateRepositoryNameCommandOutput} for command's `response` shape. * @see {@link CodeCommitClientResolvedConfig | config} for CodeCommitClient's `config` shape. * * @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 RepositoryDoesNotExistException} (client fault) *

The specified repository does not exist.

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

The specified repository name already exists.

* * @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 UpdateRepositoryNameCommand extends UpdateRepositoryNameCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateRepositoryNameInput; output: {}; }; sdk: { input: UpdateRepositoryNameCommandInput; output: UpdateRepositoryNameCommandOutput; }; }; }