Class: AWSCDK::ECR::RepositoryLookupOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECR::RepositoryLookupOptions
- Defined in:
- ecr/repository_lookup_options.rb
Overview
Properties for looking up an existing Repository.
Instance Attribute Summary collapse
-
#repository_arn ⇒ String?
readonly
The ARN of the repository.
-
#repository_name ⇒ String?
readonly
The name of the repository.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(repository_arn: nil, repository_name: nil) ⇒ RepositoryLookupOptions
constructor
A new instance of RepositoryLookupOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(repository_arn: nil, repository_name: nil) ⇒ RepositoryLookupOptions
Returns a new instance of RepositoryLookupOptions.
9 10 11 12 13 14 |
# File 'ecr/repository_lookup_options.rb', line 9 def initialize(repository_arn: nil, repository_name: nil) @repository_arn = repository_arn Jsii::Type.check_type(@repository_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "repositoryArn") unless @repository_arn.nil? @repository_name = repository_name Jsii::Type.check_type(@repository_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "repositoryName") unless @repository_name.nil? end |
Instance Attribute Details
#repository_arn ⇒ String? (readonly)
Note:
Default: - Do not filter on repository ARN
The ARN of the repository.
20 21 22 |
# File 'ecr/repository_lookup_options.rb', line 20 def repository_arn @repository_arn end |
#repository_name ⇒ String? (readonly)
Note:
Default: - Do not filter on repository name
The name of the repository.
25 26 27 |
# File 'ecr/repository_lookup_options.rb', line 25 def repository_name @repository_name end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'ecr/repository_lookup_options.rb', line 27 def self.jsii_properties { :repository_arn => "repositoryArn", :repository_name => "repositoryName", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'ecr/repository_lookup_options.rb', line 34 def to_jsii result = {} result.merge!({ "repositoryArn" => @repository_arn, "repositoryName" => @repository_name, }) result.compact end |