amazonka-redshift-serverless-2.0: Amazon Redshift Serverless 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.RedshiftServerLess.RestoreFromSnapshot

Description

Restores a namespace from a snapshot.

Synopsis

Creating a Request

data RestoreFromSnapshot Source #

See: newRestoreFromSnapshot smart constructor.

Constructors

RestoreFromSnapshot' 

Fields

  • ownerAccount :: Maybe Text

    The Amazon Web Services account that owns the snapshot.

  • snapshotArn :: Maybe Text

    The Amazon Resource Name (ARN) of the snapshot to restore from. Required if restoring from Amazon Redshift Serverless to a provisioned cluster. Must not be specified at the same time as snapshotName.

    The format of the ARN is arn:aws:redshift:<region>:<account_id>:snapshot:<cluster_identifier>/<snapshot_identifier>.

  • snapshotName :: Maybe Text

    The name of the snapshot to restore from. Must not be specified at the same time as snapshotArn.

  • namespaceName :: Text

    The name of the namespace to restore the snapshot to.

  • workgroupName :: Text

    The name of the workgroup used to restore the snapshot.

Instances

Instances details
ToJSON RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.RestoreFromSnapshot

ToHeaders RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.RestoreFromSnapshot

ToPath RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.RestoreFromSnapshot

ToQuery RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.RestoreFromSnapshot

AWSRequest RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.RestoreFromSnapshot

Associated Types

type AWSResponse RestoreFromSnapshot #

Generic RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.RestoreFromSnapshot

Associated Types

type Rep RestoreFromSnapshot :: Type -> Type #

Read RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.RestoreFromSnapshot

Show RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.RestoreFromSnapshot

NFData RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.RestoreFromSnapshot

Methods

rnf :: RestoreFromSnapshot -> () #

Eq RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.RestoreFromSnapshot

Hashable RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.RestoreFromSnapshot

type AWSResponse RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.RestoreFromSnapshot

type Rep RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.RestoreFromSnapshot

type Rep RestoreFromSnapshot = D1 ('MetaData "RestoreFromSnapshot" "Amazonka.RedshiftServerLess.RestoreFromSnapshot" "amazonka-redshift-serverless-2.0-ApuSN33KEWs53jvwyBa3sl" 'False) (C1 ('MetaCons "RestoreFromSnapshot'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ownerAccount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "snapshotArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "snapshotName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "namespaceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "workgroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newRestoreFromSnapshot Source #

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

RestoreFromSnapshot, restoreFromSnapshot_ownerAccount - The Amazon Web Services account that owns the snapshot.

RestoreFromSnapshot, restoreFromSnapshot_snapshotArn - The Amazon Resource Name (ARN) of the snapshot to restore from. Required if restoring from Amazon Redshift Serverless to a provisioned cluster. Must not be specified at the same time as snapshotName.

The format of the ARN is arn:aws:redshift:<region>:<account_id>:snapshot:<cluster_identifier>/<snapshot_identifier>.

RestoreFromSnapshot, restoreFromSnapshot_snapshotName - The name of the snapshot to restore from. Must not be specified at the same time as snapshotArn.

RestoreFromSnapshot, restoreFromSnapshot_namespaceName - The name of the namespace to restore the snapshot to.

RestoreFromSnapshot, restoreFromSnapshot_workgroupName - The name of the workgroup used to restore the snapshot.

Request Lenses

restoreFromSnapshot_ownerAccount :: Lens' RestoreFromSnapshot (Maybe Text) Source #

The Amazon Web Services account that owns the snapshot.

restoreFromSnapshot_snapshotArn :: Lens' RestoreFromSnapshot (Maybe Text) Source #

The Amazon Resource Name (ARN) of the snapshot to restore from. Required if restoring from Amazon Redshift Serverless to a provisioned cluster. Must not be specified at the same time as snapshotName.

The format of the ARN is arn:aws:redshift:<region>:<account_id>:snapshot:<cluster_identifier>/<snapshot_identifier>.

restoreFromSnapshot_snapshotName :: Lens' RestoreFromSnapshot (Maybe Text) Source #

The name of the snapshot to restore from. Must not be specified at the same time as snapshotArn.

restoreFromSnapshot_namespaceName :: Lens' RestoreFromSnapshot Text Source #

The name of the namespace to restore the snapshot to.

restoreFromSnapshot_workgroupName :: Lens' RestoreFromSnapshot Text Source #

The name of the workgroup used to restore the snapshot.

Destructuring the Response

data RestoreFromSnapshotResponse Source #

See: newRestoreFromSnapshotResponse smart constructor.

Constructors

RestoreFromSnapshotResponse' 

Fields

Instances

Instances details
Generic RestoreFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.RestoreFromSnapshot

Associated Types

type Rep RestoreFromSnapshotResponse :: Type -> Type #

Show RestoreFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.RestoreFromSnapshot

NFData RestoreFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.RestoreFromSnapshot

Eq RestoreFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.RestoreFromSnapshot

type Rep RestoreFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.RestoreFromSnapshot

type Rep RestoreFromSnapshotResponse = D1 ('MetaData "RestoreFromSnapshotResponse" "Amazonka.RedshiftServerLess.RestoreFromSnapshot" "amazonka-redshift-serverless-2.0-ApuSN33KEWs53jvwyBa3sl" 'False) (C1 ('MetaCons "RestoreFromSnapshotResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "namespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Namespace)) :*: S1 ('MetaSel ('Just "ownerAccount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "snapshotName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newRestoreFromSnapshotResponse Source #

Create a value of RestoreFromSnapshotResponse 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:namespace:RestoreFromSnapshotResponse', restoreFromSnapshotResponse_namespace - Undocumented member.

RestoreFromSnapshot, restoreFromSnapshotResponse_ownerAccount - The owner Amazon Web Services; account of the snapshot that was restored.

RestoreFromSnapshot, restoreFromSnapshotResponse_snapshotName - The name of the snapshot used to restore the namespace.

$sel:httpStatus:RestoreFromSnapshotResponse', restoreFromSnapshotResponse_httpStatus - The response's http status code.

Response Lenses

restoreFromSnapshotResponse_ownerAccount :: Lens' RestoreFromSnapshotResponse (Maybe Text) Source #

The owner Amazon Web Services; account of the snapshot that was restored.

restoreFromSnapshotResponse_snapshotName :: Lens' RestoreFromSnapshotResponse (Maybe Text) Source #

The name of the snapshot used to restore the namespace.