Class CfnEIPAssociationProps
Properties for defining a CfnEIPAssociation.
Implements
Inherited Members
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 |
Properties
| AllocationId | The allocation ID. |
| Eip | Properties for defining a |
| 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
Remarks
Eip
Properties for defining a CfnEIPAssociation.
[Obsolete("this property has been deprecated")]
public object? Eip { get; set; }
Property Value
Remarks
Stability: Deprecated
Type union: either string or IEIPRef
InstanceId
The ID of the instance.
public object? InstanceId { get; set; }
Property Value
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.
Type union: either string or IInstanceRef
NetworkInterfaceId
The ID of the network interface.
public object? NetworkInterfaceId { get; set; }
Property Value
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.
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
Remarks
If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.