aws-cdk-lib.aws_codeartifact.CfnRepositoryProps

interface CfnRepositoryProps

LanguageType name
.NETAmazon.CDK.AWS.CodeArtifact.CfnRepositoryProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodeartifact#CfnRepositoryProps
Javasoftware.amazon.awscdk.services.codeartifact.CfnRepositoryProps
Pythonaws_cdk.aws_codeartifact.CfnRepositoryProps
TypeScript aws-cdk-lib » aws_codeartifact » CfnRepositoryProps

Properties for defining a CfnRepository.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codeartifact as codeartifact } from 'aws-cdk-lib';

declare const permissionsPolicyDocument: any;
const cfnRepositoryProps: codeartifact.CfnRepositoryProps = {
  domainName: 'domainName',
  repositoryName: 'repositoryName',

  // the properties below are optional
  description: 'description',
  domainOwner: 'domainOwner',
  externalConnections: ['externalConnections'],
  permissionsPolicyDocument: permissionsPolicyDocument,
  tags: [{
    key: 'key',
    value: 'value',
  }],
  upstreams: ['upstreams'],
};

Properties

NameTypeDescription
domainNamestringThe name of the domain that contains the repository.
repositoryNamestringThe name of an upstream repository.
description?stringA text description of the repository.
domainOwner?stringThe 12-digit account number of the AWS account that owns the domain that contains the repository.
externalConnections?string[]An array of external connections associated with the repository.
permissionsPolicyDocument?anyThe document that defines the resource policy that is set on a repository.
tags?CfnTag[]A list of tags to be applied to the repository.
upstreams?string[]A list of upstream repositories to associate with the repository.

domainName

Type: string

The name of the domain that contains the repository.


repositoryName

Type: string

The name of an upstream repository.


description?

Type: string (optional)

A text description of the repository.


domainOwner?

Type: string (optional)

The 12-digit account number of the AWS account that owns the domain that contains the repository.

It does not include dashes or spaces.


externalConnections?

Type: string[] (optional)

An array of external connections associated with the repository.


permissionsPolicyDocument?

Type: any (optional)

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


tags?

Type: CfnTag[] (optional)

A list of tags to be applied to the repository.


upstreams?

Type: string[] (optional)

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 .