Class: AWSCDK::EC2::CfnSpotFleet::PrivateIPAddressSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnSpotFleet::PrivateIPAddressSpecificationProperty
- Defined in:
- ec2/cfn_spot_fleet.rb
Overview
Describes a secondary private IPv4 address for a network interface.
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(private_ip_address:, primary: nil) ⇒ PrivateIPAddressSpecificationProperty
constructor
A new instance of PrivateIPAddressSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(private_ip_address:, primary: nil) ⇒ PrivateIPAddressSpecificationProperty
Returns a new instance of PrivateIPAddressSpecificationProperty.
2254 2255 2256 2257 2258 2259 |
# File 'ec2/cfn_spot_fleet.rb', line 2254 def initialize(private_ip_address:, primary: nil) @private_ip_address = private_ip_address Jsii::Type.check_type(@private_ip_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "privateIpAddress") @primary = primary Jsii::Type.check_type(@primary, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "primary") unless @primary.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.
2272 2273 2274 |
# File 'ec2/cfn_spot_fleet.rb', line 2272 def primary @primary end |
#private_ip_address ⇒ String (readonly)
The private IPv4 address.
2265 2266 2267 |
# File 'ec2/cfn_spot_fleet.rb', line 2265 def private_ip_address @private_ip_address end |
Class Method Details
.jsii_properties ⇒ Object
2274 2275 2276 2277 2278 2279 |
# File 'ec2/cfn_spot_fleet.rb', line 2274 def self.jsii_properties { :private_ip_address => "privateIpAddress", :primary => "primary", } end |
Instance Method Details
#to_jsii ⇒ Object
2281 2282 2283 2284 2285 2286 2287 2288 |
# File 'ec2/cfn_spot_fleet.rb', line 2281 def to_jsii result = {} result.merge!({ "privateIpAddress" => @private_ip_address, "primary" => @primary, }) result.compact end |