Class: AWSCDK::ECR::CfnReplicationConfiguration::ReplicationDestinationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ecr/cfn_replication_configuration.rb

Overview

An array of objects representing the destination for a replication rule.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(region:, registry_id:) ⇒ ReplicationDestinationProperty

Returns a new instance of ReplicationDestinationProperty.

Parameters:

  • region (String)

    The Region to replicate to.

  • registry_id (String)

    The AWS account ID of the Amazon ECR private registry to replicate to.



539
540
541
542
543
544
# File 'ecr/cfn_replication_configuration.rb', line 539

def initialize(region:, registry_id:)
  @region = region
  Jsii::Type.check_type(@region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "region")
  @registry_id = registry_id
  Jsii::Type.check_type(@registry_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "registryId")
end

Instance Attribute Details

#regionString (readonly)

The Region to replicate to.



550
551
552
# File 'ecr/cfn_replication_configuration.rb', line 550

def region
  @region
end

#registry_idString (readonly)

The AWS account ID of the Amazon ECR private registry to replicate to.

When configuring cross-Region replication within your own registry, specify your own account ID.



557
558
559
# File 'ecr/cfn_replication_configuration.rb', line 557

def registry_id
  @registry_id
end

Class Method Details

.jsii_propertiesObject



559
560
561
562
563
564
# File 'ecr/cfn_replication_configuration.rb', line 559

def self.jsii_properties
  {
    :region => "region",
    :registry_id => "registryId",
  }
end

Instance Method Details

#to_jsiiObject



566
567
568
569
570
571
572
573
# File 'ecr/cfn_replication_configuration.rb', line 566

def to_jsii
  result = {}
  result.merge!({
    "region" => @region,
    "registryId" => @registry_id,
  })
  result.compact
end