Struct bonsaidb::keystorage::s3::aws_sdk_s3::operation::put_bucket_accelerate_configuration::builders::PutBucketAccelerateConfigurationFluentBuilder
pub struct PutBucketAccelerateConfigurationFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to PutBucketAccelerateConfiguration
.
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§
§impl PutBucketAccelerateConfigurationFluentBuilder
impl PutBucketAccelerateConfigurationFluentBuilder
pub fn as_input(&self) -> &PutBucketAccelerateConfigurationInputBuilder
pub fn as_input(&self) -> &PutBucketAccelerateConfigurationInputBuilder
Access the PutBucketAccelerateConfiguration as a reference.
pub async fn send(
self
) -> Result<PutBucketAccelerateConfigurationOutput, SdkError<PutBucketAccelerateConfigurationError, Response<SdkBody>>>
pub async fn send( self ) -> Result<PutBucketAccelerateConfigurationOutput, SdkError<PutBucketAccelerateConfigurationError, Response<SdkBody>>>
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.
pub async fn customize(
self
) -> Result<CustomizableOperation<PutBucketAccelerateConfigurationOutput, PutBucketAccelerateConfigurationError, PutBucketAccelerateConfigurationFluentBuilder>, SdkError<PutBucketAccelerateConfigurationError>>
pub async fn customize( self ) -> Result<CustomizableOperation<PutBucketAccelerateConfigurationOutput, PutBucketAccelerateConfigurationError, PutBucketAccelerateConfigurationFluentBuilder>, SdkError<PutBucketAccelerateConfigurationError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
pub fn bucket(
self,
input: impl Into<String>
) -> PutBucketAccelerateConfigurationFluentBuilder
pub fn bucket( self, input: impl Into<String> ) -> PutBucketAccelerateConfigurationFluentBuilder
The name of the bucket for which the accelerate configuration is set.
pub fn set_bucket(
self,
input: Option<String>
) -> PutBucketAccelerateConfigurationFluentBuilder
pub fn set_bucket( self, input: Option<String> ) -> PutBucketAccelerateConfigurationFluentBuilder
The name of the bucket for which the accelerate configuration is set.
pub 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.
pub fn accelerate_configuration(
self,
input: AccelerateConfiguration
) -> PutBucketAccelerateConfigurationFluentBuilder
pub fn accelerate_configuration( self, input: AccelerateConfiguration ) -> PutBucketAccelerateConfigurationFluentBuilder
Container for setting the transfer acceleration state.
pub fn set_accelerate_configuration(
self,
input: Option<AccelerateConfiguration>
) -> PutBucketAccelerateConfigurationFluentBuilder
pub fn set_accelerate_configuration( self, input: Option<AccelerateConfiguration> ) -> PutBucketAccelerateConfigurationFluentBuilder
Container for setting the transfer acceleration state.
pub fn get_accelerate_configuration(&self) -> &Option<AccelerateConfiguration>
pub fn get_accelerate_configuration(&self) -> &Option<AccelerateConfiguration>
Container for setting the transfer acceleration state.
pub fn expected_bucket_owner(
self,
input: impl Into<String>
) -> PutBucketAccelerateConfigurationFluentBuilder
pub fn expected_bucket_owner( self, input: impl Into<String> ) -> PutBucketAccelerateConfigurationFluentBuilder
The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden
(access denied).
pub fn set_expected_bucket_owner(
self,
input: Option<String>
) -> PutBucketAccelerateConfigurationFluentBuilder
pub fn set_expected_bucket_owner( self, input: Option<String> ) -> PutBucketAccelerateConfigurationFluentBuilder
The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden
(access denied).
pub 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 bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden
(access denied).
pub fn checksum_algorithm(
self,
input: ChecksumAlgorithm
) -> PutBucketAccelerateConfigurationFluentBuilder
pub fn checksum_algorithm( self, input: ChecksumAlgorithm ) -> PutBucketAccelerateConfigurationFluentBuilder
Indicates the algorithm used to create the checksum for the object when using the SDK. This header will not provide any additional functionality if not using the SDK. When sending 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.
pub fn set_checksum_algorithm(
self,
input: Option<ChecksumAlgorithm>
) -> PutBucketAccelerateConfigurationFluentBuilder
pub fn set_checksum_algorithm( self, input: Option<ChecksumAlgorithm> ) -> PutBucketAccelerateConfigurationFluentBuilder
Indicates the algorithm used to create the checksum for the object when using the SDK. This header will not provide any additional functionality if not using the SDK. When sending 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.
pub 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 using the SDK. This header will not provide any additional functionality if not using the SDK. When sending 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§
§impl Clone for PutBucketAccelerateConfigurationFluentBuilder
impl Clone for PutBucketAccelerateConfigurationFluentBuilder
§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 more