com.pulumi.aws.kendra.Thesaurus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.kendra;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.kendra.ThesaurusArgs;
import com.pulumi.aws.kendra.inputs.ThesaurusState;
import com.pulumi.aws.kendra.outputs.ThesaurusSourceS3Path;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Resource for managing an AWS Kendra Thesaurus.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.kendra.Thesaurus;
* import com.pulumi.aws.kendra.ThesaurusArgs;
* import com.pulumi.aws.kendra.inputs.ThesaurusSourceS3PathArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* var example = new Thesaurus("example", ThesaurusArgs.builder()
* .indexId(exampleAwsKendraIndex.id())
* .name("Example")
* .roleArn(exampleAwsIamRole.arn())
* .sourceS3Path(ThesaurusSourceS3PathArgs.builder()
* .bucket(exampleAwsS3Bucket.id())
* .key(exampleAwsS3Object.key())
* .build())
* .tags(Map.of("Name", "Example Kendra Thesaurus"))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import `aws_kendra_thesaurus` using the unique identifiers of the thesaurus and index separated by a slash (`/`). For example:
*
* ```sh
* $ pulumi import aws:kendra/thesaurus:Thesaurus example thesaurus-123456780/idx-8012925589
* ```
*
*/
@ResourceType(type="aws:kendra/thesaurus:Thesaurus")
public class Thesaurus extends com.pulumi.resources.CustomResource {
/**
* ARN of the thesaurus.
*
*/
@Export(name="arn", refs={String.class}, tree="[0]")
private Output arn;
/**
* @return ARN of the thesaurus.
*
*/
public Output arn() {
return this.arn;
}
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
public Output> description() {
return Codegen.optional(this.description);
}
/**
* The identifier of the index for a thesaurus.
*
*/
@Export(name="indexId", refs={String.class}, tree="[0]")
private Output indexId;
/**
* @return The identifier of the index for a thesaurus.
*
*/
public Output indexId() {
return this.indexId;
}
/**
* The name for the thesaurus.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name for the thesaurus.
*
*/
public Output name() {
return this.name;
}
/**
* The IAM (Identity and Access Management) role used to access the thesaurus file in S3.
*
*/
@Export(name="roleArn", refs={String.class}, tree="[0]")
private Output roleArn;
/**
* @return The IAM (Identity and Access Management) role used to access the thesaurus file in S3.
*
*/
public Output roleArn() {
return this.roleArn;
}
/**
* The S3 path where your thesaurus file sits in S3. Detailed below.
*
*/
@Export(name="sourceS3Path", refs={ThesaurusSourceS3Path.class}, tree="[0]")
private Output sourceS3Path;
/**
* @return The S3 path where your thesaurus file sits in S3. Detailed below.
*
*/
public Output sourceS3Path() {
return this.sourceS3Path;
}
/**
* The current status of the thesaurus.
*
*/
@Export(name="status", refs={String.class}, tree="[0]")
private Output status;
/**
* @return The current status of the thesaurus.
*
*/
public Output status() {
return this.status;
}
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]")
private Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy