Interface CfnNetworkInterface.IPrivateIpAddressSpecificationProperty
Describes a secondary private IPv4 address for a network interface.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IPrivateIpAddressSpecificationProperty
Syntax (vb)
Public Interface 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
Properties
Primary | Sets the private IP address as the primary private address. |
PrivateIpAddress | The private IP address of the network interface. |
Properties
Primary
Sets the private IP address as the primary private address.
object Primary { get; }
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.
string PrivateIpAddress { get; }
Property Value
System.String