pub struct PutBucketLifecycleConfiguration { /* private fields */ }
Expand description
Fluent builder constructing a request to PutBucketLifecycleConfiguration
.
This action puts a lifecycle configuration to an Amazon S3 on Outposts bucket. To put a lifecycle configuration to an S3 bucket, see PutBucketLifecycleConfiguration in the Amazon S3 API Reference.
Creates a new lifecycle configuration for the S3 on Outposts bucket or replaces an existing lifecycle configuration. Outposts buckets only support lifecycle configurations that delete/expire objects after a certain period of time and abort incomplete multipart uploads.
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 actions are related to PutBucketLifecycleConfiguration
:
Implementations§
source§impl PutBucketLifecycleConfiguration
impl PutBucketLifecycleConfiguration
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<PutBucketLifecycleConfiguration, AwsResponseRetryClassifier>, SdkError<PutBucketLifecycleConfigurationError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<PutBucketLifecycleConfiguration, AwsResponseRetryClassifier>, SdkError<PutBucketLifecycleConfigurationError>>
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<PutBucketLifecycleConfigurationOutput, SdkError<PutBucketLifecycleConfigurationError>>
pub async fn send(
self
) -> Result<PutBucketLifecycleConfigurationOutput, SdkError<PutBucketLifecycleConfigurationError>>
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 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 Outposts bucket.
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 to set the configuration.
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 to set the configuration.
sourcepub fn lifecycle_configuration(self, input: LifecycleConfiguration) -> Self
pub fn lifecycle_configuration(self, input: LifecycleConfiguration) -> Self
Container for lifecycle rules. You can add as many as 1,000 rules.
sourcepub fn set_lifecycle_configuration(
self,
input: Option<LifecycleConfiguration>
) -> Self
pub fn set_lifecycle_configuration(
self,
input: Option<LifecycleConfiguration>
) -> Self
Container for lifecycle rules. You can add as many as 1,000 rules.
Trait Implementations§
source§impl Clone for PutBucketLifecycleConfiguration
impl Clone for PutBucketLifecycleConfiguration
source§fn clone(&self) -> PutBucketLifecycleConfiguration
fn clone(&self) -> PutBucketLifecycleConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more