NetworkInterface
Provides an Elastic network interface (ENI) resource.
Create a NetworkInterface Resource
new NetworkInterface(name: string, args: NetworkInterfaceArgs, opts?: CustomResourceOptions);def NetworkInterface(resource_name, opts=None, attachments=None, description=None, private_ip=None, private_ips=None, private_ips_count=None, security_groups=None, source_dest_check=None, subnet_id=None, tags=None, __props__=None);func NewNetworkInterface(ctx *Context, name string, args NetworkInterfaceArgs, opts ...ResourceOption) (*NetworkInterface, error)public NetworkInterface(string name, NetworkInterfaceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args NetworkInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NetworkInterfaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
NetworkInterface Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The NetworkInterface resource accepts the following input properties:
- Subnet
Id string Subnet ID to create the ENI in.
- Attachments
List<Network
Interface Attachment Args> Block to define the attachment of the ENI. Documented below.
- Description string
A description for the network interface.
- Private
Ip string - Private
Ips List<string> List of private IPs to assign to the ENI.
- Private
Ips intCount Number of secondary private IPs to assign to the ENI. The total number of private IPs will be 1 + private_ips_count, as a primary private IP will be assiged to an ENI by default.
- Security
Groups List<string> List of security group IDs to assign to the ENI.
- Source
Dest boolCheck Whether to enable source destination checking for the ENI. Default true.
- Dictionary<string, string>
A map of tags to assign to the resource.
- Subnet
Id string Subnet ID to create the ENI in.
- Attachments
[]Network
Interface Attachment Type Block to define the attachment of the ENI. Documented below.
- Description string
A description for the network interface.
- Private
Ip string - Private
Ips []string List of private IPs to assign to the ENI.
- Private
Ips intCount Number of secondary private IPs to assign to the ENI. The total number of private IPs will be 1 + private_ips_count, as a primary private IP will be assiged to an ENI by default.
- Security
Groups []string List of security group IDs to assign to the ENI.
- Source
Dest boolCheck Whether to enable source destination checking for the ENI. Default true.
- map[string]string
A map of tags to assign to the resource.
- subnet
Id string Subnet ID to create the ENI in.
- attachments
Network
Interface Attachment[] Block to define the attachment of the ENI. Documented below.
- description string
A description for the network interface.
- private
Ip string - private
Ips string[] List of private IPs to assign to the ENI.
- private
Ips numberCount Number of secondary private IPs to assign to the ENI. The total number of private IPs will be 1 + private_ips_count, as a primary private IP will be assiged to an ENI by default.
- security
Groups string[] List of security group IDs to assign to the ENI.
- source
Dest booleanCheck Whether to enable source destination checking for the ENI. Default true.
- {[key: string]: string}
A map of tags to assign to the resource.
- subnet_
id str Subnet ID to create the ENI in.
- attachments
List[Network
Interface Attachment] Block to define the attachment of the ENI. Documented below.
- description str
A description for the network interface.
- private_
ip str - private_
ips List[str] List of private IPs to assign to the ENI.
- private_
ips_ floatcount Number of secondary private IPs to assign to the ENI. The total number of private IPs will be 1 + private_ips_count, as a primary private IP will be assiged to an ENI by default.
- security_
groups List[str] List of security group IDs to assign to the ENI.
- source_
dest_ boolcheck Whether to enable source destination checking for the ENI. Default true.
- Dict[str, str]
A map of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkInterface resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Mac
Address string The MAC address of the network interface.
- Outpost
Arn string - Private
Dns stringName The private DNS name of the network interface (IPv4).
- Id string
- The provider-assigned unique ID for this managed resource.
- Mac
Address string The MAC address of the network interface.
- Outpost
Arn string - Private
Dns stringName The private DNS name of the network interface (IPv4).
- id string
- The provider-assigned unique ID for this managed resource.
- mac
Address string The MAC address of the network interface.
- outpost
Arn string - private
Dns stringName The private DNS name of the network interface (IPv4).
- id str
- The provider-assigned unique ID for this managed resource.
- mac_
address str The MAC address of the network interface.
- outpost_
arn str - private_
dns_ strname The private DNS name of the network interface (IPv4).
Look up an Existing NetworkInterface Resource
Get an existing NetworkInterface resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NetworkInterfaceState, opts?: CustomResourceOptions): NetworkInterfacestatic get(resource_name, id, opts=None, attachments=None, description=None, mac_address=None, outpost_arn=None, private_dns_name=None, private_ip=None, private_ips=None, private_ips_count=None, security_groups=None, source_dest_check=None, subnet_id=None, tags=None, __props__=None);func GetNetworkInterface(ctx *Context, name string, id IDInput, state *NetworkInterfaceState, opts ...ResourceOption) (*NetworkInterface, error)public static NetworkInterface Get(string name, Input<string> id, NetworkInterfaceState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Attachments
List<Network
Interface Attachment Args> Block to define the attachment of the ENI. Documented below.
- Description string
A description for the network interface.
- Mac
Address string The MAC address of the network interface.
- Outpost
Arn string - Private
Dns stringName The private DNS name of the network interface (IPv4).
- Private
Ip string - Private
Ips List<string> List of private IPs to assign to the ENI.
- Private
Ips intCount Number of secondary private IPs to assign to the ENI. The total number of private IPs will be 1 + private_ips_count, as a primary private IP will be assiged to an ENI by default.
- Security
Groups List<string> List of security group IDs to assign to the ENI.
- Source
Dest boolCheck Whether to enable source destination checking for the ENI. Default true.
- Subnet
Id string Subnet ID to create the ENI in.
- Dictionary<string, string>
A map of tags to assign to the resource.
- Attachments
[]Network
Interface Attachment Type Block to define the attachment of the ENI. Documented below.
- Description string
A description for the network interface.
- Mac
Address string The MAC address of the network interface.
- Outpost
Arn string - Private
Dns stringName The private DNS name of the network interface (IPv4).
- Private
Ip string - Private
Ips []string List of private IPs to assign to the ENI.
- Private
Ips intCount Number of secondary private IPs to assign to the ENI. The total number of private IPs will be 1 + private_ips_count, as a primary private IP will be assiged to an ENI by default.
- Security
Groups []string List of security group IDs to assign to the ENI.
- Source
Dest boolCheck Whether to enable source destination checking for the ENI. Default true.
- Subnet
Id string Subnet ID to create the ENI in.
- map[string]string
A map of tags to assign to the resource.
- attachments
Network
Interface Attachment[] Block to define the attachment of the ENI. Documented below.
- description string
A description for the network interface.
- mac
Address string The MAC address of the network interface.
- outpost
Arn string - private
Dns stringName The private DNS name of the network interface (IPv4).
- private
Ip string - private
Ips string[] List of private IPs to assign to the ENI.
- private
Ips numberCount Number of secondary private IPs to assign to the ENI. The total number of private IPs will be 1 + private_ips_count, as a primary private IP will be assiged to an ENI by default.
- security
Groups string[] List of security group IDs to assign to the ENI.
- source
Dest booleanCheck Whether to enable source destination checking for the ENI. Default true.
- subnet
Id string Subnet ID to create the ENI in.
- {[key: string]: string}
A map of tags to assign to the resource.
- attachments
List[Network
Interface Attachment] Block to define the attachment of the ENI. Documented below.
- description str
A description for the network interface.
- mac_
address str The MAC address of the network interface.
- outpost_
arn str - private_
dns_ strname The private DNS name of the network interface (IPv4).
- private_
ip str - private_
ips List[str] List of private IPs to assign to the ENI.
- private_
ips_ floatcount Number of secondary private IPs to assign to the ENI. The total number of private IPs will be 1 + private_ips_count, as a primary private IP will be assiged to an ENI by default.
- security_
groups List[str] List of security group IDs to assign to the ENI.
- source_
dest_ boolcheck Whether to enable source destination checking for the ENI. Default true.
- subnet_
id str Subnet ID to create the ENI in.
- Dict[str, str]
A map of tags to assign to the resource.
Supporting Types
NetworkInterfaceAttachment
- Device
Index int Integer to define the devices index.
- Instance string
ID of the instance to attach to.
- Attachment
Id string
- Device
Index int Integer to define the devices index.
- Instance string
ID of the instance to attach to.
- Attachment
Id string
- device
Index number Integer to define the devices index.
- instance string
ID of the instance to attach to.
- attachment
Id string
- device_
index float Integer to define the devices index.
- instance str
ID of the instance to attach to.
- attachment_
id str
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.