{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-create-view-request-schema.json",
  "title": "CreateViewRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-views-api-openapi.yml#/components/schemas/CreateViewRequest",
  "type": "object",
  "properties": {
    "InstanceId": {
      "type": "string",
      "description": "The identifier of the Connect Customer instance. You can find the instanceId in the ARN of the instance."
    },
    "ClientToken": {
      "type": "string",
      "description": "A unique Id for each create view request to avoid duplicate view creation. For example, the view is idempotent ClientToken is provided."
    },
    "Status": {
      "type": "string",
      "enum": [
        "PUBLISHED",
        "SAVED"
      ],
      "description": "Indicates the view status as either SAVED or PUBLISHED. The PUBLISHED status will initiate validation on the content."
    },
    "Content": {
      "$ref": "#/$defs/ViewInputContent"
    },
    "Description": {
      "type": "string",
      "description": "The description of the view."
    },
    "Name": {
      "type": "string",
      "description": "The name of the view."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags associated with the view resource (not specific to view version).These tags can be used to organize, track, or control access for this resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }."
    }
  },
  "required": [
    "InstanceId",
    "Status",
    "Content",
    "Name"
  ],
  "$defs": {
    "ViewInputContent": {
      "type": "object",
      "properties": {
        "Template": {
          "type": "string",
          "description": "The view template representing the structure of the view."
        },
        "Actions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of possible actions from the view."
        }
      }
    }
  }
}