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

export interface AttachmentArgs extends core.SchemaArgs {
  attachmentId: string | core.StringOut;

  deviceIndex: number | core.NumberOut;

  instanceId: string | core.StringOut;

  instanceOwnerId: string | core.StringOut;
}

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

  @core.attr(Number, { computed: true })
  public deviceIndex!: number | core.NumberOut;

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

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

export interface AssociationArgs extends core.SchemaArgs {
  allocationId: string | core.StringOut;

  associationId: string | core.StringOut;

  carrierIp: string | core.StringOut;

  customerOwnedIp: string | core.StringOut;

  ipOwnerId: string | core.StringOut;

  publicDnsName: string | core.StringOut;

  publicIp: string | core.StringOut;
}

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

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

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

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

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

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

  @core.attr(String, { computed: true })
  public publicIp!: 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 DsNetworkInterfaceArgs {
  filter?: core.Array<Filter> | core.ArrayOut<Filter>;

  id?: string | core.StringOut;

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

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

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

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

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

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

  @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 interfaceType!: string | core.StringOut;

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

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsNetworkInterfaceArgs) {
    super(name, "aws_network_interface", args);
  }

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