# RegistryMappingProperty

If you are using the ECR pull through cache feature, the registry mapping maps between the ECR repository and the upstream registry where container images are pulled and synchronized.

- Source: Generated at build time
- Type last changed: v2.217.0 · 25 Sep 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_omics as omics } from 'aws-cdk-lib';
const registryMappingProperty: omics.CfnWorkflowVersion.RegistryMappingProperty = {
  ecrAccountId: 'ecrAccountId',
  ecrRepositoryPrefix: 'ecrRepositoryPrefix',
  upstreamRegistryUrl: 'upstreamRegistryUrl',
  upstreamRepositoryPrefix: 'upstreamRepositoryPrefix',
};
```

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_omics as omics

registry_mapping_property = omics.CfnWorkflowVersion.RegistryMappingProperty(
    ecr_account_id="ecrAccountId",
    ecr_repository_prefix="ecrRepositoryPrefix",
    upstream_registry_url="upstreamRegistryUrl",
    upstream_repository_prefix="upstreamRepositoryPrefix"
)
```

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

RegistryMappingProperty registryMappingProperty = RegistryMappingProperty.builder()
        .ecrAccountId("ecrAccountId")
        .ecrRepositoryPrefix("ecrRepositoryPrefix")
        .upstreamRegistryUrl("upstreamRegistryUrl")
        .upstreamRepositoryPrefix("upstreamRepositoryPrefix")
        .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.Omics;

var registryMappingProperty = new RegistryMappingProperty {
    EcrAccountId = "ecrAccountId",
    EcrRepositoryPrefix = "ecrRepositoryPrefix",
    UpstreamRegistryUrl = "upstreamRegistryUrl",
    UpstreamRepositoryPrefix = "upstreamRepositoryPrefix"
};
```

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"

registryMappingProperty := &RegistryMappingProperty{
	EcrAccountId: jsii.String("ecrAccountId"),
	EcrRepositoryPrefix: jsii.String("ecrRepositoryPrefix"),
	UpstreamRegistryUrl: jsii.String("upstreamRegistryUrl"),
	UpstreamRepositoryPrefix: jsii.String("upstreamRepositoryPrefix"),
}
```

## Properties

- `ecrAccountId`: string — Account ID of the account that owns the upstream container image.

- `ecrRepositoryPrefix`: string — The repository prefix to use in the ECR private repository.

- `upstreamRegistryUrl`: string — The URI of the upstream registry.

- `upstreamRepositoryPrefix`: string — The repository prefix of the corresponding repository in the upstream registry.
