Skip to content
v2.278.0

ContainerRegistryMapProperty Struct ​

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 in the AWS HealthOmics User Guide .

Example ​

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
# 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
// 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();
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"
    } }
};
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 ​

imageMappingsoptionalIResolvable | IResolvable | CfnWorkflowVersion.ImageMappingProperty[]image_mappingsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ImageMappingProperty]]]imageMappingsoptionalIResolvableImageMappingsoptionalIResolvableImageMappingsoptionalinterface{} #
Image mappings specify path mappings between the ECR private repository and their corresponding external repositories.
registryMappingsoptionalIResolvable | IResolvable | CfnWorkflowVersion.RegistryMappingProperty[]registry_mappingsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RegistryMappingProperty]]]registryMappingsoptionalIResolvableRegistryMappingsoptionalIResolvableRegistryMappingsoptionalinterface{} #
Mapping that provides the ECR repository path where upstream container images are pulled and synchronized.