// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Direct Connect */ export interface DxConnectionConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/dx_connection.html#bandwidth DxConnection#bandwidth} */ readonly bandwidth: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/dx_connection.html#location DxConnection#location} */ readonly location: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/dx_connection.html#name DxConnection#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/dx_connection.html#provider_name DxConnection#provider_name} */ readonly providerName?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/dx_connection.html#tags DxConnection#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/dx_connection.html#tags_all DxConnection#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/dx_connection.html aws_dx_connection} */ export class DxConnection extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_dx_connection"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/dx_connection.html aws_dx_connection} Resource * * @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 DxConnectionConfig */ public constructor(scope: Construct, id: string, config: DxConnectionConfig) { super(scope, id, { terraformResourceType: 'aws_dx_connection', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._bandwidth = config.bandwidth; this._location = config.location; this._name = config.name; this._providerName = config.providerName; this._tags = config.tags; this._tagsAll = config.tagsAll; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // aws_device - computed: true, optional: false, required: false public get awsDevice() { return this.getStringAttribute('aws_device'); } // bandwidth - computed: false, optional: false, required: true private _bandwidth?: string; public get bandwidth() { return this.getStringAttribute('bandwidth'); } public set bandwidth(value: string) { this._bandwidth = value; } // Temporarily expose input value. Use with caution. public get bandwidthInput() { return this._bandwidth; } // has_logical_redundancy - computed: true, optional: false, required: false public get hasLogicalRedundancy() { return this.getStringAttribute('has_logical_redundancy'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // jumbo_frame_capable - computed: true, optional: false, required: false public get jumboFrameCapable() { return this.getBooleanAttribute('jumbo_frame_capable') as any; } // location - computed: false, optional: false, required: true private _location?: string; public get location() { return this.getStringAttribute('location'); } public set location(value: string) { this._location = value; } // Temporarily expose input value. Use with caution. public get locationInput() { return this._location; } // 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; } // owner_account_id - computed: true, optional: false, required: false public get ownerAccountId() { return this.getStringAttribute('owner_account_id'); } // provider_name - computed: true, optional: true, required: false private _providerName?: string; public get providerName() { return this.getStringAttribute('provider_name'); } public set providerName(value: string) { this._providerName = value; } public resetProviderName() { this._providerName = undefined; } // Temporarily expose input value. Use with caution. public get providerNameInput() { return this._providerName; } // tags - computed: false, 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; } // tags_all - computed: true, optional: true, required: false private _tagsAll?: { [key: string]: string } | cdktf.IResolvable; public get tagsAll() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags_all') as any; } public set tagsAll(value: { [key: string]: string } | cdktf.IResolvable) { this._tagsAll = value; } public resetTagsAll() { this._tagsAll = undefined; } // Temporarily expose input value. Use with caution. public get tagsAllInput() { return this._tagsAll; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { bandwidth: cdktf.stringToTerraform(this._bandwidth), location: cdktf.stringToTerraform(this._location), name: cdktf.stringToTerraform(this._name), provider_name: cdktf.stringToTerraform(this._providerName), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), }; } }