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

export interface InternetGatewayAttachmentArgs extends core.ResourceArgs {
  internetGatewayId: string | core.StringOut;

  vpcId: string | core.StringOut;
}

export class InternetGatewayAttachment extends core.Resource<InternetGatewayAttachmentArgs> {
  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

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

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

  constructor(name: string, args?: InternetGatewayAttachmentArgs) {
    super(name, "aws_internet_gateway_attachment", args);
  }

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