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) public bucket!: string | core.StringOut; @core.attr(String) public key!: string | core.StringOut; } export interface FaqArgs extends core.ResourceArgs { /** * (Optional, Forces new resource) The description for a FAQ. */ description?: string | core.StringOut; /** * (Optional, Forces new resource) The file format used by the input files for the FAQ. Valid Values ar * e `CSV`, `CSV_WITH_HEADER`, `JSON`. */ fileFormat?: string | core.StringOut; indexId: string | core.StringOut; /** * (Optional, Forces new resource) The code for a language. This shows a supported language for the FAQ * document. English is supported by default. For more information on supported languages, including t * heir codes, see [Adding documents in languages other than English](https://docs.aws.amazon.com/kendr * a/latest/dg/in-adding-languages.html). */ languageCode?: string | core.StringOut; /** * (Required, Forces new resource) The name that should be associated with the FAQ. */ name: string | core.StringOut; /** * (Required, Forces new resource) The Amazon Resource Name (ARN) of a role with permission to access t * he S3 bucket that contains the FAQs. For more information, see [IAM Roles for Amazon Kendra](https:/ * /docs.aws.amazon.com/kendra/latest/dg/iam-roles.html). */ roleArn: string | core.StringOut; /** * (Required, Forces new resource) The S3 location of the FAQ input data. Detailed below. */ s3Path: S3Path; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class Faq extends core.Resource { /** * 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; /** * (Optional, Forces new resource) The description for a FAQ. */ @core.attr(String) 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; /** * The identifier of the FAQ. */ @core.attr(String, { computed: true }) public faqId!: string | core.StringOut; /** * (Optional, Forces new resource) The file format used by the input files for the FAQ. Valid Values ar * e `CSV`, `CSV_WITH_HEADER`, `JSON`. */ @core.attr(String) 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; @core.attr(String) public indexId!: string | core.StringOut; /** * (Optional, Forces new resource) The code for a language. This shows a supported language for the FAQ * document. English is supported by default. For more information on supported languages, including t * heir codes, see [Adding documents in languages other than English](https://docs.aws.amazon.com/kendr * a/latest/dg/in-adding-languages.html). */ @core.attr(String, { computed: true }) public languageCode?: string | core.StringOut; /** * (Required, Forces new resource) The name that should be associated with the FAQ. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required, Forces new resource) The Amazon Resource Name (ARN) of a role with permission to access t * he S3 bucket that contains the FAQs. 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; /** * (Required, Forces new resource) The S3 location of the FAQ input data. Detailed below. */ @core.attr(S3Path) public s3Path!: S3Path; /** * 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; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: 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?: FaqArgs) { super(name, "aws_kendra_faq", args); } public override getNamespace(): string { return "aws_kendra"; } }