# PrivateIpAddressSpecificationProperty

Specifies a secondary private IPv4 address for a network interface.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

private_ip_address_specification_property = ec2.CfnInstance.PrivateIpAddressSpecificationProperty(
    primary=False,
    private_ip_address="privateIpAddress"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;

PrivateIpAddressSpecificationProperty privateIpAddressSpecificationProperty = PrivateIpAddressSpecificationProperty.builder()
        .primary(false)
        .privateIpAddress("privateIpAddress")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

privateIpAddressSpecificationProperty := &PrivateIpAddressSpecificationProperty{
	Primary: jsii.Boolean(false),
	PrivateIpAddress: jsii.String("privateIpAddress"),
}
```

## Properties

- `primary`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Indicates whether the private IPv4 address is the primary private IPv4 address.

  Only one IPv4 address can be designated as primary.

- `privateIpAddress`: string (required) — The private IPv4 address.
