Class: AWSCDK::EC2::CfnLaunchTemplate::PrivateIPAddProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnLaunchTemplate::PrivateIPAddProperty
- Defined in:
- ec2/cfn_launch_template.rb
Overview
Specifies a secondary private IPv4 address for a network interface.
PrivateIpAdd is a property of AWS::EC2::LaunchTemplate NetworkInterface .
Instance Attribute Summary collapse
-
#primary ⇒ Boolean, ...
readonly
Indicates whether the private IPv4 address is the primary private IPv4 address.
-
#private_ip_address ⇒ String?
readonly
The private IPv4 address.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(primary: nil, private_ip_address: nil) ⇒ PrivateIPAddProperty
constructor
A new instance of PrivateIPAddProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(primary: nil, private_ip_address: nil) ⇒ PrivateIPAddProperty
Returns a new instance of PrivateIPAddProperty.
3538 3539 3540 3541 3542 3543 |
# File 'ec2/cfn_launch_template.rb', line 3538 def initialize(primary: nil, private_ip_address: nil) @primary = primary Jsii::Type.check_type(@primary, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "primary") unless @primary.nil? @private_ip_address = private_ip_address Jsii::Type.check_type(@private_ip_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "privateIpAddress") unless @private_ip_address.nil? end |
Instance Attribute Details
#primary ⇒ Boolean, ... (readonly)
Indicates whether the private IPv4 address is the primary private IPv4 address.
Only one IPv4 address can be designated as primary.
3551 3552 3553 |
# File 'ec2/cfn_launch_template.rb', line 3551 def primary @primary end |
#private_ip_address ⇒ String? (readonly)
The private IPv4 address.
3556 3557 3558 |
# File 'ec2/cfn_launch_template.rb', line 3556 def private_ip_address @private_ip_address end |
Class Method Details
.jsii_properties ⇒ Object
3558 3559 3560 3561 3562 3563 |
# File 'ec2/cfn_launch_template.rb', line 3558 def self.jsii_properties { :primary => "primary", :private_ip_address => "privateIpAddress", } end |
Instance Method Details
#to_jsii ⇒ Object
3565 3566 3567 3568 3569 3570 3571 3572 |
# File 'ec2/cfn_launch_template.rb', line 3565 def to_jsii result = {} result.merge!({ "primary" => @primary, "privateIpAddress" => @private_ip_address, }) result.compact end |