Struct aws_sdk_s3control::operation::get_bucket_versioning::builders::GetBucketVersioningFluentBuilder
source · pub struct GetBucketVersioningFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to GetBucketVersioning.
This operation returns the versioning state for S3 on Outposts buckets only. To return the versioning state for an S3 bucket, see GetBucketVersioning in the Amazon S3 API Reference.
Returns the versioning state for an S3 on Outposts bucket. With S3 Versioning, you can save multiple distinct copies of your objects and recover from unintended user actions and application failures.
If you've never set versioning on your bucket, it has no versioning state. In that case, the GetBucketVersioning request does not return a versioning state value.
For more information about versioning, see Versioning in the Amazon S3 User Guide.
All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of s3-control. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id derived by using the access point ARN, see the Examples section.
The following operations are related to GetBucketVersioning for S3 on Outposts.
Implementations§
source§impl GetBucketVersioningFluentBuilder
impl GetBucketVersioningFluentBuilder
sourcepub fn as_input(&self) -> &GetBucketVersioningInputBuilder
pub fn as_input(&self) -> &GetBucketVersioningInputBuilder
Access the GetBucketVersioning as a reference.
sourcepub async fn send(
self
) -> Result<GetBucketVersioningOutput, SdkError<GetBucketVersioningError, HttpResponse>>
pub async fn send( self ) -> Result<GetBucketVersioningOutput, SdkError<GetBucketVersioningError, HttpResponse>>
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.
sourcepub fn customize(
self
) -> CustomizableOperation<GetBucketVersioningOutput, GetBucketVersioningError, Self>
pub fn customize( self ) -> CustomizableOperation<GetBucketVersioningOutput, GetBucketVersioningError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID of the S3 on Outposts bucket.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID of the S3 on Outposts bucket.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The Amazon Web Services account ID of the S3 on Outposts bucket.
sourcepub fn bucket(self, input: impl Into<String>) -> Self
pub fn bucket(self, input: impl Into<String>) -> Self
The S3 on Outposts bucket to return the versioning state for.
sourcepub fn set_bucket(self, input: Option<String>) -> Self
pub fn set_bucket(self, input: Option<String>) -> Self
The S3 on Outposts bucket to return the versioning state for.
sourcepub fn get_bucket(&self) -> &Option<String>
pub fn get_bucket(&self) -> &Option<String>
The S3 on Outposts bucket to return the versioning state for.
Trait Implementations§
source§impl Clone for GetBucketVersioningFluentBuilder
impl Clone for GetBucketVersioningFluentBuilder
source§fn clone(&self) -> GetBucketVersioningFluentBuilder
fn clone(&self) -> GetBucketVersioningFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more