# RepositoryReference

A reference to a Repository resource.

- Source: Generated at build time
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codeartifact as interfaces_codeartifact } from 'aws-cdk-lib/interfaces';
const repositoryReference: interfaces_codeartifact.RepositoryReference = {
  repositoryArn: 'repositoryArn',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_codeartifact as interfaces_codeartifact

repository_reference = interfaces_codeartifact.RepositoryReference(
    repository_arn="repositoryArn"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.codeartifact.*;

RepositoryReference repositoryReference = RepositoryReference.builder()
        .repositoryArn("repositoryArn")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Interfaces.CodeArtifact;

var repositoryReference = new RepositoryReference {
    RepositoryArn = "repositoryArn"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

repositoryReference := &RepositoryReference{
	RepositoryArn: jsii.String("repositoryArn"),
}
```

## Properties

- `repositoryArn`: string (required) — The Arn of the Repository resource.
