Index class
Provides an Amazon Kendra Index resource.
Example Usage
Basic
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.kendra.Index("example", {
name: "example",
description: "example",
edition: "DEVELOPER_EDITION",
roleArn: _this.arn,
tags: {
Key1: "Value1",
},
});
import pulumi
import pulumi_aws as aws
example = aws.kendra.Index("example",
name="example",
description="example",
edition="DEVELOPER_EDITION",
role_arn=this["arn"],
tags={
"Key1": "Value1",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Kendra.Index("example", new()
{
Name = "example",
Description = "example",
Edition = "DEVELOPER_EDITION",
RoleArn = @this.Arn,
Tags =
{
{ "Key1", "Value1" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/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{
Name: pulumi.String("example"),
Description: pulumi.String("example"),
Edition: pulumi.String("DEVELOPER_EDITION"),
RoleArn: pulumi.Any(this.Arn),
Tags: pulumi.StringMap{
"Key1": pulumi.String("Value1"),
},
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_kendra_index" "example" {
name = "example"
description = "example"
edition = "DEVELOPER_EDITION"
role_arn = this.arn
tags = {
"Key1" = "Value1"
}
}
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.ArrayList;
import java.util.Arrays;
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()
.name("example")
.description("example")
.edition("DEVELOPER_EDITION")
.roleArn(this_.arn())
.tags(Map.of("Key1", "Value1"))
.build());
}
}
resources:
example:
type: aws:kendra:Index
properties:
name: example
description: example
edition: DEVELOPER_EDITION
roleArn: ${this.arn}
tags:
Key1: Value1
With capacity units
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.kendra.Index("example", {
capacityUnits: {
queryCapacityUnits: 2,
storageCapacityUnits: 2,
},
name: "example",
edition: "DEVELOPER_EDITION",
roleArn: _this.arn,
});
import pulumi
import pulumi_aws as aws
example = aws.kendra.Index("example",
capacity_units={
"query_capacity_units": 2,
"storage_capacity_units": 2,
},
name="example",
edition="DEVELOPER_EDITION",
role_arn=this["arn"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Kendra.Index("example", new()
{
CapacityUnits = new Aws.Kendra.Inputs.IndexCapacityUnitsArgs
{
QueryCapacityUnits = 2,
StorageCapacityUnits = 2,
},
Name = "example",
Edition = "DEVELOPER_EDITION",
RoleArn = @this.Arn,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/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{
CapacityUnits: &kendra.IndexCapacityUnitsArgs{
QueryCapacityUnits: pulumi.Int(2),
StorageCapacityUnits: pulumi.Int(2),
},
Name: pulumi.String("example"),
Edition: pulumi.String("DEVELOPER_EDITION"),
RoleArn: pulumi.Any(this.Arn),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_kendra_index" "example" {
capacity_units = {
query_capacity_units = 2
storage_capacity_units = 2
}
name = "example"
edition = "DEVELOPER_EDITION"
role_arn = this.arn
}
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.ArrayList;
import java.util.Arrays;
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()
.capacityUnits(IndexCapacityUnitsArgs.builder()
.queryCapacityUnits(2)
.storageCapacityUnits(2)
.build())
.name("example")
.edition("DEVELOPER_EDITION")
.roleArn(this_.arn())
.build());
}
}
resources:
example:
type: aws:kendra:Index
properties:
capacityUnits:
queryCapacityUnits: 2
storageCapacityUnits: 2
name: example
edition: DEVELOPER_EDITION
roleArn: ${this.arn}
With server side encryption configuration
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.kendra.Index("example", {
serverSideEncryptionConfiguration: {
kmsKeyId: _this.arn,
},
name: "example",
roleArn: thisAwsIamRole.arn,
});
import pulumi
import pulumi_aws as aws
example = aws.kendra.Index("example",
server_side_encryption_configuration={
"kms_key_id": this["arn"],
},
name="example",
role_arn=this_aws_iam_role["arn"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Kendra.Index("example", new()
{
ServerSideEncryptionConfiguration = new Aws.Kendra.Inputs.IndexServerSideEncryptionConfigurationArgs
{
KmsKeyId = @this.Arn,
},
Name = "example",
RoleArn = thisAwsIamRole.Arn,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/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{
ServerSideEncryptionConfiguration: &kendra.IndexServerSideEncryptionConfigurationArgs{
KmsKeyId: pulumi.Any(this.Arn),
},
Name: pulumi.String("example"),
RoleArn: pulumi.Any(thisAwsIamRole.Arn),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_kendra_index" "example" {
server_side_encryption_configuration = {
kms_key_id = this.arn
}
name = "example"
role_arn = thisAwsIamRole.arn
}
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.ArrayList;
import java.util.Arrays;
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()
.serverSideEncryptionConfiguration(IndexServerSideEncryptionConfigurationArgs.builder()
.kmsKeyId(this_.arn())
.build())
.name("example")
.roleArn(thisAwsIamRole.arn())
.build());
}
}
resources:
example:
type: aws:kendra:Index
properties:
serverSideEncryptionConfiguration:
kmsKeyId: ${this.arn}
name: example
roleArn: ${thisAwsIamRole.arn}
With user group resolution configuration
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.kendra.Index("example", {
userGroupResolutionConfiguration: {
userGroupResolutionMode: "AWS_SSO",
},
name: "example",
roleArn: _this.arn,
});
import pulumi
import pulumi_aws as aws
example = aws.kendra.Index("example",
user_group_resolution_configuration={
"user_group_resolution_mode": "AWS_SSO",
},
name="example",
role_arn=this["arn"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Kendra.Index("example", new()
{
UserGroupResolutionConfiguration = new Aws.Kendra.Inputs.IndexUserGroupResolutionConfigurationArgs
{
UserGroupResolutionMode = "AWS_SSO",
},
Name = "example",
RoleArn = @this.Arn,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/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{
UserGroupResolutionConfiguration: &kendra.IndexUserGroupResolutionConfigurationArgs{
UserGroupResolutionMode: pulumi.String("AWS_SSO"),
},
Name: pulumi.String("example"),
RoleArn: pulumi.Any(this.Arn),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_kendra_index" "example" {
user_group_resolution_configuration = {
user_group_resolution_mode = "AWS_SSO"
}
name = "example"
role_arn = this.arn
}
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.IndexUserGroupResolutionConfigurationArgs;
import java.util.ArrayList;
import java.util.Arrays;
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()
.userGroupResolutionConfiguration(IndexUserGroupResolutionConfigurationArgs.builder()
.userGroupResolutionMode("AWS_SSO")
.build())
.name("example")
.roleArn(this_.arn())
.build());
}
}
resources:
example:
type: aws:kendra:Index
properties:
userGroupResolutionConfiguration:
userGroupResolutionMode: AWS_SSO
name: example
roleArn: ${this.arn}
With Document Metadata Configuration Updates
Specifying the predefined elements
Refer to Amazon Kendra documentation on built-in document fields for more information.
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.kendra.Index("example", {
documentMetadataConfigurationUpdates: [
{
search: {
displayable: false,
facetable: false,
searchable: false,
sortable: false,
},
relevance: {
importance: 1,
},
name: "_authors",
type: "STRING_LIST_VALUE",
},
{
search: {
displayable: false,
facetable: false,
searchable: false,
sortable: true,
},
relevance: {
importance: 1,
valuesImportanceMap: {},
},
name: "_category",
type: "STRING_VALUE",
},
{
search: {
displayable: false,
facetable: false,
searchable: false,
sortable: true,
},
relevance: {
freshness: false,
importance: 1,
duration: "25920000s",
rankOrder: "ASCENDING",
},
name: "_created_at",
type: "DATE_VALUE",
},
{
search: {
displayable: false,
facetable: false,
searchable: false,
sortable: true,
},
relevance: {
importance: 1,
valuesImportanceMap: {},
},
name: "_data_source_id",
type: "STRING_VALUE",
},
{
search: {
displayable: true,
facetable: false,
searchable: true,
sortable: true,
},
relevance: {
importance: 2,
valuesImportanceMap: {},
},
name: "_document_title",
type: "STRING_VALUE",
},
{
search: {
displayable: false,
facetable: false,
searchable: false,
sortable: false,
},
relevance: {
importance: 2,
rankOrder: "ASCENDING",
},
name: "_excerpt_page_number",
type: "LONG_VALUE",
},
{
search: {
displayable: false,
facetable: false,
searchable: false,
sortable: true,
},
relevance: {
importance: 1,
valuesImportanceMap: {},
},
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: {
freshness: false,
importance: 1,
duration: "25920000s",
rankOrder: "ASCENDING",
},
name: "_last_updated_at",
type: "DATE_VALUE",
},
{
search: {
displayable: true,
facetable: false,
searchable: false,
sortable: false,
},
relevance: {
importance: 1,
valuesImportanceMap: {},
},
name: "_source_uri",
type: "STRING_VALUE",
},
{
search: {
displayable: false,
facetable: false,
searchable: false,
sortable: true,
},
relevance: {
importance: 1,
valuesImportanceMap: {},
},
name: "_tenant_id",
type: "STRING_VALUE",
},
{
search: {
displayable: false,
facetable: false,
searchable: false,
sortable: true,
},
relevance: {
importance: 1,
valuesImportanceMap: {},
},
name: "_version",
type: "STRING_VALUE",
},
{
search: {
displayable: false,
facetable: false,
searchable: false,
sortable: true,
},
relevance: {
importance: 1,
rankOrder: "ASCENDING",
},
name: "_view_count",
type: "LONG_VALUE",
},
],
name: "example",
roleArn: _this.arn,
});
import pulumi
import pulumi_aws as aws
example = aws.kendra.Index("example",
document_metadata_configuration_updates=[
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": False,
},
"relevance": {
"importance": 1,
},
"name": "_authors",
"type": "STRING_LIST_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"importance": 1,
"values_importance_map": {},
},
"name": "_category",
"type": "STRING_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"freshness": False,
"importance": 1,
"duration": "25920000s",
"rank_order": "ASCENDING",
},
"name": "_created_at",
"type": "DATE_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"importance": 1,
"values_importance_map": {},
},
"name": "_data_source_id",
"type": "STRING_VALUE",
},
{
"search": {
"displayable": True,
"facetable": False,
"searchable": True,
"sortable": True,
},
"relevance": {
"importance": 2,
"values_importance_map": {},
},
"name": "_document_title",
"type": "STRING_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": False,
},
"relevance": {
"importance": 2,
"rank_order": "ASCENDING",
},
"name": "_excerpt_page_number",
"type": "LONG_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"importance": 1,
"values_importance_map": {},
},
"name": "_faq_id",
"type": "STRING_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"importance": 1,
"values_importance_map": {},
},
"name": "_file_type",
"type": "STRING_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"importance": 1,
"values_importance_map": {},
},
"name": "_language_code",
"type": "STRING_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"freshness": False,
"importance": 1,
"duration": "25920000s",
"rank_order": "ASCENDING",
},
"name": "_last_updated_at",
"type": "DATE_VALUE",
},
{
"search": {
"displayable": True,
"facetable": False,
"searchable": False,
"sortable": False,
},
"relevance": {
"importance": 1,
"values_importance_map": {},
},
"name": "_source_uri",
"type": "STRING_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"importance": 1,
"values_importance_map": {},
},
"name": "_tenant_id",
"type": "STRING_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"importance": 1,
"values_importance_map": {},
},
"name": "_version",
"type": "STRING_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"importance": 1,
"rank_order": "ASCENDING",
},
"name": "_view_count",
"type": "LONG_VALUE",
},
],
name="example",
role_arn=this["arn"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Kendra.Index("example", new()
{
DocumentMetadataConfigurationUpdates = new[]
{
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = false,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
},
Name = "_authors",
Type = "STRING_LIST_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
ValuesImportanceMap = null,
},
Name = "_category",
Type = "STRING_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
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",
},
Name = "_created_at",
Type = "DATE_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
ValuesImportanceMap = null,
},
Name = "_data_source_id",
Type = "STRING_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = true,
Facetable = false,
Searchable = true,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 2,
ValuesImportanceMap = null,
},
Name = "_document_title",
Type = "STRING_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = false,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 2,
RankOrder = "ASCENDING",
},
Name = "_excerpt_page_number",
Type = "LONG_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
ValuesImportanceMap = null,
},
Name = "_faq_id",
Type = "STRING_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
ValuesImportanceMap = null,
},
Name = "_file_type",
Type = "STRING_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
ValuesImportanceMap = null,
},
Name = "_language_code",
Type = "STRING_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
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",
},
Name = "_last_updated_at",
Type = "DATE_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = true,
Facetable = false,
Searchable = false,
Sortable = false,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
ValuesImportanceMap = null,
},
Name = "_source_uri",
Type = "STRING_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
ValuesImportanceMap = null,
},
Name = "_tenant_id",
Type = "STRING_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
ValuesImportanceMap = null,
},
Name = "_version",
Type = "STRING_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
RankOrder = "ASCENDING",
},
Name = "_view_count",
Type = "LONG_VALUE",
},
},
Name = "example",
RoleArn = @this.Arn,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/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{
DocumentMetadataConfigurationUpdates: kendra.IndexDocumentMetadataConfigurationUpdateArray{
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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),
},
Name: pulumi.String("_authors"),
Type: pulumi.String("STRING_LIST_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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: pulumi.IntMap{},
},
Name: pulumi.String("_category"),
Type: pulumi.String("STRING_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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"),
},
Name: pulumi.String("_created_at"),
Type: pulumi.String("DATE_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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: pulumi.IntMap{},
},
Name: pulumi.String("_data_source_id"),
Type: pulumi.String("STRING_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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: pulumi.IntMap{},
},
Name: pulumi.String("_document_title"),
Type: pulumi.String("STRING_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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"),
},
Name: pulumi.String("_excerpt_page_number"),
Type: pulumi.String("LONG_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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: pulumi.IntMap{},
},
Name: pulumi.String("_faq_id"),
Type: pulumi.String("STRING_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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: pulumi.IntMap{},
},
Name: pulumi.String("_file_type"),
Type: pulumi.String("STRING_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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: pulumi.IntMap{},
},
Name: pulumi.String("_language_code"),
Type: pulumi.String("STRING_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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"),
},
Name: pulumi.String("_last_updated_at"),
Type: pulumi.String("DATE_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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: pulumi.IntMap{},
},
Name: pulumi.String("_source_uri"),
Type: pulumi.String("STRING_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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: pulumi.IntMap{},
},
Name: pulumi.String("_tenant_id"),
Type: pulumi.String("STRING_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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: pulumi.IntMap{},
},
Name: pulumi.String("_version"),
Type: pulumi.String("STRING_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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"),
},
Name: pulumi.String("_view_count"),
Type: pulumi.String("LONG_VALUE"),
},
},
Name: pulumi.String("example"),
RoleArn: pulumi.Any(this.Arn),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_kendra_index" "example" {
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = false
}
relevance = {
importance = 1
}
name = "_authors"
type = "STRING_LIST_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
importance = 1
values_importance_map = {}
}
name = "_category"
type = "STRING_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
freshness = false
importance = 1
duration = "25920000s"
rank_order = "ASCENDING"
}
name = "_created_at"
type = "DATE_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
importance = 1
values_importance_map = {}
}
name = "_data_source_id"
type = "STRING_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = true
facetable = false
searchable = true
sortable = true
}
relevance = {
importance = 2
values_importance_map = {}
}
name = "_document_title"
type = "STRING_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = false
}
relevance = {
importance = 2
rank_order = "ASCENDING"
}
name = "_excerpt_page_number"
type = "LONG_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
importance = 1
values_importance_map = {}
}
name = "_faq_id"
type = "STRING_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
importance = 1
values_importance_map = {}
}
name = "_file_type"
type = "STRING_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
importance = 1
values_importance_map = {}
}
name = "_language_code"
type = "STRING_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
freshness = false
importance = 1
duration = "25920000s"
rank_order = "ASCENDING"
}
name = "_last_updated_at"
type = "DATE_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = true
facetable = false
searchable = false
sortable = false
}
relevance = {
importance = 1
values_importance_map = {}
}
name = "_source_uri"
type = "STRING_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
importance = 1
values_importance_map = {}
}
name = "_tenant_id"
type = "STRING_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
importance = 1
values_importance_map = {}
}
name = "_version"
type = "STRING_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
importance = 1
rank_order = "ASCENDING"
}
name = "_view_count"
type = "LONG_VALUE"
}
name = "example"
role_arn = this.arn
}
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.ArrayList;
import java.util.Arrays;
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()
.documentMetadataConfigurationUpdates(
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(false)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.build())
.name("_authors")
.type("STRING_LIST_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.valuesImportanceMap(Map.ofEntries(
))
.build())
.name("_category")
.type("STRING_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.freshness(false)
.importance(1)
.duration("25920000s")
.rankOrder("ASCENDING")
.build())
.name("_created_at")
.type("DATE_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.valuesImportanceMap(Map.ofEntries(
))
.build())
.name("_data_source_id")
.type("STRING_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(true)
.facetable(false)
.searchable(true)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(2)
.valuesImportanceMap(Map.ofEntries(
))
.build())
.name("_document_title")
.type("STRING_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(false)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(2)
.rankOrder("ASCENDING")
.build())
.name("_excerpt_page_number")
.type("LONG_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.valuesImportanceMap(Map.ofEntries(
))
.build())
.name("_faq_id")
.type("STRING_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.valuesImportanceMap(Map.ofEntries(
))
.build())
.name("_file_type")
.type("STRING_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.valuesImportanceMap(Map.ofEntries(
))
.build())
.name("_language_code")
.type("STRING_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.freshness(false)
.importance(1)
.duration("25920000s")
.rankOrder("ASCENDING")
.build())
.name("_last_updated_at")
.type("DATE_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(true)
.facetable(false)
.searchable(false)
.sortable(false)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.valuesImportanceMap(Map.ofEntries(
))
.build())
.name("_source_uri")
.type("STRING_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.valuesImportanceMap(Map.ofEntries(
))
.build())
.name("_tenant_id")
.type("STRING_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.valuesImportanceMap(Map.ofEntries(
))
.build())
.name("_version")
.type("STRING_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.rankOrder("ASCENDING")
.build())
.name("_view_count")
.type("LONG_VALUE")
.build())
.name("example")
.roleArn(this_.arn())
.build());
}
}
resources:
example:
type: aws:kendra:Index
properties:
documentMetadataConfigurationUpdates:
- search:
displayable: false
facetable: false
searchable: false
sortable: false
relevance:
importance: 1
name: _authors
type: STRING_LIST_VALUE
- search:
displayable: false
facetable: false
searchable: false
sortable: true
relevance:
importance: 1
valuesImportanceMap: {}
name: _category
type: STRING_VALUE
- search:
displayable: false
facetable: false
searchable: false
sortable: true
relevance:
freshness: false
importance: 1
duration: 25920000s
rankOrder: ASCENDING
name: _created_at
type: DATE_VALUE
- search:
displayable: false
facetable: false
searchable: false
sortable: true
relevance:
importance: 1
valuesImportanceMap: {}
name: _data_source_id
type: STRING_VALUE
- search:
displayable: true
facetable: false
searchable: true
sortable: true
relevance:
importance: 2
valuesImportanceMap: {}
name: _document_title
type: STRING_VALUE
- search:
displayable: false
facetable: false
searchable: false
sortable: false
relevance:
importance: 2
rankOrder: ASCENDING
name: _excerpt_page_number
type: LONG_VALUE
- search:
displayable: false
facetable: false
searchable: false
sortable: true
relevance:
importance: 1
valuesImportanceMap: {}
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:
freshness: false
importance: 1
duration: 25920000s
rankOrder: ASCENDING
name: _last_updated_at
type: DATE_VALUE
- search:
displayable: true
facetable: false
searchable: false
sortable: false
relevance:
importance: 1
valuesImportanceMap: {}
name: _source_uri
type: STRING_VALUE
- search:
displayable: false
facetable: false
searchable: false
sortable: true
relevance:
importance: 1
valuesImportanceMap: {}
name: _tenant_id
type: STRING_VALUE
- search:
displayable: false
facetable: false
searchable: false
sortable: true
relevance:
importance: 1
valuesImportanceMap: {}
name: _version
type: STRING_VALUE
- search:
displayable: false
facetable: false
searchable: false
sortable: true
relevance:
importance: 1
rankOrder: ASCENDING
name: _view_count
type: LONG_VALUE
name: example
roleArn: ${this.arn}
Appending additional elements
The example below shows additional elements with names, example-string-value, example-long-value, example-string-list-value, example-date-value representing the 4 types of STRING_VALUE, LONG_VALUE, STRING_LIST_VALUE, DATE_VALUE respectively.
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.kendra.Index("example", {
documentMetadataConfigurationUpdates: [
{
search: {
displayable: false,
facetable: false,
searchable: false,
sortable: false,
},
relevance: {
importance: 1,
},
name: "_authors",
type: "STRING_LIST_VALUE",
},
{
search: {
displayable: false,
facetable: false,
searchable: false,
sortable: true,
},
relevance: {
importance: 1,
valuesImportanceMap: {},
},
name: "_category",
type: "STRING_VALUE",
},
{
search: {
displayable: false,
facetable: false,
searchable: false,
sortable: true,
},
relevance: {
freshness: false,
importance: 1,
duration: "25920000s",
rankOrder: "ASCENDING",
},
name: "_created_at",
type: "DATE_VALUE",
},
{
search: {
displayable: false,
facetable: false,
searchable: false,
sortable: true,
},
relevance: {
importance: 1,
valuesImportanceMap: {},
},
name: "_data_source_id",
type: "STRING_VALUE",
},
{
search: {
displayable: true,
facetable: false,
searchable: true,
sortable: true,
},
relevance: {
importance: 2,
valuesImportanceMap: {},
},
name: "_document_title",
type: "STRING_VALUE",
},
{
search: {
displayable: false,
facetable: false,
searchable: false,
sortable: false,
},
relevance: {
importance: 2,
rankOrder: "ASCENDING",
},
name: "_excerpt_page_number",
type: "LONG_VALUE",
},
{
search: {
displayable: false,
facetable: false,
searchable: false,
sortable: true,
},
relevance: {
importance: 1,
valuesImportanceMap: {},
},
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: {
freshness: false,
importance: 1,
duration: "25920000s",
rankOrder: "ASCENDING",
},
name: "_last_updated_at",
type: "DATE_VALUE",
},
{
search: {
displayable: true,
facetable: false,
searchable: false,
sortable: false,
},
relevance: {
importance: 1,
valuesImportanceMap: {},
},
name: "_source_uri",
type: "STRING_VALUE",
},
{
search: {
displayable: false,
facetable: false,
searchable: false,
sortable: true,
},
relevance: {
importance: 1,
valuesImportanceMap: {},
},
name: "_tenant_id",
type: "STRING_VALUE",
},
{
search: {
displayable: false,
facetable: false,
searchable: false,
sortable: true,
},
relevance: {
importance: 1,
valuesImportanceMap: {},
},
name: "_version",
type: "STRING_VALUE",
},
{
search: {
displayable: false,
facetable: false,
searchable: false,
sortable: true,
},
relevance: {
importance: 1,
rankOrder: "ASCENDING",
},
name: "_view_count",
type: "LONG_VALUE",
},
{
search: {
displayable: true,
facetable: true,
searchable: true,
sortable: true,
},
relevance: {
importance: 1,
valuesImportanceMap: {},
},
name: "example-string-value",
type: "STRING_VALUE",
},
{
search: {
displayable: true,
facetable: true,
searchable: false,
sortable: true,
},
relevance: {
importance: 1,
rankOrder: "ASCENDING",
},
name: "example-long-value",
type: "LONG_VALUE",
},
{
search: {
displayable: true,
facetable: true,
searchable: true,
sortable: false,
},
relevance: {
importance: 1,
},
name: "example-string-list-value",
type: "STRING_LIST_VALUE",
},
{
search: {
displayable: true,
facetable: true,
searchable: false,
sortable: false,
},
relevance: {
freshness: false,
importance: 1,
duration: "25920000s",
rankOrder: "ASCENDING",
},
name: "example-date-value",
type: "DATE_VALUE",
},
],
name: "example",
roleArn: _this.arn,
});
import pulumi
import pulumi_aws as aws
example = aws.kendra.Index("example",
document_metadata_configuration_updates=[
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": False,
},
"relevance": {
"importance": 1,
},
"name": "_authors",
"type": "STRING_LIST_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"importance": 1,
"values_importance_map": {},
},
"name": "_category",
"type": "STRING_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"freshness": False,
"importance": 1,
"duration": "25920000s",
"rank_order": "ASCENDING",
},
"name": "_created_at",
"type": "DATE_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"importance": 1,
"values_importance_map": {},
},
"name": "_data_source_id",
"type": "STRING_VALUE",
},
{
"search": {
"displayable": True,
"facetable": False,
"searchable": True,
"sortable": True,
},
"relevance": {
"importance": 2,
"values_importance_map": {},
},
"name": "_document_title",
"type": "STRING_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": False,
},
"relevance": {
"importance": 2,
"rank_order": "ASCENDING",
},
"name": "_excerpt_page_number",
"type": "LONG_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"importance": 1,
"values_importance_map": {},
},
"name": "_faq_id",
"type": "STRING_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"importance": 1,
"values_importance_map": {},
},
"name": "_file_type",
"type": "STRING_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"importance": 1,
"values_importance_map": {},
},
"name": "_language_code",
"type": "STRING_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"freshness": False,
"importance": 1,
"duration": "25920000s",
"rank_order": "ASCENDING",
},
"name": "_last_updated_at",
"type": "DATE_VALUE",
},
{
"search": {
"displayable": True,
"facetable": False,
"searchable": False,
"sortable": False,
},
"relevance": {
"importance": 1,
"values_importance_map": {},
},
"name": "_source_uri",
"type": "STRING_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"importance": 1,
"values_importance_map": {},
},
"name": "_tenant_id",
"type": "STRING_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"importance": 1,
"values_importance_map": {},
},
"name": "_version",
"type": "STRING_VALUE",
},
{
"search": {
"displayable": False,
"facetable": False,
"searchable": False,
"sortable": True,
},
"relevance": {
"importance": 1,
"rank_order": "ASCENDING",
},
"name": "_view_count",
"type": "LONG_VALUE",
},
{
"search": {
"displayable": True,
"facetable": True,
"searchable": True,
"sortable": True,
},
"relevance": {
"importance": 1,
"values_importance_map": {},
},
"name": "example-string-value",
"type": "STRING_VALUE",
},
{
"search": {
"displayable": True,
"facetable": True,
"searchable": False,
"sortable": True,
},
"relevance": {
"importance": 1,
"rank_order": "ASCENDING",
},
"name": "example-long-value",
"type": "LONG_VALUE",
},
{
"search": {
"displayable": True,
"facetable": True,
"searchable": True,
"sortable": False,
},
"relevance": {
"importance": 1,
},
"name": "example-string-list-value",
"type": "STRING_LIST_VALUE",
},
{
"search": {
"displayable": True,
"facetable": True,
"searchable": False,
"sortable": False,
},
"relevance": {
"freshness": False,
"importance": 1,
"duration": "25920000s",
"rank_order": "ASCENDING",
},
"name": "example-date-value",
"type": "DATE_VALUE",
},
],
name="example",
role_arn=this["arn"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Kendra.Index("example", new()
{
DocumentMetadataConfigurationUpdates = new[]
{
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = false,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
},
Name = "_authors",
Type = "STRING_LIST_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
ValuesImportanceMap = null,
},
Name = "_category",
Type = "STRING_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
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",
},
Name = "_created_at",
Type = "DATE_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
ValuesImportanceMap = null,
},
Name = "_data_source_id",
Type = "STRING_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = true,
Facetable = false,
Searchable = true,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 2,
ValuesImportanceMap = null,
},
Name = "_document_title",
Type = "STRING_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = false,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 2,
RankOrder = "ASCENDING",
},
Name = "_excerpt_page_number",
Type = "LONG_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
ValuesImportanceMap = null,
},
Name = "_faq_id",
Type = "STRING_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
ValuesImportanceMap = null,
},
Name = "_file_type",
Type = "STRING_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
ValuesImportanceMap = null,
},
Name = "_language_code",
Type = "STRING_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
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",
},
Name = "_last_updated_at",
Type = "DATE_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = true,
Facetable = false,
Searchable = false,
Sortable = false,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
ValuesImportanceMap = null,
},
Name = "_source_uri",
Type = "STRING_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
ValuesImportanceMap = null,
},
Name = "_tenant_id",
Type = "STRING_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
ValuesImportanceMap = null,
},
Name = "_version",
Type = "STRING_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = false,
Facetable = false,
Searchable = false,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
RankOrder = "ASCENDING",
},
Name = "_view_count",
Type = "LONG_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = true,
Facetable = true,
Searchable = true,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
ValuesImportanceMap = null,
},
Name = "example-string-value",
Type = "STRING_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = true,
Facetable = true,
Searchable = false,
Sortable = true,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
RankOrder = "ASCENDING",
},
Name = "example-long-value",
Type = "LONG_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
Search = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs
{
Displayable = true,
Facetable = true,
Searchable = true,
Sortable = false,
},
Relevance = new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs
{
Importance = 1,
},
Name = "example-string-list-value",
Type = "STRING_LIST_VALUE",
},
new Aws.Kendra.Inputs.IndexDocumentMetadataConfigurationUpdateArgs
{
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",
},
Name = "example-date-value",
Type = "DATE_VALUE",
},
},
Name = "example",
RoleArn = @this.Arn,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/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{
DocumentMetadataConfigurationUpdates: kendra.IndexDocumentMetadataConfigurationUpdateArray{
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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),
},
Name: pulumi.String("_authors"),
Type: pulumi.String("STRING_LIST_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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: pulumi.IntMap{},
},
Name: pulumi.String("_category"),
Type: pulumi.String("STRING_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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"),
},
Name: pulumi.String("_created_at"),
Type: pulumi.String("DATE_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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: pulumi.IntMap{},
},
Name: pulumi.String("_data_source_id"),
Type: pulumi.String("STRING_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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: pulumi.IntMap{},
},
Name: pulumi.String("_document_title"),
Type: pulumi.String("STRING_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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"),
},
Name: pulumi.String("_excerpt_page_number"),
Type: pulumi.String("LONG_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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: pulumi.IntMap{},
},
Name: pulumi.String("_faq_id"),
Type: pulumi.String("STRING_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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: pulumi.IntMap{},
},
Name: pulumi.String("_file_type"),
Type: pulumi.String("STRING_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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: pulumi.IntMap{},
},
Name: pulumi.String("_language_code"),
Type: pulumi.String("STRING_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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"),
},
Name: pulumi.String("_last_updated_at"),
Type: pulumi.String("DATE_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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: pulumi.IntMap{},
},
Name: pulumi.String("_source_uri"),
Type: pulumi.String("STRING_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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: pulumi.IntMap{},
},
Name: pulumi.String("_tenant_id"),
Type: pulumi.String("STRING_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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: pulumi.IntMap{},
},
Name: pulumi.String("_version"),
Type: pulumi.String("STRING_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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"),
},
Name: pulumi.String("_view_count"),
Type: pulumi.String("LONG_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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: pulumi.IntMap{},
},
Name: pulumi.String("example-string-value"),
Type: pulumi.String("STRING_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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"),
},
Name: pulumi.String("example-long-value"),
Type: pulumi.String("LONG_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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),
},
Name: pulumi.String("example-string-list-value"),
Type: pulumi.String("STRING_LIST_VALUE"),
},
&kendra.IndexDocumentMetadataConfigurationUpdateArgs{
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"),
},
Name: pulumi.String("example-date-value"),
Type: pulumi.String("DATE_VALUE"),
},
},
Name: pulumi.String("example"),
RoleArn: pulumi.Any(this.Arn),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_kendra_index" "example" {
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = false
}
relevance = {
importance = 1
}
name = "_authors"
type = "STRING_LIST_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
importance = 1
values_importance_map = {}
}
name = "_category"
type = "STRING_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
freshness = false
importance = 1
duration = "25920000s"
rank_order = "ASCENDING"
}
name = "_created_at"
type = "DATE_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
importance = 1
values_importance_map = {}
}
name = "_data_source_id"
type = "STRING_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = true
facetable = false
searchable = true
sortable = true
}
relevance = {
importance = 2
values_importance_map = {}
}
name = "_document_title"
type = "STRING_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = false
}
relevance = {
importance = 2
rank_order = "ASCENDING"
}
name = "_excerpt_page_number"
type = "LONG_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
importance = 1
values_importance_map = {}
}
name = "_faq_id"
type = "STRING_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
importance = 1
values_importance_map = {}
}
name = "_file_type"
type = "STRING_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
importance = 1
values_importance_map = {}
}
name = "_language_code"
type = "STRING_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
freshness = false
importance = 1
duration = "25920000s"
rank_order = "ASCENDING"
}
name = "_last_updated_at"
type = "DATE_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = true
facetable = false
searchable = false
sortable = false
}
relevance = {
importance = 1
values_importance_map = {}
}
name = "_source_uri"
type = "STRING_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
importance = 1
values_importance_map = {}
}
name = "_tenant_id"
type = "STRING_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
importance = 1
values_importance_map = {}
}
name = "_version"
type = "STRING_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = false
facetable = false
searchable = false
sortable = true
}
relevance = {
importance = 1
rank_order = "ASCENDING"
}
name = "_view_count"
type = "LONG_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = true
facetable = true
searchable = true
sortable = true
}
relevance = {
importance = 1
values_importance_map = {}
}
name = "example-string-value"
type = "STRING_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = true
facetable = true
searchable = false
sortable = true
}
relevance = {
importance = 1
rank_order = "ASCENDING"
}
name = "example-long-value"
type = "LONG_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = true
facetable = true
searchable = true
sortable = false
}
relevance = {
importance = 1
}
name = "example-string-list-value"
type = "STRING_LIST_VALUE"
}
document_metadata_configuration_updates {
search = {
displayable = true
facetable = true
searchable = false
sortable = false
}
relevance = {
freshness = false
importance = 1
duration = "25920000s"
rank_order = "ASCENDING"
}
name = "example-date-value"
type = "DATE_VALUE"
}
name = "example"
role_arn = this.arn
}
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.ArrayList;
import java.util.Arrays;
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()
.documentMetadataConfigurationUpdates(
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(false)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.build())
.name("_authors")
.type("STRING_LIST_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.valuesImportanceMap(Map.ofEntries(
))
.build())
.name("_category")
.type("STRING_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.freshness(false)
.importance(1)
.duration("25920000s")
.rankOrder("ASCENDING")
.build())
.name("_created_at")
.type("DATE_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.valuesImportanceMap(Map.ofEntries(
))
.build())
.name("_data_source_id")
.type("STRING_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(true)
.facetable(false)
.searchable(true)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(2)
.valuesImportanceMap(Map.ofEntries(
))
.build())
.name("_document_title")
.type("STRING_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(false)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(2)
.rankOrder("ASCENDING")
.build())
.name("_excerpt_page_number")
.type("LONG_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.valuesImportanceMap(Map.ofEntries(
))
.build())
.name("_faq_id")
.type("STRING_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.valuesImportanceMap(Map.ofEntries(
))
.build())
.name("_file_type")
.type("STRING_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.valuesImportanceMap(Map.ofEntries(
))
.build())
.name("_language_code")
.type("STRING_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.freshness(false)
.importance(1)
.duration("25920000s")
.rankOrder("ASCENDING")
.build())
.name("_last_updated_at")
.type("DATE_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(true)
.facetable(false)
.searchable(false)
.sortable(false)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.valuesImportanceMap(Map.ofEntries(
))
.build())
.name("_source_uri")
.type("STRING_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.valuesImportanceMap(Map.ofEntries(
))
.build())
.name("_tenant_id")
.type("STRING_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.valuesImportanceMap(Map.ofEntries(
))
.build())
.name("_version")
.type("STRING_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.rankOrder("ASCENDING")
.build())
.name("_view_count")
.type("LONG_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(true)
.facetable(true)
.searchable(true)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.valuesImportanceMap(Map.ofEntries(
))
.build())
.name("example-string-value")
.type("STRING_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(true)
.facetable(true)
.searchable(false)
.sortable(true)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.rankOrder("ASCENDING")
.build())
.name("example-long-value")
.type("LONG_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(true)
.facetable(true)
.searchable(true)
.sortable(false)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.importance(1)
.build())
.name("example-string-list-value")
.type("STRING_LIST_VALUE")
.build(),
IndexDocumentMetadataConfigurationUpdateArgs.builder()
.search(IndexDocumentMetadataConfigurationUpdateSearchArgs.builder()
.displayable(true)
.facetable(true)
.searchable(false)
.sortable(false)
.build())
.relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs.builder()
.freshness(false)
.importance(1)
.duration("25920000s")
.rankOrder("ASCENDING")
.build())
.name("example-date-value")
.type("DATE_VALUE")
.build())
.name("example")
.roleArn(this_.arn())
.build());
}
}
resources:
example:
type: aws:kendra:Index
properties:
documentMetadataConfigurationUpdates:
- search:
displayable: false
facetable: false
searchable: false
sortable: false
relevance:
importance: 1
name: _authors
type: STRING_LIST_VALUE
- search:
displayable: false
facetable: false
searchable: false
sortable: true
relevance:
importance: 1
valuesImportanceMap: {}
name: _category
type: STRING_VALUE
- search:
displayable: false
facetable: false
searchable: false
sortable: true
relevance:
freshness: false
importance: 1
duration: 25920000s
rankOrder: ASCENDING
name: _created_at
type: DATE_VALUE
- search:
displayable: false
facetable: false
searchable: false
sortable: true
relevance:
importance: 1
valuesImportanceMap: {}
name: _data_source_id
type: STRING_VALUE
- search:
displayable: true
facetable: false
searchable: true
sortable: true
relevance:
importance: 2
valuesImportanceMap: {}
name: _document_title
type: STRING_VALUE
- search:
displayable: false
facetable: false
searchable: false
sortable: false
relevance:
importance: 2
rankOrder: ASCENDING
name: _excerpt_page_number
type: LONG_VALUE
- search:
displayable: false
facetable: false
searchable: false
sortable: true
relevance:
importance: 1
valuesImportanceMap: {}
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:
freshness: false
importance: 1
duration: 25920000s
rankOrder: ASCENDING
name: _last_updated_at
type: DATE_VALUE
- search:
displayable: true
facetable: false
searchable: false
sortable: false
relevance:
importance: 1
valuesImportanceMap: {}
name: _source_uri
type: STRING_VALUE
- search:
displayable: false
facetable: false
searchable: false
sortable: true
relevance:
importance: 1
valuesImportanceMap: {}
name: _tenant_id
type: STRING_VALUE
- search:
displayable: false
facetable: false
searchable: false
sortable: true
relevance:
importance: 1
valuesImportanceMap: {}
name: _version
type: STRING_VALUE
- search:
displayable: false
facetable: false
searchable: false
sortable: true
relevance:
importance: 1
rankOrder: ASCENDING
name: _view_count
type: LONG_VALUE
- search:
displayable: true
facetable: true
searchable: true
sortable: true
relevance:
importance: 1
valuesImportanceMap: {}
name: example-string-value
type: STRING_VALUE
- search:
displayable: true
facetable: true
searchable: false
sortable: true
relevance:
importance: 1
rankOrder: ASCENDING
name: example-long-value
type: LONG_VALUE
- search:
displayable: true
facetable: true
searchable: true
sortable: false
relevance:
importance: 1
name: example-string-list-value
type: STRING_LIST_VALUE
- search:
displayable: true
facetable: true
searchable: false
sortable: false
relevance:
freshness: false
importance: 1
duration: 25920000s
rankOrder: ASCENDING
name: example-date-value
type: DATE_VALUE
name: example
roleArn: ${this.arn}
With JSON token type configuration
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.kendra.Index("example", {
userTokenConfigurations: {
jsonTokenTypeConfiguration: {
groupAttributeField: "groups",
userNameAttributeField: "username",
},
},
name: "example",
roleArn: _this.arn,
});
import pulumi
import pulumi_aws as aws
example = aws.kendra.Index("example",
user_token_configurations={
"json_token_type_configuration": {
"group_attribute_field": "groups",
"user_name_attribute_field": "username",
},
},
name="example",
role_arn=this["arn"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Kendra.Index("example", new()
{
UserTokenConfigurations = new Aws.Kendra.Inputs.IndexUserTokenConfigurationsArgs
{
JsonTokenTypeConfiguration = new Aws.Kendra.Inputs.IndexUserTokenConfigurationsJsonTokenTypeConfigurationArgs
{
GroupAttributeField = "groups",
UserNameAttributeField = "username",
},
},
Name = "example",
RoleArn = @this.Arn,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/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{
UserTokenConfigurations: &kendra.IndexUserTokenConfigurationsArgs{
JsonTokenTypeConfiguration: &kendra.IndexUserTokenConfigurationsJsonTokenTypeConfigurationArgs{
GroupAttributeField: pulumi.String("groups"),
UserNameAttributeField: pulumi.String("username"),
},
},
Name: pulumi.String("example"),
RoleArn: pulumi.Any(this.Arn),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_kendra_index" "example" {
user_token_configurations = {
json_token_type_configuration = {
group_attribute_field = "groups"
user_name_attribute_field = "username"
}
}
name = "example"
role_arn = this.arn
}
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.ArrayList;
import java.util.Arrays;
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()
.userTokenConfigurations(IndexUserTokenConfigurationsArgs.builder()
.jsonTokenTypeConfiguration(IndexUserTokenConfigurationsJsonTokenTypeConfigurationArgs.builder()
.groupAttributeField("groups")
.userNameAttributeField("username")
.build())
.build())
.name("example")
.roleArn(this_.arn())
.build());
}
}
resources:
example:
type: aws:kendra:Index
properties:
userTokenConfigurations:
jsonTokenTypeConfiguration:
groupAttributeField: groups
userNameAttributeField: username
name: example
roleArn: ${this.arn}
Import
Using pulumi import, import Amazon Kendra Indexes using its id. For example:
$ pulumi import aws:kendra/index:Index example 12345678-1234-5678-9123-123456789123
Constructors
- Index(String name, {IndexArgs? args, CustomResourceOptions? options})
-
Creates a new Index.
nameThe Pulumi resource name.argsArguments used to configure this Index. The set of arguments for Index.optionsResource options controlling this resource's behavior. - Index.reference(String urn)
- Creates a typed reference to an existing Index resource.
Properties
-
arn
↔ Output<
String> -
ARN of the Index.
latefinal
-
capacityUnits
↔ Output<
IndexCapacityUnits> -
A block that sets the number of additional document storage and query capacity units that should be used by the index. Detailed below.
latefinal
-
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
createdAt
↔ Output<
String> -
The Unix datetime that the index was created.
latefinal
-
description
↔ Output<
String?> -
The description of the Index.
latefinal
-
documentMetadataConfigurationUpdates
↔ Output<
List< IndexDocumentMetadataConfigurationUpdate> > -
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.
latefinal
-
edition
↔ Output<
String?> -
The Amazon Kendra edition to use for the index. Choose
DEVELOPER_EDITIONfor indexes intended for development, testing, or proof of concept. UseENTERPRISE_EDITIONfor your production databases. UseGEN_AI_ENTERPRISE_EDITIONfor creating generative AI applications. Once you set the edition for an index, it can't be changed. Defaults toENTERPRISE_EDITION.latefinal -
errorMessage
↔ Output<
String> -
When the Status field value is
FAILED, this contains a message that explains why.latefinal - hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
-
indexStatistics
↔ Output<
List< IndexIndexStatistic> > -
A block that provides information about the number of FAQ questions and answers and the number of text documents indexed. Detailed below.
latefinal
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
name
↔ Output<
String> -
Specifies the name of the Index.
latefinal
-
region
↔ Output<
String> -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
-
roleArn
↔ Output<
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
BatchPutDocumentAPI to index documents from an Amazon S3 bucket.latefinal - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serverSideEncryptionConfiguration
↔ Output<
IndexServerSideEncryptionConfiguration?> -
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.
latefinal
-
status
↔ Output<
String> -
The current status of the index. When the value is
ACTIVE, the index is ready for use. If the Status field value isFAILED, theerrorMessagefield contains a message that explains why.latefinal -
Tags to apply to the Index. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.latefinal -
A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.latefinal -
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
updatedAt
↔ Output<
String> -
The Unix datetime that the index was last updated.
latefinal
-
urn
↔ Output<
String> -
latefinalinherited
-
userContextPolicy
↔ Output<
String?> -
The user context policy. Valid values are
ATTRIBUTE_FILTERorUSER_TOKEN. For more information, refer to UserContextPolicy. Defaults toATTRIBUTE_FILTER.latefinal -
userGroupResolutionConfiguration
↔ Output<
IndexUserGroupResolutionConfiguration?> -
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.
latefinal
-
userTokenConfigurations
↔ Output<
IndexUserTokenConfigurations?> -
A block that specifies the user token configuration. Detailed below.
latefinal
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited