{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-create-predefined-attribute-request-schema.json",
  "title": "CreatePredefinedAttributeRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-predefined-attributes-api-openapi.yml#/components/schemas/CreatePredefinedAttributeRequest",
  "type": "object",
  "properties": {
    "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 predefined attribute."
    },
    "Values": {
      "$ref": "#/$defs/PredefinedAttributeValues"
    },
    "Purposes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Values that enable you to categorize your predefined attributes. You can use them in custom UI elements across the Connect Customer admin website."
    },
    "AttributeConfiguration": {
      "$ref": "#/$defs/InputPredefinedAttributeConfiguration"
    }
  },
  "required": [
    "InstanceId",
    "Name"
  ],
  "$defs": {
    "InputPredefinedAttributeConfiguration": {
      "type": "object",
      "properties": {
        "EnableValueValidationOnAssociation": {
          "type": "boolean",
          "description": "When this parameter is set to true, Connect Customer enforces strict validation on the specific values, if the values are predefined in attributes. The contact will store only valid and predefined values for the predefined attribute key."
        }
      }
    },
    "PredefinedAttributeValues": {
      "type": "object",
      "properties": {
        "StringList": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Predefined attribute values of type string list."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}