AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the PutBucketLifecycleConfiguration operation.
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:
Namespace: Amazon.S3Control.Model
Assembly: AWSSDK.S3Control.dll
Version: 3.x.y.z
public class PutBucketLifecycleConfigurationRequest : AmazonS3ControlRequest IAmazonWebServiceRequest
The PutBucketLifecycleConfigurationRequest type exposes the following members
| Name | Description | |
|---|---|---|
|
PutBucketLifecycleConfigurationRequest() |
| Name | Type | Description | |
|---|---|---|---|
|
AccountId | System.String |
Gets and sets the property AccountId. The Amazon Web Services account ID of the Outposts bucket. |
|
Bucket | System.String |
Gets and sets the property Bucket. The name of the bucket for which to set the configuration. |
|
LifecycleConfiguration | Amazon.S3Control.Model.LifecycleConfiguration |
Gets and sets the property LifecycleConfiguration. Container for lifecycle rules. You can add as many as 1,000 rules. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5