Class: AWSCDK::OpsWorks::CfnStack::ElasticIPProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::OpsWorks::CfnStack::ElasticIPProperty
- Defined in:
- ops_works/cfn_stack.rb
Overview
Instance Attribute Summary collapse
-
#ip ⇒ String
readonly
The IP address.
-
#name ⇒ String?
readonly
The name, which can be a maximum of 32 characters.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ip:, name: nil) ⇒ ElasticIPProperty
constructor
A new instance of ElasticIPProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ip:, name: nil) ⇒ ElasticIPProperty
Returns a new instance of ElasticIPProperty.
885 886 887 888 889 890 |
# File 'ops_works/cfn_stack.rb', line 885 def initialize(ip:, name: nil) @ip = ip Jsii::Type.check_type(@ip, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ip") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? end |
Instance Attribute Details
#ip ⇒ String (readonly)
The IP address.
896 897 898 |
# File 'ops_works/cfn_stack.rb', line 896 def ip @ip end |
#name ⇒ String? (readonly)
The name, which can be a maximum of 32 characters.
901 902 903 |
# File 'ops_works/cfn_stack.rb', line 901 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
903 904 905 906 907 908 |
# File 'ops_works/cfn_stack.rb', line 903 def self.jsii_properties { :ip => "ip", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
910 911 912 913 914 915 916 917 |
# File 'ops_works/cfn_stack.rb', line 910 def to_jsii result = {} result.merge!({ "ip" => @ip, "name" => @name, }) result.compact end |