Show / Hide Table of Contents

Class CfnEIPProps

Properties for defining a CfnEIP.

Inheritance
System.Object
CfnEIPProps
Implements
ICfnEIPProps
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class CfnEIPProps : Object, ICfnEIPProps
Syntax (vb)
Public Class CfnEIPProps
    Inherits Object
    Implements 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

Constructors

CfnEIPProps()

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

AWS::EC2::EIP.NetworkBorderGroup.

PublicIpv4Pool

The ID of an address pool that you own.

Tags

Any tags assigned to the Elastic IP address.

Constructors

CfnEIPProps()

public CfnEIPProps()

Properties

Domain

Indicates whether the Elastic IP address is for use with instances in a VPC or instance in EC2-Classic.

public string Domain { get; set; }
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.

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

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.

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

NetworkBorderGroup

AWS::EC2::EIP.NetworkBorderGroup.

public string NetworkBorderGroup { get; set; }
Property Value

System.String

Remarks

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

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.

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

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.

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

Implements

ICfnEIPProps
Back to top Generated by DocFX