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.CreateSnapshot

Description

Creates a snapshot of all databases in a namespace. For more information about snapshots, see Working with snapshots and recovery points.

Synopsis

Creating a Request

data CreateSnapshot Source #

See: newCreateSnapshot smart constructor.

Constructors

CreateSnapshot' 

Fields

Instances

Instances details
ToJSON CreateSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateSnapshot

ToHeaders CreateSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateSnapshot

ToPath CreateSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateSnapshot

ToQuery CreateSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateSnapshot

AWSRequest CreateSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateSnapshot

Associated Types

type AWSResponse CreateSnapshot #

Generic CreateSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateSnapshot

Associated Types

type Rep CreateSnapshot :: Type -> Type #

Read CreateSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateSnapshot

Show CreateSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateSnapshot

NFData CreateSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateSnapshot

Methods

rnf :: CreateSnapshot -> () #

Eq CreateSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateSnapshot

Hashable CreateSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateSnapshot

type AWSResponse CreateSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateSnapshot

type Rep CreateSnapshot Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateSnapshot

type Rep CreateSnapshot = D1 ('MetaData "CreateSnapshot" "Amazonka.RedshiftServerLess.CreateSnapshot" "amazonka-redshift-serverless-2.0-ApuSN33KEWs53jvwyBa3sl" 'False) (C1 ('MetaCons "CreateSnapshot'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "retentionPeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag]))) :*: (S1 ('MetaSel ('Just "namespaceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "snapshotName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateSnapshot Source #

Create a value of CreateSnapshot 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:retentionPeriod:CreateSnapshot', createSnapshot_retentionPeriod - How long to retain the created snapshot.

$sel:tags:CreateSnapshot', createSnapshot_tags - An array of Tag objects to associate with the snapshot.

CreateSnapshot, createSnapshot_namespaceName - The namespace to create a snapshot for.

CreateSnapshot, createSnapshot_snapshotName - The name of the snapshot.

Request Lenses

createSnapshot_retentionPeriod :: Lens' CreateSnapshot (Maybe Int) Source #

How long to retain the created snapshot.

createSnapshot_tags :: Lens' CreateSnapshot (Maybe [Tag]) Source #

An array of Tag objects to associate with the snapshot.

createSnapshot_namespaceName :: Lens' CreateSnapshot Text Source #

The namespace to create a snapshot for.

Destructuring the Response

data CreateSnapshotResponse Source #

See: newCreateSnapshotResponse smart constructor.

Constructors

CreateSnapshotResponse' 

Fields

Instances

Instances details
Generic CreateSnapshotResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateSnapshot

Associated Types

type Rep CreateSnapshotResponse :: Type -> Type #

Read CreateSnapshotResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateSnapshot

Show CreateSnapshotResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateSnapshot

NFData CreateSnapshotResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateSnapshot

Methods

rnf :: CreateSnapshotResponse -> () #

Eq CreateSnapshotResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateSnapshot

type Rep CreateSnapshotResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateSnapshot

type Rep CreateSnapshotResponse = D1 ('MetaData "CreateSnapshotResponse" "Amazonka.RedshiftServerLess.CreateSnapshot" "amazonka-redshift-serverless-2.0-ApuSN33KEWs53jvwyBa3sl" 'False) (C1 ('MetaCons "CreateSnapshotResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "snapshot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Snapshot)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateSnapshotResponse Source #

Create a value of CreateSnapshotResponse 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:snapshot:CreateSnapshotResponse', createSnapshotResponse_snapshot - The created snapshot object.

$sel:httpStatus:CreateSnapshotResponse', createSnapshotResponse_httpStatus - The response's http status code.

Response Lenses