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

export interface DomainArgs extends core.ResourceArgs {
  domainName: string | core.StringOut;
}

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

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

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

  constructor(name: string, args?: DomainArgs) {
    super(name, "aws_lightsail_domain", args);
  }

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