aws s3api put-bucket-lifecycle-configuration
Creates a new lifecycle configuration for the bucket or replaces an existing lifecycle configuration. AWS CLI reference
5 options Its page in the AWS CLI reference
Options
--bucketThe name of the bucket for which to set the configuration.--checksum-algorithmIndicates the algorithm used to create the checksum for the request when you use the SDK.--expected-bucket-ownerThe account ID of the expected bucket owner.--lifecycle-configurationContainer for lifecycle rules.--transition-default-minimum-object-sizeIndicates which default minimum object size behavior is applied to the lifecycle configuration.