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

export interface AttachmentsArgs extends core.SchemaArgs {
  state: string | core.StringOut;

  vpcId: string | core.StringOut;
}

export class Attachments extends core.Schema<AttachmentsArgs> {
  @core.attr(String, { computed: true })
  public state!: string | core.StringOut;

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

export interface FilterArgs extends core.SchemaArgs {
  name: string | core.StringOut;

  values: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class Filter extends core.Schema<FilterArgs> {
  @core.attr(String)
  public name!: string | core.StringOut;

  @core.attr(String, { kind: "array" })
  public values!: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export interface DsInternetGatewayArgs {
  filter?: core.Array<Filter> | core.ArrayOut<Filter>;

  internetGatewayId?: string | core.StringOut;

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

export class DsInternetGateway extends core.Data<DsInternetGatewayArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

  @core.attr(Attachments, { computed: true, kind: "array" })
  public attachments!: core.Array<Attachments> | core.ArrayOut<Attachments>;

  @core.attr(Filter, { kind: "array" })
  public filter?: core.Array<Filter> | core.ArrayOut<Filter>;

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

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

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

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

  constructor(name: string, args?: DsInternetGatewayArgs) {
    super(name, "aws_internet_gateway", args);
  }

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