CfnEIPAssociationProps

class aws_cdk.aws_ec2.CfnEIPAssociationProps(*, allocation_id=None, eip=None, instance_id=None, network_interface_id=None, private_ip_address=None)

Bases: object

Properties for defining a CfnEIPAssociation.

Parameters:
  • allocation_id (Optional[str]) – The allocation ID. This is required.

  • eip (Optional[str]) –

  • instance_id (Optional[str]) – 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.

  • network_interface_id (Optional[str]) – 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.

  • private_ip_address (Optional[str]) – 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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eipassociation.html

ExampleMetadata:

fixture=_generated

Example:

# 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

cfn_eIPAssociation_props = ec2.CfnEIPAssociationProps(
    allocation_id="allocationId",
    eip="eip",
    instance_id="instanceId",
    network_interface_id="networkInterfaceId",
    private_ip_address="privateIpAddress"
)

Attributes

allocation_id

The allocation ID.

This is required.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eipassociation.html#cfn-ec2-eipassociation-allocationid

eip

this property has been deprecated

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eipassociation.html#cfn-ec2-eipassociation-eip

Stability:

deprecated

Type:

deprecated

instance_id

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eipassociation.html#cfn-ec2-eipassociation-instanceid

network_interface_id

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eipassociation.html#cfn-ec2-eipassociation-networkinterfaceid

private_ip_address

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eipassociation.html#cfn-ec2-eipassociation-privateipaddress