AWS SDK Version 3 for .NET
API Reference

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.

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:

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to PutBucketLifecycleConfigurationAsync.

Namespace: Amazon.S3Control
Assembly: AWSSDK.S3Control.dll
Version: 3.x.y.z

Syntax

C#
public virtual PutBucketLifecycleConfigurationResponse PutBucketLifecycleConfiguration(
         PutBucketLifecycleConfigurationRequest request
)

Parameters

request
Type: Amazon.S3Control.Model.PutBucketLifecycleConfigurationRequest

Container for the necessary parameters to execute the PutBucketLifecycleConfiguration service method.

Return Value


The response from the PutBucketLifecycleConfiguration service method, as returned by S3Control.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also