Struct aws_sdk_s3::client::fluent_builders::GetBucketWebsite [−][src]
pub struct GetBucketWebsite<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to GetBucketWebsite
.
Returns the website configuration for a bucket. To host website on Amazon S3, you can configure a bucket as website by adding a website configuration. For more information about hosting websites, see Hosting Websites on Amazon S3.
This GET action requires the S3:GetBucketWebsite
permission. By default,
only the bucket owner can read the bucket website configuration. However, bucket owners can
allow other users to read the website configuration by writing a bucket policy granting
them the S3:GetBucketWebsite
permission.
The following operations are related to DeleteBucketWebsite
:
Implementations
impl<C, M, R> GetBucketWebsite<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> GetBucketWebsite<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<GetBucketWebsiteOutput, SdkError<GetBucketWebsiteError>> where
R::Policy: SmithyRetryPolicy<GetBucketWebsiteInputOperationOutputAlias, GetBucketWebsiteOutput, GetBucketWebsiteError, GetBucketWebsiteInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<GetBucketWebsiteOutput, SdkError<GetBucketWebsiteError>> where
R::Policy: SmithyRetryPolicy<GetBucketWebsiteInputOperationOutputAlias, GetBucketWebsiteOutput, GetBucketWebsiteError, GetBucketWebsiteInputOperationRetryAlias>,
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 to get the website configuration.
The bucket name for which to get 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 GetBucketWebsite<C, M, R>
impl<C, M, R> Send for GetBucketWebsite<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for GetBucketWebsite<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for GetBucketWebsite<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for GetBucketWebsite<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