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

Class: Aws::EC2::Types::LaunchTemplateInstanceNetworkInterfaceSpecificationRequest

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

Overview

Note:

When passing LaunchTemplateInstanceNetworkInterfaceSpecificationRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  associate_carrier_ip_address: false,
  associate_public_ip_address: false,
  delete_on_termination: false,
  description: "String",
  device_index: 1,
  groups: ["SecurityGroupId"],
  interface_type: "String",
  ipv_6_address_count: 1,
  ipv_6_addresses: [
    {
      ipv_6_address: "String",
    },
  ],
  network_interface_id: "NetworkInterfaceId",
  private_ip_address: "String",
  private_ip_addresses: [
    {
      primary: false,
      private_ip_address: "String",
    },
  ],
  secondary_private_ip_address_count: 1,
  subnet_id: "SubnetId",
  network_card_index: 1,
}

The parameters for a network interface.

Instance Attribute Summary collapse

Instance Attribute Details

#associate_carrier_ip_addressBoolean

Associates a Carrier IP address with eth0 for a new network interface.

Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. For more information about Carrier IP addresses, see Carrier IP addresses in the AWS Wavelength Developer Guide.

Returns:

  • (Boolean)

    Associates a Carrier IP address with eth0 for a new network interface.

#associate_public_ip_addressBoolean

Associates a public IPv4 address with eth0 for a new network interface.

Returns:

  • (Boolean)

    Associates a public IPv4 address with eth0 for a new network interface.

#delete_on_terminationBoolean

Indicates whether the network interface is deleted when the instance is terminated.

Returns:

  • (Boolean)

    Indicates whether the network interface is deleted when the instance is terminated.

#descriptionString

A description for the network interface.

Returns:

  • (String)

    A description for the network interface.

#device_indexInteger

The device index for the network interface attachment.

Returns:

  • (Integer)

    The device index for the network interface attachment.

#groupsArray<String>

The IDs of one or more security groups.

Returns:

  • (Array<String>)

    The IDs of one or more security groups.

#interface_typeString

The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa. For more information, see Elastic Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.

If you are not creating an EFA, specify interface or omit this parameter.

Valid values: interface | efa

Returns:

  • (String)

    The type of network interface.

#ipv_6_address_countInteger

The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can\'t use this option if specifying specific IPv6 addresses.

Returns:

  • (Integer)

    The number of IPv6 addresses to assign to a network interface.

#ipv_6_addressesArray<Types::InstanceIpv6AddressRequest>

One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can\'t use this option if you\'re specifying a number of IPv6 addresses.

Returns:

#network_card_indexInteger

The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.

Returns:

  • (Integer)

    The index of the network card.

#network_interface_idString

The ID of the network interface.

Returns:

  • (String)

    The ID of the network interface.

#private_ip_addressString

The primary private IPv4 address of the network interface.

Returns:

  • (String)

    The primary private IPv4 address of the network interface.

#private_ip_addressesArray<Types::PrivateIpAddressSpecification>

One or more private IPv4 addresses.

Returns:

#secondary_private_ip_address_countInteger

The number of secondary private IPv4 addresses to assign to a network interface.

Returns:

  • (Integer)

    The number of secondary private IPv4 addresses to assign to a network interface.

#subnet_idString

The ID of the subnet for the network interface.

Returns:

  • (String)

    The ID of the subnet for the network interface.