// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS EC2 */ export interface Ec2TransitGatewayPeeringAttachmentConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ec2_transit_gateway_peering_attachment.html#peer_account_id Ec2TransitGatewayPeeringAttachment#peer_account_id} */ readonly peerAccountId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ec2_transit_gateway_peering_attachment.html#peer_region Ec2TransitGatewayPeeringAttachment#peer_region} */ readonly peerRegion: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ec2_transit_gateway_peering_attachment.html#peer_transit_gateway_id Ec2TransitGatewayPeeringAttachment#peer_transit_gateway_id} */ readonly peerTransitGatewayId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ec2_transit_gateway_peering_attachment.html#tags Ec2TransitGatewayPeeringAttachment#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ec2_transit_gateway_peering_attachment.html#tags_all Ec2TransitGatewayPeeringAttachment#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ec2_transit_gateway_peering_attachment.html#transit_gateway_id Ec2TransitGatewayPeeringAttachment#transit_gateway_id} */ readonly transitGatewayId: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/ec2_transit_gateway_peering_attachment.html aws_ec2_transit_gateway_peering_attachment} */ export class Ec2TransitGatewayPeeringAttachment extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_ec2_transit_gateway_peering_attachment"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/ec2_transit_gateway_peering_attachment.html aws_ec2_transit_gateway_peering_attachment} 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 Ec2TransitGatewayPeeringAttachmentConfig */ public constructor(scope: Construct, id: string, config: Ec2TransitGatewayPeeringAttachmentConfig) { super(scope, id, { terraformResourceType: 'aws_ec2_transit_gateway_peering_attachment', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._peerAccountId = config.peerAccountId; this._peerRegion = config.peerRegion; this._peerTransitGatewayId = config.peerTransitGatewayId; this._tags = config.tags; this._tagsAll = config.tagsAll; this._transitGatewayId = config.transitGatewayId; } // ========== // ATTRIBUTES // ========== // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // peer_account_id - computed: true, optional: true, required: false private _peerAccountId?: string; public get peerAccountId() { return this.getStringAttribute('peer_account_id'); } public set peerAccountId(value: string) { this._peerAccountId = value; } public resetPeerAccountId() { this._peerAccountId = undefined; } // Temporarily expose input value. Use with caution. public get peerAccountIdInput() { return this._peerAccountId; } // peer_region - computed: false, optional: false, required: true private _peerRegion?: string; public get peerRegion() { return this.getStringAttribute('peer_region'); } public set peerRegion(value: string) { this._peerRegion = value; } // Temporarily expose input value. Use with caution. public get peerRegionInput() { return this._peerRegion; } // peer_transit_gateway_id - computed: false, optional: false, required: true private _peerTransitGatewayId?: string; public get peerTransitGatewayId() { return this.getStringAttribute('peer_transit_gateway_id'); } public set peerTransitGatewayId(value: string) { this._peerTransitGatewayId = value; } // Temporarily expose input value. Use with caution. public get peerTransitGatewayIdInput() { return this._peerTransitGatewayId; } // 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; } // transit_gateway_id - computed: false, optional: false, required: true private _transitGatewayId?: string; public get transitGatewayId() { return this.getStringAttribute('transit_gateway_id'); } public set transitGatewayId(value: string) { this._transitGatewayId = value; } // Temporarily expose input value. Use with caution. public get transitGatewayIdInput() { return this._transitGatewayId; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { peer_account_id: cdktf.stringToTerraform(this._peerAccountId), peer_region: cdktf.stringToTerraform(this._peerRegion), peer_transit_gateway_id: cdktf.stringToTerraform(this._peerTransitGatewayId), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), transit_gateway_id: cdktf.stringToTerraform(this._transitGatewayId), }; } }