# CfnRepositoryProps

Properties for defining a `CfnRepository`.

Extends: CfnRepositoryProps
Used as props by: CfnRepository

- Source: Generated code

## Example

```ts
// 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

- `description`: string — A text description of the repository.

- `domainName`: string (required) — The name of the domain that contains the repository.

- `domainOwner`: 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.

- `externalConnections`: 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* .

- `permissionsPolicyDocument`: any — The document that defines the resource policy that is set on a repository.

- `repositoryName`: string (required) — The name of an upstream repository.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A list of tags to be applied to the repository.

- `upstreams`: 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) .
