Skip to content
v2.278.0

PrivateIpAddProperty Struct ​

Specifies a secondary private IPv4 address for a network interface.

PrivateIpAdd is a property of AWS::EC2::LaunchTemplate NetworkInterface .

Example ​

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 privateIpAddProperty: ec2.CfnLaunchTemplate.PrivateIpAddProperty = {
  primary: false,
  privateIpAddress: 'privateIpAddress',
};
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_add_property = ec2.CfnLaunchTemplate.PrivateIpAddProperty(
    primary=False,
    private_ip_address="privateIpAddress"
)
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.*;

PrivateIpAddProperty privateIpAddProperty = PrivateIpAddProperty.builder()
        .primary(false)
        .privateIpAddress("privateIpAddress")
        .build();
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 privateIpAddProperty = new PrivateIpAddProperty {
    Primary = false,
    PrivateIpAddress = "privateIpAddress"
};
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"

privateIpAddProperty := &PrivateIpAddProperty{
	Primary: jsii.Boolean(false),
	PrivateIpAddress: jsii.String("privateIpAddress"),
}

Properties ​

primaryoptionalboolean | IResolvableprimaryoptionaltyping.Union[bool, IResolvable]primaryoptionalBooleanPrimaryoptionalboolPrimaryoptionalinterface{} #
Indicates whether the private IPv4 address is the primary private IPv4 address.

Only one IPv4 address can be designated as primary.

privateIpAddressoptionalstringprivate_ip_addressoptionalstrprivateIpAddressoptionalStringPrivateIpAddressoptionalstringPrivateIpAddressoptional*string #
The private IPv4 address.