ionoscloud_s3_versioning
Manages Buckets versioning on IONOS CLOUD.
Manages Buckets versioning on IONOS CLOUD.
Example Usage
resource "ionoscloud_s3_bucket" "example" {
name = "example"
}
resource "ionoscloud_s3_bucket_versioning" "example"{
bucket = ionoscloud_s3_bucket.example.name
versioning_configuration {
status = "Enabled"
}
}
Argument Reference
The following arguments are supported:
bucket- (Required)[string] The name of the bucket where the object will be stored.versioning_configuration- (Required)[block] A block of versioning_configuration as defined below.status- (Required)[string] The versioning state of the bucket. Can beEnabledorSuspended.mfa_delete- (Optional)[string] Specifies whether MFA delete is enabled or not. Can beEnabledorDisabled.
Import
IONOS Object Storage Bucket Versioning can be imported using the bucket name.
Previousionoscloud_s3_bucket_server_side_encryption_configuration
Nextionoscloud_s3_bucket_website_configuration
Last updated
Was this helpful?