Resource: aws_kendra_query_suggestions_block_list

Use the aws_kendra_index_block_list resource to manage an AWS Kendra block list used for query suggestions for an index.

Example Usage

Basic Usage

resource "aws_kendra_query_suggestions_block_list" "example" {
  index_id = aws_kendra_index.example.id
  name     = "Example"
  role_arn = aws_iam_role.example.arn

  source_s3_path {
    bucket = aws_s3_bucket.example.id
    key    = "example/suggestions.txt"
  }

  tags = {
    Name = "Example Kendra Index"
  }
}

Argument Reference

The following arguments are required:

The source_s3_path configuration block supports the following arguments:

The following arguments are optional:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options for operation timeouts can be found here.

Import

In Terraform v1.5.0 and later, use an import block to import the aws_kendra_query_suggestions_block_list resource using the unique identifiers of the block list and index separated by a slash (/). For example:

import {
  to = aws_kendra_query_suggestions_block_list.example
  id = "blocklist-123456780/idx-8012925589"
}

Using terraform import, import the aws_kendra_query_suggestions_block_list resource using the unique identifiers of the block list and index separated by a slash (/). For example:

% terraform import aws_kendra_query_suggestions_block_list.example blocklist-123456780/idx-8012925589