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

export interface NetworkInterfaceSgAttachmentArgs extends core.ResourceArgs {
  networkInterfaceId: string | core.StringOut;

  securityGroupId: string | core.StringOut;
}

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

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

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

  constructor(name: string, args?: NetworkInterfaceSgAttachmentArgs) {
    super(name, "aws_network_interface_sg_attachment", args);
  }

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