aws-cdk-lib.aws_ec2.CfnNetworkInterface.PrivateIpAddressSpecificationProperty

interface PrivateIpAddressSpecificationProperty

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnNetworkInterface.PrivateIpAddressSpecificationProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnNetworkInterface_PrivateIpAddressSpecificationProperty
Javasoftware.amazon.awscdk.services.ec2.CfnNetworkInterface.PrivateIpAddressSpecificationProperty
Pythonaws_cdk.aws_ec2.CfnNetworkInterface.PrivateIpAddressSpecificationProperty
TypeScript aws-cdk-lib » aws_ec2 » CfnNetworkInterface » 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-lib';
const privateIpAddressSpecificationProperty: ec2.CfnNetworkInterface.PrivateIpAddressSpecificationProperty = {
  primary: false,
  privateIpAddress: 'privateIpAddress',
};

Properties

NameTypeDescription
primaryboolean | IResolvableSets the private IP address as the primary private address.
privateIpAddressstringThe private IP address of the network interface.

primary

Type: boolean | IResolvable

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

The private IP address of the network interface.