@Stability(value=Stable) public static final class CfnNetworkInterfaceAttachment.Builder extends Object implements software.amazon.jsii.Builder<CfnNetworkInterfaceAttachment>
CfnNetworkInterfaceAttachment.| Modifier and Type | Method and Description |
|---|---|
CfnNetworkInterfaceAttachment |
build() |
static CfnNetworkInterfaceAttachment.Builder |
create(software.constructs.Construct scope,
String id) |
CfnNetworkInterfaceAttachment.Builder |
deleteOnTermination(Boolean deleteOnTermination)
Whether to delete the network interface when the instance terminates.
|
CfnNetworkInterfaceAttachment.Builder |
deleteOnTermination(IResolvable deleteOnTermination)
Whether to delete the network interface when the instance terminates.
|
CfnNetworkInterfaceAttachment.Builder |
deviceIndex(String deviceIndex)
The network interface's position in the attachment order.
|
CfnNetworkInterfaceAttachment.Builder |
instanceId(String instanceId)
The ID of the instance to which you will attach the ENI.
|
CfnNetworkInterfaceAttachment.Builder |
networkInterfaceId(String networkInterfaceId)
The ID of the ENI that you want to attach.
|
@Stability(value=Stable) public static CfnNetworkInterfaceAttachment.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnNetworkInterfaceAttachment.Builder.@Stability(value=Stable) public CfnNetworkInterfaceAttachment.Builder deviceIndex(String deviceIndex)
For example, the first attached network interface has a DeviceIndex of 0.
deviceIndex - The network interface's position in the attachment order. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterfaceAttachment.Builder instanceId(String instanceId)
instanceId - The ID of the instance to which you will attach the ENI. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterfaceAttachment.Builder networkInterfaceId(String networkInterfaceId)
networkInterfaceId - The ID of the ENI that you want to attach. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterfaceAttachment.Builder deleteOnTermination(Boolean deleteOnTermination)
By default, this value is set to true .
deleteOnTermination - Whether to delete the network interface when the instance terminates. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterfaceAttachment.Builder deleteOnTermination(IResolvable deleteOnTermination)
By default, this value is set to true .
deleteOnTermination - Whether to delete the network interface when the instance terminates. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterfaceAttachment build()
build in interface software.amazon.jsii.Builder<CfnNetworkInterfaceAttachment>Copyright © 2022. All rights reserved.