// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Glue */ export interface DataAwsGlueConnectionConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/glue_connection.html#id DataAwsGlueConnection#id} */ readonly id: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/glue_connection.html#tags DataAwsGlueConnection#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; } export class DataAwsGlueConnectionPhysicalConnectionRequirements extends cdktf.ComplexComputedList { // availability_zone - computed: true, optional: false, required: false public get availabilityZone() { return this.getStringAttribute('availability_zone'); } // security_group_id_list - computed: true, optional: false, required: false public get securityGroupIdList() { return this.getListAttribute('security_group_id_list'); } // subnet_id - computed: true, optional: false, required: false public get subnetId() { return this.getStringAttribute('subnet_id'); } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/glue_connection.html aws_glue_connection} */ export class DataAwsGlueConnection extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_glue_connection"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/glue_connection.html aws_glue_connection} 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 DataAwsGlueConnectionConfig */ public constructor(scope: Construct, id: string, config: DataAwsGlueConnectionConfig) { super(scope, id, { terraformResourceType: 'aws_glue_connection', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._id = config.id; this._tags = config.tags; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // catalog_id - computed: true, optional: false, required: false public get catalogId() { return this.getStringAttribute('catalog_id'); } // connection_properties - computed: true, optional: false, required: false public connectionProperties(key: string): string { return new cdktf.StringMap(this, 'connection_properties').lookup(key); } // connection_type - computed: true, optional: false, required: false public get connectionType() { return this.getStringAttribute('connection_type'); } // description - computed: true, optional: false, required: false public get description() { return this.getStringAttribute('description'); } // id - computed: false, optional: false, required: true private _id?: string; public get id() { return this.getStringAttribute('id'); } public set id(value: string) { this._id = value; } // Temporarily expose input value. Use with caution. public get idInput() { return this._id; } // match_criteria - computed: true, optional: false, required: false public get matchCriteria() { return this.getListAttribute('match_criteria'); } // name - computed: true, optional: false, required: false public get name() { return this.getStringAttribute('name'); } // physical_connection_requirements - computed: true, optional: false, required: false public physicalConnectionRequirements(index: string) { return new DataAwsGlueConnectionPhysicalConnectionRequirements(this, 'physical_connection_requirements', index); } // tags - computed: true, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { id: cdktf.stringToTerraform(this._id), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), }; } }