{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-resource-explorer/json-schema/amazon-resource-explorer-create-view-input-schema.json",
  "title": "CreateViewInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-resource-explorer-views-api-openapi.yml#/components/schemas/CreateViewInput",
  "type": "object",
  "properties": {
    "ClientToken": {
      "type": "string",
      "description": "This value helps ensure idempotency. Resource Explorer uses this value to prevent the accidental creation of duplicate versions. We recommend that you generate a UUID-type value to ensure the uniqueness of your views."
    },
    "ViewName": {
      "type": "string",
      "description": "The name of the new view. This name appears in the list of views in Resource Explorer. The name must be no more than 64 characters long, and can include letters, digits, and the dash (-) character. The name must be unique within its Amazon Web Services Region."
    },
    "IncludedProperties": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/IncludedProperty"
      },
      "description": "Specifies optional fields that you want included in search results from this view. It is a list of objects that each describe a field to include. The default is an empty list, with no optional fields included in the results."
    },
    "Scope": {
      "type": "string",
      "description": "The root ARN of the account, an organizational unit (OU), or an organization ARN. If left empty, the default is account."
    },
    "Filters": {
      "$ref": "#/$defs/SearchFilter"
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Tag key and value pairs that are attached to the view."
    }
  },
  "required": [
    "ViewName"
  ],
  "$defs": {
    "IncludedProperty": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the property that is included in this view. You can specify the following property names for this field: tags"
        }
      },
      "required": [
        "Name"
      ]
    },
    "SearchFilter": {
      "type": "object",
      "properties": {
        "FilterString": {
          "type": "string",
          "description": "The string that contains the search keywords, prefixes, and operators to control the results that can be returned by a Search operation. For more details, see Search query syntax."
        }
      },
      "required": [
        "FilterString"
      ]
    }
  }
}