Class: AWSCDK::EC2::CfnLaunchTemplate::Ipv6PrefixSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnLaunchTemplate::Ipv6PrefixSpecificationProperty
- 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
-
#ipv6_prefix ⇒ String?
readonly
The IPv6 prefix.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ipv6_prefix: nil) ⇒ Ipv6PrefixSpecificationProperty
constructor
A new instance of Ipv6PrefixSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ipv6_prefix: nil) ⇒ Ipv6PrefixSpecificationProperty
Returns a new instance of Ipv6PrefixSpecificationProperty.
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_prefix ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |