Class: AWSCDK::Omics::CfnWorkflow::ImageMappingProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
omics/cfn_workflow.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.



892
893
894
895
896
897
# File 'omics/cfn_workflow.rb', line 892

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.



903
904
905
# File 'omics/cfn_workflow.rb', line 903

def destination_image
  @destination_image
end

#source_imageString? (readonly)

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



908
909
910
# File 'omics/cfn_workflow.rb', line 908

def source_image
  @source_image
end

Class Method Details

.jsii_propertiesObject



910
911
912
913
914
915
# File 'omics/cfn_workflow.rb', line 910

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

Instance Method Details

#to_jsiiObject



917
918
919
920
921
922
923
924
# File 'omics/cfn_workflow.rb', line 917

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