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

export interface StaticIpArgs extends core.ResourceArgs {
  name: string | core.StringOut;
}

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

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

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

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

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

  constructor(name: string, args?: StaticIpArgs) {
    super(name, "aws_lightsail_static_ip", args);
  }

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