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 { CreateGlobalReplicationGroupMessage, CreateGlobalReplicationGroupResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateGlobalReplicationGroupCommand}. */ export interface CreateGlobalReplicationGroupCommandInput extends CreateGlobalReplicationGroupMessage { } /** * @public * * The output of {@link CreateGlobalReplicationGroupCommand}. */ export interface CreateGlobalReplicationGroupCommandOutput extends CreateGlobalReplicationGroupResult, __MetadataBearer { } declare const CreateGlobalReplicationGroupCommand_base: { new (input: CreateGlobalReplicationGroupCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateGlobalReplicationGroupCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Global Datastore offers fully managed, fast, reliable and secure * cross-region replication. Using Global Datastore with Valkey or Redis OSS, you can create cross-region * read replica clusters for ElastiCache to enable low-latency reads and disaster * recovery across regions. For more information, see Replication * Across Regions Using Global Datastore.

* * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ElastiCacheClient, CreateGlobalReplicationGroupCommand } from "@aws-sdk/client-elasticache"; // ES Modules import * // const { ElastiCacheClient, CreateGlobalReplicationGroupCommand } = 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 = { // CreateGlobalReplicationGroupMessage * GlobalReplicationGroupIdSuffix: "STRING_VALUE", // required * GlobalReplicationGroupDescription: "STRING_VALUE", * PrimaryReplicationGroupId: "STRING_VALUE", // required * }; * const command = new CreateGlobalReplicationGroupCommand(input); * const response = await client.send(command); * // { // CreateGlobalReplicationGroupResult * // 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 CreateGlobalReplicationGroupCommandInput - {@link CreateGlobalReplicationGroupCommandInput} * @returns {@link CreateGlobalReplicationGroupCommandOutput} * @see {@link CreateGlobalReplicationGroupCommandInput} for command's `input` shape. * @see {@link CreateGlobalReplicationGroupCommandOutput} for command's `response` shape. * @see {@link ElastiCacheClientResolvedConfig | config} for ElastiCacheClient's `config` shape. * * @throws {@link GlobalReplicationGroupAlreadyExistsFault} (client fault) *

The Global datastore name already exists.

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

The value for a parameter is invalid.

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

The requested replication group is not in the available state.

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

The specified replication group does not exist.

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

The specified service linked role (SLR) was not found.

* * @throws {@link ElastiCacheServiceException} *

Base exception class for all service exceptions from ElastiCache service.

* * * @public */ export declare class CreateGlobalReplicationGroupCommand extends CreateGlobalReplicationGroupCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateGlobalReplicationGroupMessage; output: CreateGlobalReplicationGroupResult; }; sdk: { input: CreateGlobalReplicationGroupCommandInput; output: CreateGlobalReplicationGroupCommandOutput; }; }; }