Class: AWSCDK::ECR::CfnReplicationConfiguration::RepositoryFilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECR::CfnReplicationConfiguration::RepositoryFilterProperty
- Defined in:
- ecr/cfn_replication_configuration.rb
Overview
The filter settings used with image replication.
Specifying a repository filter to a replication rule provides a method for controlling which repositories in a private registry are replicated. If no filters are added, the contents of all repositories are replicated.
Instance Attribute Summary collapse
-
#filter ⇒ String
readonly
The repository filter details.
-
#filter_type ⇒ String
readonly
The repository filter type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(filter:, filter_type:) ⇒ RepositoryFilterProperty
constructor
A new instance of RepositoryFilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(filter:, filter_type:) ⇒ RepositoryFilterProperty
Returns a new instance of RepositoryFilterProperty.
631 632 633 634 635 636 |
# File 'ecr/cfn_replication_configuration.rb', line 631 def initialize(filter:, filter_type:) @filter = filter Jsii::Type.check_type(@filter, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "filter") @filter_type = filter_type Jsii::Type.check_type(@filter_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "filterType") end |
Instance Attribute Details
#filter ⇒ String (readonly)
The repository filter details.
When the PREFIX_MATCH filter type is specified, this value is required and should be the repository name prefix to configure replication for.
644 645 646 |
# File 'ecr/cfn_replication_configuration.rb', line 644 def filter @filter end |
#filter_type ⇒ String (readonly)
The repository filter type.
The only supported value is PREFIX_MATCH , which is a repository name prefix specified with the filter parameter.
651 652 653 |
# File 'ecr/cfn_replication_configuration.rb', line 651 def filter_type @filter_type end |
Class Method Details
.jsii_properties ⇒ Object
653 654 655 656 657 658 |
# File 'ecr/cfn_replication_configuration.rb', line 653 def self.jsii_properties { :filter => "filter", :filter_type => "filterType", } end |
Instance Method Details
#to_jsii ⇒ Object
660 661 662 663 664 665 666 667 |
# File 'ecr/cfn_replication_configuration.rb', line 660 def to_jsii result = {} result.merge!({ "filter" => @filter, "filterType" => @filter_type, }) result.compact end |