AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::CodeArtifact::Repository

CfnRepository

The `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

import { CfnRepository } from 'aws-cdk-lib/aws-codeartifact';

Or use the module namespace:

import * as codeartifact from 'aws-cdk-lib/aws-codeartifact';
// codeartifact.CfnRepository

Properties

Configuration passed to the constructor as CfnRepositoryProps.

domainNameRequired
string

The name of the domain that contains the repository.

repositoryNameRequired
string

The name of an upstream repository.

descriptionOptional
string

A text description of the repository.

domainOwnerOptional
string

The 12-digit account number of the AWS account that owns the domain that contains the repository. It does not include dashes or spaces.

externalConnectionsOptional
string[]

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* .

permissionsPolicyDocumentOptional
any

The document that defines the resource policy that is set on a repository.

tagsOptional
CfnTag[]

A list of tags to be applied to the repository.

upstreamsOptional
string[]

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) .

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-codeartifact
CFN TypeAWS::CodeArtifact::Repository
Properties8

Related Constructs

External Links