import * as core from "@terrascript/core"; export interface Ec2ClientVpnRouteArgs extends core.ResourceArgs { /** * (Required) The ID of the Client VPN endpoint. */ clientVpnEndpointId: string | core.StringOut; /** * (Optional) A brief description of the authorization rule. */ description?: string | core.StringOut; /** * (Required) The IPv4 address range, in CIDR notation, of the route destination. */ destinationCidrBlock: string | core.StringOut; /** * (Required) The ID of the Subnet to route the traffic through. It must already be attached to the Cli * ent VPN. */ targetVpcSubnetId: string | core.StringOut; } export class Ec2ClientVpnRoute extends core.Resource { /** * (Required) The ID of the Client VPN endpoint. */ @core.attr(String) public clientVpnEndpointId!: string | core.StringOut; /** * (Optional) A brief description of the authorization rule. */ @core.attr(String) public description?: string | core.StringOut; /** * (Required) The IPv4 address range, in CIDR notation, of the route destination. */ @core.attr(String) public destinationCidrBlock!: string | core.StringOut; /** * The ID of the Client VPN endpoint. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * Indicates how the Client VPN route was added. Will be `add-route` for routes created by this resourc * e. */ @core.attr(String, { computed: true }) public origin!: string | core.StringOut; /** * (Required) The ID of the Subnet to route the traffic through. It must already be attached to the Cli * ent VPN. */ @core.attr(String) public targetVpcSubnetId!: string | core.StringOut; /** * The type of the route. */ @core.attr(String, { computed: true }) public type!: string | core.StringOut; constructor(name: string, args?: Ec2ClientVpnRouteArgs) { super(name, "aws_ec2_client_vpn_route", args); } public override getNamespace(): string { return "aws_vpn"; } }