import * as core from "@terrascript/core"; export interface Ec2TransitGatewayRouteArgs extends core.ResourceArgs { /** * (Optional) Indicates whether to drop traffic that matches this route (default to `false`). */ blackhole?: boolean | core.BooleanOut; /** * (Required) IPv4 or IPv6 RFC1924 CIDR used for destination matches. Routing decisions are based on th * e most specific match. */ destinationCidrBlock: string | core.StringOut; /** * (Optional) Identifier of EC2 Transit Gateway Attachment (required if `blackhole` is set to false). */ transitGatewayAttachmentId?: string | core.StringOut; /** * (Required) Identifier of EC2 Transit Gateway Route Table. */ transitGatewayRouteTableId: string | core.StringOut; } export class Ec2TransitGatewayRoute extends core.Resource { /** * (Optional) Indicates whether to drop traffic that matches this route (default to `false`). */ @core.attr(Boolean) public blackhole?: boolean | core.BooleanOut; /** * (Required) IPv4 or IPv6 RFC1924 CIDR used for destination matches. Routing decisions are based on th * e most specific match. */ @core.attr(String) public destinationCidrBlock!: string | core.StringOut; /** * EC2 Transit Gateway Route Table identifier combined with destination */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Identifier of EC2 Transit Gateway Attachment (required if `blackhole` is set to false). */ @core.attr(String) public transitGatewayAttachmentId?: string | core.StringOut; /** * (Required) Identifier of EC2 Transit Gateway Route Table. */ @core.attr(String) public transitGatewayRouteTableId!: string | core.StringOut; constructor(name: string, args?: Ec2TransitGatewayRouteArgs) { super(name, "aws_ec2_transit_gateway_route", args); } public override getNamespace(): string { return "aws_transit_gateway"; } }