Struct aws_sdk_s3control::input::PutBucketVersioningInput
source · #[non_exhaustive]pub struct PutBucketVersioningInput { /* private fields */ }
Implementations§
source§impl PutBucketVersioningInput
impl PutBucketVersioningInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutBucketVersioning, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutBucketVersioning, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<PutBucketVersioning
>
Examples found in repository?
src/client.rs (line 6541)
6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::PutBucketVersioning,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::PutBucketVersioningError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::PutBucketVersioningOutput,
aws_smithy_http::result::SdkError<crate::error::PutBucketVersioningError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PutBucketVersioningInput
.
source§impl PutBucketVersioningInput
impl PutBucketVersioningInput
sourcepub fn account_id(&self) -> Option<&str>
pub fn account_id(&self) -> Option<&str>
The Amazon Web Services account ID of the S3 on Outposts bucket.
sourcepub fn bucket(&self) -> Option<&str>
pub fn bucket(&self) -> Option<&str>
The S3 on Outposts bucket to set the versioning state for.
sourcepub fn mfa(&self) -> Option<&str>
pub fn mfa(&self) -> Option<&str>
The concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device.
sourcepub fn versioning_configuration(&self) -> Option<&VersioningConfiguration>
pub fn versioning_configuration(&self) -> Option<&VersioningConfiguration>
The root-level tag for the VersioningConfiguration
parameters.
Trait Implementations§
source§impl Clone for PutBucketVersioningInput
impl Clone for PutBucketVersioningInput
source§fn clone(&self) -> PutBucketVersioningInput
fn clone(&self) -> PutBucketVersioningInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more