Class: AWSCDK::Lightsail::CfnContainer::PrivateRegistryAccessProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lightsail::CfnContainer::PrivateRegistryAccessProperty
- Defined in:
- lightsail/cfn_container.rb
Overview
Describes the configuration for an Amazon Lightsail container service to access private container image repositories, such as ( Amazon ECR ) private repositories.
For more information, see Configuring access to an Amazon ECR private repository for an Amazon Lightsail container service in the Amazon Lightsail Developer Guide .
Instance Attribute Summary collapse
-
#ecr_image_puller_role ⇒ AWSCDK::IResolvable, ...
readonly
An object that describes the activation status of the role that you can use to grant a Lightsail container service access to Amazon ECR private repositories.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ecr_image_puller_role: nil) ⇒ PrivateRegistryAccessProperty
constructor
A new instance of PrivateRegistryAccessProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ecr_image_puller_role: nil) ⇒ PrivateRegistryAccessProperty
Returns a new instance of PrivateRegistryAccessProperty.
990 991 992 993 |
# File 'lightsail/cfn_container.rb', line 990 def initialize(ecr_image_puller_role: nil) @ecr_image_puller_role = ecr_image_puller_role.is_a?(Hash) ? ::AWSCDK::Lightsail::CfnContainer::ECRImagePullerRoleProperty.new(**ecr_image_puller_role.transform_keys(&:to_sym)) : ecr_image_puller_role Jsii::Type.check_type(@ecr_image_puller_role, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19saWdodHNhaWwuQ2ZuQ29udGFpbmVyLkVjckltYWdlUHVsbGVyUm9sZVByb3BlcnR5In1dfX0=")), "ecrImagePullerRole") unless @ecr_image_puller_role.nil? end |
Instance Attribute Details
#ecr_image_puller_role ⇒ AWSCDK::IResolvable, ... (readonly)
An object that describes the activation status of the role that you can use to grant a Lightsail container service access to Amazon ECR private repositories.
If the role is activated, the Amazon Resource Name (ARN) of the role is also listed.
1001 1002 1003 |
# File 'lightsail/cfn_container.rb', line 1001 def ecr_image_puller_role @ecr_image_puller_role end |
Class Method Details
.jsii_properties ⇒ Object
1003 1004 1005 1006 1007 |
# File 'lightsail/cfn_container.rb', line 1003 def self.jsii_properties { :ecr_image_puller_role => "ecrImagePullerRole", } end |
Instance Method Details
#to_jsii ⇒ Object
1009 1010 1011 1012 1013 1014 1015 |
# File 'lightsail/cfn_container.rb', line 1009 def to_jsii result = {} result.merge!({ "ecrImagePullerRole" => @ecr_image_puller_role, }) result.compact end |