We recommend new projects start with resources from the AWS provider.
aws-native.ec2.NetworkInterfaceAttachment
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Attaches an elastic network interface (ENI) to an Amazon EC2 instance. You can use this resource type to attach additional network interfaces to an instance without interruption.
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NetworkInterfaceAttachment resource accepts the following input properties:
- DeviceIndex string
- The network interface's position in the attachment order. For example, the first attached network interface has a DeviceIndexof 0.
- InstanceId string
- The ID of the instance to which you will attach the ENI.
- NetworkInterface stringId 
- The ID of the ENI that you want to attach.
- DeleteOn boolTermination 
- Whether to delete the network interface when the instance terminates. By default, this value is set to true.
- EnaSrd 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.
- DeviceIndex string
- The network interface's position in the attachment order. For example, the first attached network interface has a DeviceIndexof 0.
- InstanceId string
- The ID of the instance to which you will attach the ENI.
- NetworkInterface stringId 
- The ID of the ENI that you want to attach.
- DeleteOn boolTermination 
- Whether to delete the network interface when the instance terminates. By default, this value is set to true.
- EnaSrd NetworkSpecification Interface Attachment Ena Srd Specification Args 
- Configures ENA Express for the network interface that this action attaches to the instance.
- deviceIndex String
- The network interface's position in the attachment order. For example, the first attached network interface has a DeviceIndexof 0.
- instanceId String
- The ID of the instance to which you will attach the ENI.
- networkInterface StringId 
- The ID of the ENI that you want to attach.
- deleteOn BooleanTermination 
- Whether to delete the network interface when the instance terminates. By default, this value is set to true.
- enaSrd NetworkSpecification Interface Attachment Ena Srd Specification 
- Configures ENA Express for the network interface that this action attaches to the instance.
- deviceIndex string
- The network interface's position in the attachment order. For example, the first attached network interface has a DeviceIndexof 0.
- instanceId string
- The ID of the instance to which you will attach the ENI.
- networkInterface stringId 
- The ID of the ENI that you want to attach.
- deleteOn booleanTermination 
- Whether to delete the network interface when the instance terminates. By default, this value is set to true.
- enaSrd 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 DeviceIndexof 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.
- deviceIndex String
- The network interface's position in the attachment order. For example, the first attached network interface has a DeviceIndexof 0.
- instanceId String
- The ID of the instance to which you will attach the ENI.
- networkInterface StringId 
- The ID of the ENI that you want to attach.
- deleteOn BooleanTermination 
- Whether to delete the network interface when the instance terminates. By default, this value is set to true.
- enaSrd 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:
- AttachmentId string
- The ID of the network interface attachment.
- Id string
- The provider-assigned unique ID for this managed resource.
- AttachmentId string
- The ID of the network interface attachment.
- Id string
- The provider-assigned unique ID for this managed resource.
- attachmentId String
- The ID of the network interface attachment.
- id String
- The provider-assigned unique ID for this managed resource.
- attachmentId 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.
- attachmentId String
- The ID of the network interface attachment.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
NetworkInterfaceAttachmentEnaSrdSpecification, NetworkInterfaceAttachmentEnaSrdSpecificationArgs            
- EnaSrd boolEnabled 
- Indicates whether ENA Express is enabled for the network interface.
- EnaSrd 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.
- EnaSrd boolEnabled 
- Indicates whether ENA Express is enabled for the network interface.
- EnaSrd NetworkUdp Specification Interface Attachment Ena Srd Specification Ena Srd Udp Specification Properties 
- Configures ENA Express for UDP network traffic.
- enaSrd BooleanEnabled 
- Indicates whether ENA Express is enabled for the network interface.
- enaSrd NetworkUdp Specification Interface Attachment Ena Srd Specification Ena Srd Udp Specification Properties 
- Configures ENA Express for UDP network traffic.
- enaSrd booleanEnabled 
- Indicates whether ENA Express is enabled for the network interface.
- enaSrd 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.
- enaSrd BooleanEnabled 
- Indicates whether ENA Express is enabled for the network interface.
- enaSrd Property MapUdp Specification 
- Configures ENA Express for UDP network traffic.
NetworkInterfaceAttachmentEnaSrdSpecificationEnaSrdUdpSpecificationProperties, NetworkInterfaceAttachmentEnaSrdSpecificationEnaSrdUdpSpecificationPropertiesArgs                      
- EnaSrd boolUdp Enabled 
- EnaSrd boolUdp Enabled 
- enaSrd BooleanUdp Enabled 
- enaSrd booleanUdp Enabled 
- ena_srd_ booludp_ enabled 
- enaSrd BooleanUdp Enabled 
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.