Skip to content

Data Source: awsCodeartifactRepositoryEndpoint

The CodeArtifact Repository Endpoint data source returns the endpoint of a repository for a specific package format.

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.dataAwsCodeartifactRepositoryEndpoint.DataAwsCodeartifactRepositoryEndpoint(
  this,
  "test",
  {
    domain: "${aws_codeartifact_domain.test.domain}",
    format: "npm",
    repository: "${aws_codeartifact_repository.test.repository}",
  }
);

Argument Reference

The following arguments are supported:

  • domain - (Required) Name of the domain that contains the repository.
  • repository - (Required) Name of the repository.
  • format - (Required) Which endpoint of a repository to return. A repository has one endpoint for each package format: npm, pypi, maven, and nuget.
  • domainOwner - (Optional) Account number of the AWS account that owns the domain.

Attributes Reference

In addition to the argument above, the following attributes are exported:

  • repositoryEndpoint - URL of the returned endpoint.