{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudfront/json-schema/cloudfront-update-field-level-encryption-config-request-schema.json",
  "title": "UpdateFieldLevelEncryptionConfigRequest",
  "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/UpdateFieldLevelEncryptionConfigRequest",
  "type": "object",
  "properties": {
    "FieldLevelEncryptionConfig": {
      "$ref": "#/$defs/FieldLevelEncryptionConfig"
    },
    "Id": {
      "type": "string",
      "description": "The ID of the configuration you want to update."
    },
    "IfMatch": {
      "type": "string",
      "description": "The value of the ETag header that you received when retrieving the configuration identity to update. For example: E2QWRUHAPOMQZL."
    }
  },
  "required": [
    "FieldLevelEncryptionConfig",
    "Id"
  ],
  "$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"
      ]
    },
    "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"
      ]
    }
  }
}