import * as core from "@terrascript/core"; export interface DsAuthorizationTokenArgs { /** * (Required) The name of the domain that is in scope for the generated authorization token. */ domain: string | core.StringOut; /** * (Optional) The account number of the AWS account that owns the domain. */ domainOwner?: string | core.StringOut; /** * (Optional) The time, in seconds, that the generated authorization token is valid. Valid values are ` * 0` and between `900` and `43200`. */ durationSeconds?: number | core.NumberOut; } export class DsAuthorizationToken extends core.Data { /** * Temporary authorization token. */ @core.attr(String, { computed: true }) public authorizationToken!: string | core.StringOut; /** * (Required) The name of the domain that is in scope for the generated authorization token. */ @core.attr(String) public domain!: string | core.StringOut; /** * (Optional) The account number of the AWS account that owns the domain. */ @core.attr(String, { computed: true }) public domainOwner?: string | core.StringOut; /** * (Optional) The time, in seconds, that the generated authorization token is valid. Valid values are ` * 0` and between `900` and `43200`. */ @core.attr(Number) public durationSeconds?: number | core.NumberOut; /** * The time in UTC RFC3339 format when the authorization token expires. */ @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"; } }