Class CfnEIPProps
Properties for defining a CfnEIP
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnEIPProps : Object, ICfnEIPProps
Syntax (vb)
Public Class CfnEIPProps
Inherits Object
Implements ICfnEIPProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eip.html
ExampleMetadata: infused
Examples
Instance instance;
HostedZone myZone;
var elasticIp = new CfnEIP(this, "EIP", new CfnEIPProps {
Domain = "vpc",
InstanceId = instance.InstanceId
});
new ARecord(this, "ARecord", new ARecordProps {
Zone = myZone,
Target = RecordTarget.FromIpAddresses(elasticIp.Ref)
});
Synopsis
Constructors
CfnEIPProps() |
Properties
Address | An Elastic IP address or a carrier IP address in a Wavelength Zone. |
Domain | The network ( |
InstanceId | The ID of the instance. |
IpamPoolId | The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it. |
NetworkBorderGroup | A unique set of Availability Zones, Local Zones, or Wavelength Zones from which AWS advertises IP addresses. |
PublicIpv4Pool | The ID of an address pool that you own. |
Tags | Any tags assigned to the Elastic IP address. |
TransferAddress | The Elastic IP address you are accepting for transfer. |
Constructors
CfnEIPProps()
public CfnEIPProps()
Properties
Address
An Elastic IP address or a carrier IP address in a Wavelength Zone.
public string Address { get; set; }
Property Value
System.String
Remarks
Domain
The network ( vpc
).
public string Domain { get; set; }
Property Value
System.String
Remarks
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.
InstanceId
The ID of the instance.
public string InstanceId { get; set; }
Property Value
System.String
Remarks
Updates to the InstanceId
property may require some interruptions . Updates on an EIP reassociates the address on its associated resource.
IpamPoolId
The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it.
public string IpamPoolId { get; set; }
Property Value
System.String
Remarks
For more information, see Allocate sequential Elastic IP addresses from an IPAM pool in the Amazon VPC IPAM User Guide .
NetworkBorderGroup
A unique set of Availability Zones, Local Zones, or Wavelength Zones from which AWS advertises IP addresses.
public string NetworkBorderGroup { get; set; }
Property Value
System.String
Remarks
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.
PublicIpv4Pool
The ID of an address pool that you own.
public string PublicIpv4Pool { get; set; }
Property Value
System.String
Remarks
Use this parameter to let Amazon EC2 select an address from the address pool.
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.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Remarks
Updates to the Tags
property may require some interruptions . Updates on an EIP reassociates the address on its associated resource.
TransferAddress
The Elastic IP address you are accepting for transfer.
public string TransferAddress { get; set; }
Property Value
System.String
Remarks
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 .