Struct aws_sdk_lightsail::client::fluent_builders::DeleteBucket [−][src]
pub struct DeleteBucket<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to DeleteBucket
.
Deletes a Amazon Lightsail bucket.
When you delete your bucket, the bucket name is released and can be reused for a new bucket in your account or another AWS account.
Implementations
impl<C, M, R> DeleteBucket<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> DeleteBucket<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<DeleteBucketOutput, SdkError<DeleteBucketError>> where
R::Policy: SmithyRetryPolicy<DeleteBucketInputOperationOutputAlias, DeleteBucketOutput, DeleteBucketError, DeleteBucketInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<DeleteBucketOutput, SdkError<DeleteBucketError>> where
R::Policy: SmithyRetryPolicy<DeleteBucketInputOperationOutputAlias, DeleteBucketOutput, DeleteBucketError, DeleteBucketInputOperationRetryAlias>,
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 bucket to delete.
Use the GetBuckets
action to get a list of bucket names that you can specify.
The name of the bucket to delete.
Use the GetBuckets
action to get a list of bucket names that you can specify.
A Boolean value that indicates whether to force delete the bucket.
You must force delete the bucket if it has one of the following conditions:
-
The bucket is the origin of a distribution.
-
The bucket has instances that were granted access to it using the
SetResourceAccessForBucket
action. -
The bucket has objects.
-
The bucket has access keys.
Force deleting a bucket might impact other resources that rely on the bucket, such as instances, distributions, or software that use the issued access keys.
A Boolean value that indicates whether to force delete the bucket.
You must force delete the bucket if it has one of the following conditions:
-
The bucket is the origin of a distribution.
-
The bucket has instances that were granted access to it using the
SetResourceAccessForBucket
action. -
The bucket has objects.
-
The bucket has access keys.
Force deleting a bucket might impact other resources that rely on the bucket, such as instances, distributions, or software that use the issued access keys.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for DeleteBucket<C, M, R>
impl<C, M, R> Unpin for DeleteBucket<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for DeleteBucket<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