CfnEIPProps
- class aws_cdk.aws_ec2.CfnEIPProps(*, address=None, domain=None, instance_id=None, ipam_pool_id=None, network_border_group=None, public_ipv4_pool=None, tags=None, transfer_address=None)
Bases:
object
Properties for defining a
CfnEIP
.- Parameters:
address (
Optional
[str
]) – Describes an Elastic IP address, or a carrier IP address.domain (
Optional
[str
]) – The network (vpc
). If you define an Elastic IP address and associate it with a VPC that is defined in the same template, you must declare a dependency on the VPC-gateway attachment by using the DependsOn Attribute on this resource.instance_id (
Optional
[str
]) – The ID of the instance. .. epigraph:: Updates to theInstanceId
property may require some interruptions . Updates on an EIP reassociates the address on its associated resource.ipam_pool_id (
Optional
[str
]) –network_border_group (
Optional
[str
]) – A unique set of Availability Zones, Local Zones, or Wavelength Zones from which AWS advertises IP addresses. Use this parameter to limit the IP address to this location. IP addresses cannot move between network border groups. Use DescribeAvailabilityZones to view the network border groups.public_ipv4_pool (
Optional
[str
]) – The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the address pool. .. epigraph:: Updates to thePublicIpv4Pool
property may require some interruptions . Updates on an EIP reassociates the address on its associated resource.tags (
Optional
[Sequence
[Union
[CfnTag
,Dict
[str
,Any
]]]]) – Any tags assigned to the Elastic IP address. .. epigraph:: Updates to theTags
property may require some interruptions . Updates on an EIP reassociates the address on its associated resource.transfer_address (
Optional
[str
]) – The Elastic IP address you are accepting for transfer. You can only accept one transferred address. For more information on Elastic IP address transfers, see Transfer Elastic IP addresses in the Amazon Virtual Private Cloud User Guide .
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eip.html
- ExampleMetadata:
infused
Example:
# instance: ec2.Instance # my_zone: route53.HostedZone elastic_ip = ec2.CfnEIP(self, "EIP", domain="vpc", instance_id=instance.instance_id ) route53.ARecord(self, "ARecord", zone=my_zone, target=route53.RecordTarget.from_ip_addresses(elastic_ip.ref) )
Attributes
- address
Describes an Elastic IP address, or a carrier IP address.
- domain
The network (
vpc
).If you define an Elastic IP address and associate it with a VPC that is defined in the same template, you must declare a dependency on the VPC-gateway attachment by using the DependsOn Attribute on this resource.
- instance_id
The ID of the instance.
Updates to the
InstanceId
property may require some interruptions . Updates on an EIP reassociates the address on its associated resource.
- ipam_pool_id
-
- Type:
see
- network_border_group
A unique set of Availability Zones, Local Zones, or Wavelength Zones from which AWS advertises IP addresses.
Use this parameter to limit the IP address to this location. IP addresses cannot move between network border groups.
Use DescribeAvailabilityZones to view the network border groups.
- public_ipv4_pool
The ID of an address pool that you own.
Use this parameter to let Amazon EC2 select an address from the address pool. .. epigraph:
Updates to the ``PublicIpv4Pool`` property may require *some interruptions* . Updates on an EIP reassociates the address on its associated resource.
- tags
Any tags assigned to the Elastic IP address.
Updates to the
Tags
property may require some interruptions . Updates on an EIP reassociates the address on its associated resource.
- transfer_address
The Elastic IP address you are accepting for transfer.
You can only accept one transferred address. For more information on Elastic IP address transfers, see Transfer Elastic IP addresses in the Amazon Virtual Private Cloud User Guide .