Network Interface Args
data class NetworkInterfaceArgs(val attachments: Output<List<NetworkInterfaceAttachmentArgs>>? = null, val description: Output<String>? = null, val interfaceType: Output<String>? = null, val ipv4PrefixCount: Output<Int>? = null, val ipv4Prefixes: Output<List<String>>? = null, val ipv6AddressCount: Output<Int>? = null, val ipv6AddressListEnabled: Output<Boolean>? = null, val ipv6AddressLists: Output<List<String>>? = null, val ipv6Addresses: Output<List<String>>? = null, val ipv6PrefixCount: Output<Int>? = null, val ipv6Prefixes: Output<List<String>>? = null, val privateIp: Output<String>? = null, val privateIpListEnabled: Output<Boolean>? = null, val privateIpLists: Output<List<String>>? = null, val privateIps: Output<List<String>>? = null, val privateIpsCount: Output<Int>? = null, val securityGroups: Output<List<String>>? = null, val sourceDestCheck: Output<Boolean>? = null, val subnetId: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<NetworkInterfaceArgs>
Provides an Elastic network interface (ENI) resource.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.NetworkInterface;
import com.pulumi.aws.ec2.NetworkInterfaceArgs;
import com.pulumi.aws.ec2.inputs.NetworkInterfaceAttachmentArgs;
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) {
var test = new NetworkInterface("test", NetworkInterfaceArgs.builder()
.subnetId(aws_subnet.public_a().id())
.privateIps("10.0.0.50")
.securityGroups(aws_security_group.web().id())
.attachments(NetworkInterfaceAttachmentArgs.builder()
.instance(aws_instance.test().id())
.deviceIndex(1)
.build())
.build());
}
}
Content copied to clipboard
Import
Network Interfaces can be imported using the id
, e.g.,
$ pulumi import aws:ec2/networkInterface:NetworkInterface test eni-e5aa89a3
Content copied to clipboard
Constructors
Link copied to clipboard
fun NetworkInterfaceArgs(attachments: Output<List<NetworkInterfaceAttachmentArgs>>? = null, description: Output<String>? = null, interfaceType: Output<String>? = null, ipv4PrefixCount: Output<Int>? = null, ipv4Prefixes: Output<List<String>>? = null, ipv6AddressCount: Output<Int>? = null, ipv6AddressListEnabled: Output<Boolean>? = null, ipv6AddressLists: Output<List<String>>? = null, ipv6Addresses: Output<List<String>>? = null, ipv6PrefixCount: Output<Int>? = null, ipv6Prefixes: Output<List<String>>? = null, privateIp: Output<String>? = null, privateIpListEnabled: Output<Boolean>? = null, privateIpLists: Output<List<String>>? = null, privateIps: Output<List<String>>? = null, privateIpsCount: Output<Int>? = null, securityGroups: Output<List<String>>? = null, sourceDestCheck: Output<Boolean>? = null, subnetId: Output<String>? = null, tags: Output<Map<String, String>>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard