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

export interface DsAuthorizationTokenArgs {
  domain: string | core.StringOut;

  domainOwner?: string | core.StringOut;

  durationSeconds?: number | core.NumberOut;
}

export class DsAuthorizationToken extends core.Data<DsAuthorizationTokenArgs> {
  @core.attr(String, { computed: true })
  public authorizationToken!: string | core.StringOut;

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

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

  @core.attr(Number)
  public durationSeconds?: number | core.NumberOut;

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

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

  constructor(name: string, args?: DsAuthorizationTokenArgs) {
    super(name, "aws_codeartifact_authorization_token", args);
  }

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