Class: AWSCDK::Lightsail::CfnStaticIPProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lightsail::CfnStaticIPProps
- Defined in:
- lightsail/cfn_static_ip_props.rb
Overview
Properties for defining a CfnStaticIp.
Instance Attribute Summary collapse
-
#attached_to ⇒ String?
readonly
The instance that the static IP is attached to.
-
#static_ip_name ⇒ String
readonly
The name of the static IP.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(static_ip_name:, attached_to: nil) ⇒ CfnStaticIPProps
constructor
A new instance of CfnStaticIPProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(static_ip_name:, attached_to: nil) ⇒ CfnStaticIPProps
Returns a new instance of CfnStaticIPProps.
11 12 13 14 15 16 |
# File 'lightsail/cfn_static_ip_props.rb', line 11 def initialize(static_ip_name:, attached_to: nil) @static_ip_name = static_ip_name Jsii::Type.check_type(@static_ip_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "staticIpName") @attached_to = attached_to Jsii::Type.check_type(@attached_to, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attachedTo") unless @attached_to.nil? end |
Instance Attribute Details
#attached_to ⇒ String? (readonly)
The instance that the static IP is attached to.
27 28 29 |
# File 'lightsail/cfn_static_ip_props.rb', line 27 def attached_to @attached_to end |
#static_ip_name ⇒ String (readonly)
The name of the static IP.
22 23 24 |
# File 'lightsail/cfn_static_ip_props.rb', line 22 def static_ip_name @static_ip_name end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 'lightsail/cfn_static_ip_props.rb', line 29 def self.jsii_properties { :static_ip_name => "staticIpName", :attached_to => "attachedTo", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'lightsail/cfn_static_ip_props.rb', line 36 def to_jsii result = {} result.merge!({ "staticIpName" => @static_ip_name, "attachedTo" => @attached_to, }) result.compact end |