# CfnQuerySuggestionsBlockListProps

Properties for defining a `CfnQuerySuggestionsBlockList`.

Used as props by: [CfnQuerySuggestionsBlockList](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kendra.CfnQuerySuggestionsBlockList.html)

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kendra as kendra } from 'aws-cdk-lib';
const cfnQuerySuggestionsBlockListProps: kendra.CfnQuerySuggestionsBlockListProps = {
  indexId: 'indexId',
  name: 'name',
  roleArn: 'roleArn',
  sourceS3Path: {
    bucket: 'bucket',
    key: 'key',
  },

  // the properties below are optional
  description: 'description',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_kendra as kendra

cfn_query_suggestions_block_list_props = kendra.CfnQuerySuggestionsBlockListProps(
    index_id="indexId",
    name="name",
    role_arn="roleArn",
    source_s3_path=kendra.CfnQuerySuggestionsBlockList.S3PathProperty(
        bucket="bucket",
        key="key"
    ),

    # the properties below are optional
    description="description",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.kendra.*;

CfnQuerySuggestionsBlockListProps cfnQuerySuggestionsBlockListProps = CfnQuerySuggestionsBlockListProps.builder()
        .indexId("indexId")
        .name("name")
        .roleArn("roleArn")
        .sourceS3Path(S3PathProperty.builder()
                .bucket("bucket")
                .key("key")
                .build())

        // the properties below are optional
        .description("description")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Kendra;

var cfnQuerySuggestionsBlockListProps = new CfnQuerySuggestionsBlockListProps {
    IndexId = "indexId",
    Name = "name",
    RoleArn = "roleArn",
    SourceS3Path = new S3PathProperty {
        Bucket = "bucket",
        Key = "key"
    },

    // the properties below are optional
    Description = "description",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnQuerySuggestionsBlockListProps := &CfnQuerySuggestionsBlockListProps{
	IndexId: jsii.String("indexId"),
	Name: jsii.String("name"),
	RoleArn: jsii.String("roleArn"),
	SourceS3Path: &S3PathProperty{
		Bucket: jsii.String("bucket"),
		Key: jsii.String("key"),
	},

	// the properties below are optional
	Description: jsii.String("description"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `description`: string — A description for the block list.

- `indexId`: string (required) — The identifier of the index for the block list.

- `name`: string (required) — The name of the block list.

- `roleArn`: string (required) — The Amazon Resource Name (ARN) of an IAM role with permission to access the S3 bucket that contains the block list text file.

- `sourceS3Path`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnQuerySuggestionsBlockList.S3PathProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kendra.CfnQuerySuggestionsBlockList.S3PathProperty.html) (required) — Information required to find a specific file in an Amazon S3 bucket.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A list of key-value pairs that identify or categorize the block list.
