{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudfront/json-schema/cloudfront-create-field-level-encryption-config-result-schema.json",
  "title": "CreateFieldLevelEncryptionConfigResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudfront-field-level-encryption-api-openapi.yml#/components/schemas/CreateFieldLevelEncryptionConfigResult",
  "type": "object",
  "properties": {
    "FieldLevelEncryption": {
      "$ref": "#/$defs/FieldLevelEncryption"
    },
    "Location": {
      "type": "string",
      "description": "The fully qualified URI of the new configuration resource just created."
    },
    "ETag": {
      "type": "string",
      "description": "The current version of the field level encryption configuration. For example: E2QWRUHAPOMQZL."
    }
  },
  "$defs": {
    "ContentTypeProfile": {
      "type": "object",
      "properties": {
        "Format": {
          "type": "string",
          "enum": [
            "URLEncoded"
          ],
          "description": "The format for a field-level encryption content type-profile mapping."
        },
        "ProfileId": {
          "type": "string",
          "description": "The profile ID for a field-level encryption content type-profile mapping."
        },
        "ContentType": {
          "type": "string",
          "description": "The content type for a field-level encryption content type-profile mapping."
        }
      },
      "required": [
        "Format",
        "ContentType"
      ]
    },
    "ContentTypeProfileConfig": {
      "type": "object",
      "properties": {
        "ForwardWhenContentTypeIsUnknown": {
          "type": "boolean",
          "description": "The setting in a field-level encryption content type-profile mapping that specifies what to do when an unknown content type is provided for the profile. If true, content is forwarded without being encrypted when the content type is unknown. If false (the default), an error is returned when the content type is unknown."
        },
        "ContentTypeProfiles": {
          "$ref": "#/$defs/ContentTypeProfiles"
        }
      },
      "required": [
        "ForwardWhenContentTypeIsUnknown"
      ]
    },
    "ContentTypeProfiles": {
      "type": "object",
      "properties": {
        "Quantity": {
          "type": "integer",
          "description": "The number of field-level encryption content type-profile mappings."
        },
        "Items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ContentTypeProfile"
          },
          "description": "Items in a field-level encryption content type-profile mapping."
        }
      },
      "required": [
        "Quantity"
      ]
    },
    "FieldLevelEncryption": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string",
          "description": "The configuration ID for a field-level encryption configuration which includes a set of profiles that specify certain selected data fields to be encrypted by specific public keys."
        },
        "LastModifiedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The last time the field-level encryption configuration was changed."
        },
        "FieldLevelEncryptionConfig": {
          "$ref": "#/$defs/FieldLevelEncryptionConfig"
        }
      },
      "required": [
        "Id",
        "LastModifiedTime",
        "FieldLevelEncryptionConfig"
      ]
    },
    "FieldLevelEncryptionConfig": {
      "type": "object",
      "properties": {
        "CallerReference": {
          "type": "string",
          "description": "A unique number that ensures the request can't be replayed."
        },
        "Comment": {
          "type": "string",
          "description": "An optional comment about the configuration. The comment cannot be longer than 128 characters."
        },
        "QueryArgProfileConfig": {
          "$ref": "#/$defs/QueryArgProfileConfig"
        },
        "ContentTypeProfileConfig": {
          "$ref": "#/$defs/ContentTypeProfileConfig"
        }
      },
      "required": [
        "CallerReference"
      ]
    },
    "QueryArgProfile": {
      "type": "object",
      "properties": {
        "QueryArg": {
          "type": "string",
          "description": "Query argument for field-level encryption query argument-profile mapping."
        },
        "ProfileId": {
          "type": "string",
          "description": "ID of profile to use for field-level encryption query argument-profile mapping"
        }
      },
      "required": [
        "QueryArg",
        "ProfileId"
      ]
    },
    "QueryArgProfileConfig": {
      "type": "object",
      "properties": {
        "ForwardWhenQueryArgProfileIsUnknown": {
          "type": "boolean",
          "description": "Flag to set if you want a request to be forwarded to the origin even if the profile specified by the field-level encryption query argument, fle-profile, is unknown."
        },
        "QueryArgProfiles": {
          "$ref": "#/$defs/QueryArgProfiles"
        }
      },
      "required": [
        "ForwardWhenQueryArgProfileIsUnknown"
      ]
    },
    "QueryArgProfiles": {
      "type": "object",
      "properties": {
        "Quantity": {
          "type": "integer",
          "description": "Number of profiles for query argument-profile mapping for field-level encryption."
        },
        "Items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/QueryArgProfile"
          },
          "description": "Number of items for query argument-profile mapping for field-level encryption."
        }
      },
      "required": [
        "Quantity"
      ]
    }
  }
}