Show / Hide Table of Contents

Class CfnEIPAssociationProps

Properties for defining a CfnEIPAssociation.

Inheritance
object
CfnEIPAssociationProps
Implements
ICfnEIPAssociationProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnEIPAssociationProps : ICfnEIPAssociationProps
Syntax (vb)
Public Class CfnEIPAssociationProps Implements ICfnEIPAssociationProps
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eipassociation.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.EC2;

             var cfnEIPAssociationProps = new CfnEIPAssociationProps {
                 AllocationId = "allocationId",
                 Eip = "eip",
                 InstanceId = "instanceId",
                 NetworkInterfaceId = "networkInterfaceId",
                 PrivateIpAddress = "privateIpAddress"
             };

Synopsis

Constructors

CfnEIPAssociationProps()

Properties for defining a CfnEIPAssociation.

Properties

AllocationId

The allocation ID.

Eip

Properties for defining a CfnEIPAssociation.

InstanceId

The ID of the instance.

NetworkInterfaceId

The ID of the network interface.

PrivateIpAddress

The primary or secondary private IP address to associate with the Elastic IP address.

Constructors

CfnEIPAssociationProps()

Properties for defining a CfnEIPAssociation.

public CfnEIPAssociationProps()
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eipassociation.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.EC2;

             var cfnEIPAssociationProps = new CfnEIPAssociationProps {
                 AllocationId = "allocationId",
                 Eip = "eip",
                 InstanceId = "instanceId",
                 NetworkInterfaceId = "networkInterfaceId",
                 PrivateIpAddress = "privateIpAddress"
             };

Properties

AllocationId

The allocation ID.

public string? AllocationId { get; set; }
Property Value

string

Remarks

This is required.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eipassociation.html#cfn-ec2-eipassociation-allocationid

Eip

Properties for defining a CfnEIPAssociation.

[Obsolete("this property has been deprecated")]
public object? Eip { get; set; }
Property Value

object

Remarks

Stability: Deprecated

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eipassociation.html#cfn-ec2-eipassociation-eip

Type union: either string or IEIPRef

InstanceId

The ID of the instance.

public object? InstanceId { get; set; }
Property Value

object

Remarks

The instance must have exactly one attached network interface. You can specify either the instance ID or the network interface ID, but not both.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eipassociation.html#cfn-ec2-eipassociation-instanceid

Type union: either string or IInstanceRef

NetworkInterfaceId

The ID of the network interface.

public object? NetworkInterfaceId { get; set; }
Property Value

object

Remarks

If the instance has more than one network interface, you must specify a network interface ID.

You can specify either the instance ID or the network interface ID, but not both.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eipassociation.html#cfn-ec2-eipassociation-networkinterfaceid

Type union: either string or INetworkInterfaceRef

PrivateIpAddress

The primary or secondary private IP address to associate with the Elastic IP address.

public string? PrivateIpAddress { get; set; }
Property Value

string

Remarks

If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eipassociation.html#cfn-ec2-eipassociation-privateipaddress

Implements

ICfnEIPAssociationProps
Back to top Generated by DocFX