Data Source: awsCodeartifactAuthorizationToken
The CodeArtifact Authorization Token data source generates a temporary authentication token for accessing repositories in a CodeArtifact domain.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsCodeartifactAuthorizationToken.DataAwsCodeartifactAuthorizationToken(
this,
"test",
{
domain: "${aws_codeartifact_domain.test.domain}",
}
);
Argument Reference
The following arguments are supported:
domain
- (Required) Name of the domain that is in scope for the generated authorization token.domainOwner
- (Optional) Account number of the AWS account that owns the domain.durationSeconds
- (Optional) Time, in seconds, that the generated authorization token is valid. Valid values are0
and between900
and43200
.
Attributes Reference
In addition to the argument above, the following attributes are exported:
authorizationToken
- Temporary authorization token.expiration
- Time in UTC RFC3339 format when the authorization token expires.