amazonka-docdb-elastic-2.0: Amazon DocumentDB Elastic Clusters SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DocDbElastic.RestoreClusterFromSnapshot

Description

Restores a Elastic DocumentDB cluster from a snapshot.

Synopsis

Creating a Request

data RestoreClusterFromSnapshot Source #

See: newRestoreClusterFromSnapshot smart constructor.

Constructors

RestoreClusterFromSnapshot' 

Fields

  • kmsKeyId :: Maybe Text

    The KMS key identifier to use to encrypt the new Elastic DocumentDB cluster.

    The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key.

    If an encryption key is not specified here, Elastic DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.

  • subnetIds :: Maybe [Text]

    The Amazon EC2 subnet IDs for the Elastic DocumentDB cluster.

  • tags :: Maybe (HashMap Text Text)

    A list of the tag names to be assigned to the restored DB cluster, in the form of an array of key-value pairs in which the key is the tag name and the value is the key value.

  • vpcSecurityGroupIds :: Maybe [Text]

    A list of EC2 VPC security groups to associate with the Elastic DocumentDB cluster.

  • clusterName :: Text

    The name of the Elastic DocumentDB cluster.

  • snapshotArn :: Text

    The arn of the Elastic DocumentDB snapshot.

Instances

Instances details
ToJSON RestoreClusterFromSnapshot Source # 
Instance details

Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot

ToHeaders RestoreClusterFromSnapshot Source # 
Instance details

Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot

ToPath RestoreClusterFromSnapshot Source # 
Instance details

Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot

ToQuery RestoreClusterFromSnapshot Source # 
Instance details

Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot

AWSRequest RestoreClusterFromSnapshot Source # 
Instance details

Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot

Generic RestoreClusterFromSnapshot Source # 
Instance details

Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot

Associated Types

type Rep RestoreClusterFromSnapshot :: Type -> Type #

Read RestoreClusterFromSnapshot Source # 
Instance details

Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot

Show RestoreClusterFromSnapshot Source # 
Instance details

Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot

NFData RestoreClusterFromSnapshot Source # 
Instance details

Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot

Eq RestoreClusterFromSnapshot Source # 
Instance details

Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot

Hashable RestoreClusterFromSnapshot Source # 
Instance details

Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot

type AWSResponse RestoreClusterFromSnapshot Source # 
Instance details

Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot

type Rep RestoreClusterFromSnapshot Source # 
Instance details

Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot

type Rep RestoreClusterFromSnapshot = D1 ('MetaData "RestoreClusterFromSnapshot" "Amazonka.DocDbElastic.RestoreClusterFromSnapshot" "amazonka-docdb-elastic-2.0-7oyCcw7MbTKKNwZE62fvl3" 'False) (C1 ('MetaCons "RestoreClusterFromSnapshot'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "kmsKeyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "subnetIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))))) :*: (S1 ('MetaSel ('Just "vpcSecurityGroupIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "clusterName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "snapshotArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newRestoreClusterFromSnapshot Source #

Create a value of RestoreClusterFromSnapshot 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:

RestoreClusterFromSnapshot, restoreClusterFromSnapshot_kmsKeyId - The KMS key identifier to use to encrypt the new Elastic DocumentDB cluster.

The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key.

If an encryption key is not specified here, Elastic DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.

RestoreClusterFromSnapshot, restoreClusterFromSnapshot_subnetIds - The Amazon EC2 subnet IDs for the Elastic DocumentDB cluster.

$sel:tags:RestoreClusterFromSnapshot', restoreClusterFromSnapshot_tags - A list of the tag names to be assigned to the restored DB cluster, in the form of an array of key-value pairs in which the key is the tag name and the value is the key value.

RestoreClusterFromSnapshot, restoreClusterFromSnapshot_vpcSecurityGroupIds - A list of EC2 VPC security groups to associate with the Elastic DocumentDB cluster.

RestoreClusterFromSnapshot, restoreClusterFromSnapshot_clusterName - The name of the Elastic DocumentDB cluster.

RestoreClusterFromSnapshot, restoreClusterFromSnapshot_snapshotArn - The arn of the Elastic DocumentDB snapshot.

Request Lenses

restoreClusterFromSnapshot_kmsKeyId :: Lens' RestoreClusterFromSnapshot (Maybe Text) Source #

The KMS key identifier to use to encrypt the new Elastic DocumentDB cluster.

The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key.

If an encryption key is not specified here, Elastic DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.

restoreClusterFromSnapshot_subnetIds :: Lens' RestoreClusterFromSnapshot (Maybe [Text]) Source #

The Amazon EC2 subnet IDs for the Elastic DocumentDB cluster.

restoreClusterFromSnapshot_tags :: Lens' RestoreClusterFromSnapshot (Maybe (HashMap Text Text)) Source #

A list of the tag names to be assigned to the restored DB cluster, in the form of an array of key-value pairs in which the key is the tag name and the value is the key value.

restoreClusterFromSnapshot_vpcSecurityGroupIds :: Lens' RestoreClusterFromSnapshot (Maybe [Text]) Source #

A list of EC2 VPC security groups to associate with the Elastic DocumentDB cluster.

Destructuring the Response

data RestoreClusterFromSnapshotResponse Source #

Constructors

RestoreClusterFromSnapshotResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • cluster :: Cluster

    Returns information about a the restored Elastic DocumentDB cluster.

Instances

Instances details
Generic RestoreClusterFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot

Associated Types

type Rep RestoreClusterFromSnapshotResponse :: Type -> Type #

Read RestoreClusterFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot

Show RestoreClusterFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot

NFData RestoreClusterFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot

Eq RestoreClusterFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot

type Rep RestoreClusterFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot

type Rep RestoreClusterFromSnapshotResponse = D1 ('MetaData "RestoreClusterFromSnapshotResponse" "Amazonka.DocDbElastic.RestoreClusterFromSnapshot" "amazonka-docdb-elastic-2.0-7oyCcw7MbTKKNwZE62fvl3" 'False) (C1 ('MetaCons "RestoreClusterFromSnapshotResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "cluster") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Cluster)))

newRestoreClusterFromSnapshotResponse Source #

Create a value of RestoreClusterFromSnapshotResponse 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:httpStatus:RestoreClusterFromSnapshotResponse', restoreClusterFromSnapshotResponse_httpStatus - The response's http status code.

$sel:cluster:RestoreClusterFromSnapshotResponse', restoreClusterFromSnapshotResponse_cluster - Returns information about a the restored Elastic DocumentDB cluster.

Response Lenses

restoreClusterFromSnapshotResponse_cluster :: Lens' RestoreClusterFromSnapshotResponse Cluster Source #

Returns information about a the restored Elastic DocumentDB cluster.