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
ExampleMetadata: infused
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip.html
Examples
Instance instance;
HostedZone myZone;
CfnEIP 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 | Indicates whether the Elastic IP address is for use with instances in a VPC or instance in EC2-Classic. |
InstanceId | The ID of the instance. |
NetworkBorderGroup |
|
PublicIpv4Pool | The ID of an address pool that you own. |
Tags | Any tags assigned to the Elastic IP address. |
Properties
Domain
Indicates whether the Elastic IP address is for use with instances in a VPC or instance in EC2-Classic.
virtual string Domain { get; }
Property Value
System.String
Remarks
Default: If the Region supports EC2-Classic, the default is standard
. Otherwise, the default is vpc
.
Use when allocating an address for use with a VPC if the Region supports EC2-Classic.
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
AWS::EC2::EIP.NetworkBorderGroup
.
virtual string NetworkBorderGroup { get; }
Property Value
System.String
Remarks
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.