Struct aws_sdk_lightsail::client::fluent_builders::DeleteRelationalDatabase [−][src]
pub struct DeleteRelationalDatabase<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to DeleteRelationalDatabase
.
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.
Implementations
impl<C, M, R> DeleteRelationalDatabase<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> DeleteRelationalDatabase<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<DeleteRelationalDatabaseOutput, SdkError<DeleteRelationalDatabaseError>> where
R::Policy: SmithyRetryPolicy<DeleteRelationalDatabaseInputOperationOutputAlias, DeleteRelationalDatabaseOutput, DeleteRelationalDatabaseError, DeleteRelationalDatabaseInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<DeleteRelationalDatabaseOutput, SdkError<DeleteRelationalDatabaseError>> where
R::Policy: SmithyRetryPolicy<DeleteRelationalDatabaseInputOperationOutputAlias, DeleteRelationalDatabaseOutput, DeleteRelationalDatabaseError, DeleteRelationalDatabaseInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The name of the database that you are deleting.
The name of the database that you are deleting.
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
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
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.
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.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for DeleteRelationalDatabase<C, M, R>
impl<C, M, R> Send for DeleteRelationalDatabase<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for DeleteRelationalDatabase<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for DeleteRelationalDatabase<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for DeleteRelationalDatabase<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more