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

export interface DsAuthorizationTokenArgs {
  registryId?: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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