import * as core from "@terrascript/core"; export interface UserIdentityConfigurationArgs extends core.SchemaArgs { identityAttributeName: string | core.StringOut; } export class UserIdentityConfiguration extends core.Schema { @core.attr(String) public identityAttributeName!: string | core.StringOut; } export interface ContentSourceConfigurationArgs extends core.SchemaArgs { dataSourceIds?: core.Array | core.ArrayOut; directPutContent?: boolean | core.BooleanOut; faqIds?: core.Array | core.ArrayOut; } export class ContentSourceConfiguration extends core.Schema { @core.attr(String, { kind: "array" }) public dataSourceIds?: core.Array | core.ArrayOut; @core.attr(Boolean) public directPutContent?: boolean | core.BooleanOut; @core.attr(String, { kind: "array" }) public faqIds?: core.Array | core.ArrayOut; } export interface ConfigurationArgs extends core.SchemaArgs { contentSourceConfiguration?: ContentSourceConfiguration; userIdentityConfiguration?: UserIdentityConfiguration; } export class Configuration extends core.Schema { @core.attr(ContentSourceConfiguration, { computed: true }) public contentSourceConfiguration?: ContentSourceConfiguration; @core.attr(UserIdentityConfiguration) public userIdentityConfiguration?: UserIdentityConfiguration; } export interface EndpointsArgs extends core.SchemaArgs { endpoint: string | core.StringOut; endpointType: string | core.StringOut; } export class Endpoints extends core.Schema { @core.attr(String, { computed: true }) public endpoint!: string | core.StringOut; @core.attr(String, { computed: true }) public endpointType!: string | core.StringOut; } export interface ExperienceArgs extends core.ResourceArgs { /** * (Optional) Configuration information for your Amazon Kendra experience. Terraform will only perform * drift detection of its value when present in a configuration. [Detailed below](#configuration). */ configuration?: Configuration; /** * (Optional, Forces new resource if removed) A description for your Amazon Kendra experience. */ description?: string | core.StringOut; /** * (Required, Forces new resource) The identifier of the index for your Amazon Kendra experience. */ indexId: string | core.StringOut; /** * (Required) A name for your Amazon Kendra experience. */ name: string | core.StringOut; /** * (Required) The Amazon Resource Name (ARN) of a role with permission to access `Query API`, `QuerySug * gestions API`, `SubmitFeedback API`, and `AWS SSO` that stores your user and group information. For * more information, see [IAM roles for Amazon Kendra](https://docs.aws.amazon.com/kendra/latest/dg/iam * roles.html). */ roleArn: string | core.StringOut; } export class Experience extends core.Resource { /** * ARN of the Experience. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) Configuration information for your Amazon Kendra experience. Terraform will only perform * drift detection of its value when present in a configuration. [Detailed below](#configuration). */ @core.attr(Configuration, { computed: true }) public configuration?: Configuration; /** * (Optional, Forces new resource if removed) A description for your Amazon Kendra experience. */ @core.attr(String) public description?: string | core.StringOut; /** * Shows the endpoint URLs for your Amazon Kendra experiences. The URLs are unique and fully hosted by * AWS. */ @core.attr(Endpoints, { computed: true, kind: "array" }) public endpoints!: core.Array | core.ArrayOut; /** * The unique identifier of the experience. */ @core.attr(String, { computed: true }) public experienceId!: string | core.StringOut; /** * The unique identifiers of the experience and index separated by a slash (`/`). */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required, Forces new resource) The identifier of the index for your Amazon Kendra experience. */ @core.attr(String) public indexId!: string | core.StringOut; /** * (Required) A name for your Amazon Kendra experience. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) The Amazon Resource Name (ARN) of a role with permission to access `Query API`, `QuerySug * gestions API`, `SubmitFeedback API`, and `AWS SSO` that stores your user and group information. For * more information, see [IAM roles for Amazon Kendra](https://docs.aws.amazon.com/kendra/latest/dg/iam * roles.html). */ @core.attr(String) public roleArn!: string | core.StringOut; /** * The current processing status of your Amazon Kendra experience. */ @core.attr(String, { computed: true }) public status!: string | core.StringOut; constructor(name: string, args?: ExperienceArgs) { super(name, "aws_kendra_experience", args); } public override getNamespace(): string { return "aws_kendra"; } }