# PrivateIpAddressSpecificationProperty

Describes a secondary private IPv4 address for a network interface.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## 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

- `primary`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (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.

- `privateIpAddress`: string (required) — The private IP address of the network interface.
