Class | AWS::EC2::NetworkInterface |
In: |
lib/aws/ec2/network_interface/attachment.rb
lib/aws/ec2/network_interface.rb |
Parent: | Resource |
Represents a network interface in EC2.
@attr [String] description
@attr_reader [String] vpc_id
@attr_reader [String] subnet_id
@attr_reader [String] owner_id
@attr_reader [Symbol] status
@attr_reader [String] private_ip_address
@attr_reader [Array<Hash>] private_ip_addresses Returns an array
of private ip addresses with the following keys: * `:private_ip_address` (String) * `:primary` (boolean)
@attr_reader [String] private_dns_name
@attr_reader [String] availability_zone_name
@attr_reader [String] mac_address
@attr_reader [Hash,nil] association Returns a hash of
details about the association between this network interface and an elastic ip address.
@attr [Boolean] source_dest_check
@attr [Boolean] requester_managed
network_interface_id | -> | id |
source_dest_check | -> | source_dest_check? |
requester_managed | -> | requester_managed? |
network_interface_id | [R] | @return [String] |
@param [Instance,String] instance The instance to attach this network
interface to, may be an {Instance} object or an instance id string.
@param [Hash] options
@option options [Integer] :device_index (1) The index of the device
for the network interface attachment on the instance. Defaults to 1.
@return [nil]
Detaches this network interface. @param [Hash] options @option (see NetworkInterface::Attachment#detach) @return (see NetworkInterface::Attachment#detach)
@param [Array<SecurityGroup>,Array<String>] groups A list of
security groups objects or security group ids. This replaces the security group set on this network interface.
@return [nil]