Safe Haskell | None |
---|---|
Language | Haskell2010 |
The DeleteDBInstance action deletes a previously provisioned DB instance. A successful response from the web service indicates the request was received correctly. When you delete a DB instance, all automated backups for that instance are deleted and cannot be recovered. Manual DB snapshots of the DB instance to be deleted are not deleted.
If a final DB snapshot is requested the status of the RDS instance will be
"deleting" until the DB snapshot is created. The API action DescribeDBInstance
is used to monitor the status of this operation. The action cannot be
canceled or reverted once submitted.
http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DeleteDBInstance.html
- data DeleteDBInstance
- deleteDBInstance :: Text -> DeleteDBInstance
- ddbiDBInstanceIdentifier :: Lens' DeleteDBInstance Text
- ddbiFinalDBSnapshotIdentifier :: Lens' DeleteDBInstance (Maybe Text)
- ddbiSkipFinalSnapshot :: Lens' DeleteDBInstance (Maybe Bool)
- data DeleteDBInstanceResponse
- deleteDBInstanceResponse :: DeleteDBInstanceResponse
- ddbirDBInstance :: Lens' DeleteDBInstanceResponse (Maybe DBInstance)
Request
data DeleteDBInstance Source
Request constructor
DeleteDBInstance
constructor.
The fields accessible through corresponding lenses are:
Request lenses
ddbiDBInstanceIdentifier :: Lens' DeleteDBInstance Text Source
The DB instance identifier for the DB instance to be deleted. This parameter isn't case sensitive.
Constraints:
Must contain from 1 to 63 alphanumeric characters or hyphens First character must be a letter Cannot end with a hyphen or contain two consecutive hyphens
ddbiFinalDBSnapshotIdentifier :: Lens' DeleteDBInstance (Maybe Text) Source
The DBSnapshotIdentifier of the new DBSnapshot created when
SkipFinalSnapshot is set to false
.
Constraints:
Must be 1 to 255 alphanumeric characters First character must be a letter Cannot end with a hyphen or contain two consecutive hyphens Cannot be specified when deleting a read replica.
ddbiSkipFinalSnapshot :: Lens' DeleteDBInstance (Maybe Bool) Source
Determines whether a final DB snapshot is created before the DB instance is
deleted. If true
is specified, no DBSnapshot is created. If false
is
specified, a DB snapshot is created before the DB instance is deleted.
Specify true
when deleting a read replica.
Default: false
Response
Response constructor
deleteDBInstanceResponse :: DeleteDBInstanceResponse Source
DeleteDBInstanceResponse
constructor.
The fields accessible through corresponding lenses are: