Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Deletes a database in Amazon Lightsail.
The delete relational database
operation supports tag-based access
control via resource tags applied to the resource identified by
relationalDatabaseName. For more information, see the
Amazon Lightsail Developer Guide.
Synopsis
- data DeleteRelationalDatabase = DeleteRelationalDatabase' {}
- newDeleteRelationalDatabase :: Text -> DeleteRelationalDatabase
- deleteRelationalDatabase_skipFinalSnapshot :: Lens' DeleteRelationalDatabase (Maybe Bool)
- deleteRelationalDatabase_finalRelationalDatabaseSnapshotName :: Lens' DeleteRelationalDatabase (Maybe Text)
- deleteRelationalDatabase_relationalDatabaseName :: Lens' DeleteRelationalDatabase Text
- data DeleteRelationalDatabaseResponse = DeleteRelationalDatabaseResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newDeleteRelationalDatabaseResponse :: Int -> DeleteRelationalDatabaseResponse
- deleteRelationalDatabaseResponse_operations :: Lens' DeleteRelationalDatabaseResponse (Maybe [Operation])
- deleteRelationalDatabaseResponse_httpStatus :: Lens' DeleteRelationalDatabaseResponse Int
Creating a Request
data DeleteRelationalDatabase Source #
See: newDeleteRelationalDatabase
smart constructor.
DeleteRelationalDatabase' | |
|
Instances
newDeleteRelationalDatabase Source #
Create a value of DeleteRelationalDatabase
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:skipFinalSnapshot:DeleteRelationalDatabase'
, deleteRelationalDatabase_skipFinalSnapshot
- Determines whether a final database snapshot is created before your
database is deleted. If true
is specified, no database snapshot is
created. If false
is specified, a database snapshot is created before
your database is deleted.
You must specify the final relational database snapshot name
parameter
if the skip final snapshot
parameter is false
.
Default: false
$sel:finalRelationalDatabaseSnapshotName:DeleteRelationalDatabase'
, deleteRelationalDatabase_finalRelationalDatabaseSnapshotName
- The name of the database snapshot created if skip final snapshot
is
false
, which is the default value for that parameter.
Specifying this parameter and also specifying the skip final snapshot
parameter to true
results in an error.
Constraints:
- Must contain from 2 to 255 alphanumeric characters, or hyphens.
- The first and last character must be a letter or number.
$sel:relationalDatabaseName:DeleteRelationalDatabase'
, deleteRelationalDatabase_relationalDatabaseName
- The name of the database that you are deleting.
Request Lenses
deleteRelationalDatabase_skipFinalSnapshot :: Lens' DeleteRelationalDatabase (Maybe Bool) Source #
Determines whether a final database snapshot is created before your
database is deleted. If true
is specified, no database snapshot is
created. If false
is specified, a database snapshot is created before
your database is deleted.
You must specify the final relational database snapshot name
parameter
if the skip final snapshot
parameter is false
.
Default: false
deleteRelationalDatabase_finalRelationalDatabaseSnapshotName :: Lens' DeleteRelationalDatabase (Maybe Text) Source #
The name of the database snapshot created if skip final snapshot
is
false
, which is the default value for that parameter.
Specifying this parameter and also specifying the skip final snapshot
parameter to true
results in an error.
Constraints:
- Must contain from 2 to 255 alphanumeric characters, or hyphens.
- The first and last character must be a letter or number.
deleteRelationalDatabase_relationalDatabaseName :: Lens' DeleteRelationalDatabase Text Source #
The name of the database that you are deleting.
Destructuring the Response
data DeleteRelationalDatabaseResponse Source #
See: newDeleteRelationalDatabaseResponse
smart constructor.
DeleteRelationalDatabaseResponse' | |
|
Instances
Eq DeleteRelationalDatabaseResponse Source # | |
Read DeleteRelationalDatabaseResponse Source # | |
Show DeleteRelationalDatabaseResponse Source # | |
Generic DeleteRelationalDatabaseResponse Source # | |
NFData DeleteRelationalDatabaseResponse Source # | |
Defined in Amazonka.Lightsail.DeleteRelationalDatabase rnf :: DeleteRelationalDatabaseResponse -> () # | |
type Rep DeleteRelationalDatabaseResponse Source # | |
Defined in Amazonka.Lightsail.DeleteRelationalDatabase type Rep DeleteRelationalDatabaseResponse = D1 ('MetaData "DeleteRelationalDatabaseResponse" "Amazonka.Lightsail.DeleteRelationalDatabase" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "DeleteRelationalDatabaseResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDeleteRelationalDatabaseResponse Source #
Create a value of DeleteRelationalDatabaseResponse
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:operations:DeleteRelationalDatabaseResponse'
, deleteRelationalDatabaseResponse_operations
- An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:DeleteRelationalDatabaseResponse'
, deleteRelationalDatabaseResponse_httpStatus
- The response's http status code.
Response Lenses
deleteRelationalDatabaseResponse_operations :: Lens' DeleteRelationalDatabaseResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
deleteRelationalDatabaseResponse_httpStatus :: Lens' DeleteRelationalDatabaseResponse Int Source #
The response's http status code.