Struct aws_sdk_s3::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationInput
source · #[non_exhaustive]pub struct PutBucketLifecycleConfigurationInput {
pub bucket: Option<String>,
pub checksum_algorithm: Option<ChecksumAlgorithm>,
pub lifecycle_configuration: Option<BucketLifecycleConfiguration>,
pub expected_bucket_owner: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.bucket: Option<String>
The name of the bucket for which to set the configuration.
checksum_algorithm: 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.
lifecycle_configuration: Option<BucketLifecycleConfiguration>
Container for lifecycle rules. You can add as many as 1,000 rules.
expected_bucket_owner: 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).
Implementations§
source§impl PutBucketLifecycleConfigurationInput
impl PutBucketLifecycleConfigurationInput
sourcepub fn bucket(&self) -> Option<&str>
pub fn bucket(&self) -> Option<&str>
The name of the bucket for which to set the configuration.
sourcepub fn checksum_algorithm(&self) -> Option<&ChecksumAlgorithm>
pub fn 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.
sourcepub fn lifecycle_configuration(&self) -> Option<&BucketLifecycleConfiguration>
pub fn lifecycle_configuration(&self) -> Option<&BucketLifecycleConfiguration>
Container for lifecycle rules. You can add as many as 1,000 rules.
sourcepub fn expected_bucket_owner(&self) -> Option<&str>
pub fn expected_bucket_owner(&self) -> Option<&str>
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).
source§impl PutBucketLifecycleConfigurationInput
impl PutBucketLifecycleConfigurationInput
sourcepub fn builder() -> PutBucketLifecycleConfigurationInputBuilder
pub fn builder() -> PutBucketLifecycleConfigurationInputBuilder
Creates a new builder-style object to manufacture PutBucketLifecycleConfigurationInput
.
Trait Implementations§
source§impl Clone for PutBucketLifecycleConfigurationInput
impl Clone for PutBucketLifecycleConfigurationInput
source§fn clone(&self) -> PutBucketLifecycleConfigurationInput
fn clone(&self) -> PutBucketLifecycleConfigurationInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for PutBucketLifecycleConfigurationInput
impl PartialEq for PutBucketLifecycleConfigurationInput
source§fn eq(&self, other: &PutBucketLifecycleConfigurationInput) -> bool
fn eq(&self, other: &PutBucketLifecycleConfigurationInput) -> bool
self
and other
values to be equal, and is used
by ==
.