Class: AWSCDK::Omics::CfnWorkflow::RegistryMappingProperty

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



937
938
939
940
941
942
943
944
945
946
# File 'omics/cfn_workflow.rb', line 937

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.



952
953
954
# File 'omics/cfn_workflow.rb', line 952

def 
  @ecr_account_id
end

#ecr_repository_prefixString? (readonly)

The repository prefix to use in the ECR private repository.



957
958
959
# File 'omics/cfn_workflow.rb', line 957

def ecr_repository_prefix
  @ecr_repository_prefix
end

#upstream_registry_urlString? (readonly)

The URI of the upstream registry.



962
963
964
# File 'omics/cfn_workflow.rb', line 962

def upstream_registry_url
  @upstream_registry_url
end

#upstream_repository_prefixString? (readonly)

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



967
968
969
# File 'omics/cfn_workflow.rb', line 967

def upstream_repository_prefix
  @upstream_repository_prefix
end

Class Method Details

.jsii_propertiesObject



969
970
971
972
973
974
975
976
# File 'omics/cfn_workflow.rb', line 969

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



978
979
980
981
982
983
984
985
986
987
# File 'omics/cfn_workflow.rb', line 978

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