AWS Classic

v5.16.0 published on Saturday, Sep 24, 2022 by Pulumi

Index

Provides an Amazon Kendra Index resource.

Example Usage

Basic

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Kendra.Index("example", new()
    {
        Description = "example",
        Edition = "DEVELOPER_EDITION",
        RoleArn = aws_iam_role.This.Arn,
        Tags = 
        {
            { "Key1", "Value1" },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/kendra"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := kendra.NewIndex(ctx, "example", &kendra.IndexArgs{
			Description: pulumi.String("example"),
			Edition:     pulumi.String("DEVELOPER_EDITION"),
			RoleArn:     pulumi.Any(aws_iam_role.This.Arn),
			Tags: pulumi.StringMap{
				"Key1": pulumi.String("Value1"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.kendra.Index;
import com.pulumi.aws.kendra.IndexArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new Index("example", IndexArgs.builder()        
            .description("example")
            .edition("DEVELOPER_EDITION")
            .roleArn(aws_iam_role.this().arn())
            .tags(Map.of("Key1", "Value1"))
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.kendra.Index("example",
    description="example",
    edition="DEVELOPER_EDITION",
    role_arn=aws_iam_role["this"]["arn"],
    tags={
        "Key1": "Value1",
    })
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.kendra.Index("example", {
    description: "example",
    edition: "DEVELOPER_EDITION",
    roleArn: aws_iam_role["this"].arn,
    tags: {
        Key1: "Value1",
    },
});
resources:
  example:
    type: aws:kendra:Index
    properties:
      description: example
      edition: DEVELOPER_EDITION
      roleArn: ${aws_iam_role.this.arn}
      tags:
        Key1: Value1

With capacity units

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Kendra.Index("example", new()
    {
        Edition = "DEVELOPER_EDITION",
        RoleArn = aws_iam_role.This.Arn,
        CapacityUnits = new Aws.Kendra.Inputs.IndexCapacityUnitsArgs
        {
            QueryCapacityUnits = 2,
            StorageCapacityUnits = 2,
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/kendra"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := kendra.NewIndex(ctx, "example", &kendra.IndexArgs{
			Edition: pulumi.String("DEVELOPER_EDITION"),
			RoleArn: pulumi.Any(aws_iam_role.This.Arn),
			CapacityUnits: &kendra.IndexCapacityUnitsArgs{
				QueryCapacityUnits:   pulumi.Int(2),
				StorageCapacityUnits: pulumi.Int(2),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.kendra.Index;
import com.pulumi.aws.kendra.IndexArgs;
import com.pulumi.aws.kendra.inputs.IndexCapacityUnitsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new Index("example", IndexArgs.builder()        
            .edition("DEVELOPER_EDITION")
            .roleArn(aws_iam_role.this().arn())
            .capacityUnits(IndexCapacityUnitsArgs.builder()
                .queryCapacityUnits(2)
                .storageCapacityUnits(2)
                .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.kendra.Index("example",
    edition="DEVELOPER_EDITION",
    role_arn=aws_iam_role["this"]["arn"],
    capacity_units=aws.kendra.IndexCapacityUnitsArgs(
        query_capacity_units=2,
        storage_capacity_units=2,
    ))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.kendra.Index("example", {
    edition: "DEVELOPER_EDITION",
    roleArn: aws_iam_role["this"].arn,
    capacityUnits: {
        queryCapacityUnits: 2,
        storageCapacityUnits: 2,
    },
});
resources:
  example:
    type: aws:kendra:Index
    properties:
      edition: DEVELOPER_EDITION
      roleArn: ${aws_iam_role.this.arn}
      capacityUnits:
        queryCapacityUnits: 2
        storageCapacityUnits: 2

With server side encryption configuration

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Kendra.Index("example", new()
    {
        RoleArn = aws_iam_role.This.Arn,
        ServerSideEncryptionConfiguration = new Aws.Kendra.Inputs.IndexServerSideEncryptionConfigurationArgs
        {
            KmsKeyId = data.Aws_kms_key.This.Arn,
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/kendra"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := kendra.NewIndex(ctx, "example", &kendra.IndexArgs{
			RoleArn: pulumi.Any(aws_iam_role.This.Arn),
			ServerSideEncryptionConfiguration: &kendra.IndexServerSideEncryptionConfigurationArgs{
				KmsKeyId: pulumi.Any(data.Aws_kms_key.This.Arn),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.kendra.Index;
import com.pulumi.aws.kendra.IndexArgs;
import com.pulumi.aws.kendra.inputs.IndexServerSideEncryptionConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new Index("example", IndexArgs.builder()        
            .roleArn(aws_iam_role.this().arn())
            .serverSideEncryptionConfiguration(IndexServerSideEncryptionConfigurationArgs.builder()
                .kmsKeyId(data.aws_kms_key().this().arn())
                .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.kendra.Index("example",
    role_arn=aws_iam_role["this"]["arn"],
    server_side_encryption_configuration=aws.kendra.IndexServerSideEncryptionConfigurationArgs(
        kms_key_id=data["aws_kms_key"]["this"]["arn"],
    ))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.kendra.Index("example", {
    roleArn: aws_iam_role["this"].arn,
    serverSideEncryptionConfiguration: {
        kmsKeyId: data.aws_kms_key["this"].arn,
    },
});
resources:
  example:
    type: aws:kendra:Index
    properties:
      roleArn: ${aws_iam_role.this.arn}
      serverSideEncryptionConfiguration:
        kmsKeyId: ${data.aws_kms_key.this.arn}

Specifying the predefined elements

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Kendra.Index("example", new()
    {
        RoleArn = aws_iam_role.This.Arn,
        DocumentMetadataConfigurationUpdates = new[]
        {
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_authors",
                Type = "STRING_LIST_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = false,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_category",
                Type = "STRING_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                    ValuesImportanceMap = ,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_created_at",
                Type = "DATE_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Freshness = false,
                    Importance = 1,
                    Duration = "25920000s",
                    RankOrder = "ASCENDING",
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_data_source_id",
                Type = "STRING_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                    ValuesImportanceMap = ,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_document_title",
                Type = "STRING_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = true,
                    Facetable = false,
                    Searchable = true,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 2,
                    ValuesImportanceMap = ,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_excerpt_page_number",
                Type = "LONG_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = false,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 2,
                    RankOrder = "ASCENDING",
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_faq_id",
                Type = "STRING_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                    ValuesImportanceMap = ,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_file_type",
                Type = "STRING_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                    ValuesImportanceMap = ,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_language_code",
                Type = "STRING_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                    ValuesImportanceMap = ,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_last_updated_at",
                Type = "DATE_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Freshness = false,
                    Importance = 1,
                    Duration = "25920000s",
                    RankOrder = "ASCENDING",
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_source_uri",
                Type = "STRING_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = true,
                    Facetable = false,
                    Searchable = false,
                    Sortable = false,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                    ValuesImportanceMap = ,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_version",
                Type = "STRING_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                    ValuesImportanceMap = ,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_view_count",
                Type = "LONG_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                    RankOrder = "ASCENDING",
                },
            },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/kendra"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := kendra.NewIndex(ctx, "example", &kendra.IndexArgs{
			RoleArn: pulumi.Any(aws_iam_role.This.Arn),
			DocumentMetadataConfigurationUpdates: kendra.IndexDocumentMetadataConfigurationUpdateArray{
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_authors"),
					Type: pulumi.String("STRING_LIST_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(false),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance: pulumi.Int(1),
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_category"),
					Type: pulumi.String("STRING_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance:          pulumi.Int(1),
						ValuesImportanceMap: nil,
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_created_at"),
					Type: pulumi.String("DATE_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Freshness:  pulumi.Bool(false),
						Importance: pulumi.Int(1),
						Duration:   pulumi.String("25920000s"),
						RankOrder:  pulumi.String("ASCENDING"),
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_data_source_id"),
					Type: pulumi.String("STRING_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance:          pulumi.Int(1),
						ValuesImportanceMap: nil,
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_document_title"),
					Type: pulumi.String("STRING_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(true),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(true),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance:          pulumi.Int(2),
						ValuesImportanceMap: nil,
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_excerpt_page_number"),
					Type: pulumi.String("LONG_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(false),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance: pulumi.Int(2),
						RankOrder:  pulumi.String("ASCENDING"),
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_faq_id"),
					Type: pulumi.String("STRING_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance:          pulumi.Int(1),
						ValuesImportanceMap: nil,
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_file_type"),
					Type: pulumi.String("STRING_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance:          pulumi.Int(1),
						ValuesImportanceMap: nil,
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_language_code"),
					Type: pulumi.String("STRING_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance:          pulumi.Int(1),
						ValuesImportanceMap: nil,
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_last_updated_at"),
					Type: pulumi.String("DATE_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Freshness:  pulumi.Bool(false),
						Importance: pulumi.Int(1),
						Duration:   pulumi.String("25920000s"),
						RankOrder:  pulumi.String("ASCENDING"),
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_source_uri"),
					Type: pulumi.String("STRING_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(true),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(false),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance:          pulumi.Int(1),
						ValuesImportanceMap: nil,
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_version"),
					Type: pulumi.String("STRING_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance:          pulumi.Int(1),
						ValuesImportanceMap: nil,
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_view_count"),
					Type: pulumi.String("LONG_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance: pulumi.Int(1),
						RankOrder:  pulumi.String("ASCENDING"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.kendra.Index;
import com.pulumi.aws.kendra.IndexArgs;
import com.pulumi.aws.kendra.inputs.IndexDocumentMetadataConfigurationUpdateArgs;
import com.pulumi.aws.kendra.inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs;
import com.pulumi.aws.kendra.inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new Index("example", IndexArgs.builder()        
            .roleArn(aws_iam_role.this().arn())
            .documentMetadataConfigurationUpdates(            
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_authors")
                    .type("STRING_LIST_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(false)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_category")
                    .type("STRING_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .valuesImportanceMap()
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_created_at")
                    .type("DATE_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .freshness(false)
                        .importance(1)
                        .duration("25920000s")
                        .rankOrder("ASCENDING")
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_data_source_id")
                    .type("STRING_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .valuesImportanceMap()
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_document_title")
                    .type("STRING_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(true)
                        .facetable(false)
                        .searchable(true)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(2)
                        .valuesImportanceMap()
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_excerpt_page_number")
                    .type("LONG_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(false)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(2)
                        .rankOrder("ASCENDING")
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_faq_id")
                    .type("STRING_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .valuesImportanceMap()
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_file_type")
                    .type("STRING_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .valuesImportanceMap()
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_language_code")
                    .type("STRING_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .valuesImportanceMap()
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_last_updated_at")
                    .type("DATE_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .freshness(false)
                        .importance(1)
                        .duration("25920000s")
                        .rankOrder("ASCENDING")
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_source_uri")
                    .type("STRING_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(true)
                        .facetable(false)
                        .searchable(false)
                        .sortable(false)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .valuesImportanceMap()
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_version")
                    .type("STRING_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .valuesImportanceMap()
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_view_count")
                    .type("LONG_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .rankOrder("ASCENDING")
                        .build())
                    .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.kendra.Index("example",
    role_arn=aws_iam_role["this"]["arn"],
    document_metadata_configuration_updates=[
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_authors",
            type="STRING_LIST_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=False,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_category",
            type="STRING_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
                values_importance_map={},
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_created_at",
            type="DATE_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                freshness=False,
                importance=1,
                duration="25920000s",
                rank_order="ASCENDING",
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_data_source_id",
            type="STRING_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
                values_importance_map={},
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_document_title",
            type="STRING_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=True,
                facetable=False,
                searchable=True,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=2,
                values_importance_map={},
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_excerpt_page_number",
            type="LONG_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=False,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=2,
                rank_order="ASCENDING",
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_faq_id",
            type="STRING_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
                values_importance_map={},
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_file_type",
            type="STRING_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
                values_importance_map={},
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_language_code",
            type="STRING_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
                values_importance_map={},
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_last_updated_at",
            type="DATE_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                freshness=False,
                importance=1,
                duration="25920000s",
                rank_order="ASCENDING",
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_source_uri",
            type="STRING_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=True,
                facetable=False,
                searchable=False,
                sortable=False,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
                values_importance_map={},
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_version",
            type="STRING_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
                values_importance_map={},
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_view_count",
            type="LONG_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
                rank_order="ASCENDING",
            ),
        ),
    ])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.kendra.Index("example", {
    roleArn: aws_iam_role["this"].arn,
    documentMetadataConfigurationUpdates: [
        {
            name: "_authors",
            type: "STRING_LIST_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: false,
            },
            relevance: {
                importance: 1,
            },
        },
        {
            name: "_category",
            type: "STRING_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: true,
            },
            relevance: {
                importance: 1,
                valuesImportanceMap: {},
            },
        },
        {
            name: "_created_at",
            type: "DATE_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: true,
            },
            relevance: {
                freshness: false,
                importance: 1,
                duration: "25920000s",
                rankOrder: "ASCENDING",
            },
        },
        {
            name: "_data_source_id",
            type: "STRING_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: true,
            },
            relevance: {
                importance: 1,
                valuesImportanceMap: {},
            },
        },
        {
            name: "_document_title",
            type: "STRING_VALUE",
            search: {
                displayable: true,
                facetable: false,
                searchable: true,
                sortable: true,
            },
            relevance: {
                importance: 2,
                valuesImportanceMap: {},
            },
        },
        {
            name: "_excerpt_page_number",
            type: "LONG_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: false,
            },
            relevance: {
                importance: 2,
                rankOrder: "ASCENDING",
            },
        },
        {
            name: "_faq_id",
            type: "STRING_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: true,
            },
            relevance: {
                importance: 1,
                valuesImportanceMap: {},
            },
        },
        {
            name: "_file_type",
            type: "STRING_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: true,
            },
            relevance: {
                importance: 1,
                valuesImportanceMap: {},
            },
        },
        {
            name: "_language_code",
            type: "STRING_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: true,
            },
            relevance: {
                importance: 1,
                valuesImportanceMap: {},
            },
        },
        {
            name: "_last_updated_at",
            type: "DATE_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: true,
            },
            relevance: {
                freshness: false,
                importance: 1,
                duration: "25920000s",
                rankOrder: "ASCENDING",
            },
        },
        {
            name: "_source_uri",
            type: "STRING_VALUE",
            search: {
                displayable: true,
                facetable: false,
                searchable: false,
                sortable: false,
            },
            relevance: {
                importance: 1,
                valuesImportanceMap: {},
            },
        },
        {
            name: "_version",
            type: "STRING_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: true,
            },
            relevance: {
                importance: 1,
                valuesImportanceMap: {},
            },
        },
        {
            name: "_view_count",
            type: "LONG_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: true,
            },
            relevance: {
                importance: 1,
                rankOrder: "ASCENDING",
            },
        },
    ],
});
resources:
  example:
    type: aws:kendra:Index
    properties:
      roleArn: ${aws_iam_role.this.arn}
      documentMetadataConfigurationUpdates:
        - name: _authors
          type: STRING_LIST_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: false
          relevance:
            importance: 1
        - name: _category
          type: STRING_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: true
          relevance:
            importance: 1
            valuesImportanceMap: {}
        - name: _created_at
          type: DATE_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: true
          relevance:
            freshness: false
            importance: 1
            duration: 25920000s
            rankOrder: ASCENDING
        - name: _data_source_id
          type: STRING_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: true
          relevance:
            importance: 1
            valuesImportanceMap: {}
        - name: _document_title
          type: STRING_VALUE
          search:
            displayable: true
            facetable: false
            searchable: true
            sortable: true
          relevance:
            importance: 2
            valuesImportanceMap: {}
        - name: _excerpt_page_number
          type: LONG_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: false
          relevance:
            importance: 2
            rankOrder: ASCENDING
        - name: _faq_id
          type: STRING_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: true
          relevance:
            importance: 1
            valuesImportanceMap: {}
        - name: _file_type
          type: STRING_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: true
          relevance:
            importance: 1
            valuesImportanceMap: {}
        - name: _language_code
          type: STRING_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: true
          relevance:
            importance: 1
            valuesImportanceMap: {}
        - name: _last_updated_at
          type: DATE_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: true
          relevance:
            freshness: false
            importance: 1
            duration: 25920000s
            rankOrder: ASCENDING
        - name: _source_uri
          type: STRING_VALUE
          search:
            displayable: true
            facetable: false
            searchable: false
            sortable: false
          relevance:
            importance: 1
            valuesImportanceMap: {}
        - name: _version
          type: STRING_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: true
          relevance:
            importance: 1
            valuesImportanceMap: {}
        - name: _view_count
          type: LONG_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: true
          relevance:
            importance: 1
            rankOrder: ASCENDING

Appending additional elements

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Kendra.Index("example", new()
    {
        RoleArn = aws_iam_role.This.Arn,
        DocumentMetadataConfigurationUpdates = new[]
        {
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_authors",
                Type = "STRING_LIST_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = false,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_category",
                Type = "STRING_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                    ValuesImportanceMap = ,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_created_at",
                Type = "DATE_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Freshness = false,
                    Importance = 1,
                    Duration = "25920000s",
                    RankOrder = "ASCENDING",
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_data_source_id",
                Type = "STRING_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                    ValuesImportanceMap = ,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_document_title",
                Type = "STRING_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = true,
                    Facetable = false,
                    Searchable = true,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 2,
                    ValuesImportanceMap = ,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_excerpt_page_number",
                Type = "LONG_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = false,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 2,
                    RankOrder = "ASCENDING",
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_faq_id",
                Type = "STRING_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                    ValuesImportanceMap = ,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_file_type",
                Type = "STRING_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                    ValuesImportanceMap = ,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_language_code",
                Type = "STRING_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                    ValuesImportanceMap = ,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_last_updated_at",
                Type = "DATE_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Freshness = false,
                    Importance = 1,
                    Duration = "25920000s",
                    RankOrder = "ASCENDING",
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_source_uri",
                Type = "STRING_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = true,
                    Facetable = false,
                    Searchable = false,
                    Sortable = false,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                    ValuesImportanceMap = ,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_version",
                Type = "STRING_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                    ValuesImportanceMap = ,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "_view_count",
                Type = "LONG_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = false,
                    Facetable = false,
                    Searchable = false,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                    RankOrder = "ASCENDING",
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "example-string-value",
                Type = "STRING_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = true,
                    Facetable = true,
                    Searchable = true,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                    ValuesImportanceMap = ,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "example-long-value",
                Type = "LONG_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = true,
                    Facetable = true,
                    Searchable = false,
                    Sortable = true,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                    RankOrder = "ASCENDING",
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "example-string-list-value",
                Type = "STRING_LIST_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = true,
                    Facetable = true,
                    Searchable = true,
                    Sortable = false,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Importance = 1,
                },
            },
            new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
            {
                Name = "example-date-value",
                Type = "DATE_VALUE",
                Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
                {
                    Displayable = true,
                    Facetable = true,
                    Searchable = false,
                    Sortable = false,
                },
                Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
                {
                    Freshness = false,
                    Importance = 1,
                    Duration = "25920000s",
                    RankOrder = "ASCENDING",
                },
            },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/kendra"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := kendra.NewIndex(ctx, "example", &kendra.IndexArgs{
			RoleArn: pulumi.Any(aws_iam_role.This.Arn),
			DocumentMetadataConfigurationUpdates: kendra.IndexDocumentMetadataConfigurationUpdateArray{
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_authors"),
					Type: pulumi.String("STRING_LIST_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(false),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance: pulumi.Int(1),
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_category"),
					Type: pulumi.String("STRING_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance:          pulumi.Int(1),
						ValuesImportanceMap: nil,
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_created_at"),
					Type: pulumi.String("DATE_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Freshness:  pulumi.Bool(false),
						Importance: pulumi.Int(1),
						Duration:   pulumi.String("25920000s"),
						RankOrder:  pulumi.String("ASCENDING"),
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_data_source_id"),
					Type: pulumi.String("STRING_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance:          pulumi.Int(1),
						ValuesImportanceMap: nil,
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_document_title"),
					Type: pulumi.String("STRING_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(true),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(true),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance:          pulumi.Int(2),
						ValuesImportanceMap: nil,
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_excerpt_page_number"),
					Type: pulumi.String("LONG_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(false),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance: pulumi.Int(2),
						RankOrder:  pulumi.String("ASCENDING"),
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_faq_id"),
					Type: pulumi.String("STRING_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance:          pulumi.Int(1),
						ValuesImportanceMap: nil,
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_file_type"),
					Type: pulumi.String("STRING_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance:          pulumi.Int(1),
						ValuesImportanceMap: nil,
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_language_code"),
					Type: pulumi.String("STRING_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance:          pulumi.Int(1),
						ValuesImportanceMap: nil,
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_last_updated_at"),
					Type: pulumi.String("DATE_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Freshness:  pulumi.Bool(false),
						Importance: pulumi.Int(1),
						Duration:   pulumi.String("25920000s"),
						RankOrder:  pulumi.String("ASCENDING"),
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_source_uri"),
					Type: pulumi.String("STRING_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(true),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(false),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance:          pulumi.Int(1),
						ValuesImportanceMap: nil,
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_version"),
					Type: pulumi.String("STRING_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance:          pulumi.Int(1),
						ValuesImportanceMap: nil,
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("_view_count"),
					Type: pulumi.String("LONG_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(false),
						Facetable:   pulumi.Bool(false),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance: pulumi.Int(1),
						RankOrder:  pulumi.String("ASCENDING"),
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("example-string-value"),
					Type: pulumi.String("STRING_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(true),
						Facetable:   pulumi.Bool(true),
						Searchable:  pulumi.Bool(true),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance:          pulumi.Int(1),
						ValuesImportanceMap: nil,
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("example-long-value"),
					Type: pulumi.String("LONG_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(true),
						Facetable:   pulumi.Bool(true),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(true),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance: pulumi.Int(1),
						RankOrder:  pulumi.String("ASCENDING"),
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("example-string-list-value"),
					Type: pulumi.String("STRING_LIST_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(true),
						Facetable:   pulumi.Bool(true),
						Searchable:  pulumi.Bool(true),
						Sortable:    pulumi.Bool(false),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Importance: pulumi.Int(1),
					},
				},
				&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
					Name: pulumi.String("example-date-value"),
					Type: pulumi.String("DATE_VALUE"),
					Search: &kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs{
						Displayable: pulumi.Bool(true),
						Facetable:   pulumi.Bool(true),
						Searchable:  pulumi.Bool(false),
						Sortable:    pulumi.Bool(false),
					},
					Relevance: &kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs{
						Freshness:  pulumi.Bool(false),
						Importance: pulumi.Int(1),
						Duration:   pulumi.String("25920000s"),
						RankOrder:  pulumi.String("ASCENDING"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.kendra.Index;
import com.pulumi.aws.kendra.IndexArgs;
import com.pulumi.aws.kendra.inputs.IndexDocumentMetadataConfigurationUpdateArgs;
import com.pulumi.aws.kendra.inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs;
import com.pulumi.aws.kendra.inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new Index("example", IndexArgs.builder()        
            .roleArn(aws_iam_role.this().arn())
            .documentMetadataConfigurationUpdates(            
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_authors")
                    .type("STRING_LIST_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(false)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_category")
                    .type("STRING_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .valuesImportanceMap()
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_created_at")
                    .type("DATE_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .freshness(false)
                        .importance(1)
                        .duration("25920000s")
                        .rankOrder("ASCENDING")
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_data_source_id")
                    .type("STRING_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .valuesImportanceMap()
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_document_title")
                    .type("STRING_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(true)
                        .facetable(false)
                        .searchable(true)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(2)
                        .valuesImportanceMap()
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_excerpt_page_number")
                    .type("LONG_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(false)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(2)
                        .rankOrder("ASCENDING")
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_faq_id")
                    .type("STRING_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .valuesImportanceMap()
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_file_type")
                    .type("STRING_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .valuesImportanceMap()
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_language_code")
                    .type("STRING_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .valuesImportanceMap()
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_last_updated_at")
                    .type("DATE_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .freshness(false)
                        .importance(1)
                        .duration("25920000s")
                        .rankOrder("ASCENDING")
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_source_uri")
                    .type("STRING_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(true)
                        .facetable(false)
                        .searchable(false)
                        .sortable(false)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .valuesImportanceMap()
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_version")
                    .type("STRING_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .valuesImportanceMap()
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("_view_count")
                    .type("LONG_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(false)
                        .facetable(false)
                        .searchable(false)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .rankOrder("ASCENDING")
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("example-string-value")
                    .type("STRING_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(true)
                        .facetable(true)
                        .searchable(true)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .valuesImportanceMap()
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("example-long-value")
                    .type("LONG_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(true)
                        .facetable(true)
                        .searchable(false)
                        .sortable(true)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .rankOrder("ASCENDING")
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("example-string-list-value")
                    .type("STRING_LIST_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(true)
                        .facetable(true)
                        .searchable(true)
                        .sortable(false)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .importance(1)
                        .build())
                    .build(),
                IndexDocumentMetadataConfigurationUpdateArgs.builder()
                    .name("example-date-value")
                    .type("DATE_VALUE")
                    .search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
                        .displayable(true)
                        .facetable(true)
                        .searchable(false)
                        .sortable(false)
                        .build())
                    .relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
                        .freshness(false)
                        .importance(1)
                        .duration("25920000s")
                        .rankOrder("ASCENDING")
                        .build())
                    .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.kendra.Index("example",
    role_arn=aws_iam_role["this"]["arn"],
    document_metadata_configuration_updates=[
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_authors",
            type="STRING_LIST_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=False,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_category",
            type="STRING_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
                values_importance_map={},
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_created_at",
            type="DATE_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                freshness=False,
                importance=1,
                duration="25920000s",
                rank_order="ASCENDING",
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_data_source_id",
            type="STRING_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
                values_importance_map={},
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_document_title",
            type="STRING_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=True,
                facetable=False,
                searchable=True,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=2,
                values_importance_map={},
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_excerpt_page_number",
            type="LONG_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=False,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=2,
                rank_order="ASCENDING",
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_faq_id",
            type="STRING_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
                values_importance_map={},
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_file_type",
            type="STRING_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
                values_importance_map={},
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_language_code",
            type="STRING_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
                values_importance_map={},
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_last_updated_at",
            type="DATE_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                freshness=False,
                importance=1,
                duration="25920000s",
                rank_order="ASCENDING",
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_source_uri",
            type="STRING_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=True,
                facetable=False,
                searchable=False,
                sortable=False,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
                values_importance_map={},
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_version",
            type="STRING_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
                values_importance_map={},
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="_view_count",
            type="LONG_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=False,
                facetable=False,
                searchable=False,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
                rank_order="ASCENDING",
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="example-string-value",
            type="STRING_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=True,
                facetable=True,
                searchable=True,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
                values_importance_map={},
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="example-long-value",
            type="LONG_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=True,
                facetable=True,
                searchable=False,
                sortable=True,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
                rank_order="ASCENDING",
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="example-string-list-value",
            type="STRING_LIST_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=True,
                facetable=True,
                searchable=True,
                sortable=False,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                importance=1,
            ),
        ),
        aws.kendra.IndexDocumentMetadataConfigurationUpdateArgs(
            name="example-date-value",
            type="DATE_VALUE",
            search=aws.kendra.IndexDocumentMetadataConfigurationUpdateSearchArgs(
                displayable=True,
                facetable=True,
                searchable=False,
                sortable=False,
            ),
            relevance=aws.kendra.IndexDocumentMetadataConfigurationUpdateRelevanceArgs(
                freshness=False,
                importance=1,
                duration="25920000s",
                rank_order="ASCENDING",
            ),
        ),
    ])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.kendra.Index("example", {
    roleArn: aws_iam_role["this"].arn,
    documentMetadataConfigurationUpdates: [
        {
            name: "_authors",
            type: "STRING_LIST_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: false,
            },
            relevance: {
                importance: 1,
            },
        },
        {
            name: "_category",
            type: "STRING_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: true,
            },
            relevance: {
                importance: 1,
                valuesImportanceMap: {},
            },
        },
        {
            name: "_created_at",
            type: "DATE_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: true,
            },
            relevance: {
                freshness: false,
                importance: 1,
                duration: "25920000s",
                rankOrder: "ASCENDING",
            },
        },
        {
            name: "_data_source_id",
            type: "STRING_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: true,
            },
            relevance: {
                importance: 1,
                valuesImportanceMap: {},
            },
        },
        {
            name: "_document_title",
            type: "STRING_VALUE",
            search: {
                displayable: true,
                facetable: false,
                searchable: true,
                sortable: true,
            },
            relevance: {
                importance: 2,
                valuesImportanceMap: {},
            },
        },
        {
            name: "_excerpt_page_number",
            type: "LONG_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: false,
            },
            relevance: {
                importance: 2,
                rankOrder: "ASCENDING",
            },
        },
        {
            name: "_faq_id",
            type: "STRING_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: true,
            },
            relevance: {
                importance: 1,
                valuesImportanceMap: {},
            },
        },
        {
            name: "_file_type",
            type: "STRING_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: true,
            },
            relevance: {
                importance: 1,
                valuesImportanceMap: {},
            },
        },
        {
            name: "_language_code",
            type: "STRING_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: true,
            },
            relevance: {
                importance: 1,
                valuesImportanceMap: {},
            },
        },
        {
            name: "_last_updated_at",
            type: "DATE_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: true,
            },
            relevance: {
                freshness: false,
                importance: 1,
                duration: "25920000s",
                rankOrder: "ASCENDING",
            },
        },
        {
            name: "_source_uri",
            type: "STRING_VALUE",
            search: {
                displayable: true,
                facetable: false,
                searchable: false,
                sortable: false,
            },
            relevance: {
                importance: 1,
                valuesImportanceMap: {},
            },
        },
        {
            name: "_version",
            type: "STRING_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: true,
            },
            relevance: {
                importance: 1,
                valuesImportanceMap: {},
            },
        },
        {
            name: "_view_count",
            type: "LONG_VALUE",
            search: {
                displayable: false,
                facetable: false,
                searchable: false,
                sortable: true,
            },
            relevance: {
                importance: 1,
                rankOrder: "ASCENDING",
            },
        },
        {
            name: "example-string-value",
            type: "STRING_VALUE",
            search: {
                displayable: true,
                facetable: true,
                searchable: true,
                sortable: true,
            },
            relevance: {
                importance: 1,
                valuesImportanceMap: {},
            },
        },
        {
            name: "example-long-value",
            type: "LONG_VALUE",
            search: {
                displayable: true,
                facetable: true,
                searchable: false,
                sortable: true,
            },
            relevance: {
                importance: 1,
                rankOrder: "ASCENDING",
            },
        },
        {
            name: "example-string-list-value",
            type: "STRING_LIST_VALUE",
            search: {
                displayable: true,
                facetable: true,
                searchable: true,
                sortable: false,
            },
            relevance: {
                importance: 1,
            },
        },
        {
            name: "example-date-value",
            type: "DATE_VALUE",
            search: {
                displayable: true,
                facetable: true,
                searchable: false,
                sortable: false,
            },
            relevance: {
                freshness: false,
                importance: 1,
                duration: "25920000s",
                rankOrder: "ASCENDING",
            },
        },
    ],
});
resources:
  example:
    type: aws:kendra:Index
    properties:
      roleArn: ${aws_iam_role.this.arn}
      documentMetadataConfigurationUpdates:
        - name: _authors
          type: STRING_LIST_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: false
          relevance:
            importance: 1
        - name: _category
          type: STRING_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: true
          relevance:
            importance: 1
            valuesImportanceMap: {}
        - name: _created_at
          type: DATE_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: true
          relevance:
            freshness: false
            importance: 1
            duration: 25920000s
            rankOrder: ASCENDING
        - name: _data_source_id
          type: STRING_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: true
          relevance:
            importance: 1
            valuesImportanceMap: {}
        - name: _document_title
          type: STRING_VALUE
          search:
            displayable: true
            facetable: false
            searchable: true
            sortable: true
          relevance:
            importance: 2
            valuesImportanceMap: {}
        - name: _excerpt_page_number
          type: LONG_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: false
          relevance:
            importance: 2
            rankOrder: ASCENDING
        - name: _faq_id
          type: STRING_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: true
          relevance:
            importance: 1
            valuesImportanceMap: {}
        - name: _file_type
          type: STRING_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: true
          relevance:
            importance: 1
            valuesImportanceMap: {}
        - name: _language_code
          type: STRING_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: true
          relevance:
            importance: 1
            valuesImportanceMap: {}
        - name: _last_updated_at
          type: DATE_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: true
          relevance:
            freshness: false
            importance: 1
            duration: 25920000s
            rankOrder: ASCENDING
        - name: _source_uri
          type: STRING_VALUE
          search:
            displayable: true
            facetable: false
            searchable: false
            sortable: false
          relevance:
            importance: 1
            valuesImportanceMap: {}
        - name: _version
          type: STRING_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: true
          relevance:
            importance: 1
            valuesImportanceMap: {}
        - name: _view_count
          type: LONG_VALUE
          search:
            displayable: false
            facetable: false
            searchable: false
            sortable: true
          relevance:
            importance: 1
            rankOrder: ASCENDING
        - name: example-string-value
          type: STRING_VALUE
          search:
            displayable: true
            facetable: true
            searchable: true
            sortable: true
          relevance:
            importance: 1
            valuesImportanceMap: {}
        - name: example-long-value
          type: LONG_VALUE
          search:
            displayable: true
            facetable: true
            searchable: false
            sortable: true
          relevance:
            importance: 1
            rankOrder: ASCENDING
        - name: example-string-list-value
          type: STRING_LIST_VALUE
          search:
            displayable: true
            facetable: true
            searchable: true
            sortable: false
          relevance:
            importance: 1
        - name: example-date-value
          type: DATE_VALUE
          search:
            displayable: true
            facetable: true
            searchable: false
            sortable: false
          relevance:
            freshness: false
            importance: 1
            duration: 25920000s
            rankOrder: ASCENDING

With JSON token type configuration

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Kendra.Index("example", new()
    {
        RoleArn = aws_iam_role.This.Arn,
        UserTokenConfigurations = new Aws.Kendra.Inputs.IndexUserTokenConfigurationsArgs
        {
            JsonTokenTypeConfiguration = new Aws.Kendra.Inputs.IndexUserTokenConfigurationsJsonTokenTypeConfigurationArgs
            {
                GroupAttributeField = "groups",
                UserNameAttributeField = "username",
            },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/kendra"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := kendra.NewIndex(ctx, "example", &kendra.IndexArgs{
			RoleArn: pulumi.Any(aws_iam_role.This.Arn),
			UserTokenConfigurations: &kendra.IndexUserTokenConfigurationsArgs{
				JsonTokenTypeConfiguration: &kendra.IndexUserTokenConfigurationsJsonTokenTypeConfigurationArgs{
					GroupAttributeField:    pulumi.String("groups"),
					UserNameAttributeField: pulumi.String("username"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.kendra.Index;
import com.pulumi.aws.kendra.IndexArgs;
import com.pulumi.aws.kendra.inputs.IndexUserTokenConfigurationsArgs;
import com.pulumi.aws.kendra.inputs.IndexUserTokenConfigurationsJsonTokenTypeConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new Index("example", IndexArgs.builder()        
            .roleArn(aws_iam_role.this().arn())
            .userTokenConfigurations(IndexUserTokenConfigurationsArgs.builder()
                .jsonTokenTypeConfiguration(IndexUserTokenConfigurationsJsonTokenTypeConfigurationArgs.builder()
                    .groupAttributeField("groups")
                    .userNameAttributeField("username")
                    .build())
                .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.kendra.Index("example",
    role_arn=aws_iam_role["this"]["arn"],
    user_token_configurations=aws.kendra.IndexUserTokenConfigurationsArgs(
        json_token_type_configuration=aws.kendra.IndexUserTokenConfigurationsJsonTokenTypeConfigurationArgs(
            group_attribute_field="groups",
            user_name_attribute_field="username",
        ),
    ))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.kendra.Index("example", {
    roleArn: aws_iam_role["this"].arn,
    userTokenConfigurations: {
        jsonTokenTypeConfiguration: {
            groupAttributeField: "groups",
            userNameAttributeField: "username",
        },
    },
});
resources:
  example:
    type: aws:kendra:Index
    properties:
      roleArn: ${aws_iam_role.this.arn}
      userTokenConfigurations:
        jsonTokenTypeConfiguration:
          groupAttributeField: groups
          userNameAttributeField: username

Create a Index Resource

new Index(name: string, args: IndexArgs, opts?: CustomResourceOptions);
@overload
def Index(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          capacity_units: Optional[IndexCapacityUnitsArgs] = None,
          description: Optional[str] = None,
          document_metadata_configuration_updates: Optional[Sequence[IndexDocumentMetadataConfigurationUpdateArgs]] = None,
          edition: Optional[str] = None,
          name: Optional[str] = None,
          role_arn: Optional[str] = None,
          server_side_encryption_configuration: Optional[IndexServerSideEncryptionConfigurationArgs] = None,
          tags: Optional[Mapping[str, str]] = None,
          user_context_policy: Optional[str] = None,
          user_group_resolution_configuration: Optional[IndexUserGroupResolutionConfigurationArgs] = None,
          user_token_configurations: Optional[IndexUserTokenConfigurationsArgs] = None)
@overload
def Index(resource_name: str,
          args: IndexArgs,
          opts: Optional[ResourceOptions] = None)
func NewIndex(ctx *Context, name string, args IndexArgs, opts ...ResourceOption) (*Index, error)
public Index(string name, IndexArgs args, CustomResourceOptions? opts = null)
public Index(String name, IndexArgs args)
public Index(String name, IndexArgs args, CustomResourceOptions options)
type: aws:kendra:Index
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args IndexArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args IndexArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args IndexArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args IndexArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args IndexArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Index Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Index resource accepts the following input properties:

RoleArn string

An AWS Identity and Access Management (IAM) role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This is also the role you use when you call the BatchPutDocument API to index documents from an Amazon S3 bucket.

CapacityUnits IndexCapacityUnitsArgs

A block that sets the number of additional document storage and query capacity units that should be used by the index. Detailed below.

Description string

The description of the Index.

DocumentMetadataConfigurationUpdates List<IndexDocumentMetadataConfigurationUpdateArgs>

One or more blocks that specify the configuration settings for any metadata applied to the documents in the index. Minimum number of 0 items. Maximum number of 500 items. If specified, you must define all elements, including those that are provided by default. These index fields are documented at Amazon Kendra Index documentation. For an example resource that defines these default index fields, refer to the default example above. For an example resource that appends additional index fields, refer to the append example above. All arguments for each block must be specified. Note that blocks cannot be removed since index fields cannot be deleted. This argument is detailed below.

Edition string

The Amazon Kendra edition to use for the index. Choose DEVELOPER_EDITION for indexes intended for development, testing, or proof of concept. Use ENTERPRISE_EDITION for your production databases. Once you set the edition for an index, it can't be changed. Defaults to ENTERPRISE_EDITION

Name string

Specifies the name of the Index.

ServerSideEncryptionConfiguration IndexServerSideEncryptionConfigurationArgs

A block that specifies the identifier of the AWS KMS customer managed key (CMK) that's used to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs. Detailed below.

Tags Dictionary<string, string>
UserContextPolicy string

The user context policy. Valid values are ATTRIBUTE_FILTER or USER_TOKEN. For more information, refer to UserContextPolicy. Defaults to ATTRIBUTE_FILTER.

UserGroupResolutionConfiguration IndexUserGroupResolutionConfigurationArgs

A block that enables fetching access levels of groups and users from an AWS Single Sign-On identity source. To configure this, see UserGroupResolutionConfiguration. Detailed below.

UserTokenConfigurations IndexUserTokenConfigurationsArgs

A block that specifies the user token configuration. Detailed below.

RoleArn string

An AWS Identity and Access Management (IAM) role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This is also the role you use when you call the BatchPutDocument API to index documents from an Amazon S3 bucket.

CapacityUnits IndexCapacityUnitsArgs

A block that sets the number of additional document storage and query capacity units that should be used by the index. Detailed below.

Description string

The description of the Index.

DocumentMetadataConfigurationUpdates []IndexDocumentMetadataConfigurationUpdateArgs

One or more blocks that specify the configuration settings for any metadata applied to the documents in the index. Minimum number of 0 items. Maximum number of 500 items. If specified, you must define all elements, including those that are provided by default. These index fields are documented at Amazon Kendra Index documentation. For an example resource that defines these default index fields, refer to the default example above. For an example resource that appends additional index fields, refer to the append example above. All arguments for each block must be specified. Note that blocks cannot be removed since index fields cannot be deleted. This argument is detailed below.

Edition string

The Amazon Kendra edition to use for the index. Choose DEVELOPER_EDITION for indexes intended for development, testing, or proof of concept. Use ENTERPRISE_EDITION for your production databases. Once you set the edition for an index, it can't be changed. Defaults to ENTERPRISE_EDITION

Name string

Specifies the name of the Index.

ServerSideEncryptionConfiguration IndexServerSideEncryptionConfigurationArgs

A block that specifies the identifier of the AWS KMS customer managed key (CMK) that's used to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs. Detailed below.

Tags map[string]string
UserContextPolicy string

The user context policy. Valid values are ATTRIBUTE_FILTER or USER_TOKEN. For more information, refer to UserContextPolicy. Defaults to ATTRIBUTE_FILTER.

UserGroupResolutionConfiguration IndexUserGroupResolutionConfigurationArgs

A block that enables fetching access levels of groups and users from an AWS Single Sign-On identity source. To configure this, see UserGroupResolutionConfiguration. Detailed below.

UserTokenConfigurations IndexUserTokenConfigurationsArgs

A block that specifies the user token configuration. Detailed below.

roleArn String

An AWS Identity and Access Management (IAM) role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This is also the role you use when you call the BatchPutDocument API to index documents from an Amazon S3 bucket.

capacityUnits IndexCapacityUnitsArgs

A block that sets the number of additional document storage and query capacity units that should be used by the index. Detailed below.

description String

The description of the Index.

documentMetadataConfigurationUpdates List<IndexDocumentMetadataConfigurationUpdateArgs>

One or more blocks that specify the configuration settings for any metadata applied to the documents in the index. Minimum number of 0 items. Maximum number of 500 items. If specified, you must define all elements, including those that are provided by default. These index fields are documented at Amazon Kendra Index documentation. For an example resource that defines these default index fields, refer to the default example above. For an example resource that appends additional index fields, refer to the append example above. All arguments for each block must be specified. Note that blocks cannot be removed since index fields cannot be deleted. This argument is detailed below.

edition String

The Amazon Kendra edition to use for the index. Choose DEVELOPER_EDITION for indexes intended for development, testing, or proof of concept. Use ENTERPRISE_EDITION for your production databases. Once you set the edition for an index, it can't be changed. Defaults to ENTERPRISE_EDITION

name String

Specifies the name of the Index.

serverSideEncryptionConfiguration IndexServerSideEncryptionConfigurationArgs

A block that specifies the identifier of the AWS KMS customer managed key (CMK) that's used to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs. Detailed below.

tags Map<String,String>
userContextPolicy String

The user context policy. Valid values are ATTRIBUTE_FILTER or USER_TOKEN. For more information, refer to UserContextPolicy. Defaults to ATTRIBUTE_FILTER.

userGroupResolutionConfiguration IndexUserGroupResolutionConfigurationArgs

A block that enables fetching access levels of groups and users from an AWS Single Sign-On identity source. To configure this, see UserGroupResolutionConfiguration. Detailed below.

userTokenConfigurations IndexUserTokenConfigurationsArgs

A block that specifies the user token configuration. Detailed below.

roleArn string

An AWS Identity and Access Management (IAM) role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This is also the role you use when you call the BatchPutDocument API to index documents from an Amazon S3 bucket.

capacityUnits IndexCapacityUnitsArgs

A block that sets the number of additional document storage and query capacity units that should be used by the index. Detailed below.

description string

The description of the Index.

documentMetadataConfigurationUpdates IndexDocumentMetadataConfigurationUpdateArgs[]

One or more blocks that specify the configuration settings for any metadata applied to the documents in the index. Minimum number of 0 items. Maximum number of 500 items. If specified, you must define all elements, including those that are provided by default. These index fields are documented at Amazon Kendra Index documentation. For an example resource that defines these default index fields, refer to the default example above. For an example resource that appends additional index fields, refer to the append example above. All arguments for each block must be specified. Note that blocks cannot be removed since index fields cannot be deleted. This argument is detailed below.

edition string

The Amazon Kendra edition to use for the index. Choose DEVELOPER_EDITION for indexes intended for development, testing, or proof of concept. Use ENTERPRISE_EDITION for your production databases. Once you set the edition for an index, it can't be changed. Defaults to ENTERPRISE_EDITION

name string

Specifies the name of the Index.

serverSideEncryptionConfiguration IndexServerSideEncryptionConfigurationArgs

A block that specifies the identifier of the AWS KMS customer managed key (CMK) that's used to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs. Detailed below.

tags {[key: string]: string}
userContextPolicy string

The user context policy. Valid values are ATTRIBUTE_FILTER or USER_TOKEN. For more information, refer to UserContextPolicy. Defaults to ATTRIBUTE_FILTER.

userGroupResolutionConfiguration IndexUserGroupResolutionConfigurationArgs

A block that enables fetching access levels of groups and users from an AWS Single Sign-On identity source. To configure this, see UserGroupResolutionConfiguration. Detailed below.

userTokenConfigurations IndexUserTokenConfigurationsArgs

A block that specifies the user token configuration. Detailed below.

role_arn str

An AWS Identity and Access Management (IAM) role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This is also the role you use when you call the BatchPutDocument API to index documents from an Amazon S3 bucket.

capacity_units IndexCapacityUnitsArgs

A block that sets the number of additional document storage and query capacity units that should be used by the index. Detailed below.

description str

The description of the Index.

document_metadata_configuration_updates Sequence[IndexDocumentMetadataConfigurationUpdateArgs]

One or more blocks that specify the configuration settings for any metadata applied to the documents in the index. Minimum number of 0 items. Maximum number of 500 items. If specified, you must define all elements, including those that are provided by default. These index fields are documented at Amazon Kendra Index documentation. For an example resource that defines these default index fields, refer to the default example above. For an example resource that appends additional index fields, refer to the append example above. All arguments for each block must be specified. Note that blocks cannot be removed since index fields cannot be deleted. This argument is detailed below.

edition str

The Amazon Kendra edition to use for the index. Choose DEVELOPER_EDITION for indexes intended for development, testing, or proof of concept. Use ENTERPRISE_EDITION for your production databases. Once you set the edition for an index, it can't be changed. Defaults to ENTERPRISE_EDITION

name str

Specifies the name of the Index.

server_side_encryption_configuration IndexServerSideEncryptionConfigurationArgs

A block that specifies the identifier of the AWS KMS customer managed key (CMK) that's used to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs. Detailed below.

tags Mapping[str, str]
user_context_policy str

The user context policy. Valid values are ATTRIBUTE_FILTER or USER_TOKEN. For more information, refer to UserContextPolicy. Defaults to ATTRIBUTE_FILTER.

user_group_resolution_configuration IndexUserGroupResolutionConfigurationArgs

A block that enables fetching access levels of groups and users from an AWS Single Sign-On identity source. To configure this, see UserGroupResolutionConfiguration. Detailed below.

user_token_configurations IndexUserTokenConfigurationsArgs

A block that specifies the user token configuration. Detailed below.

roleArn String

An AWS Identity and Access Management (IAM) role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This is also the role you use when you call the BatchPutDocument API to index documents from an Amazon S3 bucket.

capacityUnits Property Map

A block that sets the number of additional document storage and query capacity units that should be used by the index. Detailed below.

description String

The description of the Index.

documentMetadataConfigurationUpdates List<Property Map>

One or more blocks that specify the configuration settings for any metadata applied to the documents in the index. Minimum number of 0 items. Maximum number of 500 items. If specified, you must define all elements, including those that are provided by default. These index fields are documented at Amazon Kendra Index documentation. For an example resource that defines these default index fields, refer to the default example above. For an example resource that appends additional index fields, refer to the append example above. All arguments for each block must be specified. Note that blocks cannot be removed since index fields cannot be deleted. This argument is detailed below.

edition String

The Amazon Kendra edition to use for the index. Choose DEVELOPER_EDITION for indexes intended for development, testing, or proof of concept. Use ENTERPRISE_EDITION for your production databases. Once you set the edition for an index, it can't be changed. Defaults to ENTERPRISE_EDITION

name String

Specifies the name of the Index.

serverSideEncryptionConfiguration Property Map

A block that specifies the identifier of the AWS KMS customer managed key (CMK) that's used to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs. Detailed below.

tags Map<String>
userContextPolicy String

The user context policy. Valid values are ATTRIBUTE_FILTER or USER_TOKEN. For more information, refer to UserContextPolicy. Defaults to ATTRIBUTE_FILTER.

userGroupResolutionConfiguration Property Map

A block that enables fetching access levels of groups and users from an AWS Single Sign-On identity source. To configure this, see UserGroupResolutionConfiguration. Detailed below.

userTokenConfigurations Property Map

A block that specifies the user token configuration. Detailed below.

Outputs

All input properties are implicitly available as output properties. Additionally, the Index resource produces the following output properties:

Arn string

The Amazon Resource Name (ARN) of the Index.

CreatedAt string

The Unix datetime that the index was created.

ErrorMessage string

When the Status field value is FAILED, this contains a message that explains why.

Id string

The provider-assigned unique ID for this managed resource.

IndexStatistics List<IndexIndexStatistic>

A block that provides information about the number of FAQ questions and answers and the number of text documents indexed. Detailed below.

Status string

The current status of the index. When the value is ACTIVE, the index is ready for use. If the Status field value is FAILED, the error_message field contains a message that explains why.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

UpdatedAt string

The Unix datetime that the index was last updated.

Arn string

The Amazon Resource Name (ARN) of the Index.

CreatedAt string

The Unix datetime that the index was created.

ErrorMessage string

When the Status field value is FAILED, this contains a message that explains why.

Id string

The provider-assigned unique ID for this managed resource.

IndexStatistics []IndexIndexStatistic

A block that provides information about the number of FAQ questions and answers and the number of text documents indexed. Detailed below.

Status string

The current status of the index. When the value is ACTIVE, the index is ready for use. If the Status field value is FAILED, the error_message field contains a message that explains why.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

UpdatedAt string

The Unix datetime that the index was last updated.

arn String

The Amazon Resource Name (ARN) of the Index.

createdAt String

The Unix datetime that the index was created.

errorMessage String

When the Status field value is FAILED, this contains a message that explains why.

id String

The provider-assigned unique ID for this managed resource.

indexStatistics List<IndexIndexStatistic>

A block that provides information about the number of FAQ questions and answers and the number of text documents indexed. Detailed below.

status String

The current status of the index. When the value is ACTIVE, the index is ready for use. If the Status field value is FAILED, the error_message field contains a message that explains why.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updatedAt String

The Unix datetime that the index was last updated.

arn string

The Amazon Resource Name (ARN) of the Index.

createdAt string

The Unix datetime that the index was created.

errorMessage string

When the Status field value is FAILED, this contains a message that explains why.

id string

The provider-assigned unique ID for this managed resource.

indexStatistics IndexIndexStatistic[]

A block that provides information about the number of FAQ questions and answers and the number of text documents indexed. Detailed below.

status string

The current status of the index. When the value is ACTIVE, the index is ready for use. If the Status field value is FAILED, the error_message field contains a message that explains why.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updatedAt string

The Unix datetime that the index was last updated.

arn str

The Amazon Resource Name (ARN) of the Index.

created_at str

The Unix datetime that the index was created.

error_message str

When the Status field value is FAILED, this contains a message that explains why.

id str

The provider-assigned unique ID for this managed resource.

index_statistics Sequence[IndexIndexStatistic]

A block that provides information about the number of FAQ questions and answers and the number of text documents indexed. Detailed below.

status str

The current status of the index. When the value is ACTIVE, the index is ready for use. If the Status field value is FAILED, the error_message field contains a message that explains why.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updated_at str

The Unix datetime that the index was last updated.

arn String

The Amazon Resource Name (ARN) of the Index.

createdAt String

The Unix datetime that the index was created.

errorMessage String

When the Status field value is FAILED, this contains a message that explains why.

id String

The provider-assigned unique ID for this managed resource.

indexStatistics List<Property Map>

A block that provides information about the number of FAQ questions and answers and the number of text documents indexed. Detailed below.

status String

The current status of the index. When the value is ACTIVE, the index is ready for use. If the Status field value is FAILED, the error_message field contains a message that explains why.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updatedAt String

The Unix datetime that the index was last updated.

Look up an Existing Index Resource

Get an existing Index resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: IndexState, opts?: CustomResourceOptions): Index
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        capacity_units: Optional[IndexCapacityUnitsArgs] = None,
        created_at: Optional[str] = None,
        description: Optional[str] = None,
        document_metadata_configuration_updates: Optional[Sequence[IndexDocumentMetadataConfigurationUpdateArgs]] = None,
        edition: Optional[str] = None,
        error_message: Optional[str] = None,
        index_statistics: Optional[Sequence[IndexIndexStatisticArgs]] = None,
        name: Optional[str] = None,
        role_arn: Optional[str] = None,
        server_side_encryption_configuration: Optional[IndexServerSideEncryptionConfigurationArgs] = None,
        status: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        updated_at: Optional[str] = None,
        user_context_policy: Optional[str] = None,
        user_group_resolution_configuration: Optional[IndexUserGroupResolutionConfigurationArgs] = None,
        user_token_configurations: Optional[IndexUserTokenConfigurationsArgs] = None) -> Index
func GetIndex(ctx *Context, name string, id IDInput, state *IndexState, opts ...ResourceOption) (*Index, error)
public static Index Get(string name, Input<string> id, IndexState? state, CustomResourceOptions? opts = null)
public static Index get(String name, Output<String> id, IndexState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Arn string

The Amazon Resource Name (ARN) of the Index.

CapacityUnits IndexCapacityUnitsArgs

A block that sets the number of additional document storage and query capacity units that should be used by the index. Detailed below.

CreatedAt string

The Unix datetime that the index was created.

Description string

The description of the Index.

DocumentMetadataConfigurationUpdates List<IndexDocumentMetadataConfigurationUpdateArgs>

One or more blocks that specify the configuration settings for any metadata applied to the documents in the index. Minimum number of 0 items. Maximum number of 500 items. If specified, you must define all elements, including those that are provided by default. These index fields are documented at Amazon Kendra Index documentation. For an example resource that defines these default index fields, refer to the default example above. For an example resource that appends additional index fields, refer to the append example above. All arguments for each block must be specified. Note that blocks cannot be removed since index fields cannot be deleted. This argument is detailed below.

Edition string

The Amazon Kendra edition to use for the index. Choose DEVELOPER_EDITION for indexes intended for development, testing, or proof of concept. Use ENTERPRISE_EDITION for your production databases. Once you set the edition for an index, it can't be changed. Defaults to ENTERPRISE_EDITION

ErrorMessage string

When the Status field value is FAILED, this contains a message that explains why.

IndexStatistics List<IndexIndexStatisticArgs>

A block that provides information about the number of FAQ questions and answers and the number of text documents indexed. Detailed below.

Name string

Specifies the name of the Index.

RoleArn string

An AWS Identity and Access Management (IAM) role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This is also the role you use when you call the BatchPutDocument API to index documents from an Amazon S3 bucket.

ServerSideEncryptionConfiguration IndexServerSideEncryptionConfigurationArgs

A block that specifies the identifier of the AWS KMS customer managed key (CMK) that's used to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs. Detailed below.

Status string

The current status of the index. When the value is ACTIVE, the index is ready for use. If the Status field value is FAILED, the error_message field contains a message that explains why.

Tags Dictionary<string, string>
TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

UpdatedAt string

The Unix datetime that the index was last updated.

UserContextPolicy string

The user context policy. Valid values are ATTRIBUTE_FILTER or USER_TOKEN. For more information, refer to UserContextPolicy. Defaults to ATTRIBUTE_FILTER.

UserGroupResolutionConfiguration IndexUserGroupResolutionConfigurationArgs

A block that enables fetching access levels of groups and users from an AWS Single Sign-On identity source. To configure this, see UserGroupResolutionConfiguration. Detailed below.

UserTokenConfigurations IndexUserTokenConfigurationsArgs

A block that specifies the user token configuration. Detailed below.

Arn string

The Amazon Resource Name (ARN) of the Index.

CapacityUnits IndexCapacityUnitsArgs

A block that sets the number of additional document storage and query capacity units that should be used by the index. Detailed below.

CreatedAt string

The Unix datetime that the index was created.

Description string

The description of the Index.

DocumentMetadataConfigurationUpdates []IndexDocumentMetadataConfigurationUpdateArgs

One or more blocks that specify the configuration settings for any metadata applied to the documents in the index. Minimum number of 0 items. Maximum number of 500 items. If specified, you must define all elements, including those that are provided by default. These index fields are documented at Amazon Kendra Index documentation. For an example resource that defines these default index fields, refer to the default example above. For an example resource that appends additional index fields, refer to the append example above. All arguments for each block must be specified. Note that blocks cannot be removed since index fields cannot be deleted. This argument is detailed below.

Edition string

The Amazon Kendra edition to use for the index. Choose DEVELOPER_EDITION for indexes intended for development, testing, or proof of concept. Use ENTERPRISE_EDITION for your production databases. Once you set the edition for an index, it can't be changed. Defaults to ENTERPRISE_EDITION

ErrorMessage string

When the Status field value is FAILED, this contains a message that explains why.

IndexStatistics []IndexIndexStatisticArgs

A block that provides information about the number of FAQ questions and answers and the number of text documents indexed. Detailed below.

Name string

Specifies the name of the Index.

RoleArn string

An AWS Identity and Access Management (IAM) role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This is also the role you use when you call the BatchPutDocument API to index documents from an Amazon S3 bucket.

ServerSideEncryptionConfiguration IndexServerSideEncryptionConfigurationArgs

A block that specifies the identifier of the AWS KMS customer managed key (CMK) that's used to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs. Detailed below.

Status string

The current status of the index. When the value is ACTIVE, the index is ready for use. If the Status field value is FAILED, the error_message field contains a message that explains why.

Tags map[string]string
TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

UpdatedAt string

The Unix datetime that the index was last updated.

UserContextPolicy string

The user context policy. Valid values are ATTRIBUTE_FILTER or USER_TOKEN. For more information, refer to UserContextPolicy. Defaults to ATTRIBUTE_FILTER.

UserGroupResolutionConfiguration IndexUserGroupResolutionConfigurationArgs

A block that enables fetching access levels of groups and users from an AWS Single Sign-On identity source. To configure this, see UserGroupResolutionConfiguration. Detailed below.

UserTokenConfigurations IndexUserTokenConfigurationsArgs

A block that specifies the user token configuration. Detailed below.

arn String

The Amazon Resource Name (ARN) of the Index.

capacityUnits IndexCapacityUnitsArgs

A block that sets the number of additional document storage and query capacity units that should be used by the index. Detailed below.

createdAt String

The Unix datetime that the index was created.

description String

The description of the Index.

documentMetadataConfigurationUpdates List<IndexDocumentMetadataConfigurationUpdateArgs>

One or more blocks that specify the configuration settings for any metadata applied to the documents in the index. Minimum number of 0 items. Maximum number of 500 items. If specified, you must define all elements, including those that are provided by default. These index fields are documented at Amazon Kendra Index documentation. For an example resource that defines these default index fields, refer to the default example above. For an example resource that appends additional index fields, refer to the append example above. All arguments for each block must be specified. Note that blocks cannot be removed since index fields cannot be deleted. This argument is detailed below.

edition String

The Amazon Kendra edition to use for the index. Choose DEVELOPER_EDITION for indexes intended for development, testing, or proof of concept. Use ENTERPRISE_EDITION for your production databases. Once you set the edition for an index, it can't be changed. Defaults to ENTERPRISE_EDITION

errorMessage String

When the Status field value is FAILED, this contains a message that explains why.

indexStatistics List<IndexIndexStatisticArgs>

A block that provides information about the number of FAQ questions and answers and the number of text documents indexed. Detailed below.

name String

Specifies the name of the Index.

roleArn String

An AWS Identity and Access Management (IAM) role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This is also the role you use when you call the BatchPutDocument API to index documents from an Amazon S3 bucket.

serverSideEncryptionConfiguration IndexServerSideEncryptionConfigurationArgs

A block that specifies the identifier of the AWS KMS customer managed key (CMK) that's used to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs. Detailed below.

status String

The current status of the index. When the value is ACTIVE, the index is ready for use. If the Status field value is FAILED, the error_message field contains a message that explains why.

tags Map<String,String>
tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updatedAt String

The Unix datetime that the index was last updated.

userContextPolicy String

The user context policy. Valid values are ATTRIBUTE_FILTER or USER_TOKEN. For more information, refer to UserContextPolicy. Defaults to ATTRIBUTE_FILTER.

userGroupResolutionConfiguration IndexUserGroupResolutionConfigurationArgs

A block that enables fetching access levels of groups and users from an AWS Single Sign-On identity source. To configure this, see UserGroupResolutionConfiguration. Detailed below.

userTokenConfigurations IndexUserTokenConfigurationsArgs

A block that specifies the user token configuration. Detailed below.

arn string

The Amazon Resource Name (ARN) of the Index.

capacityUnits IndexCapacityUnitsArgs

A block that sets the number of additional document storage and query capacity units that should be used by the index. Detailed below.

createdAt string

The Unix datetime that the index was created.

description string

The description of the Index.

documentMetadataConfigurationUpdates IndexDocumentMetadataConfigurationUpdateArgs[]

One or more blocks that specify the configuration settings for any metadata applied to the documents in the index. Minimum number of 0 items. Maximum number of 500 items. If specified, you must define all elements, including those that are provided by default. These index fields are documented at Amazon Kendra Index documentation. For an example resource that defines these default index fields, refer to the default example above. For an example resource that appends additional index fields, refer to the append example above. All arguments for each block must be specified. Note that blocks cannot be removed since index fields cannot be deleted. This argument is detailed below.

edition string

The Amazon Kendra edition to use for the index. Choose DEVELOPER_EDITION for indexes intended for development, testing, or proof of concept. Use ENTERPRISE_EDITION for your production databases. Once you set the edition for an index, it can't be changed. Defaults to ENTERPRISE_EDITION

errorMessage string

When the Status field value is FAILED, this contains a message that explains why.

indexStatistics IndexIndexStatisticArgs[]

A block that provides information about the number of FAQ questions and answers and the number of text documents indexed. Detailed below.

name string

Specifies the name of the Index.

roleArn string

An AWS Identity and Access Management (IAM) role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This is also the role you use when you call the BatchPutDocument API to index documents from an Amazon S3 bucket.

serverSideEncryptionConfiguration IndexServerSideEncryptionConfigurationArgs

A block that specifies the identifier of the AWS KMS customer managed key (CMK) that's used to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs. Detailed below.

status string

The current status of the index. When the value is ACTIVE, the index is ready for use. If the Status field value is FAILED, the error_message field contains a message that explains why.

tags {[key: string]: string}
tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updatedAt string

The Unix datetime that the index was last updated.

userContextPolicy string

The user context policy. Valid values are ATTRIBUTE_FILTER or USER_TOKEN. For more information, refer to UserContextPolicy. Defaults to ATTRIBUTE_FILTER.

userGroupResolutionConfiguration IndexUserGroupResolutionConfigurationArgs

A block that enables fetching access levels of groups and users from an AWS Single Sign-On identity source. To configure this, see UserGroupResolutionConfiguration. Detailed below.

userTokenConfigurations IndexUserTokenConfigurationsArgs

A block that specifies the user token configuration. Detailed below.

arn str

The Amazon Resource Name (ARN) of the Index.

capacity_units IndexCapacityUnitsArgs

A block that sets the number of additional document storage and query capacity units that should be used by the index. Detailed below.

created_at str

The Unix datetime that the index was created.

description str

The description of the Index.

document_metadata_configuration_updates Sequence[IndexDocumentMetadataConfigurationUpdateArgs]

One or more blocks that specify the configuration settings for any metadata applied to the documents in the index. Minimum number of 0 items. Maximum number of 500 items. If specified, you must define all elements, including those that are provided by default. These index fields are documented at Amazon Kendra Index documentation. For an example resource that defines these default index fields, refer to the default example above. For an example resource that appends additional index fields, refer to the append example above. All arguments for each block must be specified. Note that blocks cannot be removed since index fields cannot be deleted. This argument is detailed below.

edition str

The Amazon Kendra edition to use for the index. Choose DEVELOPER_EDITION for indexes intended for development, testing, or proof of concept. Use ENTERPRISE_EDITION for your production databases. Once you set the edition for an index, it can't be changed. Defaults to ENTERPRISE_EDITION

error_message str

When the Status field value is FAILED, this contains a message that explains why.

index_statistics Sequence[IndexIndexStatisticArgs]

A block that provides information about the number of FAQ questions and answers and the number of text documents indexed. Detailed below.

name str

Specifies the name of the Index.

role_arn str

An AWS Identity and Access Management (IAM) role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This is also the role you use when you call the BatchPutDocument API to index documents from an Amazon S3 bucket.

server_side_encryption_configuration IndexServerSideEncryptionConfigurationArgs

A block that specifies the identifier of the AWS KMS customer managed key (CMK) that's used to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs. Detailed below.

status str

The current status of the index. When the value is ACTIVE, the index is ready for use. If the Status field value is FAILED, the error_message field contains a message that explains why.

tags Mapping[str, str]
tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updated_at str

The Unix datetime that the index was last updated.

user_context_policy str

The user context policy. Valid values are ATTRIBUTE_FILTER or USER_TOKEN. For more information, refer to UserContextPolicy. Defaults to ATTRIBUTE_FILTER.

user_group_resolution_configuration IndexUserGroupResolutionConfigurationArgs

A block that enables fetching access levels of groups and users from an AWS Single Sign-On identity source. To configure this, see UserGroupResolutionConfiguration. Detailed below.

user_token_configurations IndexUserTokenConfigurationsArgs

A block that specifies the user token configuration. Detailed below.

arn String

The Amazon Resource Name (ARN) of the Index.

capacityUnits Property Map

A block that sets the number of additional document storage and query capacity units that should be used by the index. Detailed below.

createdAt String

The Unix datetime that the index was created.

description String

The description of the Index.

documentMetadataConfigurationUpdates List<Property Map>

One or more blocks that specify the configuration settings for any metadata applied to the documents in the index. Minimum number of 0 items. Maximum number of 500 items. If specified, you must define all elements, including those that are provided by default. These index fields are documented at Amazon Kendra Index documentation. For an example resource that defines these default index fields, refer to the default example above. For an example resource that appends additional index fields, refer to the append example above. All arguments for each block must be specified. Note that blocks cannot be removed since index fields cannot be deleted. This argument is detailed below.

edition String

The Amazon Kendra edition to use for the index. Choose DEVELOPER_EDITION for indexes intended for development, testing, or proof of concept. Use ENTERPRISE_EDITION for your production databases. Once you set the edition for an index, it can't be changed. Defaults to ENTERPRISE_EDITION

errorMessage String

When the Status field value is FAILED, this contains a message that explains why.

indexStatistics List<Property Map>

A block that provides information about the number of FAQ questions and answers and the number of text documents indexed. Detailed below.

name String

Specifies the name of the Index.

roleArn String

An AWS Identity and Access Management (IAM) role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This is also the role you use when you call the BatchPutDocument API to index documents from an Amazon S3 bucket.

serverSideEncryptionConfiguration Property Map

A block that specifies the identifier of the AWS KMS customer managed key (CMK) that's used to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs. Detailed below.

status String

The current status of the index. When the value is ACTIVE, the index is ready for use. If the Status field value is FAILED, the error_message field contains a message that explains why.

tags Map<String>
tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updatedAt String

The Unix datetime that the index was last updated.

userContextPolicy String

The user context policy. Valid values are ATTRIBUTE_FILTER or USER_TOKEN. For more information, refer to UserContextPolicy. Defaults to ATTRIBUTE_FILTER.

userGroupResolutionConfiguration Property Map

A block that enables fetching access levels of groups and users from an AWS Single Sign-On identity source. To configure this, see UserGroupResolutionConfiguration. Detailed below.

userTokenConfigurations Property Map

A block that specifies the user token configuration. Detailed below.

Supporting Types

IndexCapacityUnits

QueryCapacityUnits int

The amount of extra query capacity for an index and GetQuerySuggestions capacity. For more information, refer to QueryCapacityUnits.

StorageCapacityUnits int

The amount of extra storage capacity for an index. A single capacity unit provides 30 GB of storage space or 100,000 documents, whichever is reached first. Minimum value of 0.

QueryCapacityUnits int

The amount of extra query capacity for an index and GetQuerySuggestions capacity. For more information, refer to QueryCapacityUnits.

StorageCapacityUnits int

The amount of extra storage capacity for an index. A single capacity unit provides 30 GB of storage space or 100,000 documents, whichever is reached first. Minimum value of 0.

queryCapacityUnits Integer

The amount of extra query capacity for an index and GetQuerySuggestions capacity. For more information, refer to QueryCapacityUnits.

storageCapacityUnits Integer

The amount of extra storage capacity for an index. A single capacity unit provides 30 GB of storage space or 100,000 documents, whichever is reached first. Minimum value of 0.

queryCapacityUnits number

The amount of extra query capacity for an index and GetQuerySuggestions capacity. For more information, refer to QueryCapacityUnits.

storageCapacityUnits number

The amount of extra storage capacity for an index. A single capacity unit provides 30 GB of storage space or 100,000 documents, whichever is reached first. Minimum value of 0.

query_capacity_units int

The amount of extra query capacity for an index and GetQuerySuggestions capacity. For more information, refer to QueryCapacityUnits.

storage_capacity_units int

The amount of extra storage capacity for an index. A single capacity unit provides 30 GB of storage space or 100,000 documents, whichever is reached first. Minimum value of 0.

queryCapacityUnits Number

The amount of extra query capacity for an index and GetQuerySuggestions capacity. For more information, refer to QueryCapacityUnits.

storageCapacityUnits Number

The amount of extra storage capacity for an index. A single capacity unit provides 30 GB of storage space or 100,000 documents, whichever is reached first. Minimum value of 0.

IndexDocumentMetadataConfigurationUpdate

Name string

The name of the index field. Minimum length of 1. Maximum length of 30.

Type string

The data type of the index field. Valid values are STRING_VALUE, STRING_LIST_VALUE, LONG_VALUE, DATE_VALUE.

Relevance IndexDocumentMetadataConfigurationUpdateRelevance

A block that provides manual tuning parameters to determine how the field affects the search results. Detailed below

Search IndexDocumentMetadataConfigurationUpdateSearch

A block that provides information about how the field is used during a search. Documented below. Detailed below

Name string

The name of the index field. Minimum length of 1. Maximum length of 30.

Type string

The data type of the index field. Valid values are STRING_VALUE, STRING_LIST_VALUE, LONG_VALUE, DATE_VALUE.

Relevance IndexDocumentMetadataConfigurationUpdateRelevance

A block that provides manual tuning parameters to determine how the field affects the search results. Detailed below

Search IndexDocumentMetadataConfigurationUpdateSearch

A block that provides information about how the field is used during a search. Documented below. Detailed below

name String

The name of the index field. Minimum length of 1. Maximum length of 30.

type String

The data type of the index field. Valid values are STRING_VALUE, STRING_LIST_VALUE, LONG_VALUE, DATE_VALUE.

relevance IndexDocumentMetadataConfigurationUpdateRelevance

A block that provides manual tuning parameters to determine how the field affects the search results. Detailed below

search IndexDocumentMetadataConfigurationUpdateSearch

A block that provides information about how the field is used during a search. Documented below. Detailed below

name string

The name of the index field. Minimum length of 1. Maximum length of 30.

type string

The data type of the index field. Valid values are STRING_VALUE, STRING_LIST_VALUE, LONG_VALUE, DATE_VALUE.

relevance IndexDocumentMetadataConfigurationUpdateRelevance

A block that provides manual tuning parameters to determine how the field affects the search results. Detailed below

search IndexDocumentMetadataConfigurationUpdateSearch

A block that provides information about how the field is used during a search. Documented below. Detailed below

name str

The name of the index field. Minimum length of 1. Maximum length of 30.

type str

The data type of the index field. Valid values are STRING_VALUE, STRING_LIST_VALUE, LONG_VALUE, DATE_VALUE.

relevance IndexDocumentMetadataConfigurationUpdateRelevance

A block that provides manual tuning parameters to determine how the field affects the search results. Detailed below

search IndexDocumentMetadataConfigurationUpdateSearch

A block that provides information about how the field is used during a search. Documented below. Detailed below

name String

The name of the index field. Minimum length of 1. Maximum length of 30.

type String

The data type of the index field. Valid values are STRING_VALUE, STRING_LIST_VALUE, LONG_VALUE, DATE_VALUE.

relevance Property Map

A block that provides manual tuning parameters to determine how the field affects the search results. Detailed below

search Property Map

A block that provides information about how the field is used during a search. Documented below. Detailed below

IndexDocumentMetadataConfigurationUpdateRelevance

Duration string

Specifies the time period that the boost applies to. For more information, refer to Duration.

Freshness bool

Indicates that this field determines how "fresh" a document is. For more information, refer to Freshness.

Importance int

The relative importance of the field in the search. Larger numbers provide more of a boost than smaller numbers. Minimum value of 1. Maximum value of 10.

RankOrder string

Determines how values should be interpreted. For more information, refer to RankOrder.

ValuesImportanceMap Dictionary<string, int>

A list of values that should be given a different boost when they appear in the result list. For more information, refer to ValueImportanceMap.

Duration string

Specifies the time period that the boost applies to. For more information, refer to Duration.

Freshness bool

Indicates that this field determines how "fresh" a document is. For more information, refer to Freshness.

Importance int

The relative importance of the field in the search. Larger numbers provide more of a boost than smaller numbers. Minimum value of 1. Maximum value of 10.

RankOrder string

Determines how values should be interpreted. For more information, refer to RankOrder.

ValuesImportanceMap map[string]int

A list of values that should be given a different boost when they appear in the result list. For more information, refer to ValueImportanceMap.

duration String

Specifies the time period that the boost applies to. For more information, refer to Duration.

freshness Boolean

Indicates that this field determines how "fresh" a document is. For more information, refer to Freshness.

importance Integer

The relative importance of the field in the search. Larger numbers provide more of a boost than smaller numbers. Minimum value of 1. Maximum value of 10.

rankOrder String

Determines how values should be interpreted. For more information, refer to RankOrder.

valuesImportanceMap Map<String,Integer>

A list of values that should be given a different boost when they appear in the result list. For more information, refer to ValueImportanceMap.

duration string

Specifies the time period that the boost applies to. For more information, refer to Duration.

freshness boolean

Indicates that this field determines how "fresh" a document is. For more information, refer to Freshness.

importance number

The relative importance of the field in the search. Larger numbers provide more of a boost than smaller numbers. Minimum value of 1. Maximum value of 10.

rankOrder string

Determines how values should be interpreted. For more information, refer to RankOrder.

valuesImportanceMap {[key: string]: number}

A list of values that should be given a different boost when they appear in the result list. For more information, refer to ValueImportanceMap.

duration str

Specifies the time period that the boost applies to. For more information, refer to Duration.

freshness bool

Indicates that this field determines how "fresh" a document is. For more information, refer to Freshness.

importance int

The relative importance of the field in the search. Larger numbers provide more of a boost than smaller numbers. Minimum value of 1. Maximum value of 10.

rank_order str

Determines how values should be interpreted. For more information, refer to RankOrder.

values_importance_map Mapping[str, int]

A list of values that should be given a different boost when they appear in the result list. For more information, refer to ValueImportanceMap.

duration String

Specifies the time period that the boost applies to. For more information, refer to Duration.

freshness Boolean

Indicates that this field determines how "fresh" a document is. For more information, refer to Freshness.

importance Number

The relative importance of the field in the search. Larger numbers provide more of a boost than smaller numbers. Minimum value of 1. Maximum value of 10.

rankOrder String

Determines how values should be interpreted. For more information, refer to RankOrder.

valuesImportanceMap Map<Number>

A list of values that should be given a different boost when they appear in the result list. For more information, refer to ValueImportanceMap.

IndexDocumentMetadataConfigurationUpdateSearch

Displayable bool

Determines whether the field is returned in the query response. The default is true.

Facetable bool

Indicates that the field can be used to create search facets, a count of results for each value in the field. The default is false.

Searchable bool

Determines whether the field is used in the search. If the Searchable field is true, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is true for string fields and false for number and date fields.

Sortable bool

Determines whether the field can be used to sort the results of a query. If you specify sorting on a field that does not have Sortable set to true, Amazon Kendra returns an exception. The default is false.

Displayable bool

Determines whether the field is returned in the query response. The default is true.

Facetable bool

Indicates that the field can be used to create search facets, a count of results for each value in the field. The default is false.

Searchable bool

Determines whether the field is used in the search. If the Searchable field is true, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is true for string fields and false for number and date fields.

Sortable bool

Determines whether the field can be used to sort the results of a query. If you specify sorting on a field that does not have Sortable set to true, Amazon Kendra returns an exception. The default is false.

displayable Boolean

Determines whether the field is returned in the query response. The default is true.

facetable Boolean

Indicates that the field can be used to create search facets, a count of results for each value in the field. The default is false.

searchable Boolean

Determines whether the field is used in the search. If the Searchable field is true, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is true for string fields and false for number and date fields.

sortable Boolean

Determines whether the field can be used to sort the results of a query. If you specify sorting on a field that does not have Sortable set to true, Amazon Kendra returns an exception. The default is false.

displayable boolean

Determines whether the field is returned in the query response. The default is true.

facetable boolean

Indicates that the field can be used to create search facets, a count of results for each value in the field. The default is false.

searchable boolean

Determines whether the field is used in the search. If the Searchable field is true, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is true for string fields and false for number and date fields.

sortable boolean

Determines whether the field can be used to sort the results of a query. If you specify sorting on a field that does not have Sortable set to true, Amazon Kendra returns an exception. The default is false.

displayable bool

Determines whether the field is returned in the query response. The default is true.

facetable bool

Indicates that the field can be used to create search facets, a count of results for each value in the field. The default is false.

searchable bool

Determines whether the field is used in the search. If the Searchable field is true, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is true for string fields and false for number and date fields.

sortable bool

Determines whether the field can be used to sort the results of a query. If you specify sorting on a field that does not have Sortable set to true, Amazon Kendra returns an exception. The default is false.

displayable Boolean

Determines whether the field is returned in the query response. The default is true.

facetable Boolean

Indicates that the field can be used to create search facets, a count of results for each value in the field. The default is false.

searchable Boolean

Determines whether the field is used in the search. If the Searchable field is true, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is true for string fields and false for number and date fields.

sortable Boolean

Determines whether the field can be used to sort the results of a query. If you specify sorting on a field that does not have Sortable set to true, Amazon Kendra returns an exception. The default is false.

IndexIndexStatistic

FaqStatistics List<IndexIndexStatisticFaqStatistic>

A block that specifies the number of question and answer topics in the index. Detailed below.

TextDocumentStatistics List<IndexIndexStatisticTextDocumentStatistic>

A block that specifies the number of text documents indexed. Detailed below.

FaqStatistics []IndexIndexStatisticFaqStatistic

A block that specifies the number of question and answer topics in the index. Detailed below.

TextDocumentStatistics []IndexIndexStatisticTextDocumentStatistic

A block that specifies the number of text documents indexed. Detailed below.

faqStatistics List<IndexIndexStatisticFaqStatistic>

A block that specifies the number of question and answer topics in the index. Detailed below.

textDocumentStatistics List<IndexIndexStatisticTextDocumentStatistic>

A block that specifies the number of text documents indexed. Detailed below.

faqStatistics IndexIndexStatisticFaqStatistic[]

A block that specifies the number of question and answer topics in the index. Detailed below.

textDocumentStatistics IndexIndexStatisticTextDocumentStatistic[]

A block that specifies the number of text documents indexed. Detailed below.

faq_statistics Sequence[IndexIndexStatisticFaqStatistic]

A block that specifies the number of question and answer topics in the index. Detailed below.

text_document_statistics Sequence[IndexIndexStatisticTextDocumentStatistic]

A block that specifies the number of text documents indexed. Detailed below.

faqStatistics List<Property Map>

A block that specifies the number of question and answer topics in the index. Detailed below.

textDocumentStatistics List<Property Map>

A block that specifies the number of text documents indexed. Detailed below.

IndexIndexStatisticFaqStatistic

IndexedQuestionAnswersCount int

The total number of FAQ questions and answers contained in the index.

IndexedQuestionAnswersCount int

The total number of FAQ questions and answers contained in the index.

indexedQuestionAnswersCount Integer

The total number of FAQ questions and answers contained in the index.

indexedQuestionAnswersCount number

The total number of FAQ questions and answers contained in the index.

indexed_question_answers_count int

The total number of FAQ questions and answers contained in the index.

indexedQuestionAnswersCount Number

The total number of FAQ questions and answers contained in the index.

IndexIndexStatisticTextDocumentStatistic

IndexedTextBytes int

The total size, in bytes, of the indexed documents.

IndexedTextDocumentsCount int

The number of text documents indexed.

IndexedTextBytes int

The total size, in bytes, of the indexed documents.

IndexedTextDocumentsCount int

The number of text documents indexed.

indexedTextBytes Integer

The total size, in bytes, of the indexed documents.

indexedTextDocumentsCount Integer

The number of text documents indexed.

indexedTextBytes number

The total size, in bytes, of the indexed documents.

indexedTextDocumentsCount number

The number of text documents indexed.

indexed_text_bytes int

The total size, in bytes, of the indexed documents.

indexed_text_documents_count int

The number of text documents indexed.

indexedTextBytes Number

The total size, in bytes, of the indexed documents.

indexedTextDocumentsCount Number

The number of text documents indexed.

IndexServerSideEncryptionConfiguration

KmsKeyId string

The identifier of the AWS KMScustomer master key (CMK). Amazon Kendra doesn't support asymmetric CMKs.

KmsKeyId string

The identifier of the AWS KMScustomer master key (CMK). Amazon Kendra doesn't support asymmetric CMKs.

kmsKeyId String

The identifier of the AWS KMScustomer master key (CMK). Amazon Kendra doesn't support asymmetric CMKs.

kmsKeyId string

The identifier of the AWS KMScustomer master key (CMK). Amazon Kendra doesn't support asymmetric CMKs.

kms_key_id str

The identifier of the AWS KMScustomer master key (CMK). Amazon Kendra doesn't support asymmetric CMKs.

kmsKeyId String

The identifier of the AWS KMScustomer master key (CMK). Amazon Kendra doesn't support asymmetric CMKs.

IndexUserGroupResolutionConfiguration

UserGroupResolutionMode string

The identity store provider (mode) you want to use to fetch access levels of groups and users. AWS Single Sign-On is currently the only available mode. Your users and groups must exist in an AWS SSO identity source in order to use this mode. Valid Values are AWS_SSO or NONE.

UserGroupResolutionMode string

The identity store provider (mode) you want to use to fetch access levels of groups and users. AWS Single Sign-On is currently the only available mode. Your users and groups must exist in an AWS SSO identity source in order to use this mode. Valid Values are AWS_SSO or NONE.

userGroupResolutionMode String

The identity store provider (mode) you want to use to fetch access levels of groups and users. AWS Single Sign-On is currently the only available mode. Your users and groups must exist in an AWS SSO identity source in order to use this mode. Valid Values are AWS_SSO or NONE.

userGroupResolutionMode string

The identity store provider (mode) you want to use to fetch access levels of groups and users. AWS Single Sign-On is currently the only available mode. Your users and groups must exist in an AWS SSO identity source in order to use this mode. Valid Values are AWS_SSO or NONE.

user_group_resolution_mode str

The identity store provider (mode) you want to use to fetch access levels of groups and users. AWS Single Sign-On is currently the only available mode. Your users and groups must exist in an AWS SSO identity source in order to use this mode. Valid Values are AWS_SSO or NONE.

userGroupResolutionMode String

The identity store provider (mode) you want to use to fetch access levels of groups and users. AWS Single Sign-On is currently the only available mode. Your users and groups must exist in an AWS SSO identity source in order to use this mode. Valid Values are AWS_SSO or NONE.

IndexUserTokenConfigurations

JsonTokenTypeConfiguration IndexUserTokenConfigurationsJsonTokenTypeConfiguration

A block that specifies the information about the JSON token type configuration. Detailed below.

JwtTokenTypeConfiguration IndexUserTokenConfigurationsJwtTokenTypeConfiguration

A block that specifies the information about the JWT token type configuration. Detailed below.

JsonTokenTypeConfiguration IndexUserTokenConfigurationsJsonTokenTypeConfiguration

A block that specifies the information about the JSON token type configuration. Detailed below.

JwtTokenTypeConfiguration IndexUserTokenConfigurationsJwtTokenTypeConfiguration

A block that specifies the information about the JWT token type configuration. Detailed below.

jsonTokenTypeConfiguration IndexUserTokenConfigurationsJsonTokenTypeConfiguration

A block that specifies the information about the JSON token type configuration. Detailed below.

jwtTokenTypeConfiguration IndexUserTokenConfigurationsJwtTokenTypeConfiguration

A block that specifies the information about the JWT token type configuration. Detailed below.

jsonTokenTypeConfiguration IndexUserTokenConfigurationsJsonTokenTypeConfiguration

A block that specifies the information about the JSON token type configuration. Detailed below.

jwtTokenTypeConfiguration IndexUserTokenConfigurationsJwtTokenTypeConfiguration

A block that specifies the information about the JWT token type configuration. Detailed below.

json_token_type_configuration IndexUserTokenConfigurationsJsonTokenTypeConfiguration

A block that specifies the information about the JSON token type configuration. Detailed below.

jwt_token_type_configuration IndexUserTokenConfigurationsJwtTokenTypeConfiguration

A block that specifies the information about the JWT token type configuration. Detailed below.

jsonTokenTypeConfiguration Property Map

A block that specifies the information about the JSON token type configuration. Detailed below.

jwtTokenTypeConfiguration Property Map

A block that specifies the information about the JWT token type configuration. Detailed below.

IndexUserTokenConfigurationsJsonTokenTypeConfiguration

GroupAttributeField string

The group attribute field. Minimum length of 1. Maximum length of 2048.

UserNameAttributeField string

The user name attribute field. Minimum length of 1. Maximum length of 2048.

GroupAttributeField string

The group attribute field. Minimum length of 1. Maximum length of 2048.

UserNameAttributeField string

The user name attribute field. Minimum length of 1. Maximum length of 2048.

groupAttributeField String

The group attribute field. Minimum length of 1. Maximum length of 2048.

userNameAttributeField String

The user name attribute field. Minimum length of 1. Maximum length of 2048.

groupAttributeField string

The group attribute field. Minimum length of 1. Maximum length of 2048.

userNameAttributeField string

The user name attribute field. Minimum length of 1. Maximum length of 2048.

group_attribute_field str

The group attribute field. Minimum length of 1. Maximum length of 2048.

user_name_attribute_field str

The user name attribute field. Minimum length of 1. Maximum length of 2048.

groupAttributeField String

The group attribute field. Minimum length of 1. Maximum length of 2048.

userNameAttributeField String

The user name attribute field. Minimum length of 1. Maximum length of 2048.

IndexUserTokenConfigurationsJwtTokenTypeConfiguration

KeyLocation string

The location of the key. Valid values are URL or SECRET_MANAGER

ClaimRegex string

The regular expression that identifies the claim. Minimum length of 1. Maximum length of 100.

GroupAttributeField string

The group attribute field. Minimum length of 1. Maximum length of 100.

Issuer string

The issuer of the token. Minimum length of 1. Maximum length of 65.

SecretsManagerArn string

The Amazon Resource Name (ARN) of the secret.

Url string

The signing key URL. Valid pattern is ^(https?|ftp|file):\/\/([^\s]*)

UserNameAttributeField string

The user name attribute field. Minimum length of 1. Maximum length of 100.

KeyLocation string

The location of the key. Valid values are URL or SECRET_MANAGER

ClaimRegex string

The regular expression that identifies the claim. Minimum length of 1. Maximum length of 100.

GroupAttributeField string

The group attribute field. Minimum length of 1. Maximum length of 100.

Issuer string

The issuer of the token. Minimum length of 1. Maximum length of 65.

SecretsManagerArn string

The Amazon Resource Name (ARN) of the secret.

Url string

The signing key URL. Valid pattern is ^(https?|ftp|file):\/\/([^\s]*)

UserNameAttributeField string

The user name attribute field. Minimum length of 1. Maximum length of 100.

keyLocation String

The location of the key. Valid values are URL or SECRET_MANAGER

claimRegex String

The regular expression that identifies the claim. Minimum length of 1. Maximum length of 100.

groupAttributeField String

The group attribute field. Minimum length of 1. Maximum length of 100.

issuer String

The issuer of the token. Minimum length of 1. Maximum length of 65.

secretsManagerArn String

The Amazon Resource Name (ARN) of the secret.

url String

The signing key URL. Valid pattern is ^(https?|ftp|file):\/\/([^\s]*)

userNameAttributeField String

The user name attribute field. Minimum length of 1. Maximum length of 100.

keyLocation string

The location of the key. Valid values are URL or SECRET_MANAGER

claimRegex string

The regular expression that identifies the claim. Minimum length of 1. Maximum length of 100.

groupAttributeField string

The group attribute field. Minimum length of 1. Maximum length of 100.

issuer string

The issuer of the token. Minimum length of 1. Maximum length of 65.

secretsManagerArn string

The Amazon Resource Name (ARN) of the secret.

url string

The signing key URL. Valid pattern is ^(https?|ftp|file):\/\/([^\s]*)

userNameAttributeField string

The user name attribute field. Minimum length of 1. Maximum length of 100.

key_location str

The location of the key. Valid values are URL or SECRET_MANAGER

claim_regex str

The regular expression that identifies the claim. Minimum length of 1. Maximum length of 100.

group_attribute_field str

The group attribute field. Minimum length of 1. Maximum length of 100.

issuer str

The issuer of the token. Minimum length of 1. Maximum length of 65.

secrets_manager_arn str

The Amazon Resource Name (ARN) of the secret.

url str

The signing key URL. Valid pattern is ^(https?|ftp|file):\/\/([^\s]*)

user_name_attribute_field str

The user name attribute field. Minimum length of 1. Maximum length of 100.

keyLocation String

The location of the key. Valid values are URL or SECRET_MANAGER

claimRegex String

The regular expression that identifies the claim. Minimum length of 1. Maximum length of 100.

groupAttributeField String

The group attribute field. Minimum length of 1. Maximum length of 100.

issuer String

The issuer of the token. Minimum length of 1. Maximum length of 65.

secretsManagerArn String

The Amazon Resource Name (ARN) of the secret.

url String

The signing key URL. Valid pattern is ^(https?|ftp|file):\/\/([^\s]*)

userNameAttributeField String

The user name attribute field. Minimum length of 1. Maximum length of 100.

Import

Amazon Kendra Indexes can be imported using its id, e.g.,

 $ pulumi import aws:kendra/index:Index example 12345678-1234-5678-9123-123456789123

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.