Struct aws_sdk_s3::client::fluent_builders::DeleteBucketWebsite [−][src]
pub struct DeleteBucketWebsite<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to DeleteBucketWebsite
.
This action removes the website configuration for a bucket. Amazon S3 returns a 200
OK
response upon successfully deleting a website configuration on the specified
bucket. You will get a 200 OK
response if the website configuration you are
trying to delete does not exist on the bucket. Amazon S3 returns a 404
response if
the bucket specified in the request does not exist.
This DELETE action requires the S3:DeleteBucketWebsite
permission. By
default, only the bucket owner can delete the website configuration attached to a bucket.
However, bucket owners can grant other users permission to delete the website configuration
by writing a bucket policy granting them the S3:DeleteBucketWebsite
permission.
For more information about hosting websites, see Hosting Websites on Amazon S3.
The following operations are related to DeleteBucketWebsite
:
Implementations
impl<C, M, R> DeleteBucketWebsite<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> DeleteBucketWebsite<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<DeleteBucketWebsiteOutput, SdkError<DeleteBucketWebsiteError>> where
R::Policy: SmithyRetryPolicy<DeleteBucketWebsiteInputOperationOutputAlias, DeleteBucketWebsiteOutput, DeleteBucketWebsiteError, DeleteBucketWebsiteInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<DeleteBucketWebsiteOutput, SdkError<DeleteBucketWebsiteError>> where
R::Policy: SmithyRetryPolicy<DeleteBucketWebsiteInputOperationOutputAlias, DeleteBucketWebsiteOutput, DeleteBucketWebsiteError, DeleteBucketWebsiteInputOperationRetryAlias>,
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 bucket name for which you want to remove the website configuration.
The bucket name for which you want to remove the website configuration.
The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied)
error.
The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied)
error.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for DeleteBucketWebsite<C, M, R>
impl<C, M, R> Send for DeleteBucketWebsite<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for DeleteBucketWebsite<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for DeleteBucketWebsite<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for DeleteBucketWebsite<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