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 |
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
- data DeleteNamespace = DeleteNamespace' {}
- newDeleteNamespace :: Text -> DeleteNamespace
- deleteNamespace_finalSnapshotName :: Lens' DeleteNamespace (Maybe Text)
- deleteNamespace_finalSnapshotRetentionPeriod :: Lens' DeleteNamespace (Maybe Int)
- deleteNamespace_namespaceName :: Lens' DeleteNamespace Text
- data DeleteNamespaceResponse = DeleteNamespaceResponse' {
- httpStatus :: Int
- namespace :: Namespace
- newDeleteNamespaceResponse :: Int -> Namespace -> DeleteNamespaceResponse
- deleteNamespaceResponse_httpStatus :: Lens' DeleteNamespaceResponse Int
- deleteNamespaceResponse_namespace :: Lens' DeleteNamespaceResponse Namespace
Creating a Request
data DeleteNamespace Source #
See: newDeleteNamespace
smart constructor.
DeleteNamespace' | |
|
Instances
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_finalSnapshotRetentionPeriod :: Lens' DeleteNamespace (Maybe Int) Source #
How long to retain the final snapshot.
deleteNamespace_namespaceName :: Lens' DeleteNamespace Text Source #
The name of the namespace to delete.
Destructuring the Response
data DeleteNamespaceResponse Source #
See: newDeleteNamespaceResponse
smart constructor.
DeleteNamespaceResponse' | |
|
Instances
newDeleteNamespaceResponse Source #
:: Int | |
-> Namespace | |
-> DeleteNamespaceResponse |
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
deleteNamespaceResponse_httpStatus :: Lens' DeleteNamespaceResponse Int Source #
The response's http status code.
deleteNamespaceResponse_namespace :: Lens' DeleteNamespaceResponse Namespace Source #
The deleted namespace object.