You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::EC2::Types::NetworkInterface

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Describes a network interface.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#associationTypes::NetworkInterfaceAssociation

The association information for an Elastic IP address (IPv4) associated with the network interface.

Returns:

#attachmentTypes::NetworkInterfaceAttachment

The network interface attachment.

Returns:

#availability_zoneString

The Availability Zone.

Returns:

  • (String)

    The Availability Zone.

#descriptionString

A description.

Returns:

  • (String)

    A description.

#groupsArray<Types::GroupIdentifier>

Any security groups for the network interface.

Returns:

#interface_typeString

The type of network interface.

Possible values:

  • interface
  • natGateway
  • efa

Returns:

  • (String)

    The type of network interface.

#ipv_6_addressesArray<Types::NetworkInterfaceIpv6Address>

The IPv6 addresses associated with the network interface.

Returns:

#mac_addressString

The MAC address.

Returns:

  • (String)

    The MAC address.

#network_interface_idString

The ID of the network interface.

Returns:

  • (String)

    The ID of the network interface.

#outpost_arnString

The Amazon Resource Name (ARN) of the Outpost.

Returns:

  • (String)

    The Amazon Resource Name (ARN) of the Outpost.

#owner_idString

The AWS account ID of the owner of the network interface.

Returns:

  • (String)

    The AWS account ID of the owner of the network interface.

#private_dns_nameString

The private DNS name.

Returns:

  • (String)

    The private DNS name.

#private_ip_addressString

The IPv4 address of the network interface within the subnet.

Returns:

  • (String)

    The IPv4 address of the network interface within the subnet.

#private_ip_addressesArray<Types::NetworkInterfacePrivateIpAddress>

The private IPv4 addresses associated with the network interface.

Returns:

#requester_idString

The ID of the entity that launched the instance on your behalf (for example, AWS Management Console or Auto Scaling).

Returns:

  • (String)

    The ID of the entity that launched the instance on your behalf (for example, AWS Management Console or Auto Scaling).

#requester_managedBoolean

Indicates whether the network interface is being managed by AWS.

Returns:

  • (Boolean)

    Indicates whether the network interface is being managed by AWS.

#source_dest_checkBoolean

Indicates whether traffic to or from the instance is validated.

Returns:

  • (Boolean)

    Indicates whether traffic to or from the instance is validated.

#statusString

The status of the network interface.

Possible values:

  • available
  • associated
  • attaching
  • in-use
  • detaching

Returns:

  • (String)

    The status of the network interface.

#subnet_idString

The ID of the subnet.

Returns:

  • (String)

    The ID of the subnet.

#tag_setArray<Types::Tag>

Any tags assigned to the network interface.

Returns:

  • (Array<Types::Tag>)

    Any tags assigned to the network interface.

#vpc_idString

The ID of the VPC.

Returns:

  • (String)

    The ID of the VPC.