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

export interface StaticIpAttachmentArgs extends core.ResourceArgs {
  instanceName: string | core.StringOut;

  staticIpName: string | core.StringOut;
}

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

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

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

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

  constructor(name: string, args?: StaticIpAttachmentArgs) {
    super(name, "aws_lightsail_static_ip_attachment", args);
  }

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