CfnEIPAssociationProps Struct
Properties for defining a CfnEIPAssociation.
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 cfnEIPAssociationProps: ec2.CfnEIPAssociationProps = {
allocationId: 'allocationId',
eip: 'eip',
instanceId: 'instanceId',
networkInterfaceId: 'networkInterfaceId',
privateIpAddress: 'privateIpAddress',
};
Properties
The allocation ID.
This is required.
this property has been deprecated
instanceIdstring | IInstanceRefinstance_idtyping.Union[str, IInstanceRef]instanceIdStringInstanceIdstringInstanceIdinterface{}#The ID of the instance.
The instance must have exactly one attached network interface. You can specify either the instance ID or the network interface ID, but not both.
networkInterfaceIdstring | INetworkInterfaceRefnetwork_interface_idtyping.Union[str, INetworkInterfaceRef]networkInterfaceIdStringNetworkInterfaceIdstringNetworkInterfaceIdinterface{}#The ID of the network interface.
If the instance has more than one network interface, you must specify a network interface ID.
You can specify either the instance ID or the network interface ID, but not both.
privateIpAddressstringprivate_ip_addressstrprivateIpAddressStringPrivateIpAddressstringPrivateIpAddress*string#The primary or secondary private IP address to associate with the Elastic IP address.
If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.