Struct aws_sdk_s3::operation::put_bucket_accelerate_configuration::builders::PutBucketAccelerateConfigurationFluentBuilder
source · pub struct PutBucketAccelerateConfigurationFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to PutBucketAccelerateConfiguration
.
This operation is not supported by directory buckets.
Sets the accelerate configuration of an existing bucket. Amazon S3 Transfer Acceleration is a bucket-level feature that enables you to perform faster data transfers to Amazon S3.
To use this operation, you must have permission to perform the s3:PutAccelerateConfiguration
action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.
The Transfer Acceleration state of a bucket can be set to one of the following two values:
-
Enabled – Enables accelerated data transfers to the bucket.
-
Suspended – Disables accelerated data transfers to the bucket.
The GetBucketAccelerateConfiguration action returns the transfer acceleration state of a bucket.
After setting the Transfer Acceleration state of a bucket to Enabled, it might take up to thirty minutes before the data transfer rates to the bucket increase.
The name of the bucket used for Transfer Acceleration must be DNS-compliant and must not contain periods (".").
For more information about transfer acceleration, see Transfer Acceleration.
The following operations are related to PutBucketAccelerateConfiguration
:
Implementations§
source§impl PutBucketAccelerateConfigurationFluentBuilder
impl PutBucketAccelerateConfigurationFluentBuilder
sourcepub fn as_input(&self) -> &PutBucketAccelerateConfigurationInputBuilder
pub fn as_input(&self) -> &PutBucketAccelerateConfigurationInputBuilder
Access the PutBucketAccelerateConfiguration as a reference.
sourcepub async fn send(
self,
) -> Result<PutBucketAccelerateConfigurationOutput, SdkError<PutBucketAccelerateConfigurationError, HttpResponse>>
pub async fn send( self, ) -> Result<PutBucketAccelerateConfigurationOutput, SdkError<PutBucketAccelerateConfigurationError, 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<PutBucketAccelerateConfigurationOutput, PutBucketAccelerateConfigurationError, Self>
pub fn customize( self, ) -> CustomizableOperation<PutBucketAccelerateConfigurationOutput, PutBucketAccelerateConfigurationError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn bucket(self, input: impl Into<String>) -> Self
pub fn bucket(self, input: impl Into<String>) -> Self
The name of the bucket for which the accelerate configuration is set.
sourcepub fn set_bucket(self, input: Option<String>) -> Self
pub fn set_bucket(self, input: Option<String>) -> Self
The name of the bucket for which the accelerate configuration is set.
sourcepub fn get_bucket(&self) -> &Option<String>
pub fn get_bucket(&self) -> &Option<String>
The name of the bucket for which the accelerate configuration is set.
sourcepub fn accelerate_configuration(self, input: AccelerateConfiguration) -> Self
pub fn accelerate_configuration(self, input: AccelerateConfiguration) -> Self
Container for setting the transfer acceleration state.
sourcepub fn set_accelerate_configuration(
self,
input: Option<AccelerateConfiguration>,
) -> Self
pub fn set_accelerate_configuration( self, input: Option<AccelerateConfiguration>, ) -> Self
Container for setting the transfer acceleration state.
sourcepub fn get_accelerate_configuration(&self) -> &Option<AccelerateConfiguration>
pub fn get_accelerate_configuration(&self) -> &Option<AccelerateConfiguration>
Container for setting the transfer acceleration state.
sourcepub fn expected_bucket_owner(self, input: impl Into<String>) -> Self
pub fn expected_bucket_owner(self, input: impl Into<String>) -> Self
The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden
(access denied).
sourcepub fn set_expected_bucket_owner(self, input: Option<String>) -> Self
pub fn set_expected_bucket_owner(self, input: Option<String>) -> Self
The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden
(access denied).
sourcepub fn get_expected_bucket_owner(&self) -> &Option<String>
pub fn get_expected_bucket_owner(&self) -> &Option<String>
The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden
(access denied).
sourcepub fn checksum_algorithm(self, input: ChecksumAlgorithm) -> Self
pub fn checksum_algorithm(self, input: ChecksumAlgorithm) -> Self
Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum
or x-amz-trailer
header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request
. For more information, see Checking object integrity in the Amazon S3 User Guide.
If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm
parameter.
sourcepub fn set_checksum_algorithm(self, input: Option<ChecksumAlgorithm>) -> Self
pub fn set_checksum_algorithm(self, input: Option<ChecksumAlgorithm>) -> Self
Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum
or x-amz-trailer
header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request
. For more information, see Checking object integrity in the Amazon S3 User Guide.
If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm
parameter.
sourcepub fn get_checksum_algorithm(&self) -> &Option<ChecksumAlgorithm>
pub fn get_checksum_algorithm(&self) -> &Option<ChecksumAlgorithm>
Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum
or x-amz-trailer
header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request
. For more information, see Checking object integrity in the Amazon S3 User Guide.
If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm
parameter.
Trait Implementations§
source§impl Clone for PutBucketAccelerateConfigurationFluentBuilder
impl Clone for PutBucketAccelerateConfigurationFluentBuilder
source§fn clone(&self) -> PutBucketAccelerateConfigurationFluentBuilder
fn clone(&self) -> PutBucketAccelerateConfigurationFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for PutBucketAccelerateConfigurationFluentBuilder
impl !RefUnwindSafe for PutBucketAccelerateConfigurationFluentBuilder
impl Send for PutBucketAccelerateConfigurationFluentBuilder
impl Sync for PutBucketAccelerateConfigurationFluentBuilder
impl Unpin for PutBucketAccelerateConfigurationFluentBuilder
impl !UnwindSafe for PutBucketAccelerateConfigurationFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)