Creates a CloudFront field-level encryption configuration that specifies how to handle encrypted content for both content types and query arguments.

Terraform Template

resource "aws_cloudfront_field_level_encryption_config" "test" {
  comment = "test comment"

  content_type_profile_config {

    content_type_profiles {

      items {
        content_type = "application/x-www-form-urlencoded"
        format = "URLEncoded"
      }
    }
    forward_when_content_type_is_unknown = true
  }

  query_arg_profile_config {
    forward_when_query_arg_profile_is_unknown = true

    query_arg_profiles {

      items {
        profile_id = "aws_cloudfront_field_level_encryption_profile.test.id"
      }
    }
  }
}