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

Description

Deletes a namespace from Amazon Redshift Serverless. Before you delete the namespace, you can create a final snapshot that has all of the data within the namespace.

Synopsis

Creating a Request

data DeleteNamespace Source #

See: newDeleteNamespace smart constructor.

Constructors

DeleteNamespace' 

Fields

Instances

Instances details
ToJSON DeleteNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.DeleteNamespace

ToHeaders DeleteNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.DeleteNamespace

ToPath DeleteNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.DeleteNamespace

ToQuery DeleteNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.DeleteNamespace

AWSRequest DeleteNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.DeleteNamespace

Associated Types

type AWSResponse DeleteNamespace #

Generic DeleteNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.DeleteNamespace

Associated Types

type Rep DeleteNamespace :: Type -> Type #

Read DeleteNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.DeleteNamespace

Show DeleteNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.DeleteNamespace

NFData DeleteNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.DeleteNamespace

Methods

rnf :: DeleteNamespace -> () #

Eq DeleteNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.DeleteNamespace

Hashable DeleteNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.DeleteNamespace

type AWSResponse DeleteNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.DeleteNamespace

type Rep DeleteNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.DeleteNamespace

type Rep DeleteNamespace = D1 ('MetaData "DeleteNamespace" "Amazonka.RedshiftServerLess.DeleteNamespace" "amazonka-redshift-serverless-2.0-ApuSN33KEWs53jvwyBa3sl" 'False) (C1 ('MetaCons "DeleteNamespace'" 'PrefixI 'True) (S1 ('MetaSel ('Just "finalSnapshotName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "finalSnapshotRetentionPeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "namespaceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newDeleteNamespace Source #

Create a value of DeleteNamespace 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:finalSnapshotName:DeleteNamespace', deleteNamespace_finalSnapshotName - The name of the snapshot to be created before the namespace is deleted.

$sel:finalSnapshotRetentionPeriod:DeleteNamespace', deleteNamespace_finalSnapshotRetentionPeriod - How long to retain the final snapshot.

DeleteNamespace, deleteNamespace_namespaceName - The name of the namespace to delete.

Request Lenses

deleteNamespace_finalSnapshotName :: Lens' DeleteNamespace (Maybe Text) Source #

The name of the snapshot to be created before the namespace is deleted.

deleteNamespace_namespaceName :: Lens' DeleteNamespace Text Source #

The name of the namespace to delete.

Destructuring the Response

data DeleteNamespaceResponse Source #

See: newDeleteNamespaceResponse smart constructor.

Constructors

DeleteNamespaceResponse' 

Fields

Instances

Instances details
Generic DeleteNamespaceResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.DeleteNamespace

Associated Types

type Rep DeleteNamespaceResponse :: Type -> Type #

Show DeleteNamespaceResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.DeleteNamespace

NFData DeleteNamespaceResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.DeleteNamespace

Methods

rnf :: DeleteNamespaceResponse -> () #

Eq DeleteNamespaceResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.DeleteNamespace

type Rep DeleteNamespaceResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.DeleteNamespace

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

newDeleteNamespaceResponse Source #

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

$sel:namespace:DeleteNamespaceResponse', deleteNamespaceResponse_namespace - The deleted namespace object.

Response Lenses