import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { RemoveFromGlobalClusterMessage, RemoveFromGlobalClusterResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link RemoveFromGlobalClusterCommand}. */ export interface RemoveFromGlobalClusterCommandInput extends RemoveFromGlobalClusterMessage { } /** * @public * * The output of {@link RemoveFromGlobalClusterCommand}. */ export interface RemoveFromGlobalClusterCommandOutput extends RemoveFromGlobalClusterResult, __MetadataBearer { } declare const RemoveFromGlobalClusterCommand_base: { new (input: RemoveFromGlobalClusterCommandInput): import("@smithy/core/client").CommandImpl; new (input: RemoveFromGlobalClusterCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Detaches an Amazon DocumentDB secondary cluster from a global cluster. The cluster becomes a standalone cluster with read-write capability instead of being read-only and receiving data from a primary in a different region.

* *

This action only applies to Amazon DocumentDB clusters.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DocDBClient, RemoveFromGlobalClusterCommand } from "@aws-sdk/client-docdb"; // ES Modules import * // const { DocDBClient, RemoveFromGlobalClusterCommand } = 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 = { // RemoveFromGlobalClusterMessage * GlobalClusterIdentifier: "STRING_VALUE", // required * DbClusterIdentifier: "STRING_VALUE", // required * }; * const command = new RemoveFromGlobalClusterCommand(input); * const response = await client.send(command); * // { // RemoveFromGlobalClusterResult * // 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 RemoveFromGlobalClusterCommandInput - {@link RemoveFromGlobalClusterCommandInput} * @returns {@link RemoveFromGlobalClusterCommandOutput} * @see {@link RemoveFromGlobalClusterCommandInput} for command's `input` shape. * @see {@link RemoveFromGlobalClusterCommandOutput} 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 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 RemoveFromGlobalClusterCommand extends RemoveFromGlobalClusterCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: RemoveFromGlobalClusterMessage; output: RemoveFromGlobalClusterResult; }; sdk: { input: RemoveFromGlobalClusterCommandInput; output: RemoveFromGlobalClusterCommandOutput; }; }; }