All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.kendra.Thesaurus Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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 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> 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> tagsAll; /** * @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. * */ public Output> tagsAll() { return this.tagsAll; } @Export(name="thesaurusId", refs={String.class}, tree="[0]") private Output thesaurusId; public Output thesaurusId() { return this.thesaurusId; } /** * * @param name The _unique_ name of the resulting resource. */ public Thesaurus(java.lang.String name) { this(name, ThesaurusArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Thesaurus(java.lang.String name, ThesaurusArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public Thesaurus(java.lang.String name, ThesaurusArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:kendra/thesaurus:Thesaurus", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Thesaurus(java.lang.String name, Output id, @Nullable ThesaurusState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:kendra/thesaurus:Thesaurus", name, state, makeResourceOptions(options, id), false); } private static ThesaurusArgs makeArgs(ThesaurusArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ThesaurusArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state * @param options Optional settings to control the behavior of the CustomResource. */ public static Thesaurus get(java.lang.String name, Output id, @Nullable ThesaurusState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Thesaurus(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy