Class: AWSCDK::EC2::CfnNetworkInterface::InstanceIpv6AddressProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_network_interface.rb

Overview

Describes the IPv6 addresses to associate with the network interface.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ipv6_address:) ⇒ InstanceIpv6AddressProperty

Returns a new instance of InstanceIpv6AddressProperty.

Parameters:

  • ipv6_address (String)

    An IPv6 address to associate with the network interface.



857
858
859
860
# File 'ec2/cfn_network_interface.rb', line 857

def initialize(ipv6_address:)
  @ipv6_address = ipv6_address
  Jsii::Type.check_type(@ipv6_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipv6Address")
end

Instance Attribute Details

#ipv6_addressString (readonly)

An IPv6 address to associate with the network interface.



866
867
868
# File 'ec2/cfn_network_interface.rb', line 866

def ipv6_address
  @ipv6_address
end

Class Method Details

.jsii_propertiesObject



868
869
870
871
872
# File 'ec2/cfn_network_interface.rb', line 868

def self.jsii_properties
  {
    :ipv6_address => "ipv6Address",
  }
end

Instance Method Details

#to_jsiiObject



874
875
876
877
878
879
880
# File 'ec2/cfn_network_interface.rb', line 874

def to_jsii
  result = {}
  result.merge!({
    "ipv6Address" => @ipv6_address,
  })
  result.compact
end