interface PrivateIpAddressSpecificationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.EC2.CfnNetworkInterfacePropsMixin.PrivateIpAddressSpecificationProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsec2#CfnNetworkInterfacePropsMixin_PrivateIpAddressSpecificationProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnNetworkInterfacePropsMixin.PrivateIpAddressSpecificationProperty |
Python | aws_cdk.cfn_property_mixins.aws_ec2.CfnNetworkInterfacePropsMixin.PrivateIpAddressSpecificationProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_ec2 » CfnNetworkInterfacePropsMixin » PrivateIpAddressSpecificationProperty |
Describes a secondary private IPv4 address for a network interface.
Example
// 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/cfn-property-mixins';
const privateIpAddressSpecificationProperty: ec2.CfnNetworkInterfacePropsMixin.PrivateIpAddressSpecificationProperty = {
primary: false,
privateIpAddress: 'privateIpAddress',
};
Properties
| Name | Type | Description |
|---|---|---|
| primary? | boolean | IResolvable | Sets the private IP address as the primary private address. |
| private | string | The private IP address of the network interface. |
primary?
Type:
boolean | IResolvable
(optional)
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?
Type:
string
(optional)
The private IP address of the network interface.

.NET
Go
Java
Python
TypeScript