libZSservicesZSamazonka-docdbZSamazonka-docdb
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.DocumentDB.CreateGlobalCluster

Description

Creates an Amazon DocumentDB global cluster that can span multiple multiple Regions. The global cluster contains one primary cluster with read-write capability, and up-to give read-only secondary clusters. Global clusters uses storage-based fast replication across regions with latencies less than one second, using dedicated infrastructure with no impact to your workload’s performance.

You can create a global cluster that is initially empty, and then add a primary and a secondary to it. Or you can specify an existing cluster during the create operation, and this cluster becomes the primary of the global cluster.

This action only applies to Amazon DocumentDB clusters.

Synopsis

Creating a Request

data CreateGlobalCluster Source #

Represents the input to CreateGlobalCluster.

See: newCreateGlobalCluster smart constructor.

Constructors

CreateGlobalCluster' 

Fields

Instances

Instances details
Eq CreateGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateGlobalCluster

Read CreateGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateGlobalCluster

Show CreateGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateGlobalCluster

Generic CreateGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateGlobalCluster

Associated Types

type Rep CreateGlobalCluster :: Type -> Type #

NFData CreateGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateGlobalCluster

Methods

rnf :: CreateGlobalCluster -> () #

Hashable CreateGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateGlobalCluster

AWSRequest CreateGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateGlobalCluster

Associated Types

type AWSResponse CreateGlobalCluster #

ToHeaders CreateGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateGlobalCluster

ToPath CreateGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateGlobalCluster

ToQuery CreateGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateGlobalCluster

type Rep CreateGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateGlobalCluster

type Rep CreateGlobalCluster = D1 ('MetaData "CreateGlobalCluster" "Amazonka.DocumentDB.CreateGlobalCluster" "libZSservicesZSamazonka-docdbZSamazonka-docdb" 'False) (C1 ('MetaCons "CreateGlobalCluster'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "engineVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "deletionProtection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "storageEncrypted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "sourceDBClusterIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "engine") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "databaseName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "globalClusterIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CreateGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateGlobalCluster

newCreateGlobalCluster Source #

Create a value of CreateGlobalCluster with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:engineVersion:CreateGlobalCluster', createGlobalCluster_engineVersion - The engine version of the global cluster.

$sel:deletionProtection:CreateGlobalCluster', createGlobalCluster_deletionProtection - The deletion protection setting for the new global cluster. The global cluster can't be deleted when deletion protection is enabled.

$sel:storageEncrypted:CreateGlobalCluster', createGlobalCluster_storageEncrypted - The storage encryption setting for the new global cluster.

$sel:sourceDBClusterIdentifier:CreateGlobalCluster', createGlobalCluster_sourceDBClusterIdentifier - The Amazon Resource Name (ARN) to use as the primary cluster of the global cluster. This parameter is optional.

$sel:engine:CreateGlobalCluster', createGlobalCluster_engine - The name of the database engine to be used for this cluster.

$sel:databaseName:CreateGlobalCluster', createGlobalCluster_databaseName - The name for your database of up to 64 alpha-numeric characters. If you do not provide a name, Amazon DocumentDB will not create a database in the global cluster you are creating.

$sel:globalClusterIdentifier:CreateGlobalCluster', createGlobalCluster_globalClusterIdentifier - The cluster identifier of the new global cluster.

Request Lenses

createGlobalCluster_engineVersion :: Lens' CreateGlobalCluster (Maybe Text) Source #

The engine version of the global cluster.

createGlobalCluster_deletionProtection :: Lens' CreateGlobalCluster (Maybe Bool) Source #

The deletion protection setting for the new global cluster. The global cluster can't be deleted when deletion protection is enabled.

createGlobalCluster_storageEncrypted :: Lens' CreateGlobalCluster (Maybe Bool) Source #

The storage encryption setting for the new global cluster.

createGlobalCluster_sourceDBClusterIdentifier :: Lens' CreateGlobalCluster (Maybe Text) Source #

The Amazon Resource Name (ARN) to use as the primary cluster of the global cluster. This parameter is optional.

createGlobalCluster_engine :: Lens' CreateGlobalCluster (Maybe Text) Source #

The name of the database engine to be used for this cluster.

createGlobalCluster_databaseName :: Lens' CreateGlobalCluster (Maybe Text) Source #

The name for your database of up to 64 alpha-numeric characters. If you do not provide a name, Amazon DocumentDB will not create a database in the global cluster you are creating.

createGlobalCluster_globalClusterIdentifier :: Lens' CreateGlobalCluster Text Source #

The cluster identifier of the new global cluster.

Destructuring the Response

data CreateGlobalClusterResponse Source #

See: newCreateGlobalClusterResponse smart constructor.

Constructors

CreateGlobalClusterResponse' 

Fields

Instances

Instances details
Eq CreateGlobalClusterResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateGlobalCluster

Read CreateGlobalClusterResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateGlobalCluster

Show CreateGlobalClusterResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateGlobalCluster

Generic CreateGlobalClusterResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateGlobalCluster

Associated Types

type Rep CreateGlobalClusterResponse :: Type -> Type #

NFData CreateGlobalClusterResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateGlobalCluster

type Rep CreateGlobalClusterResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.CreateGlobalCluster

type Rep CreateGlobalClusterResponse = D1 ('MetaData "CreateGlobalClusterResponse" "Amazonka.DocumentDB.CreateGlobalCluster" "libZSservicesZSamazonka-docdbZSamazonka-docdb" 'False) (C1 ('MetaCons "CreateGlobalClusterResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "globalCluster") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GlobalCluster)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateGlobalClusterResponse Source #

Create a value of CreateGlobalClusterResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:globalCluster:CreateGlobalClusterResponse', createGlobalClusterResponse_globalCluster - Undocumented member.

$sel:httpStatus:CreateGlobalClusterResponse', createGlobalClusterResponse_httpStatus - The response's http status code.

Response Lenses