AWS Native is in preview. AWS Classic is fully supported.
aws-native.ec2.NetworkInterfaceAttachment
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Resource Type definition for AWS::EC2::NetworkInterfaceAttachment
Create NetworkInterfaceAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkInterfaceAttachment(name: string, args: NetworkInterfaceAttachmentArgs, opts?: CustomResourceOptions);
@overload
def NetworkInterfaceAttachment(resource_name: str,
args: NetworkInterfaceAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NetworkInterfaceAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
device_index: Optional[str] = None,
instance_id: Optional[str] = None,
network_interface_id: Optional[str] = None,
delete_on_termination: Optional[bool] = None,
ena_srd_specification: Optional[NetworkInterfaceAttachmentEnaSrdSpecificationArgs] = None)
func NewNetworkInterfaceAttachment(ctx *Context, name string, args NetworkInterfaceAttachmentArgs, opts ...ResourceOption) (*NetworkInterfaceAttachment, error)
public NetworkInterfaceAttachment(string name, NetworkInterfaceAttachmentArgs args, CustomResourceOptions? opts = null)
public NetworkInterfaceAttachment(String name, NetworkInterfaceAttachmentArgs args)
public NetworkInterfaceAttachment(String name, NetworkInterfaceAttachmentArgs args, CustomResourceOptions options)
type: aws-native:ec2:NetworkInterfaceAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NetworkInterfaceAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NetworkInterfaceAttachmentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NetworkInterfaceAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkInterfaceAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkInterfaceAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
NetworkInterfaceAttachment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The NetworkInterfaceAttachment resource accepts the following input properties:
- Device
Index string - The network interface's position in the attachment order. For example, the first attached network interface has a DeviceIndex of 0.
- Instance
Id string - The ID of the instance to which you will attach the ENI.
- Network
Interface stringId - The ID of the ENI that you want to attach.
- Delete
On boolTermination - Whether to delete the network interface when the instance terminates. By default, this value is set to true.
- Ena
Srd Pulumi.Specification Aws Native. Ec2. Inputs. Network Interface Attachment Ena Srd Specification - Configures ENA Express for the network interface that this action attaches to the instance.
- Device
Index string - The network interface's position in the attachment order. For example, the first attached network interface has a DeviceIndex of 0.
- Instance
Id string - The ID of the instance to which you will attach the ENI.
- Network
Interface stringId - The ID of the ENI that you want to attach.
- Delete
On boolTermination - Whether to delete the network interface when the instance terminates. By default, this value is set to true.
- Ena
Srd NetworkSpecification Interface Attachment Ena Srd Specification Args - Configures ENA Express for the network interface that this action attaches to the instance.
- device
Index String - The network interface's position in the attachment order. For example, the first attached network interface has a DeviceIndex of 0.
- instance
Id String - The ID of the instance to which you will attach the ENI.
- network
Interface StringId - The ID of the ENI that you want to attach.
- delete
On BooleanTermination - Whether to delete the network interface when the instance terminates. By default, this value is set to true.
- ena
Srd NetworkSpecification Interface Attachment Ena Srd Specification - Configures ENA Express for the network interface that this action attaches to the instance.
- device
Index string - The network interface's position in the attachment order. For example, the first attached network interface has a DeviceIndex of 0.
- instance
Id string - The ID of the instance to which you will attach the ENI.
- network
Interface stringId - The ID of the ENI that you want to attach.
- delete
On booleanTermination - Whether to delete the network interface when the instance terminates. By default, this value is set to true.
- ena
Srd NetworkSpecification Interface Attachment Ena Srd Specification - Configures ENA Express for the network interface that this action attaches to the instance.
- device_
index str - The network interface's position in the attachment order. For example, the first attached network interface has a DeviceIndex of 0.
- instance_
id str - The ID of the instance to which you will attach the ENI.
- network_
interface_ strid - The ID of the ENI that you want to attach.
- delete_
on_ booltermination - Whether to delete the network interface when the instance terminates. By default, this value is set to true.
- ena_
srd_ Networkspecification Interface Attachment Ena Srd Specification Args - Configures ENA Express for the network interface that this action attaches to the instance.
- device
Index String - The network interface's position in the attachment order. For example, the first attached network interface has a DeviceIndex of 0.
- instance
Id String - The ID of the instance to which you will attach the ENI.
- network
Interface StringId - The ID of the ENI that you want to attach.
- delete
On BooleanTermination - Whether to delete the network interface when the instance terminates. By default, this value is set to true.
- ena
Srd Property MapSpecification - Configures ENA Express for the network interface that this action attaches to the instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkInterfaceAttachment resource produces the following output properties:
- Attachment
Id string - The ID of the network interface attachment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Attachment
Id string - The ID of the network interface attachment.
- Id string
- The provider-assigned unique ID for this managed resource.
- attachment
Id String - The ID of the network interface attachment.
- id String
- The provider-assigned unique ID for this managed resource.
- attachment
Id string - The ID of the network interface attachment.
- id string
- The provider-assigned unique ID for this managed resource.
- attachment_
id str - The ID of the network interface attachment.
- id str
- The provider-assigned unique ID for this managed resource.
- attachment
Id String - The ID of the network interface attachment.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
NetworkInterfaceAttachmentEnaSrdSpecification, NetworkInterfaceAttachmentEnaSrdSpecificationArgs
- Ena
Srd boolEnabled - Indicates whether ENA Express is enabled for the network interface.
- Ena
Srd Pulumi.Udp Specification Aws Native. Ec2. Inputs. Network Interface Attachment Ena Srd Specification Ena Srd Udp Specification Properties - Configures ENA Express for UDP network traffic.
- Ena
Srd boolEnabled - Indicates whether ENA Express is enabled for the network interface.
- Ena
Srd NetworkUdp Specification Interface Attachment Ena Srd Specification Ena Srd Udp Specification Properties - Configures ENA Express for UDP network traffic.
- ena
Srd BooleanEnabled - Indicates whether ENA Express is enabled for the network interface.
- ena
Srd NetworkUdp Specification Interface Attachment Ena Srd Specification Ena Srd Udp Specification Properties - Configures ENA Express for UDP network traffic.
- ena
Srd booleanEnabled - Indicates whether ENA Express is enabled for the network interface.
- ena
Srd NetworkUdp Specification Interface Attachment Ena Srd Specification Ena Srd Udp Specification Properties - Configures ENA Express for UDP network traffic.
- ena_
srd_ boolenabled - Indicates whether ENA Express is enabled for the network interface.
- ena_
srd_ Networkudp_ specification Interface Attachment Ena Srd Specification Ena Srd Udp Specification Properties - Configures ENA Express for UDP network traffic.
- ena
Srd BooleanEnabled - Indicates whether ENA Express is enabled for the network interface.
- ena
Srd Property MapUdp Specification - Configures ENA Express for UDP network traffic.
NetworkInterfaceAttachmentEnaSrdSpecificationEnaSrdUdpSpecificationProperties, NetworkInterfaceAttachmentEnaSrdSpecificationEnaSrdUdpSpecificationPropertiesArgs
- Ena
Srd boolUdp Enabled
- Ena
Srd boolUdp Enabled
- ena
Srd BooleanUdp Enabled
- ena
Srd booleanUdp Enabled
- ena_
srd_ booludp_ enabled
- ena
Srd BooleanUdp Enabled
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.