// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Relational Database Service */ export interface DataAwsDbProxyConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/db_proxy.html#name DataAwsDbProxy#name} */ readonly name: string; } export class DataAwsDbProxyAuth extends cdktf.ComplexComputedList { // auth_scheme - computed: true, optional: false, required: false public get authScheme() { return this.getStringAttribute('auth_scheme'); } // description - computed: true, optional: false, required: false public get description() { return this.getStringAttribute('description'); } // iam_auth - computed: true, optional: false, required: false public get iamAuth() { return this.getStringAttribute('iam_auth'); } // secret_arn - computed: true, optional: false, required: false public get secretArn() { return this.getStringAttribute('secret_arn'); } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/db_proxy.html aws_db_proxy} */ export class DataAwsDbProxy extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_db_proxy"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/db_proxy.html aws_db_proxy} 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 DataAwsDbProxyConfig */ public constructor(scope: Construct, id: string, config: DataAwsDbProxyConfig) { super(scope, id, { terraformResourceType: 'aws_db_proxy', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._name = config.name; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // auth - computed: true, optional: false, required: false public auth(index: string) { return new DataAwsDbProxyAuth(this, 'auth', index); } // debug_logging - computed: true, optional: false, required: false public get debugLogging() { return this.getBooleanAttribute('debug_logging') as any; } // endpoint - computed: true, optional: false, required: false public get endpoint() { return this.getStringAttribute('endpoint'); } // engine_family - computed: true, optional: false, required: false public get engineFamily() { return this.getStringAttribute('engine_family'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // idle_client_timeout - computed: true, optional: false, required: false public get idleClientTimeout() { return this.getNumberAttribute('idle_client_timeout'); } // 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; } // require_tls - computed: true, optional: false, required: false public get requireTls() { return this.getBooleanAttribute('require_tls') as any; } // role_arn - computed: true, optional: false, required: false public get roleArn() { return this.getStringAttribute('role_arn'); } // vpc_id - computed: true, optional: false, required: false public get vpcId() { return this.getStringAttribute('vpc_id'); } // vpc_security_group_ids - computed: true, optional: false, required: false public get vpcSecurityGroupIds() { return this.getListAttribute('vpc_security_group_ids'); } // vpc_subnet_ids - computed: true, optional: false, required: false public get vpcSubnetIds() { return this.getListAttribute('vpc_subnet_ids'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { name: cdktf.stringToTerraform(this._name), }; } }