import * as core from "@terrascript/core";

export interface Ec2ClientVpnRouteArgs extends core.ResourceArgs {
  clientVpnEndpointId: string | core.StringOut;

  description?: string | core.StringOut;

  destinationCidrBlock: string | core.StringOut;

  targetVpcSubnetId: string | core.StringOut;
}

export class Ec2ClientVpnRoute extends core.Resource<Ec2ClientVpnRouteArgs> {
  @core.attr(String)
  public clientVpnEndpointId!: string | core.StringOut;

  @core.attr(String)
  public description?: string | core.StringOut;

  @core.attr(String)
  public destinationCidrBlock!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public origin!: string | core.StringOut;

  @core.attr(String)
  public targetVpcSubnetId!: string | core.StringOut;

  @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";
  }
}
