Manages Buckets lifecycle configuration on IonosCloud.
Manages Lifecycle Configuration for Buckets on IonosCloud.
The following arguments are supported:
bucket
- (Required)[string] The name of the bucket where the object will be stored.
lifecycle_rule
- (Required)[block] A block of lifecycle_rule as defined below.
id
- (Optional)[int] Container for the Contract Number of the owner
prefix
- (Required)[string] Prefix identifying one or more objects to which the rule applies.
status
- (Required)[string] The lifecycle rule status. Valid values are Enabled
or Disabled
.
expiration
- (Optional)[block] A lifecycle rule for when an object expires.
days
- (Optional)[int] Specifies the number of days after object creation when the object expires. Required if 'date' is not specified.
date
- (Optional)[string] Specifies the date after which you want the specific rule action to take effect.
expired_object_delete_marker
- (Optional)[bool] Indicates whether IONOS Object Storage will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no operation. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.
noncurrent_version_expiration
- (Optional)[block] A lifecycle rule for when non-current object versions expire.
noncurrent_days
- (Optional)[int] Specifies the number of days an object is noncurrent before the associated action can be performed.
abort_incomplete_multipart_upload
- (Optional)[block] Specifies the days since the initiation of an incomplete multipart upload that IONOS Object Storage will wait before permanently removing all parts of the upload.
days_after_initiation
- (Optional)[int] Specifies the number of days after which IONOS Object Storage aborts an incomplete multipart upload.
IONOS Object Storage Bucket lifecycle configuration can be imported using the bucket
name.