Class: AWSCDK::Omics::CfnWorkflowVersion::ImageMappingProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
omics/cfn_workflow_version.rb

Overview

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.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination_image: nil, source_image: nil) ⇒ ImageMappingProperty

Returns a new instance of ImageMappingProperty.

Parameters:

  • destination_image (String, nil) (defaults to: nil)

    Specifies the URI of the corresponding image in the private ECR registry.

  • source_image (String, nil) (defaults to: nil)

    Specifies the URI of the source image in the upstream registry.



885
886
887
888
889
890
# File 'omics/cfn_workflow_version.rb', line 885

def initialize(destination_image: nil, source_image: nil)
  @destination_image = destination_image
  Jsii::Type.check_type(@destination_image, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destinationImage") unless @destination_image.nil?
  @source_image = source_image
  Jsii::Type.check_type(@source_image, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceImage") unless @source_image.nil?
end

Instance Attribute Details

#destination_imageString? (readonly)

Specifies the URI of the corresponding image in the private ECR registry.



896
897
898
# File 'omics/cfn_workflow_version.rb', line 896

def destination_image
  @destination_image
end

#source_imageString? (readonly)

Specifies the URI of the source image in the upstream registry.



901
902
903
# File 'omics/cfn_workflow_version.rb', line 901

def source_image
  @source_image
end

Class Method Details

.jsii_propertiesObject



903
904
905
906
907
908
# File 'omics/cfn_workflow_version.rb', line 903

def self.jsii_properties
  {
    :destination_image => "destinationImage",
    :source_image => "sourceImage",
  }
end

Instance Method Details

#to_jsiiObject



910
911
912
913
914
915
916
917
# File 'omics/cfn_workflow_version.rb', line 910

def to_jsii
  result = {}
  result.merge!({
    "destinationImage" => @destination_image,
    "sourceImage" => @source_image,
  })
  result.compact
end