Struct aws_sdk_dynamodb::client::fluent_builders::DeleteTable [−][src]
pub struct DeleteTable<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to DeleteTable
.
The DeleteTable
operation deletes a table and all of its items. After a
DeleteTable
request, the specified table is in the DELETING
state until
DynamoDB completes the deletion. If the table is in the ACTIVE
state, you can delete
it. If a table is in CREATING
or UPDATING
states, then DynamoDB returns
a ResourceInUseException
. If the specified table does not exist, DynamoDB returns a
ResourceNotFoundException
. If table is already in the DELETING
state, no
error is returned.
DynamoDB might continue to accept data read and write operations, such as GetItem
and
PutItem
, on a table in the DELETING
state until the table deletion is
complete.
When you delete a table, any indexes on that table are also deleted.
If you have DynamoDB Streams enabled on the table, then the corresponding stream on that table goes
into the DISABLED
state, and the stream is automatically deleted after 24 hours.
Use the DescribeTable
action to check the status of the table.
Implementations
impl<C, M, R> DeleteTable<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> DeleteTable<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(self) -> Result<DeleteTableOutput, SdkError<DeleteTableError>> where
R::Policy: SmithyRetryPolicy<DeleteTableInputOperationOutputAlias, DeleteTableOutput, DeleteTableError, DeleteTableInputOperationRetryAlias>,
pub async fn send(self) -> Result<DeleteTableOutput, SdkError<DeleteTableError>> where
R::Policy: SmithyRetryPolicy<DeleteTableInputOperationOutputAlias, DeleteTableOutput, DeleteTableError, DeleteTableInputOperationRetryAlias>,
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 table to delete.
The name of the table to delete.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for DeleteTable<C, M, R>
impl<C, M, R> Unpin for DeleteTable<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for DeleteTable<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