{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-kendra/json-schema/amazon-kendra-create-query-suggestions-block-list-request-schema.json",
  "title": "CreateQuerySuggestionsBlockListRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-kendra-query-suggestions-block-list-api-openapi.yml#/components/schemas/CreateQuerySuggestionsBlockListRequest",
  "type": "object",
  "properties": {
    "IndexId": {
      "type": "string",
      "description": "The identifier of the index you want to create a query suggestions block list for."
    },
    "Name": {
      "type": "string",
      "description": "A name for the block list. For example, the name 'offensive-words', which includes all offensive words that could appear in user queries and need to be blocked from suggestions."
    },
    "Description": {
      "type": "string",
      "description": "A description for the block list. For example, the description \"List of all offensive words that can appear in user queries and need to be blocked from suggestions.\""
    },
    "SourceS3Path": {
      "$ref": "#/$defs/S3Path"
    },
    "ClientToken": {
      "type": "string",
      "description": "A token that you provide to identify the request to create a query suggestions block list."
    },
    "RoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket that contains the block list text file. For more information, see IAM access roles for Amazon Kendra."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A list of key-value pairs that identify or categorize the block list. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @."
    }
  },
  "required": [
    "IndexId",
    "Name",
    "SourceS3Path",
    "RoleArn"
  ],
  "$defs": {
    "S3Path": {
      "type": "object",
      "properties": {
        "Bucket": {
          "type": "string",
          "description": "The name of the S3 bucket that contains the file."
        },
        "Key": {
          "type": "string",
          "description": "The name of the file."
        }
      },
      "required": [
        "Bucket",
        "Key"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key for the tag. Keys are not case sensitive and must be unique for the index, FAQ, data source, or other resource."
        },
        "Value": {
          "type": "string",
          "description": "The value associated with the tag. The value may be an empty string but it can't be null."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}