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

export interface DomainNameArgs extends core.ResourceArgs {
  certificateArn: string | core.StringOut;

  description?: string | core.StringOut;

  domainName: string | core.StringOut;
}

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

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

  @core.attr(String)
  public description?: string | core.StringOut;

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

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

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

  constructor(name: string, args?: DomainNameArgs) {
    super(name, "aws_appsync_domain_name", args);
  }

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