get Network Interface
Use this data source to get information about a Network Interface.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.Ec2Functions;
import com.pulumi.aws.ec2.inputs.GetNetworkInterfaceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var bar = Ec2Functions.getNetworkInterface(GetNetworkInterfaceArgs.builder()
.id("eni-01234567")
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getNetworkInterface.
Parameters
argument
A collection of arguments for invoking getNetworkInterface.
suspend fun getNetworkInterface(filters: List<GetNetworkInterfaceFilter>? = null, id: String? = null, tags: Map<String, String>? = null): GetNetworkInterfaceResult
Return
A collection of values returned by getNetworkInterface.
Parameters
filters
One or more name/value pairs to filter off of. There are several valid keys, for a full reference, check out describe-network-interfaces in the AWS CLI reference.
id
Identifier for the network interface.
tags
Any tags assigned to the network interface.
See also
suspend fun getNetworkInterface(argument: suspend GetNetworkInterfacePlainArgsBuilder.() -> Unit): GetNetworkInterfaceResult
Return
A collection of values returned by getNetworkInterface.
Parameters
argument
Builder for com.pulumi.aws.ec2.kotlin.inputs.GetNetworkInterfacePlainArgs.