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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Note:

When making an API call, you may pass LaunchTemplateInstanceNetworkInterfaceSpecificationRequest data as a 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,
  ipv_4_prefixes: [
    {
      ipv_4_prefix: "String",
    },
  ],
  ipv_4_prefix_count: 1,
  ipv_6_prefixes: [
    {
      ipv_6_prefix: "String",
    },
  ],
  ipv_6_prefix_count: 1,
}

The parameters for a network interface.

Constant Summary collapse

SENSITIVE =
[]

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 Wavelength Developer Guide.

Returns:

  • (Boolean)


38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38441

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_carrier_ip_address,
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :interface_type,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id,
  :network_card_index,
  :ipv_4_prefixes,
  :ipv_4_prefix_count,
  :ipv_6_prefixes,
  :ipv_6_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#associate_public_ip_addressBoolean

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

Returns:

  • (Boolean)


38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38441

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_carrier_ip_address,
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :interface_type,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id,
  :network_card_index,
  :ipv_4_prefixes,
  :ipv_4_prefix_count,
  :ipv_6_prefixes,
  :ipv_6_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#delete_on_terminationBoolean

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

Returns:

  • (Boolean)


38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38441

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_carrier_ip_address,
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :interface_type,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id,
  :network_card_index,
  :ipv_4_prefixes,
  :ipv_4_prefix_count,
  :ipv_6_prefixes,
  :ipv_6_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#descriptionString

A description for the network interface.

Returns:

  • (String)


38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38441

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_carrier_ip_address,
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :interface_type,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id,
  :network_card_index,
  :ipv_4_prefixes,
  :ipv_4_prefix_count,
  :ipv_6_prefixes,
  :ipv_6_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#device_indexInteger

The device index for the network interface attachment.

Returns:

  • (Integer)


38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38441

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_carrier_ip_address,
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :interface_type,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id,
  :network_card_index,
  :ipv_4_prefixes,
  :ipv_4_prefix_count,
  :ipv_6_prefixes,
  :ipv_6_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#groupsArray<String>

The IDs of one or more security groups.

Returns:

  • (Array<String>)


38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38441

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_carrier_ip_address,
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :interface_type,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id,
  :network_card_index,
  :ipv_4_prefixes,
  :ipv_4_prefix_count,
  :ipv_6_prefixes,
  :ipv_6_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#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)


38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38441

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_carrier_ip_address,
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :interface_type,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id,
  :network_card_index,
  :ipv_4_prefixes,
  :ipv_4_prefix_count,
  :ipv_6_prefixes,
  :ipv_6_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#ipv_4_prefix_countInteger

The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the Ipv4Prefix option.

Returns:

  • (Integer)


38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38441

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_carrier_ip_address,
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :interface_type,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id,
  :network_card_index,
  :ipv_4_prefixes,
  :ipv_4_prefix_count,
  :ipv_6_prefixes,
  :ipv_6_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#ipv_4_prefixesArray<Types::Ipv4PrefixSpecificationRequest>

One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the Ipv4PrefixCount option.



38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38441

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_carrier_ip_address,
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :interface_type,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id,
  :network_card_index,
  :ipv_4_prefixes,
  :ipv_4_prefix_count,
  :ipv_6_prefixes,
  :ipv_6_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#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)


38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38441

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_carrier_ip_address,
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :interface_type,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id,
  :network_card_index,
  :ipv_4_prefixes,
  :ipv_4_prefix_count,
  :ipv_6_prefixes,
  :ipv_6_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#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.



38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38441

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_carrier_ip_address,
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :interface_type,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id,
  :network_card_index,
  :ipv_4_prefixes,
  :ipv_4_prefix_count,
  :ipv_6_prefixes,
  :ipv_6_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#ipv_6_prefix_countInteger

The number of IPv6 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the Ipv6Prefix option.

Returns:

  • (Integer)


38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38441

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_carrier_ip_address,
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :interface_type,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id,
  :network_card_index,
  :ipv_4_prefixes,
  :ipv_4_prefix_count,
  :ipv_6_prefixes,
  :ipv_6_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#ipv_6_prefixesArray<Types::Ipv6PrefixSpecificationRequest>

One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the Ipv6PrefixCount option.



38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38441

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_carrier_ip_address,
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :interface_type,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id,
  :network_card_index,
  :ipv_4_prefixes,
  :ipv_4_prefix_count,
  :ipv_6_prefixes,
  :ipv_6_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#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)


38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38441

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_carrier_ip_address,
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :interface_type,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id,
  :network_card_index,
  :ipv_4_prefixes,
  :ipv_4_prefix_count,
  :ipv_6_prefixes,
  :ipv_6_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#network_interface_idString

The ID of the network interface.

Returns:

  • (String)


38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38441

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_carrier_ip_address,
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :interface_type,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id,
  :network_card_index,
  :ipv_4_prefixes,
  :ipv_4_prefix_count,
  :ipv_6_prefixes,
  :ipv_6_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#private_ip_addressString

The primary private IPv4 address of the network interface.

Returns:

  • (String)


38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38441

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_carrier_ip_address,
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :interface_type,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id,
  :network_card_index,
  :ipv_4_prefixes,
  :ipv_4_prefix_count,
  :ipv_6_prefixes,
  :ipv_6_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#private_ip_addressesArray<Types::PrivateIpAddressSpecification>

One or more private IPv4 addresses.



38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38441

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_carrier_ip_address,
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :interface_type,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id,
  :network_card_index,
  :ipv_4_prefixes,
  :ipv_4_prefix_count,
  :ipv_6_prefixes,
  :ipv_6_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#secondary_private_ip_address_countInteger

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

Returns:

  • (Integer)


38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38441

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_carrier_ip_address,
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :interface_type,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id,
  :network_card_index,
  :ipv_4_prefixes,
  :ipv_4_prefix_count,
  :ipv_6_prefixes,
  :ipv_6_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#subnet_idString

The ID of the subnet for the network interface.

Returns:

  • (String)


38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38441

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_carrier_ip_address,
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :interface_type,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id,
  :network_card_index,
  :ipv_4_prefixes,
  :ipv_4_prefix_count,
  :ipv_6_prefixes,
  :ipv_6_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end