Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Restores a Elastic DocumentDB cluster from a snapshot.
Synopsis
- data RestoreClusterFromSnapshot = RestoreClusterFromSnapshot' {}
- newRestoreClusterFromSnapshot :: Text -> Text -> RestoreClusterFromSnapshot
- restoreClusterFromSnapshot_kmsKeyId :: Lens' RestoreClusterFromSnapshot (Maybe Text)
- restoreClusterFromSnapshot_subnetIds :: Lens' RestoreClusterFromSnapshot (Maybe [Text])
- restoreClusterFromSnapshot_tags :: Lens' RestoreClusterFromSnapshot (Maybe (HashMap Text Text))
- restoreClusterFromSnapshot_vpcSecurityGroupIds :: Lens' RestoreClusterFromSnapshot (Maybe [Text])
- restoreClusterFromSnapshot_clusterName :: Lens' RestoreClusterFromSnapshot Text
- restoreClusterFromSnapshot_snapshotArn :: Lens' RestoreClusterFromSnapshot Text
- data RestoreClusterFromSnapshotResponse = RestoreClusterFromSnapshotResponse' {
- httpStatus :: Int
- cluster :: Cluster
- newRestoreClusterFromSnapshotResponse :: Int -> Cluster -> RestoreClusterFromSnapshotResponse
- restoreClusterFromSnapshotResponse_httpStatus :: Lens' RestoreClusterFromSnapshotResponse Int
- restoreClusterFromSnapshotResponse_cluster :: Lens' RestoreClusterFromSnapshotResponse Cluster
Creating a Request
data RestoreClusterFromSnapshot Source #
See: newRestoreClusterFromSnapshot
smart constructor.
RestoreClusterFromSnapshot' | |
|
Instances
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.
restoreClusterFromSnapshot_clusterName :: Lens' RestoreClusterFromSnapshot Text Source #
The name of the Elastic DocumentDB cluster.
restoreClusterFromSnapshot_snapshotArn :: Lens' RestoreClusterFromSnapshot Text Source #
The arn of the Elastic DocumentDB snapshot.
Destructuring the Response
data RestoreClusterFromSnapshotResponse Source #
See: newRestoreClusterFromSnapshotResponse
smart constructor.
RestoreClusterFromSnapshotResponse' | |
|
Instances
Generic RestoreClusterFromSnapshotResponse Source # | |
Read RestoreClusterFromSnapshotResponse Source # | |
Show RestoreClusterFromSnapshotResponse Source # | |
NFData RestoreClusterFromSnapshotResponse Source # | |
Defined in Amazonka.DocDbElastic.RestoreClusterFromSnapshot rnf :: RestoreClusterFromSnapshotResponse -> () # | |
Eq RestoreClusterFromSnapshotResponse Source # | |
type Rep RestoreClusterFromSnapshotResponse Source # | |
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_httpStatus :: Lens' RestoreClusterFromSnapshotResponse Int Source #
The response's http status code.
restoreClusterFromSnapshotResponse_cluster :: Lens' RestoreClusterFromSnapshotResponse Cluster Source #
Returns information about a the restored Elastic DocumentDB cluster.