Skip to content
v2.278.0

ImageMappingProperty Struct ​

Specifies image mappings that workflow tasks can use.

For example, you can replace all the task references of a public image to use an equivalent image in your private ECR repository. You can use image mappings with upstream registries that don't support pull through cache. You need to manually synchronize the upstream registry with your private repository.

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 imageMappingProperty: omics.CfnWorkflow.ImageMappingProperty = {
  destinationImage: 'destinationImage',
  sourceImage: 'sourceImage',
};
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

image_mapping_property = omics.CfnWorkflow.ImageMappingProperty(
    destination_image="destinationImage",
    source_image="sourceImage"
)
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.*;

ImageMappingProperty imageMappingProperty = ImageMappingProperty.builder()
        .destinationImage("destinationImage")
        .sourceImage("sourceImage")
        .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 imageMappingProperty = new ImageMappingProperty {
    DestinationImage = "destinationImage",
    SourceImage = "sourceImage"
};
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"

imageMappingProperty := &ImageMappingProperty{
	DestinationImage: jsii.String("destinationImage"),
	SourceImage: jsii.String("sourceImage"),
}

Properties ​

destinationImageoptionalstringdestination_imageoptionalstrdestinationImageoptionalStringDestinationImageoptionalstringDestinationImageoptional*string #
Specifies the URI of the corresponding image in the private ECR registry.
sourceImageoptionalstringsource_imageoptionalstrsourceImageoptionalStringSourceImageoptionalstringSourceImageoptional*string #
Specifies the URI of the source image in the upstream registry.