Resource: aws_cloudfront_field_level_encryption_config

Provides a CloudFront Field-level Encryption Config resource.

Example Usage

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

  content_type_profile_config {
    forward_when_content_type_is_unknown = true

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

  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
        query_arg  = "Arg1"
      }
    }
  }
}

Argument Reference

This resource supports the following arguments:

Content Type Profile Config

Content Type Profile

Query Arg Profile Config

Query Arg Profile

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import Cloudfront Field Level Encryption Config using the id. For example:

import {
  to = aws_cloudfront_field_level_encryption_config.config
  id = "E74FTE3AEXAMPLE"
}

Using terraform import, import Cloudfront Field Level Encryption Config using the id. For example:

% terraform import aws_cloudfront_field_level_encryption_config.config E74FTE3AEXAMPLE