import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { RemoveFromGlobalClusterMessage, RemoveFromGlobalClusterResult } from "../models/models_1"; import type { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @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(): { [x: string]: unknown; }; }; /** *

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

This operation only applies to Aurora DB clusters.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RDSClient, RemoveFromGlobalClusterCommand } from "@aws-sdk/client-rds"; // ES Modules import * // const { RDSClient, RemoveFromGlobalClusterCommand } = require("@aws-sdk/client-rds"); // CommonJS import * // import type { RDSClientConfig } from "@aws-sdk/client-rds"; * const config = {}; // type is RDSClientConfig * const client = new RDSClient(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", * // EngineLifecycleSupport: "STRING_VALUE", * // DatabaseName: "STRING_VALUE", * // StorageEncrypted: true || false, * // StorageEncryptionType: "none" || "sse-kms" || "sse-rds", * // DeletionProtection: true || false, * // GlobalClusterMembers: [ // GlobalClusterMemberList * // { // GlobalClusterMember * // DBClusterArn: "STRING_VALUE", * // Readers: [ // ReadersArnList * // "STRING_VALUE", * // ], * // IsWriter: true || false, * // GlobalWriteForwardingStatus: "enabled" || "disabled" || "enabling" || "disabling" || "unknown", * // SynchronizationStatus: "connected" || "pending-resync", * // }, * // ], * // Endpoint: "STRING_VALUE", * // 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 RDSClientResolvedConfig | config} for RDSClient's `config` shape. * * @throws {@link DBClusterNotFoundFault} (client fault) *

DBClusterIdentifier doesn't refer to an existing DB cluster.

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

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

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

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

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

The global cluster is in an invalid state and can't perform the requested operation.

* * @throws {@link RDSServiceException} *

Base exception class for all service exceptions from RDS service.

* * * @example To detach an Aurora secondary cluster from an Aurora global database cluster * ```javascript * // The following example detaches an Aurora secondary cluster from an Aurora global database cluster. The cluster changes from being read-only to a standalone cluster with read-write capability. * const input = { * DbClusterIdentifier: "arn:aws:rds:us-west-2:123456789012:cluster:DB-1", * GlobalClusterIdentifier: "myglobalcluster" * }; * const command = new RemoveFromGlobalClusterCommand(input); * const response = await client.send(command); * /* response is * { * GlobalCluster: { * DeletionProtection: false, * Engine: "aurora-postgresql", * EngineVersion: "10.11", * GlobalClusterArn: "arn:aws:rds::123456789012:global-cluster:myglobalcluster", * GlobalClusterIdentifier: "myglobalcluster", * GlobalClusterMembers: [ * { * DBClusterArn: "arn:aws:rds:us-east-1:123456789012:cluster:js-global-cluster", * IsWriter: true, * Readers: [ * "arn:aws:rds:us-west-2:123456789012:cluster:DB-1" * ] * }, * { * DBClusterArn: "arn:aws:rds:us-west-2:123456789012:cluster:DB-1", * GlobalWriteForwardingStatus: "disabled", * IsWriter: false, * Readers: [] * } * ], * GlobalClusterResourceId: "cluster-abc123def456gh", * Status: "available", * StorageEncrypted: true * } * } * *\/ * ``` * * @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; }; }; }