Class: AWSCDK::ECR::RepositoryAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECR::RepositoryAttributes
- Defined in:
- ecr/repository_attributes.rb
Instance Attribute Summary collapse
- #repository_arn ⇒ String readonly
- #repository_name ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(repository_arn:, repository_name:) ⇒ RepositoryAttributes
constructor
A new instance of RepositoryAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(repository_arn:, repository_name:) ⇒ RepositoryAttributes
Returns a new instance of RepositoryAttributes.
8 9 10 11 12 13 |
# File 'ecr/repository_attributes.rb', line 8 def initialize(repository_arn:, repository_name:) @repository_arn = repository_arn Jsii::Type.check_type(@repository_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "repositoryArn") @repository_name = repository_name Jsii::Type.check_type(@repository_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "repositoryName") end |
Instance Attribute Details
#repository_arn ⇒ String (readonly)
16 17 18 |
# File 'ecr/repository_attributes.rb', line 16 def repository_arn @repository_arn end |
#repository_name ⇒ String (readonly)
18 19 20 |
# File 'ecr/repository_attributes.rb', line 18 def repository_name @repository_name end |
Class Method Details
.jsii_properties ⇒ Object
20 21 22 23 24 25 |
# File 'ecr/repository_attributes.rb', line 20 def self.jsii_properties { :repository_arn => "repositoryArn", :repository_name => "repositoryName", } end |
Instance Method Details
#to_jsii ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'ecr/repository_attributes.rb', line 27 def to_jsii result = {} result.merge!({ "repositoryArn" => @repository_arn, "repositoryName" => @repository_name, }) result.compact end |