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

export interface DsDomainIdentityArgs {
  /**
   * The name of the domain
   */
  domain: string | core.StringOut;
}

export class DsDomainIdentity extends core.Data<DsDomainIdentityArgs> {
  /**
   * The ARN of the domain identity.
   */
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

  /**
   * The name of the domain
   */
  @core.attr(String)
  public domain!: string | core.StringOut;

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

  /**
   * A code which when added to the domain as a TXT record will signal to SES that the owner of the domai
   * n has authorized SES to act on their behalf.
   */
  @core.attr(String, { computed: true })
  public verificationToken!: string | core.StringOut;

  constructor(name: string, args?: DsDomainIdentityArgs) {
    super(name, "aws_ses_domain_identity", args);
  }

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