Class: AWSCDK::Omics::CfnWorkflowVersion::RegistryMappingProperty

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

Overview

If you are using the ECR pull through cache feature, the registry mapping maps between the ECR repository and the upstream registry where container images are pulled and synchronized.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ecr_account_id: nil, ecr_repository_prefix: nil, upstream_registry_url: nil, upstream_repository_prefix: nil) ⇒ RegistryMappingProperty

Returns a new instance of RegistryMappingProperty.

Parameters:

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

    Account ID of the account that owns the upstream container image.

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

    The repository prefix to use in the ECR private repository.

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

    The URI of the upstream registry.

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

    The repository prefix of the corresponding repository in the upstream registry.



930
931
932
933
934
935
936
937
938
939
# File 'omics/cfn_workflow_version.rb', line 930

def initialize(ecr_account_id: nil, ecr_repository_prefix: nil, upstream_registry_url: nil, upstream_repository_prefix: nil)
  @ecr_account_id = 
  Jsii::Type.check_type(@ecr_account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ecrAccountId") unless @ecr_account_id.nil?
  @ecr_repository_prefix = ecr_repository_prefix
  Jsii::Type.check_type(@ecr_repository_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ecrRepositoryPrefix") unless @ecr_repository_prefix.nil?
  @upstream_registry_url = upstream_registry_url
  Jsii::Type.check_type(@upstream_registry_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "upstreamRegistryUrl") unless @upstream_registry_url.nil?
  @upstream_repository_prefix = upstream_repository_prefix
  Jsii::Type.check_type(@upstream_repository_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "upstreamRepositoryPrefix") unless @upstream_repository_prefix.nil?
end

Instance Attribute Details

#ecr_account_idString? (readonly)

Account ID of the account that owns the upstream container image.



945
946
947
# File 'omics/cfn_workflow_version.rb', line 945

def 
  @ecr_account_id
end

#ecr_repository_prefixString? (readonly)

The repository prefix to use in the ECR private repository.



950
951
952
# File 'omics/cfn_workflow_version.rb', line 950

def ecr_repository_prefix
  @ecr_repository_prefix
end

#upstream_registry_urlString? (readonly)

The URI of the upstream registry.



955
956
957
# File 'omics/cfn_workflow_version.rb', line 955

def upstream_registry_url
  @upstream_registry_url
end

#upstream_repository_prefixString? (readonly)

The repository prefix of the corresponding repository in the upstream registry.



960
961
962
# File 'omics/cfn_workflow_version.rb', line 960

def upstream_repository_prefix
  @upstream_repository_prefix
end

Class Method Details

.jsii_propertiesObject



962
963
964
965
966
967
968
969
# File 'omics/cfn_workflow_version.rb', line 962

def self.jsii_properties
  {
    :ecr_account_id => "ecrAccountId",
    :ecr_repository_prefix => "ecrRepositoryPrefix",
    :upstream_registry_url => "upstreamRegistryUrl",
    :upstream_repository_prefix => "upstreamRepositoryPrefix",
  }
end

Instance Method Details

#to_jsiiObject



971
972
973
974
975
976
977
978
979
980
# File 'omics/cfn_workflow_version.rb', line 971

def to_jsii
  result = {}
  result.merge!({
    "ecrAccountId" => @ecr_account_id,
    "ecrRepositoryPrefix" => @ecr_repository_prefix,
    "upstreamRegistryUrl" => @upstream_registry_url,
    "upstreamRepositoryPrefix" => @upstream_repository_prefix,
  })
  result.compact
end