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

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

AWS Native v0.123.0 published on Monday, Sep 16, 2024 by Pulumi

aws-native.ec2.getNetworkInterfaceAttachment

Explore with Pulumi AI

aws-native logo

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

AWS Native v0.123.0 published on Monday, Sep 16, 2024 by Pulumi

    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.

    Using getNetworkInterfaceAttachment

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getNetworkInterfaceAttachment(args: GetNetworkInterfaceAttachmentArgs, opts?: InvokeOptions): Promise<GetNetworkInterfaceAttachmentResult>
    function getNetworkInterfaceAttachmentOutput(args: GetNetworkInterfaceAttachmentOutputArgs, opts?: InvokeOptions): Output<GetNetworkInterfaceAttachmentResult>
    def get_network_interface_attachment(attachment_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetNetworkInterfaceAttachmentResult
    def get_network_interface_attachment_output(attachment_id: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetNetworkInterfaceAttachmentResult]
    func LookupNetworkInterfaceAttachment(ctx *Context, args *LookupNetworkInterfaceAttachmentArgs, opts ...InvokeOption) (*LookupNetworkInterfaceAttachmentResult, error)
    func LookupNetworkInterfaceAttachmentOutput(ctx *Context, args *LookupNetworkInterfaceAttachmentOutputArgs, opts ...InvokeOption) LookupNetworkInterfaceAttachmentResultOutput

    > Note: This function is named LookupNetworkInterfaceAttachment in the Go SDK.

    public static class GetNetworkInterfaceAttachment 
    {
        public static Task<GetNetworkInterfaceAttachmentResult> InvokeAsync(GetNetworkInterfaceAttachmentArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkInterfaceAttachmentResult> Invoke(GetNetworkInterfaceAttachmentInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNetworkInterfaceAttachmentResult> getNetworkInterfaceAttachment(GetNetworkInterfaceAttachmentArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:ec2:getNetworkInterfaceAttachment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AttachmentId string
    The ID of the network interface attachment.
    AttachmentId string
    The ID of the network interface attachment.
    attachmentId String
    The ID of the network interface attachment.
    attachmentId string
    The ID of the network interface attachment.
    attachment_id str
    The ID of the network interface attachment.
    attachmentId String
    The ID of the network interface attachment.

    getNetworkInterfaceAttachment Result

    The following output properties are available:

    AttachmentId string
    The ID of the network interface attachment.
    DeleteOnTermination bool
    Whether to delete the network interface when the instance terminates. By default, this value is set to true.
    EnaSrdSpecification Pulumi.AwsNative.Ec2.Outputs.NetworkInterfaceAttachmentEnaSrdSpecification
    Configures ENA Express for the network interface that this action attaches to the instance.
    AttachmentId string
    The ID of the network interface attachment.
    DeleteOnTermination bool
    Whether to delete the network interface when the instance terminates. By default, this value is set to true.
    EnaSrdSpecification NetworkInterfaceAttachmentEnaSrdSpecification
    Configures ENA Express for the network interface that this action attaches to the instance.
    attachmentId String
    The ID of the network interface attachment.
    deleteOnTermination Boolean
    Whether to delete the network interface when the instance terminates. By default, this value is set to true.
    enaSrdSpecification NetworkInterfaceAttachmentEnaSrdSpecification
    Configures ENA Express for the network interface that this action attaches to the instance.
    attachmentId string
    The ID of the network interface attachment.
    deleteOnTermination boolean
    Whether to delete the network interface when the instance terminates. By default, this value is set to true.
    enaSrdSpecification NetworkInterfaceAttachmentEnaSrdSpecification
    Configures ENA Express for the network interface that this action attaches to the instance.
    attachment_id str
    The ID of the network interface attachment.
    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 NetworkInterfaceAttachmentEnaSrdSpecification
    Configures ENA Express for the network interface that this action attaches to the instance.
    attachmentId String
    The ID of the network interface attachment.
    deleteOnTermination Boolean
    Whether to delete the network interface when the instance terminates. By default, this value is set to true.
    enaSrdSpecification Property Map
    Configures ENA Express for the network interface that this action attaches to the instance.

    Supporting Types

    NetworkInterfaceAttachmentEnaSrdSpecification

    EnaSrdEnabled bool
    Indicates whether ENA Express is enabled for the network interface.
    EnaSrdUdpSpecification Pulumi.AwsNative.Ec2.Inputs.NetworkInterfaceAttachmentEnaSrdSpecificationEnaSrdUdpSpecificationProperties
    Configures ENA Express for UDP network traffic.
    EnaSrdEnabled bool
    Indicates whether ENA Express is enabled for the network interface.
    EnaSrdUdpSpecification NetworkInterfaceAttachmentEnaSrdSpecificationEnaSrdUdpSpecificationProperties
    Configures ENA Express for UDP network traffic.
    enaSrdEnabled Boolean
    Indicates whether ENA Express is enabled for the network interface.
    enaSrdUdpSpecification NetworkInterfaceAttachmentEnaSrdSpecificationEnaSrdUdpSpecificationProperties
    Configures ENA Express for UDP network traffic.
    enaSrdEnabled boolean
    Indicates whether ENA Express is enabled for the network interface.
    enaSrdUdpSpecification NetworkInterfaceAttachmentEnaSrdSpecificationEnaSrdUdpSpecificationProperties
    Configures ENA Express for UDP network traffic.
    ena_srd_enabled bool
    Indicates whether ENA Express is enabled for the network interface.
    ena_srd_udp_specification NetworkInterfaceAttachmentEnaSrdSpecificationEnaSrdUdpSpecificationProperties
    Configures ENA Express for UDP network traffic.
    enaSrdEnabled Boolean
    Indicates whether ENA Express is enabled for the network interface.
    enaSrdUdpSpecification Property Map
    Configures ENA Express for UDP network traffic.

    NetworkInterfaceAttachmentEnaSrdSpecificationEnaSrdUdpSpecificationProperties

    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.123.0 published on Monday, Sep 16, 2024 by Pulumi