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

export interface NatGatewayArgs extends core.ResourceArgs {
  allocationId?: string | core.StringOut;

  connectivityType?: string | core.StringOut;

  subnetId: string | core.StringOut;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;
}

export class NatGateway extends core.Resource<NatGatewayArgs> {
  @core.attr(String)
  public allocationId?: string | core.StringOut;

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

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

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

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

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

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

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "map" })
  public tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  constructor(name: string, args?: NatGatewayArgs) {
    super(name, "aws_nat_gateway", args);
  }

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