Class: AWSCDK::OpsWorks::CfnStack::ElasticIPProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ops_works/cfn_stack.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ip:, name: nil) ⇒ ElasticIPProperty

Returns a new instance of ElasticIPProperty.

Parameters:

  • ip (String)

    The IP address.

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

    The name, which can be a maximum of 32 characters.



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

#ipString (readonly)

The IP address.



896
897
898
# File 'ops_works/cfn_stack.rb', line 896

def ip
  @ip
end

#nameString? (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_propertiesObject



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_jsiiObject



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