import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { PromoteRequest, PromoteResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link PromoteCommand}. */ export interface PromoteCommandInput extends PromoteRequest { } /** * @public * * The output of {@link PromoteCommand}. */ export interface PromoteCommandOutput extends PromoteResponse, __MetadataBearer { } declare const PromoteCommand_base: { new (input: PromoteCommandInput): import("@smithy/core/client").CommandImpl; new (input: PromoteCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Promotes a data replication replica broker to the primary broker role.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MqClient, PromoteCommand } from "@aws-sdk/client-mq"; // ES Modules import * // const { MqClient, PromoteCommand } = require("@aws-sdk/client-mq"); // CommonJS import * // import type { MqClientConfig } from "@aws-sdk/client-mq"; * const config = {}; // type is MqClientConfig * const client = new MqClient(config); * const input = { // PromoteRequest * BrokerId: "STRING_VALUE", // required * Mode: "SWITCHOVER" || "FAILOVER", // required * }; * const command = new PromoteCommand(input); * const response = await client.send(command); * // { // PromoteResponse * // BrokerId: "STRING_VALUE", * // }; * * ``` * * @param PromoteCommandInput - {@link PromoteCommandInput} * @returns {@link PromoteCommandOutput} * @see {@link PromoteCommandInput} for command's `input` shape. * @see {@link PromoteCommandOutput} for command's `response` shape. * @see {@link MqClientResolvedConfig | config} for MqClient's `config` shape. * * @throws {@link BadRequestException} (client fault) *

Returns information about an error.

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

Returns information about an error.

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

Returns information about an error.

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

Returns information about an error.

* * @throws {@link MqServiceException} *

Base exception class for all service exceptions from Mq service.

* * * @public */ export declare class PromoteCommand extends PromoteCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PromoteRequest; output: PromoteResponse; }; sdk: { input: PromoteCommandInput; output: PromoteCommandOutput; }; }; }