interface PrivateIpAddressSpecificationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.EC2.CfnInstancePropsMixin.PrivateIpAddressSpecificationProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsec2#CfnInstancePropsMixin_PrivateIpAddressSpecificationProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnInstancePropsMixin.PrivateIpAddressSpecificationProperty |
Python | aws_cdk.cfn_property_mixins.aws_ec2.CfnInstancePropsMixin.PrivateIpAddressSpecificationProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_ec2 » CfnInstancePropsMixin » PrivateIpAddressSpecificationProperty |
Specifies 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.CfnInstancePropsMixin.PrivateIpAddressSpecificationProperty = {
primary: false,
privateIpAddress: 'privateIpAddress',
};
Properties
| Name | Type | Description |
|---|---|---|
| primary? | boolean | IResolvable | Indicates whether the private IPv4 address is the primary private IPv4 address. |
| private | string | The private IPv4 address. |
primary?
Type:
boolean | IResolvable
(optional)
Indicates whether the private IPv4 address is the primary private IPv4 address.
Only one IPv4 address can be designated as primary.
privateIpAddress?
Type:
string
(optional)
The private IPv4 address.

.NET
Go
Java
Python
TypeScript