Class CfnNetworkInterface.PrivateIpAddressSpecificationProperty
Describes a secondary private IPv4 address for a network interface.
Inheritance
System.Object
CfnNetworkInterface.PrivateIpAddressSpecificationProperty
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PrivateIpAddressSpecificationProperty : Object, CfnNetworkInterface.IPrivateIpAddressSpecificationProperty
Syntax (vb)
Public Class PrivateIpAddressSpecificationProperty
Inherits Object
Implements CfnNetworkInterface.IPrivateIpAddressSpecificationProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var privateIpAddressSpecificationProperty = new PrivateIpAddressSpecificationProperty {
Primary = false,
PrivateIpAddress = "privateIpAddress"
};
Synopsis
Constructors
PrivateIpAddressSpecificationProperty() |
Properties
Primary | Sets the private IP address as the primary private address. |
PrivateIpAddress | The private IP address of the network interface. |
Constructors
PrivateIpAddressSpecificationProperty()
public PrivateIpAddressSpecificationProperty()
Properties
Primary
Sets the private IP address as the primary private address.
public object Primary { get; set; }
Property Value
System.Object
Remarks
You can set only one primary private IP address. If you don't specify a primary private IP address, Amazon EC2 automatically assigns a primary private IP address.
PrivateIpAddress
The private IP address of the network interface.
public string PrivateIpAddress { get; set; }
Property Value
System.String