Class: AWSCDK::Lightsail::CfnContainer::ECRImagePullerRoleProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(is_active: nil, principal_arn: nil) ⇒ ECRImagePullerRoleProperty

Returns a new instance of ECRImagePullerRoleProperty.

Parameters:

  • is_active (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    A boolean value that indicates whether the ECRImagePullerRole is active.

  • principal_arn (String, nil) (defaults to: nil)

    The principle Amazon Resource Name (ARN) of the role.



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_activeBoolean, ... (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_arnString? (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_propertiesObject



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_jsiiObject



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