// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Lex */ export interface DataAwsLexBotConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/lex_bot.html#name DataAwsLexBot#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/lex_bot.html#version DataAwsLexBot#version} */ readonly version?: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/lex_bot.html aws_lex_bot} */ export class DataAwsLexBot extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_lex_bot"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/lex_bot.html aws_lex_bot} Data Source * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options DataAwsLexBotConfig */ public constructor(scope: Construct, id: string, config: DataAwsLexBotConfig) { super(scope, id, { terraformResourceType: 'aws_lex_bot', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._name = config.name; this._version = config.version; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // checksum - computed: true, optional: false, required: false public get checksum() { return this.getStringAttribute('checksum'); } // child_directed - computed: true, optional: false, required: false public get childDirected() { return this.getBooleanAttribute('child_directed') as any; } // created_date - computed: true, optional: false, required: false public get createdDate() { return this.getStringAttribute('created_date'); } // description - computed: true, optional: false, required: false public get description() { return this.getStringAttribute('description'); } // detect_sentiment - computed: true, optional: false, required: false public get detectSentiment() { return this.getBooleanAttribute('detect_sentiment') as any; } // enable_model_improvements - computed: true, optional: false, required: false public get enableModelImprovements() { return this.getBooleanAttribute('enable_model_improvements') as any; } // failure_reason - computed: true, optional: false, required: false public get failureReason() { return this.getStringAttribute('failure_reason'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // idle_session_ttl_in_seconds - computed: true, optional: false, required: false public get idleSessionTtlInSeconds() { return this.getNumberAttribute('idle_session_ttl_in_seconds'); } // last_updated_date - computed: true, optional: false, required: false public get lastUpdatedDate() { return this.getStringAttribute('last_updated_date'); } // locale - computed: true, optional: false, required: false public get locale() { return this.getStringAttribute('locale'); } // name - computed: false, optional: false, required: true private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // nlu_intent_confidence_threshold - computed: true, optional: false, required: false public get nluIntentConfidenceThreshold() { return this.getNumberAttribute('nlu_intent_confidence_threshold'); } // status - computed: true, optional: false, required: false public get status() { return this.getStringAttribute('status'); } // version - computed: false, optional: true, required: false private _version?: string; public get version() { return this.getStringAttribute('version'); } public set version(value: string) { this._version = value; } public resetVersion() { this._version = undefined; } // Temporarily expose input value. Use with caution. public get versionInput() { return this._version; } // voice_id - computed: true, optional: false, required: false public get voiceId() { return this.getStringAttribute('voice_id'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { name: cdktf.stringToTerraform(this._name), version: cdktf.stringToTerraform(this._version), }; } }