import * as core from "@terrascript/core"; export interface DsAuthorizationTokenArgs { /** * (Optional) AWS account ID of the ECR Repository. If not specified the default account is assumed. */ registryId?: string | core.StringOut; } export class DsAuthorizationToken extends core.Data { /** * Temporary IAM authentication credentials to access the ECR repository encoded in base64 in the form * of `user_name:password`. */ @core.attr(String, { computed: true }) public authorizationToken!: string | core.StringOut; /** * The time in UTC RFC3339 format when the authorization token expires. */ @core.attr(String, { computed: true }) public expiresAt!: string | core.StringOut; /** * Region of the authorization token. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * Password decoded from the authorization token. */ @core.attr(String, { computed: true }) public password!: string | core.StringOut; /** * The registry URL to use in the docker login command. */ @core.attr(String, { computed: true }) public proxyEndpoint!: string | core.StringOut; /** * (Optional) AWS account ID of the ECR Repository. If not specified the default account is assumed. */ @core.attr(String) public registryId?: string | core.StringOut; /** * User name decoded from the authorization token. */ @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"; } }