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

export interface Ec2TransitGatewayRouteArgs extends core.ResourceArgs {
  blackhole?: boolean | core.BooleanOut;

  destinationCidrBlock: string | core.StringOut;

  transitGatewayAttachmentId?: string | core.StringOut;

  transitGatewayRouteTableId: string | core.StringOut;
}

export class Ec2TransitGatewayRoute extends core.Resource<Ec2TransitGatewayRouteArgs> {
  @core.attr(Boolean)
  public blackhole?: boolean | core.BooleanOut;

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

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

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

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