Class: AWSCDK::EC2::CfnLaunchTemplate::Ipv6PrefixSpecificationProperty

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

Overview

Specifies an IPv6 prefix for a network interface.

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ipv6_prefix: nil) ⇒ Ipv6PrefixSpecificationProperty

Returns a new instance of Ipv6PrefixSpecificationProperty.

Parameters:

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

    The IPv6 prefix.



2100
2101
2102
2103
# File 'ec2/cfn_launch_template.rb', line 2100

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

Instance Attribute Details

#ipv6_prefixString? (readonly)

The IPv6 prefix.



2109
2110
2111
# File 'ec2/cfn_launch_template.rb', line 2109

def ipv6_prefix
  @ipv6_prefix
end

Class Method Details

.jsii_propertiesObject



2111
2112
2113
2114
2115
# File 'ec2/cfn_launch_template.rb', line 2111

def self.jsii_properties
  {
    :ipv6_prefix => "ipv6Prefix",
  }
end

Instance Method Details

#to_jsiiObject



2117
2118
2119
2120
2121
2122
2123
# File 'ec2/cfn_launch_template.rb', line 2117

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