import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { SwitchoverGlobalClusterMessage, SwitchoverGlobalClusterResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link SwitchoverGlobalClusterCommand}. */ export interface SwitchoverGlobalClusterCommandInput extends SwitchoverGlobalClusterMessage { } /** * @public * * The output of {@link SwitchoverGlobalClusterCommand}. */ export interface SwitchoverGlobalClusterCommandOutput extends SwitchoverGlobalClusterResult, __MetadataBearer { } declare const SwitchoverGlobalClusterCommand_base: { new (input: SwitchoverGlobalClusterCommandInput): import("@smithy/core/client").CommandImpl; new (input: SwitchoverGlobalClusterCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Switches over the specified secondary Amazon DocumentDB cluster to be the new primary Amazon DocumentDB cluster in the global database cluster.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DocDBClient, SwitchoverGlobalClusterCommand } from "@aws-sdk/client-docdb"; // ES Modules import * // const { DocDBClient, SwitchoverGlobalClusterCommand } = require("@aws-sdk/client-docdb"); // CommonJS import * // import type { DocDBClientConfig } from "@aws-sdk/client-docdb"; * const config = {}; // type is DocDBClientConfig * const client = new DocDBClient(config); * const input = { // SwitchoverGlobalClusterMessage * GlobalClusterIdentifier: "STRING_VALUE", // required * TargetDbClusterIdentifier: "STRING_VALUE", // required * }; * const command = new SwitchoverGlobalClusterCommand(input); * const response = await client.send(command); * // { // SwitchoverGlobalClusterResult * // GlobalCluster: { // GlobalCluster * // GlobalClusterIdentifier: "STRING_VALUE", * // GlobalClusterResourceId: "STRING_VALUE", * // GlobalClusterArn: "STRING_VALUE", * // Status: "STRING_VALUE", * // Engine: "STRING_VALUE", * // EngineVersion: "STRING_VALUE", * // DatabaseName: "STRING_VALUE", * // StorageEncrypted: true || false, * // DeletionProtection: true || false, * // GlobalClusterMembers: [ // GlobalClusterMemberList * // { // GlobalClusterMember * // DBClusterArn: "STRING_VALUE", * // Readers: [ // ReadersArnList * // "STRING_VALUE", * // ], * // IsWriter: true || false, * // SynchronizationStatus: "connected" || "pending-resync", * // }, * // ], * // FailoverState: { // FailoverState * // Status: "pending" || "failing-over" || "cancelling", * // FromDbClusterArn: "STRING_VALUE", * // ToDbClusterArn: "STRING_VALUE", * // IsDataLossAllowed: true || false, * // }, * // TagList: [ // TagList * // { // Tag * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // ], * // }, * // }; * * ``` * * @param SwitchoverGlobalClusterCommandInput - {@link SwitchoverGlobalClusterCommandInput} * @returns {@link SwitchoverGlobalClusterCommandOutput} * @see {@link SwitchoverGlobalClusterCommandInput} for command's `input` shape. * @see {@link SwitchoverGlobalClusterCommandOutput} for command's `response` shape. * @see {@link DocDBClientResolvedConfig | config} for DocDBClient's `config` shape. * * @throws {@link DBClusterNotFoundFault} (client fault) *

* DBClusterIdentifier doesn't refer to an existing cluster.

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

The GlobalClusterIdentifier doesn't refer to an existing global cluster.

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

The cluster isn't in a valid state.

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

The requested operation can't be performed while the cluster is in this state.

* * @throws {@link DocDBServiceException} *

Base exception class for all service exceptions from DocDB service.

* * * @public */ export declare class SwitchoverGlobalClusterCommand extends SwitchoverGlobalClusterCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: SwitchoverGlobalClusterMessage; output: SwitchoverGlobalClusterResult; }; sdk: { input: SwitchoverGlobalClusterCommandInput; output: SwitchoverGlobalClusterCommandOutput; }; }; }