// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Lex */ export interface DataAwsLexBotAliasConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/lex_bot_alias.html#bot_name DataAwsLexBotAlias#bot_name} */ readonly botName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/lex_bot_alias.html#name DataAwsLexBotAlias#name} */ readonly name: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/lex_bot_alias.html aws_lex_bot_alias} */ export class DataAwsLexBotAlias extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_lex_bot_alias"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/lex_bot_alias.html aws_lex_bot_alias} 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 DataAwsLexBotAliasConfig */ public constructor(scope: Construct, id: string, config: DataAwsLexBotAliasConfig) { super(scope, id, { terraformResourceType: 'aws_lex_bot_alias', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._botName = config.botName; this._name = config.name; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // bot_name - computed: false, optional: false, required: true private _botName?: string; public get botName() { return this.getStringAttribute('bot_name'); } public set botName(value: string) { this._botName = value; } // Temporarily expose input value. Use with caution. public get botNameInput() { return this._botName; } // bot_version - computed: true, optional: false, required: false public get botVersion() { return this.getStringAttribute('bot_version'); } // checksum - computed: true, optional: false, required: false public get checksum() { return this.getStringAttribute('checksum'); } // 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'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // last_updated_date - computed: true, optional: false, required: false public get lastUpdatedDate() { return this.getStringAttribute('last_updated_date'); } // 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; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { bot_name: cdktf.stringToTerraform(this._botName), name: cdktf.stringToTerraform(this._name), }; } }