Class: AWSCDK::ECR::CfnReplicationConfiguration::ReplicationDestinationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECR::CfnReplicationConfiguration::ReplicationDestinationProperty
- Defined in:
- ecr/cfn_replication_configuration.rb
Overview
An array of objects representing the destination for a replication rule.
Instance Attribute Summary collapse
-
#region ⇒ String
readonly
The Region to replicate to.
-
#registry_id ⇒ String
readonly
The AWS account ID of the Amazon ECR private registry to replicate to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(region:, registry_id:) ⇒ ReplicationDestinationProperty
constructor
A new instance of ReplicationDestinationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(region:, registry_id:) ⇒ ReplicationDestinationProperty
Returns a new instance of ReplicationDestinationProperty.
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
#region ⇒ String (readonly)
The Region to replicate to.
550 551 552 |
# File 'ecr/cfn_replication_configuration.rb', line 550 def region @region end |
#registry_id ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |