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
- Struct
- Aws::EC2::Types::LaunchTemplateInstanceNetworkInterfaceSpecificationRequest
- Defined in:
- (unknown)
Overview
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
-
#associate_carrier_ip_address ⇒ Boolean
Associates a Carrier IP address with eth0 for a new network interface.
-
#associate_public_ip_address ⇒ Boolean
Associates a public IPv4 address with eth0 for a new network interface.
-
#delete_on_termination ⇒ Boolean
Indicates whether the network interface is deleted when the instance is terminated.
-
#description ⇒ String
A description for the network interface.
-
#device_index ⇒ Integer
The device index for the network interface attachment.
-
#groups ⇒ Array<String>
The IDs of one or more security groups.
-
#interface_type ⇒ String
The type of network interface.
-
#ipv_6_address_count ⇒ Integer
The number of IPv6 addresses to assign to a network interface.
-
#ipv_6_addresses ⇒ Array<Types::InstanceIpv6AddressRequest>
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.
-
#network_card_index ⇒ Integer
The index of the network card.
-
#network_interface_id ⇒ String
The ID of the network interface.
-
#private_ip_address ⇒ String
The primary private IPv4 address of the network interface.
-
#private_ip_addresses ⇒ Array<Types::PrivateIpAddressSpecification>
One or more private IPv4 addresses.
-
#secondary_private_ip_address_count ⇒ Integer
The number of secondary private IPv4 addresses to assign to a network interface.
-
#subnet_id ⇒ String
The ID of the subnet for the network interface.
Instance Attribute Details
#associate_carrier_ip_address ⇒ Boolean
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.
#associate_public_ip_address ⇒ Boolean
Associates a public IPv4 address with eth0 for a new network interface.
#delete_on_termination ⇒ Boolean
Indicates whether the network interface is deleted when the instance is terminated.
#description ⇒ String
A description for the network interface.
#device_index ⇒ Integer
The device index for the network interface attachment.
#groups ⇒ Array<String>
The IDs of one or more security groups.
#interface_type ⇒ String
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
#ipv_6_address_count ⇒ Integer
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.
#ipv_6_addresses ⇒ Array<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.
#network_card_index ⇒ Integer
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.
#network_interface_id ⇒ String
The ID of the network interface.
#private_ip_address ⇒ String
The primary private IPv4 address of the network interface.
#private_ip_addresses ⇒ Array<Types::PrivateIpAddressSpecification>
One or more private IPv4 addresses.
#secondary_private_ip_address_count ⇒ Integer
The number of secondary private IPv4 addresses to assign to a network interface.
#subnet_id ⇒ String
The ID of the subnet for the network interface.