// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Direct Connect */ export interface DxLagConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/dx_lag.html#connection_id DxLag#connection_id} */ readonly connectionId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/dx_lag.html#connections_bandwidth DxLag#connections_bandwidth} */ readonly connectionsBandwidth: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/dx_lag.html#force_destroy DxLag#force_destroy} */ readonly forceDestroy?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/dx_lag.html#location DxLag#location} */ readonly location: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/dx_lag.html#name DxLag#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/dx_lag.html#provider_name DxLag#provider_name} */ readonly providerName?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/dx_lag.html#tags DxLag#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/dx_lag.html#tags_all DxLag#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/dx_lag.html aws_dx_lag} */ export class DxLag extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_dx_lag"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/dx_lag.html aws_dx_lag} 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 DxLagConfig */ public constructor(scope: Construct, id: string, config: DxLagConfig) { super(scope, id, { terraformResourceType: 'aws_dx_lag', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._connectionId = config.connectionId; this._connectionsBandwidth = config.connectionsBandwidth; this._forceDestroy = config.forceDestroy; 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'); } // connection_id - computed: false, optional: true, required: false private _connectionId?: string; public get connectionId() { return this.getStringAttribute('connection_id'); } public set connectionId(value: string) { this._connectionId = value; } public resetConnectionId() { this._connectionId = undefined; } // Temporarily expose input value. Use with caution. public get connectionIdInput() { return this._connectionId; } // connections_bandwidth - computed: false, optional: false, required: true private _connectionsBandwidth?: string; public get connectionsBandwidth() { return this.getStringAttribute('connections_bandwidth'); } public set connectionsBandwidth(value: string) { this._connectionsBandwidth = value; } // Temporarily expose input value. Use with caution. public get connectionsBandwidthInput() { return this._connectionsBandwidth; } // force_destroy - computed: false, optional: true, required: false private _forceDestroy?: boolean | cdktf.IResolvable; public get forceDestroy() { return this.getBooleanAttribute('force_destroy') as any; } public set forceDestroy(value: boolean | cdktf.IResolvable) { this._forceDestroy = value; } public resetForceDestroy() { this._forceDestroy = undefined; } // Temporarily expose input value. Use with caution. public get forceDestroyInput() { return this._forceDestroy; } // 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 { connection_id: cdktf.stringToTerraform(this._connectionId), connections_bandwidth: cdktf.stringToTerraform(this._connectionsBandwidth), force_destroy: cdktf.booleanToTerraform(this._forceDestroy), 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), }; } }