# ContainerRegistryMapProperty

Use a container registry map to specify mappings between the ECR private repository and one or more upstream registries.

For more information, see [Container images](https://docs.aws.amazon.com/omics/latest/dev/workflows-ecr.html) in the *AWS HealthOmics User Guide* .

- 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 containerRegistryMapProperty: omics.CfnWorkflowVersion.ContainerRegistryMapProperty = {
  imageMappings: [{
    destinationImage: 'destinationImage',
    sourceImage: 'sourceImage',
  }],
  registryMappings: [{
    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

container_registry_map_property = omics.CfnWorkflowVersion.ContainerRegistryMapProperty(
    image_mappings=[omics.CfnWorkflowVersion.ImageMappingProperty(
        destination_image="destinationImage",
        source_image="sourceImage"
    )],
    registry_mappings=[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.*;

ContainerRegistryMapProperty containerRegistryMapProperty = ContainerRegistryMapProperty.builder()
        .imageMappings(List.of(ImageMappingProperty.builder()
                .destinationImage("destinationImage")
                .sourceImage("sourceImage")
                .build()))
        .registryMappings(List.of(RegistryMappingProperty.builder()
                .ecrAccountId("ecrAccountId")
                .ecrRepositoryPrefix("ecrRepositoryPrefix")
                .upstreamRegistryUrl("upstreamRegistryUrl")
                .upstreamRepositoryPrefix("upstreamRepositoryPrefix")
                .build()))
        .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 containerRegistryMapProperty = new ContainerRegistryMapProperty {
    ImageMappings = new [] { new ImageMappingProperty {
        DestinationImage = "destinationImage",
        SourceImage = "sourceImage"
    } },
    RegistryMappings = new [] { 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"

containerRegistryMapProperty := &ContainerRegistryMapProperty{
	ImageMappings: []interface{}{
		&ImageMappingProperty{
			DestinationImage: jsii.String("destinationImage"),
			SourceImage: jsii.String("sourceImage"),
		},
	},
	RegistryMappings: []interface{}{
		&RegistryMappingProperty{
			EcrAccountId: jsii.String("ecrAccountId"),
			EcrRepositoryPrefix: jsii.String("ecrRepositoryPrefix"),
			UpstreamRegistryUrl: jsii.String("upstreamRegistryUrl"),
			UpstreamRepositoryPrefix: jsii.String("upstreamRepositoryPrefix"),
		},
	},
}
```

## Properties

- `imageMappings`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWorkflowVersion.ImageMappingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_omics.CfnWorkflowVersion.ImageMappingProperty.html)[] — Image mappings specify path mappings between the ECR private repository and their corresponding external repositories.

- `registryMappings`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWorkflowVersion.RegistryMappingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_omics.CfnWorkflowVersion.RegistryMappingProperty.html)[] — Mapping that provides the ECR repository path where upstream container images are pulled and synchronized.
