Class: AWSCDK::Lightsail::CfnContainer::ECRImagePullerRoleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lightsail::CfnContainer::ECRImagePullerRoleProperty
- Defined in:
- lightsail/cfn_container.rb
Overview
Describes the IAM role that you can use to grant a Lightsail container service access to Amazon ECR private repositories.
Instance Attribute Summary collapse
-
#is_active ⇒ Boolean, ...
readonly
A boolean value that indicates whether the
ECRImagePullerRoleis active. -
#principal_arn ⇒ String?
readonly
The principle Amazon Resource Name (ARN) of the role.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(is_active: nil, principal_arn: nil) ⇒ ECRImagePullerRoleProperty
constructor
A new instance of ECRImagePullerRoleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(is_active: nil, principal_arn: nil) ⇒ ECRImagePullerRoleProperty
Returns a new instance of ECRImagePullerRoleProperty.
761 762 763 764 765 766 |
# File 'lightsail/cfn_container.rb', line 761 def initialize(is_active: nil, principal_arn: nil) @is_active = is_active Jsii::Type.check_type(@is_active, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "isActive") unless @is_active.nil? @principal_arn = principal_arn Jsii::Type.check_type(@principal_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "principalArn") unless @principal_arn.nil? end |
Instance Attribute Details
#is_active ⇒ Boolean, ... (readonly)
A boolean value that indicates whether the ECRImagePullerRole is active.
772 773 774 |
# File 'lightsail/cfn_container.rb', line 772 def is_active @is_active end |
#principal_arn ⇒ String? (readonly)
The principle Amazon Resource Name (ARN) of the role.
This property is read-only.
779 780 781 |
# File 'lightsail/cfn_container.rb', line 779 def principal_arn @principal_arn end |
Class Method Details
.jsii_properties ⇒ Object
781 782 783 784 785 786 |
# File 'lightsail/cfn_container.rb', line 781 def self.jsii_properties { :is_active => "isActive", :principal_arn => "principalArn", } end |
Instance Method Details
#to_jsii ⇒ Object
788 789 790 791 792 793 794 795 |
# File 'lightsail/cfn_container.rb', line 788 def to_jsii result = {} result.merge!({ "isActive" => @is_active, "principalArn" => @principal_arn, }) result.compact end |