interface PrivateIpAddressSpecificationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.CfnNetworkInterface.PrivateIpAddressSpecificationProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnNetworkInterface_PrivateIpAddressSpecificationProperty |
![]() | software.amazon.awscdk.services.ec2.CfnNetworkInterface.PrivateIpAddressSpecificationProperty |
![]() | aws_cdk.aws_ec2.CfnNetworkInterface.PrivateIpAddressSpecificationProperty |
![]() | 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
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
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.