Class: AWSCDK::EC2::CfnLaunchTemplate::Ipv6AddProperty

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

Overview

Specifies an IPv6 address in an Amazon EC2 launch template.

Ipv6Add is a property of AWS::EC2::LaunchTemplate NetworkInterface .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ipv6_address: nil) ⇒ Ipv6AddProperty

Returns a new instance of Ipv6AddProperty.

Parameters:

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

    One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.



2063
2064
2065
2066
# File 'ec2/cfn_launch_template.rb', line 2063

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

Instance Attribute Details

#ipv6_addressString? (readonly)

One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.

You can't use this option if you're specifying a number of IPv6 addresses.



2074
2075
2076
# File 'ec2/cfn_launch_template.rb', line 2074

def ipv6_address
  @ipv6_address
end

Class Method Details

.jsii_propertiesObject



2076
2077
2078
2079
2080
# File 'ec2/cfn_launch_template.rb', line 2076

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

Instance Method Details

#to_jsiiObject



2082
2083
2084
2085
2086
2087
2088
# File 'ec2/cfn_launch_template.rb', line 2082

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