Class CfnEIPAssociationProps
Properties for defining a CfnEIPAssociation
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnEIPAssociationProps : Object, ICfnEIPAssociationProps
Syntax (vb)
Public Class CfnEIPAssociationProps
Inherits Object
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
AllocationId | The allocation ID. |
Eip | |
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()
public CfnEIPAssociationProps()
Properties
AllocationId
The allocation ID.
public string AllocationId { get; set; }
Property Value
System.String
Remarks
Eip
public string Eip { get; set; }
Property Value
System.String
Remarks
InstanceId
The ID of the instance.
public string InstanceId { get; set; }
Property Value
System.String
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.
NetworkInterfaceId
The ID of the network interface.
public string NetworkInterfaceId { get; set; }
Property Value
System.String
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.
PrivateIpAddress
The primary or secondary private IP address to associate with the Elastic IP address.
public string PrivateIpAddress { get; set; }
Property Value
System.String
Remarks
If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.