// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS EC2 */ export interface Ec2TransitGatewayPrefixListReferenceConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ec2_transit_gateway_prefix_list_reference.html#blackhole Ec2TransitGatewayPrefixListReference#blackhole} */ readonly blackhole?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ec2_transit_gateway_prefix_list_reference.html#prefix_list_id Ec2TransitGatewayPrefixListReference#prefix_list_id} */ readonly prefixListId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ec2_transit_gateway_prefix_list_reference.html#transit_gateway_attachment_id Ec2TransitGatewayPrefixListReference#transit_gateway_attachment_id} */ readonly transitGatewayAttachmentId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ec2_transit_gateway_prefix_list_reference.html#transit_gateway_route_table_id Ec2TransitGatewayPrefixListReference#transit_gateway_route_table_id} */ readonly transitGatewayRouteTableId: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/ec2_transit_gateway_prefix_list_reference.html aws_ec2_transit_gateway_prefix_list_reference} */ export class Ec2TransitGatewayPrefixListReference extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_ec2_transit_gateway_prefix_list_reference"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/ec2_transit_gateway_prefix_list_reference.html aws_ec2_transit_gateway_prefix_list_reference} 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 Ec2TransitGatewayPrefixListReferenceConfig */ public constructor(scope: Construct, id: string, config: Ec2TransitGatewayPrefixListReferenceConfig) { super(scope, id, { terraformResourceType: 'aws_ec2_transit_gateway_prefix_list_reference', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._blackhole = config.blackhole; this._prefixListId = config.prefixListId; this._transitGatewayAttachmentId = config.transitGatewayAttachmentId; this._transitGatewayRouteTableId = config.transitGatewayRouteTableId; } // ========== // ATTRIBUTES // ========== // blackhole - computed: false, optional: true, required: false private _blackhole?: boolean | cdktf.IResolvable; public get blackhole() { return this.getBooleanAttribute('blackhole') as any; } public set blackhole(value: boolean | cdktf.IResolvable) { this._blackhole = value; } public resetBlackhole() { this._blackhole = undefined; } // Temporarily expose input value. Use with caution. public get blackholeInput() { return this._blackhole; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // prefix_list_id - computed: false, optional: false, required: true private _prefixListId?: string; public get prefixListId() { return this.getStringAttribute('prefix_list_id'); } public set prefixListId(value: string) { this._prefixListId = value; } // Temporarily expose input value. Use with caution. public get prefixListIdInput() { return this._prefixListId; } // prefix_list_owner_id - computed: true, optional: false, required: false public get prefixListOwnerId() { return this.getStringAttribute('prefix_list_owner_id'); } // transit_gateway_attachment_id - computed: false, optional: true, required: false private _transitGatewayAttachmentId?: string; public get transitGatewayAttachmentId() { return this.getStringAttribute('transit_gateway_attachment_id'); } public set transitGatewayAttachmentId(value: string) { this._transitGatewayAttachmentId = value; } public resetTransitGatewayAttachmentId() { this._transitGatewayAttachmentId = undefined; } // Temporarily expose input value. Use with caution. public get transitGatewayAttachmentIdInput() { return this._transitGatewayAttachmentId; } // transit_gateway_route_table_id - computed: false, optional: false, required: true private _transitGatewayRouteTableId?: string; public get transitGatewayRouteTableId() { return this.getStringAttribute('transit_gateway_route_table_id'); } public set transitGatewayRouteTableId(value: string) { this._transitGatewayRouteTableId = value; } // Temporarily expose input value. Use with caution. public get transitGatewayRouteTableIdInput() { return this._transitGatewayRouteTableId; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { blackhole: cdktf.booleanToTerraform(this._blackhole), prefix_list_id: cdktf.stringToTerraform(this._prefixListId), transit_gateway_attachment_id: cdktf.stringToTerraform(this._transitGatewayAttachmentId), transit_gateway_route_table_id: cdktf.stringToTerraform(this._transitGatewayRouteTableId), }; } }