pub struct GetBucketVersioning { /* private fields */ }
Expand description
Fluent builder constructing a request to GetBucketVersioning
.
This operation returns the versioning state only for S3 on Outposts buckets. 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 versioning, you can save multiple distinct copies of your data 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 GetBucketVersioning
impl GetBucketVersioning
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetBucketVersioning, AwsResponseRetryClassifier>, SdkError<GetBucketVersioningError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<GetBucketVersioning, AwsResponseRetryClassifier>, SdkError<GetBucketVersioningError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<GetBucketVersioningOutput, SdkError<GetBucketVersioningError>>
pub async fn send(
self
) -> Result<GetBucketVersioningOutput, SdkError<GetBucketVersioningError>>
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 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 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.
Trait Implementations§
source§impl Clone for GetBucketVersioning
impl Clone for GetBucketVersioning
source§fn clone(&self) -> GetBucketVersioning
fn clone(&self) -> GetBucketVersioning
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more