Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
aws.kendra.getThesaurus
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
Provides details about a specific Amazon Kendra Thesaurus.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.kendra.getThesaurus({
indexId: "12345678-1234-1234-1234-123456789123",
thesaurusId: "87654321-1234-4321-4321-321987654321",
});
import pulumi
import pulumi_aws as aws
example = aws.kendra.get_thesaurus(index_id="12345678-1234-1234-1234-123456789123",
thesaurus_id="87654321-1234-4321-4321-321987654321")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kendra"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kendra.LookupThesaurus(ctx, &kendra.LookupThesaurusArgs{
IndexId: "12345678-1234-1234-1234-123456789123",
ThesaurusId: "87654321-1234-4321-4321-321987654321",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Kendra.GetThesaurus.Invoke(new()
{
IndexId = "12345678-1234-1234-1234-123456789123",
ThesaurusId = "87654321-1234-4321-4321-321987654321",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.kendra.KendraFunctions;
import com.pulumi.aws.kendra.inputs.GetThesaurusArgs;
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) {
final var example = KendraFunctions.getThesaurus(GetThesaurusArgs.builder()
.indexId("12345678-1234-1234-1234-123456789123")
.thesaurusId("87654321-1234-4321-4321-321987654321")
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:kendra:getThesaurus
Arguments:
indexId: 12345678-1234-1234-1234-123456789123
thesaurusId: 87654321-1234-4321-4321-321987654321
Using getThesaurus
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getThesaurus(args: GetThesaurusArgs, opts?: InvokeOptions): Promise<GetThesaurusResult>
function getThesaurusOutput(args: GetThesaurusOutputArgs, opts?: InvokeOptions): Output<GetThesaurusResult>
def get_thesaurus(index_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
thesaurus_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetThesaurusResult
def get_thesaurus_output(index_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
thesaurus_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetThesaurusResult]
func LookupThesaurus(ctx *Context, args *LookupThesaurusArgs, opts ...InvokeOption) (*LookupThesaurusResult, error)
func LookupThesaurusOutput(ctx *Context, args *LookupThesaurusOutputArgs, opts ...InvokeOption) LookupThesaurusResultOutput
> Note: This function is named LookupThesaurus
in the Go SDK.
public static class GetThesaurus
{
public static Task<GetThesaurusResult> InvokeAsync(GetThesaurusArgs args, InvokeOptions? opts = null)
public static Output<GetThesaurusResult> Invoke(GetThesaurusInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetThesaurusResult> getThesaurus(GetThesaurusArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:kendra/getThesaurus:getThesaurus
arguments:
# arguments dictionary
The following arguments are supported:
- Index
Id string - Identifier of the index that contains the Thesaurus.
- Thesaurus
Id string - Identifier of the Thesaurus.
- Dictionary<string, string>
- Metadata that helps organize the Thesaurus you create.
- Index
Id string - Identifier of the index that contains the Thesaurus.
- Thesaurus
Id string - Identifier of the Thesaurus.
- map[string]string
- Metadata that helps organize the Thesaurus you create.
- index
Id String - Identifier of the index that contains the Thesaurus.
- thesaurus
Id String - Identifier of the Thesaurus.
- Map<String,String>
- Metadata that helps organize the Thesaurus you create.
- index
Id string - Identifier of the index that contains the Thesaurus.
- thesaurus
Id string - Identifier of the Thesaurus.
- {[key: string]: string}
- Metadata that helps organize the Thesaurus you create.
- index_
id str - Identifier of the index that contains the Thesaurus.
- thesaurus_
id str - Identifier of the Thesaurus.
- Mapping[str, str]
- Metadata that helps organize the Thesaurus you create.
- index
Id String - Identifier of the index that contains the Thesaurus.
- thesaurus
Id String - Identifier of the Thesaurus.
- Map<String>
- Metadata that helps organize the Thesaurus you create.
getThesaurus Result
The following output properties are available:
- Arn string
- ARN of the Thesaurus.
- Created
At string - Unix datetime that the Thesaurus was created.
- Description string
- Description of the Thesaurus.
- Error
Message string - When the
status
field value isFAILED
, this contains a message that explains why. - File
Size intBytes - Size of the Thesaurus file in bytes.
- Id string
- The provider-assigned unique ID for this managed resource.
- Index
Id string - Name string
- Name of the Thesaurus.
- Role
Arn string - ARN of a role with permission to access the S3 bucket that contains the Thesaurus. For more information, see IAM Roles for Amazon Kendra.
- Source
S3Paths List<GetThesaurus Source S3Path> - S3 location of the Thesaurus input data. Detailed below.
- Status string
- Status of the Thesaurus. It is ready to use when the status is
ACTIVE
. - Synonym
Rule intCount - Number of synonym rules in the Thesaurus file.
- Dictionary<string, string>
- Metadata that helps organize the Thesaurus you create.
- Term
Count int - Number of unique terms in the Thesaurus file. For example, the synonyms
a,b,c
anda=>d
, the term count would be 4. - Thesaurus
Id string - Updated
At string - Date and time that the Thesaurus was last updated.
- Arn string
- ARN of the Thesaurus.
- Created
At string - Unix datetime that the Thesaurus was created.
- Description string
- Description of the Thesaurus.
- Error
Message string - When the
status
field value isFAILED
, this contains a message that explains why. - File
Size intBytes - Size of the Thesaurus file in bytes.
- Id string
- The provider-assigned unique ID for this managed resource.
- Index
Id string - Name string
- Name of the Thesaurus.
- Role
Arn string - ARN of a role with permission to access the S3 bucket that contains the Thesaurus. For more information, see IAM Roles for Amazon Kendra.
- Source
S3Paths []GetThesaurus Source S3Path - S3 location of the Thesaurus input data. Detailed below.
- Status string
- Status of the Thesaurus. It is ready to use when the status is
ACTIVE
. - Synonym
Rule intCount - Number of synonym rules in the Thesaurus file.
- map[string]string
- Metadata that helps organize the Thesaurus you create.
- Term
Count int - Number of unique terms in the Thesaurus file. For example, the synonyms
a,b,c
anda=>d
, the term count would be 4. - Thesaurus
Id string - Updated
At string - Date and time that the Thesaurus was last updated.
- arn String
- ARN of the Thesaurus.
- created
At String - Unix datetime that the Thesaurus was created.
- description String
- Description of the Thesaurus.
- error
Message String - When the
status
field value isFAILED
, this contains a message that explains why. - file
Size IntegerBytes - Size of the Thesaurus file in bytes.
- id String
- The provider-assigned unique ID for this managed resource.
- index
Id String - name String
- Name of the Thesaurus.
- role
Arn String - ARN of a role with permission to access the S3 bucket that contains the Thesaurus. For more information, see IAM Roles for Amazon Kendra.
- source
S3Paths List<GetThesaurus Source S3Path> - S3 location of the Thesaurus input data. Detailed below.
- status String
- Status of the Thesaurus. It is ready to use when the status is
ACTIVE
. - synonym
Rule IntegerCount - Number of synonym rules in the Thesaurus file.
- Map<String,String>
- Metadata that helps organize the Thesaurus you create.
- term
Count Integer - Number of unique terms in the Thesaurus file. For example, the synonyms
a,b,c
anda=>d
, the term count would be 4. - thesaurus
Id String - updated
At String - Date and time that the Thesaurus was last updated.
- arn string
- ARN of the Thesaurus.
- created
At string - Unix datetime that the Thesaurus was created.
- description string
- Description of the Thesaurus.
- error
Message string - When the
status
field value isFAILED
, this contains a message that explains why. - file
Size numberBytes - Size of the Thesaurus file in bytes.
- id string
- The provider-assigned unique ID for this managed resource.
- index
Id string - name string
- Name of the Thesaurus.
- role
Arn string - ARN of a role with permission to access the S3 bucket that contains the Thesaurus. For more information, see IAM Roles for Amazon Kendra.
- source
S3Paths GetThesaurus Source S3Path[] - S3 location of the Thesaurus input data. Detailed below.
- status string
- Status of the Thesaurus. It is ready to use when the status is
ACTIVE
. - synonym
Rule numberCount - Number of synonym rules in the Thesaurus file.
- {[key: string]: string}
- Metadata that helps organize the Thesaurus you create.
- term
Count number - Number of unique terms in the Thesaurus file. For example, the synonyms
a,b,c
anda=>d
, the term count would be 4. - thesaurus
Id string - updated
At string - Date and time that the Thesaurus was last updated.
- arn str
- ARN of the Thesaurus.
- created_
at str - Unix datetime that the Thesaurus was created.
- description str
- Description of the Thesaurus.
- error_
message str - When the
status
field value isFAILED
, this contains a message that explains why. - file_
size_ intbytes - Size of the Thesaurus file in bytes.
- id str
- The provider-assigned unique ID for this managed resource.
- index_
id str - name str
- Name of the Thesaurus.
- role_
arn str - ARN of a role with permission to access the S3 bucket that contains the Thesaurus. For more information, see IAM Roles for Amazon Kendra.
- source_
s3_ Sequence[Getpaths Thesaurus Source S3Path] - S3 location of the Thesaurus input data. Detailed below.
- status str
- Status of the Thesaurus. It is ready to use when the status is
ACTIVE
. - synonym_
rule_ intcount - Number of synonym rules in the Thesaurus file.
- Mapping[str, str]
- Metadata that helps organize the Thesaurus you create.
- term_
count int - Number of unique terms in the Thesaurus file. For example, the synonyms
a,b,c
anda=>d
, the term count would be 4. - thesaurus_
id str - updated_
at str - Date and time that the Thesaurus was last updated.
- arn String
- ARN of the Thesaurus.
- created
At String - Unix datetime that the Thesaurus was created.
- description String
- Description of the Thesaurus.
- error
Message String - When the
status
field value isFAILED
, this contains a message that explains why. - file
Size NumberBytes - Size of the Thesaurus file in bytes.
- id String
- The provider-assigned unique ID for this managed resource.
- index
Id String - name String
- Name of the Thesaurus.
- role
Arn String - ARN of a role with permission to access the S3 bucket that contains the Thesaurus. For more information, see IAM Roles for Amazon Kendra.
- source
S3Paths List<Property Map> - S3 location of the Thesaurus input data. Detailed below.
- status String
- Status of the Thesaurus. It is ready to use when the status is
ACTIVE
. - synonym
Rule NumberCount - Number of synonym rules in the Thesaurus file.
- Map<String>
- Metadata that helps organize the Thesaurus you create.
- term
Count Number - Number of unique terms in the Thesaurus file. For example, the synonyms
a,b,c
anda=>d
, the term count would be 4. - thesaurus
Id String - updated
At String - Date and time that the Thesaurus was last updated.
Supporting Types
GetThesaurusSourceS3Path
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi