# RepositoryAttributes

Used as argument in: [Repository.fromRepositoryAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecr.Repository.html#fromrepositoryattributes)

- Source: [`aws-ecr/lib/repository.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-ecr/lib/repository.ts#L652)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecr as ecr } from 'aws-cdk-lib';
const repositoryAttributes: ecr.RepositoryAttributes = {
  repositoryArn: 'repositoryArn',
  repositoryName: 'repositoryName',
};
```

Python:

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

repository_attributes = ecr.RepositoryAttributes(
    repository_arn="repositoryArn",
    repository_name="repositoryName"
)
```

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.services.ecr.*;

RepositoryAttributes repositoryAttributes = RepositoryAttributes.builder()
        .repositoryArn("repositoryArn")
        .repositoryName("repositoryName")
        .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.AWS.ECR;

var repositoryAttributes = new RepositoryAttributes {
    RepositoryArn = "repositoryArn",
    RepositoryName = "repositoryName"
};
```

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"

repositoryAttributes := &RepositoryAttributes{
	RepositoryArn: jsii.String("repositoryArn"),
	RepositoryName: jsii.String("repositoryName"),
}
```

## Properties

- `repositoryArn`: string (required)

- `repositoryName`: string (required)
