Class: AWSCDK::Interfaces::AWSLightsail::StaticIPReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSLightsail::StaticIPReference
- Defined in:
- interfaces/aws_lightsail/static_ip_reference.rb
Overview
A reference to a StaticIp resource.
Instance Attribute Summary collapse
-
#static_ip_arn ⇒ String
readonly
The ARN of the StaticIp resource.
-
#static_ip_name ⇒ String
readonly
The StaticIpName of the StaticIp resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(static_ip_arn:, static_ip_name:) ⇒ StaticIPReference
constructor
A new instance of StaticIPReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(static_ip_arn:, static_ip_name:) ⇒ StaticIPReference
Returns a new instance of StaticIPReference.
9 10 11 12 13 14 |
# File 'interfaces/aws_lightsail/static_ip_reference.rb', line 9 def initialize(static_ip_arn:, static_ip_name:) @static_ip_arn = static_ip_arn Jsii::Type.check_type(@static_ip_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "staticIpArn") @static_ip_name = static_ip_name Jsii::Type.check_type(@static_ip_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "staticIpName") end |
Instance Attribute Details
#static_ip_arn ⇒ String (readonly)
The ARN of the StaticIp resource.
19 20 21 |
# File 'interfaces/aws_lightsail/static_ip_reference.rb', line 19 def static_ip_arn @static_ip_arn end |
#static_ip_name ⇒ String (readonly)
The StaticIpName of the StaticIp resource.
23 24 25 |
# File 'interfaces/aws_lightsail/static_ip_reference.rb', line 23 def static_ip_name @static_ip_name end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/aws_lightsail/static_ip_reference.rb', line 25 def self.jsii_properties { :static_ip_arn => "staticIpArn", :static_ip_name => "staticIpName", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/aws_lightsail/static_ip_reference.rb', line 32 def to_jsii result = {} result.merge!({ "staticIpArn" => @static_ip_arn, "staticIpName" => @static_ip_name, }) result.compact end |