aws s3api put-bucket-lifecycle
This operation is not supported for directory buckets. AWS CLI reference
4 options Its page in the AWS CLI reference
Options
--checksum-algorithmIndicates the algorithm used to create the checksum for the request when you use the SDK.--content-md5For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.--expected-bucket-ownerThe account ID of the expected bucket owner.--lifecycle-configuration, --bucket