How to enable or disable bucket versioning for s3 bucket created inside cloud front

I am new to terraform coding.I have a resource cloud front distribution inside logging have an s3 bucket.Now I want to control bucket versioning for this s3 bucket created inside cloud front from terraform.When I try versioning block inside aws_cloudfront_distribution it says this block not expected here.

Can some one please help me on this
resource “aws_cloudfront_distribution” “example” {

logging_config {
include_cookies = var.distribution_logging_config_include_cookies
bucket = “
prefix = “source=aws/account=path”