1. Packages
  2. AWS Native
  3. API Docs
  4. ec2
  5. NetworkInterfaceAttachment

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi

aws-native.ec2.NetworkInterfaceAttachment

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi

    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.

    Example

    The following reference example uses placeholder values for all input properties.

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    const networkInterfaceAttachmentResource = new aws_native.ec2.NetworkInterfaceAttachment("networkInterfaceAttachmentResource", {
        deviceIndex: "string",
        instanceId: "string",
        networkInterfaceId: "string",
        deleteOnTermination: false,
        enaSrdSpecification: {
            enaSrdEnabled: false,
            enaSrdUdpSpecification: {
                enaSrdUdpEnabled: false,
            },
        },
    });
    
    Coming soon!
    

    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:

    DeviceIndex string
    The network interface's position in the attachment order. For example, the first attached network interface has a DeviceIndex of 0.
    InstanceId string
    The ID of the instance to which you will attach the ENI.
    NetworkInterfaceId string
    The ID of the ENI that you want to attach.
    DeleteOnTermination bool
    Whether to delete the network interface when the instance terminates. By default, this value is set to true.
    EnaSrdSpecification Pulumi.AwsNative.Ec2.Inputs.NetworkInterfaceAttachmentEnaSrdSpecification
    DeviceIndex string
    The network interface's position in the attachment order. For example, the first attached network interface has a DeviceIndex of 0.
    InstanceId string
    The ID of the instance to which you will attach the ENI.
    NetworkInterfaceId string
    The ID of the ENI that you want to attach.
    DeleteOnTermination bool
    Whether to delete the network interface when the instance terminates. By default, this value is set to true.
    EnaSrdSpecification NetworkInterfaceAttachmentEnaSrdSpecificationArgs
    deviceIndex String
    The network interface's position in the attachment order. For example, the first attached network interface has a DeviceIndex of 0.
    instanceId String
    The ID of the instance to which you will attach the ENI.
    networkInterfaceId String
    The ID of the ENI that you want to attach.
    deleteOnTermination Boolean
    Whether to delete the network interface when the instance terminates. By default, this value is set to true.
    enaSrdSpecification NetworkInterfaceAttachmentEnaSrdSpecification
    deviceIndex string
    The network interface's position in the attachment order. For example, the first attached network interface has a DeviceIndex of 0.
    instanceId string
    The ID of the instance to which you will attach the ENI.
    networkInterfaceId string
    The ID of the ENI that you want to attach.
    deleteOnTermination boolean
    Whether to delete the network interface when the instance terminates. By default, this value is set to true.
    enaSrdSpecification NetworkInterfaceAttachmentEnaSrdSpecification
    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_id str
    The ID of the ENI that you want to attach.
    delete_on_termination bool
    Whether to delete the network interface when the instance terminates. By default, this value is set to true.
    ena_srd_specification NetworkInterfaceAttachmentEnaSrdSpecificationArgs
    deviceIndex String
    The network interface's position in the attachment order. For example, the first attached network interface has a DeviceIndex of 0.
    instanceId String
    The ID of the instance to which you will attach the ENI.
    networkInterfaceId String
    The ID of the ENI that you want to attach.
    deleteOnTermination Boolean
    Whether to delete the network interface when the instance terminates. By default, this value is set to true.
    enaSrdSpecification Property Map

    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

    NetworkInterfaceAttachmentEnaSrdSpecificationEnaSrdUdpSpecificationProperties, NetworkInterfaceAttachmentEnaSrdSpecificationEnaSrdUdpSpecificationPropertiesArgs

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi