Skip to content
v2.275.0

PrivateIpAddressSpecificationProperty Struct ​

Specifies 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.CfnInstance.PrivateIpAddressSpecificationProperty = {
  primary: false,
  privateIpAddress: 'privateIpAddress',
};

Properties ​

primaryboolean | IResolvableprimarytyping.Union[bool, IResolvable]primaryBooleanPrimaryboolPrimaryinterface{}required#
Indicates whether the private IPv4 address is the primary private IPv4 address.

Only one IPv4 address can be designated as primary.

privateIpAddressstringprivate_ip_addressstrprivateIpAddressStringPrivateIpAddressstringPrivateIpAddress*stringrequired#
The private IPv4 address.