import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ElastiCacheClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ElastiCacheClient"; import type { DeleteGlobalReplicationGroupMessage, DeleteGlobalReplicationGroupResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteGlobalReplicationGroupCommand}. */ export interface DeleteGlobalReplicationGroupCommandInput extends DeleteGlobalReplicationGroupMessage { } /** * @public * * The output of {@link DeleteGlobalReplicationGroupCommand}. */ export interface DeleteGlobalReplicationGroupCommandOutput extends DeleteGlobalReplicationGroupResult, __MetadataBearer { } declare const DeleteGlobalReplicationGroupCommand_base: { new (input: DeleteGlobalReplicationGroupCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteGlobalReplicationGroupCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Deleting a Global datastore is a two-step process:

* *

Since the Global Datastore has only a primary cluster, you can delete the Global * Datastore while retaining the primary by setting * RetainPrimaryReplicationGroup=true. The primary cluster is never * deleted when deleting a Global Datastore. It can only be deleted when it no longer is * associated with any Global Datastore.

*

When you receive a successful response from this operation, Amazon ElastiCache * immediately begins deleting the selected resources; you cannot cancel or revert this * operation.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ElastiCacheClient, DeleteGlobalReplicationGroupCommand } from "@aws-sdk/client-elasticache"; // ES Modules import * // const { ElastiCacheClient, DeleteGlobalReplicationGroupCommand } = require("@aws-sdk/client-elasticache"); // CommonJS import * // import type { ElastiCacheClientConfig } from "@aws-sdk/client-elasticache"; * const config = {}; // type is ElastiCacheClientConfig * const client = new ElastiCacheClient(config); * const input = { // DeleteGlobalReplicationGroupMessage * GlobalReplicationGroupId: "STRING_VALUE", // required * RetainPrimaryReplicationGroup: true || false, // required * }; * const command = new DeleteGlobalReplicationGroupCommand(input); * const response = await client.send(command); * // { // DeleteGlobalReplicationGroupResult * // GlobalReplicationGroup: { // GlobalReplicationGroup * // GlobalReplicationGroupId: "STRING_VALUE", * // GlobalReplicationGroupDescription: "STRING_VALUE", * // Status: "STRING_VALUE", * // CacheNodeType: "STRING_VALUE", * // Engine: "STRING_VALUE", * // EngineVersion: "STRING_VALUE", * // Members: [ // GlobalReplicationGroupMemberList * // { // GlobalReplicationGroupMember * // ReplicationGroupId: "STRING_VALUE", * // ReplicationGroupRegion: "STRING_VALUE", * // Role: "STRING_VALUE", * // AutomaticFailover: "enabled" || "disabled" || "enabling" || "disabling", * // Status: "STRING_VALUE", * // }, * // ], * // ClusterEnabled: true || false, * // GlobalNodeGroups: [ // GlobalNodeGroupList * // { // GlobalNodeGroup * // GlobalNodeGroupId: "STRING_VALUE", * // Slots: "STRING_VALUE", * // }, * // ], * // AuthTokenEnabled: true || false, * // TransitEncryptionEnabled: true || false, * // AtRestEncryptionEnabled: true || false, * // ARN: "STRING_VALUE", * // }, * // }; * * ``` * * @param DeleteGlobalReplicationGroupCommandInput - {@link DeleteGlobalReplicationGroupCommandInput} * @returns {@link DeleteGlobalReplicationGroupCommandOutput} * @see {@link DeleteGlobalReplicationGroupCommandInput} for command's `input` shape. * @see {@link DeleteGlobalReplicationGroupCommandOutput} for command's `response` shape. * @see {@link ElastiCacheClientResolvedConfig | config} for ElastiCacheClient's `config` shape. * * @throws {@link GlobalReplicationGroupNotFoundFault} (client fault) *

The Global datastore does not exist

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

The Global datastore is not available or in primary-only state.

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

The value for a parameter is invalid.

* * @throws {@link ElastiCacheServiceException} *

Base exception class for all service exceptions from ElastiCache service.

* * * @public */ export declare class DeleteGlobalReplicationGroupCommand extends DeleteGlobalReplicationGroupCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteGlobalReplicationGroupMessage; output: DeleteGlobalReplicationGroupResult; }; sdk: { input: DeleteGlobalReplicationGroupCommandInput; output: DeleteGlobalReplicationGroupCommandOutput; }; }; }