import * as core from "@terrascript/core"; export interface S3PathArgs extends core.SchemaArgs { bucket: string | core.StringOut; key: string | core.StringOut; } export class S3Path extends core.Schema { @core.attr(String, { computed: true }) public bucket!: string | core.StringOut; @core.attr(String, { computed: true }) public key!: string | core.StringOut; } export interface DsFaqArgs { /** * (Required) The identifier of the FAQ. */ faqId: string | core.StringOut; /** * (Required) The identifier of the index that contains the FAQ. */ indexId: string | core.StringOut; /** * Metadata that helps organize the FAQs you create. */ tags?: core.Map | core.MapOut; } export class DsFaq extends core.Data { /** * The Amazon Resource Name (ARN) of the FAQ. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The Unix datetime that the faq was created. */ @core.attr(String, { computed: true }) public createdAt!: string | core.StringOut; /** * The description of the FAQ. */ @core.attr(String, { computed: true }) public description!: string | core.StringOut; /** * When the `status` field value is `FAILED`, this contains a message that explains why. */ @core.attr(String, { computed: true }) public errorMessage!: string | core.StringOut; /** * (Required) The identifier of the FAQ. */ @core.attr(String) public faqId!: string | core.StringOut; /** * The file format used by the input files for the FAQ. Valid Values are `CSV`, `CSV_WITH_HEADER`, `JSO * N`. */ @core.attr(String, { computed: true }) public fileFormat!: string | core.StringOut; /** * The unique identifiers of the FAQ and index separated by a slash (`/`). */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The identifier of the index that contains the FAQ. */ @core.attr(String) public indexId!: string | core.StringOut; /** * The code for a language. This shows a supported language for the FAQ document. For more information * on supported languages, including their codes, see [Adding documents in languages other than English * ](https://docs.aws.amazon.com/kendra/latest/dg/in-adding-languages.html). */ @core.attr(String, { computed: true }) public languageCode!: string | core.StringOut; /** * Specifies the name of the FAQ. */ @core.attr(String, { computed: true }) public name!: string | core.StringOut; /** * The Amazon Resource Name (ARN) of a role with permission to access the S3 bucket that contains the F * AQs. For more information, see [IAM Roles for Amazon Kendra](https://docs.aws.amazon.com/kendra/late * st/dg/iam-roles.html). */ @core.attr(String, { computed: true }) public roleArn!: string | core.StringOut; /** * The S3 location of the FAQ input data. Detailed below. */ @core.attr(S3Path, { computed: true, kind: "array" }) public s3Path!: core.Array | core.ArrayOut; /** * The status of the FAQ. It is ready to use when the status is ACTIVE. */ @core.attr(String, { computed: true }) public status!: string | core.StringOut; /** * Metadata that helps organize the FAQs you create. */ @core.attr(String, { computed: true, kind: "map" }) public tags?: core.Map | core.MapOut; /** * The date and time that the FAQ was last updated. */ @core.attr(String, { computed: true }) public updatedAt!: string | core.StringOut; constructor(name: string, args?: DsFaqArgs) { super(name, "aws_kendra_faq", args); } public override getNamespace(): string { return "aws_kendra"; } }