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 AWS::EC2::EIPAssociation.

Parameters
  • allocation_id (Optional[str]) – AWS::EC2::EIPAssociation.AllocationId.

  • eip (Optional[str]) – AWS::EC2::EIPAssociation.EIP.

  • instance_id (Optional[str]) – AWS::EC2::EIPAssociation.InstanceId.

  • network_interface_id (Optional[str]) – AWS::EC2::EIPAssociation.NetworkInterfaceId.

  • private_ip_address (Optional[str]) – AWS::EC2::EIPAssociation.PrivateIpAddress.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip-association.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.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

AWS::EC2::EIPAssociation.AllocationId.

Link

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

Return type

Optional[str]

eip

AWS::EC2::EIPAssociation.EIP.

Link

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

Return type

Optional[str]

instance_id

AWS::EC2::EIPAssociation.InstanceId.

Link

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

Return type

Optional[str]

network_interface_id

AWS::EC2::EIPAssociation.NetworkInterfaceId.

Link

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

Return type

Optional[str]

private_ip_address

AWS::EC2::EIPAssociation.PrivateIpAddress.

Link

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

Return type

Optional[str]