Class: AWSCDK::EC2::CfnLaunchTemplate::Ipv4PrefixSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnLaunchTemplate::Ipv4PrefixSpecificationProperty
- Defined in:
- ec2/cfn_launch_template.rb
Overview
Specifies an IPv4 prefix for a network interface.
Ipv4PrefixSpecification is a property of AWS::EC2::LaunchTemplate NetworkInterface .
Instance Attribute Summary collapse
-
#ipv4_prefix ⇒ String?
readonly
The IPv4 prefix.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ipv4_prefix: nil) ⇒ Ipv4PrefixSpecificationProperty
constructor
A new instance of Ipv4PrefixSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ipv4_prefix: nil) ⇒ Ipv4PrefixSpecificationProperty
Returns a new instance of Ipv4PrefixSpecificationProperty.
2026 2027 2028 2029 |
# File 'ec2/cfn_launch_template.rb', line 2026 def initialize(ipv4_prefix: nil) @ipv4_prefix = ipv4_prefix Jsii::Type.check_type(@ipv4_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipv4Prefix") unless @ipv4_prefix.nil? end |
Instance Attribute Details
#ipv4_prefix ⇒ String? (readonly)
The IPv4 prefix.
For information, see Assigning prefixes to network interfaces in the Amazon EC2 User Guide .
2037 2038 2039 |
# File 'ec2/cfn_launch_template.rb', line 2037 def ipv4_prefix @ipv4_prefix end |
Class Method Details
.jsii_properties ⇒ Object
2039 2040 2041 2042 2043 |
# File 'ec2/cfn_launch_template.rb', line 2039 def self.jsii_properties { :ipv4_prefix => "ipv4Prefix", } end |
Instance Method Details
#to_jsii ⇒ Object
2045 2046 2047 2048 2049 2050 2051 |
# File 'ec2/cfn_launch_template.rb', line 2045 def to_jsii result = {} result.merge!({ "ipv4Prefix" => @ipv4_prefix, }) result.compact end |