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

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

  prefixListId: string | core.StringOut;

  transitGatewayAttachmentId?: string | core.StringOut;

  transitGatewayRouteTableId: string | core.StringOut;
}

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

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

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

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

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

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

  constructor(name: string, args?: Ec2TransitGatewayPrefixListReferenceArgs) {
    super(name, "aws_ec2_transit_gateway_prefix_list_reference", args);
  }

  public override getNamespace(): string {
    return "aws_transit_gateway";
  }
}
