We recommend new projects start with resources from the AWS provider.
aws-native.ec2.getNetworkInterfaceAttachment
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.
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:
- Attachment
Id string - The ID of the network interface attachment.
- Attachment
Id string - The ID of the network interface attachment.
- attachment
Id String - The ID of the network interface attachment.
- attachment
Id string - The ID of the network interface attachment.
- attachment_
id str - The ID of the network interface attachment.
- attachment
Id String - The ID of the network interface attachment.
getNetworkInterfaceAttachment Result
The following output properties are available:
- Attachment
Id string - The ID of the network interface attachment.
- 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. Outputs. Network Interface Attachment Ena Srd Specification - Configures ENA Express for the network interface that this action attaches to the instance.
- Attachment
Id string - The ID of the network interface attachment.
- 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 - Configures ENA Express for the network interface that this action attaches to the instance.
- attachment
Id String - The ID of the network interface attachment.
- 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.
- attachment
Id string - The ID of the network interface attachment.
- 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.
- attachment_
id str - The ID of the network interface attachment.
- 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 - Configures ENA Express for the network interface that this action attaches to the instance.
- attachment
Id String - The ID of the network interface attachment.
- 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.
Supporting Types
NetworkInterfaceAttachmentEnaSrdSpecification
- 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
- 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
We recommend new projects start with resources from the AWS provider.