AWS::CodeArtifact::RepositoryThe `AWS::CodeArtifact::Repository` resource creates an AWS CodeArtifact repository. CodeArtifact *repositories* contain a set of package versions. For more information about repositories, see the [Repository concepts information](https://docs.aws.amazon.com/codeartifact/latest/ug/codeartifact-concepts.html#welcome-concepts-repository) in the *CodeArtifact User Guide* . For more information about the `CreateRepository` API, see [CreateRepository](https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_CreateRepository.html) in the *CodeArtifact API Reference* .
import { CfnRepository } from 'aws-cdk-lib/aws-codeartifact';Or use the module namespace:
import * as codeartifact from 'aws-cdk-lib/aws-codeartifact';
// codeartifact.CfnRepositoryConfiguration passed to the constructor as CfnRepositoryProps.
domainNameRequiredstringThe name of the domain that contains the repository.
repositoryNameRequiredstringThe name of an upstream repository.
descriptionOptionalstringA text description of the repository.
domainOwnerOptionalstringThe 12-digit account number of the AWS account that owns the domain that contains the repository. It does not include dashes or spaces.
externalConnectionsOptionalstring[]An array of external connections associated with the repository. For more information, see [Supported external connection repositories](https://docs.aws.amazon.com/codeartifact/latest/ug/external-connection.html#supported-public-repositories) in the *CodeArtifact user guide* .
permissionsPolicyDocumentOptionalanyThe document that defines the resource policy that is set on a repository.
tagsOptionalCfnTag[]A list of tags to be applied to the repository.
upstreamsOptionalstring[]A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see [Working with upstream repositories](https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html) .
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-codeartifactAWS::CodeArtifact::Repository