Class CfnNetworkInterfaceAttachment
Attaches an elastic network interface (ENI) to an Amazon EC2 instance.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnNetworkInterfaceAttachment : CfnResource, IInspectable
Syntax (vb)
Public Class CfnNetworkInterfaceAttachment
Inherits CfnResource
Implements IInspectable
Remarks
You can use this resource type to attach additional network interfaces to an instance without interruption.
CloudformationResource: AWS::EC2::NetworkInterfaceAttachment
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 cfnNetworkInterfaceAttachment = new CfnNetworkInterfaceAttachment(this, "MyCfnNetworkInterfaceAttachment", new CfnNetworkInterfaceAttachmentProps {
DeviceIndex = "deviceIndex",
InstanceId = "instanceId",
NetworkInterfaceId = "networkInterfaceId",
// the properties below are optional
DeleteOnTermination = false,
EnaSrdSpecification = new EnaSrdSpecificationProperty {
EnaSrdEnabled = false,
EnaSrdUdpSpecification = new EnaSrdUdpSpecificationProperty {
EnaSrdUdpEnabled = false
}
}
});
Synopsis
Constructors
CfnNetworkInterfaceAttachment(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnNetworkInterfaceAttachment(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnNetworkInterfaceAttachment(Construct, String, ICfnNetworkInterfaceAttachmentProps) |
Properties
AttrAttachmentId | The ID of the network interface attachment. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
DeleteOnTermination | Whether to delete the network interface when the instance terminates. |
DeviceIndex | The network interface's position in the attachment order. |
EnaSrdSpecification | Configures ENA Express for the network interface that this action attaches to the instance. |
InstanceId | The ID of the instance to which you will attach the ENI. |
NetworkInterfaceId | The ID of the ENI that you want to attach. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnNetworkInterfaceAttachment(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnNetworkInterfaceAttachment(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnNetworkInterfaceAttachment(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnNetworkInterfaceAttachment(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnNetworkInterfaceAttachment(Construct, String, ICfnNetworkInterfaceAttachmentProps)
public CfnNetworkInterfaceAttachment(Construct scope, string id, ICfnNetworkInterfaceAttachmentProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnNetworkInterfaceAttachmentProps
Resource properties.
Properties
AttrAttachmentId
The ID of the network interface attachment.
public virtual string AttrAttachmentId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: AttachmentId
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
DeleteOnTermination
Whether to delete the network interface when the instance terminates.
public virtual object DeleteOnTermination { get; set; }
Property Value
System.Object
DeviceIndex
The network interface's position in the attachment order.
public virtual string DeviceIndex { get; set; }
Property Value
System.String
EnaSrdSpecification
Configures ENA Express for the network interface that this action attaches to the instance.
public virtual object EnaSrdSpecification { get; set; }
Property Value
System.Object
InstanceId
The ID of the instance to which you will attach the ENI.
public virtual string InstanceId { get; set; }
Property Value
System.String
NetworkInterfaceId
The ID of the ENI that you want to attach.
public virtual string NetworkInterfaceId { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>