Skip to content
v2.278.0

CfnQuerySuggestionsBlockListProps Struct ​

Properties for defining a CfnQuerySuggestionsBlockList.

Example ​

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
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
// 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();
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"
    } }
};
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 ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
A description for the block list.
indexIdstringindex_idstrindexIdStringIndexIdstringIndexId*string required #
The identifier of the index for the block list.
namestringnamestrnameStringNamestringName*string required #
The name of the block list.
roleArnstringrole_arnstrroleArnStringRoleArnstringRoleArn*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.
sourceS3PathIResolvable | CfnQuerySuggestionsBlockList.S3PathPropertysource_s3_pathtyping.Union[IResolvable, S3PathProperty]sourceS3PathIResolvableSourceS3PathIResolvableSourceS3Pathinterface{} required #
Information required to find a specific file in an Amazon S3 bucket.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
A list of key-value pairs that identify or categorize the block list.