Interface ICfnEIPProps
Properties for defining a CfnEIP
.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public interface ICfnEIPProps
Syntax (vb)
Public Interface ICfnEIPProps
Remarks
Link: 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
Properties
Domain | The network ( |
InstanceId | The ID of the instance. |
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. |
Properties
Domain
The network ( vpc
).
virtual string Domain { get; }
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.
virtual string InstanceId { get; }
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.
NetworkBorderGroup
A unique set of Availability Zones, Local Zones, or Wavelength Zones from which AWS advertises IP addresses.
virtual string NetworkBorderGroup { get; }
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.
You cannot use a network border group with EC2 Classic. If you attempt this operation on EC2 Classic, you receive an InvalidParameterCombination
error.
PublicIpv4Pool
The ID of an address pool that you own.
virtual string PublicIpv4Pool { get; }
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.
virtual ICfnTag[] Tags { get; }
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.
virtual string TransferAddress { get; }
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 .