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

export interface NetworkInterfaceAttachmentArgs extends core.ResourceArgs {
  deviceIndex: number | core.NumberOut;

  instanceId: string | core.StringOut;

  networkInterfaceId: string | core.StringOut;
}

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

  @core.attr(Number)
  public deviceIndex!: number | core.NumberOut;

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

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

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

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

  constructor(name: string, args?: NetworkInterfaceAttachmentArgs) {
    super(name, "aws_network_interface_attachment", args);
  }

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