{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-update-extraction-definition-request-schema.json",
  "title": "UpdateExtractionDefinitionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-extraction-definitions-api-openapi.yml#/components/schemas/UpdateExtractionDefinitionRequest",
  "type": "object",
  "properties": {
    "ClientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field."
    },
    "ExtractionDefinitionId": {
      "type": "string",
      "description": "The identifier of the extraction definition to update."
    },
    "InstanceId": {
      "type": "string",
      "description": "The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance."
    },
    "Name": {
      "type": "string",
      "description": "The name of the extraction definition."
    },
    "ExtractionConfiguration": {
      "$ref": "#/$defs/ExtractionConfiguration"
    },
    "Display": {
      "$ref": "#/$defs/ExtractionDefinitionDisplay"
    }
  },
  "required": [
    "ExtractionDefinitionId",
    "InstanceId",
    "Name",
    "ExtractionConfiguration"
  ],
  "$defs": {
    "ExtractionConfiguration": {
      "type": "object",
      "properties": {
        "PromptHint": {
          "type": "string",
          "description": "The prompt hint that guides the extraction. This text tells the generative AI model what data to look for in the customer interaction."
        },
        "NotFoundBehavior": {
          "$ref": "#/$defs/ExtractionDefinitionNotFoundBehavior"
        }
      },
      "required": [
        "PromptHint"
      ]
    },
    "ExtractionDefinitionDisplay": {
      "type": "object",
      "properties": {
        "Label": {
          "type": "string",
          "description": "The label displayed in the agent workspace for this extraction definition."
        }
      }
    },
    "ExtractionDefinitionNotFoundBehavior": {
      "type": "object",
      "properties": {
        "Behavior": {
          "type": "string",
          "enum": [
            "USE_DEFAULT_VALUE",
            "OMIT"
          ],
          "description": "The behavior type. USE_DEFAULT_VALUE returns the specified default value. OMIT excludes the field from the output."
        },
        "DefaultValue": {
          "type": "string",
          "description": "The default value to use when the behavior is USE_DEFAULT_VALUE."
        }
      },
      "required": [
        "Behavior"
      ]
    }
  }
}