Skip to content
v2.273.0

PrivateIpAddressSpecificationProperty Struct ​

Describes a secondary private IPv4 address for a network interface.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const privateIpAddressSpecificationProperty: ec2.CfnNetworkInterface.PrivateIpAddressSpecificationProperty = {
  primary: false,
  privateIpAddress: 'privateIpAddress',
};

Properties ​

primaryboolean | IResolvableprimarytyping.Union[bool, IResolvable]primaryBooleanPrimaryboolPrimaryinterface{}required#
Sets the private IP address as the primary private address.

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.

privateIpAddressstringprivate_ip_addressstrprivateIpAddressStringPrivateIpAddressstringPrivateIpAddress*stringrequired#
The private IP address of the network interface.