import * as core from "@terrascript/core"; export interface VocabularyArgs extends core.ResourceArgs { /** * (Required) The content of the custom vocabulary in plain-text format with a table of values. Each ro * w in the table represents a word or a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs * fields. Separate the fields with TAB characters. For more information, see [Create a custom vocabula * ry using a table](https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html#create-voc * abulary-table). Minimum length of `1`. Maximum length of `60000`. */ content: string | core.StringOut; /** * (Required) Specifies the identifier of the hosting Amazon Connect Instance. */ instanceId: string | core.StringOut; /** * (Required) The language code of the vocabulary entries. For a list of languages and their correspond * ing language codes, see [What is Amazon Transcribe?](https://docs.aws.amazon.com/transcribe/latest/d * g/transcribe-whatis.html). Valid Values are `ar-AE`, `de-CH`, `de-DE`, `en-AB`, `en-AU`, `en-GB`, `e * n-IE`, `en-IN`, `en-US`, `en-WL`, `es-ES`, `es-US`, `fr-CA`, `fr-FR`, `hi-IN`, `it-IT`, `ja-JP`, `ko * KR`, `pt-BR`, `pt-PT`, `zh-CN`. */ languageCode: string | core.StringOut; /** * (Required) A unique name of the custom vocabulary. Must not be more than 140 characters. */ name: string | core.StringOut; /** * (Optional) Tags to apply to the vocabulary. If configured with a provider */ 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 Vocabulary extends core.Resource { /** * The Amazon Resource Name (ARN) of the vocabulary. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) The content of the custom vocabulary in plain-text format with a table of values. Each ro * w in the table represents a word or a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs * fields. Separate the fields with TAB characters. For more information, see [Create a custom vocabula * ry using a table](https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html#create-voc * abulary-table). Minimum length of `1`. Maximum length of `60000`. */ @core.attr(String) public content!: string | core.StringOut; /** * The reason why the custom vocabulary was not created. */ @core.attr(String, { computed: true }) public failureReason!: string | core.StringOut; /** * The identifier of the hosting Amazon Connect Instance and identifier of the vocabulary */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) Specifies the identifier of the hosting Amazon Connect Instance. */ @core.attr(String) public instanceId!: string | core.StringOut; /** * (Required) The language code of the vocabulary entries. For a list of languages and their correspond * ing language codes, see [What is Amazon Transcribe?](https://docs.aws.amazon.com/transcribe/latest/d * g/transcribe-whatis.html). Valid Values are `ar-AE`, `de-CH`, `de-DE`, `en-AB`, `en-AU`, `en-GB`, `e * n-IE`, `en-IN`, `en-US`, `en-WL`, `es-ES`, `es-US`, `fr-CA`, `fr-FR`, `hi-IN`, `it-IT`, `ja-JP`, `ko * KR`, `pt-BR`, `pt-PT`, `zh-CN`. */ @core.attr(String) public languageCode!: string | core.StringOut; /** * The timestamp when the custom vocabulary was last modified. */ @core.attr(String, { computed: true }) public lastModifiedTime!: string | core.StringOut; /** * (Required) A unique name of the custom vocabulary. Must not be more than 140 characters. */ @core.attr(String) public name!: string | core.StringOut; /** * The current state of the custom vocabulary. Valid values are `CREATION_IN_PROGRESS`, `ACTIVE`, `CREA * TION_FAILED`, `DELETE_IN_PROGRESS`. */ @core.attr(String, { computed: true }) public state!: string | core.StringOut; /** * (Optional) Tags to apply to the vocabulary. If configured with a provider */ @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 identifier of the custom vocabulary. */ @core.attr(String, { computed: true }) public vocabularyId!: string | core.StringOut; constructor(name: string, args?: VocabularyArgs) { super(name, "aws_connect_vocabulary", args); } public override getNamespace(): string { return "aws_connect"; } }