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_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",
}

The parameters for a network interface.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#associate_public_ip_addressBoolean

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

Returns:

  • (Boolean)


32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 32537

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :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)
  SENSITIVE = []
  include Aws::Structure
end

#delete_on_terminationBoolean

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

Returns:

  • (Boolean)


32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 32537

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :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)
  SENSITIVE = []
  include Aws::Structure
end

#descriptionString

A description for the network interface.

Returns:

  • (String)


32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 32537

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :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)
  SENSITIVE = []
  include Aws::Structure
end

#device_indexInteger

The device index for the network interface attachment.

Returns:

  • (Integer)


32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 32537

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :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)
  SENSITIVE = []
  include Aws::Structure
end

#groupsArray<String>

The IDs of one or more security groups.

Returns:

  • (Array<String>)


32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 32537

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :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)
  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)


32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 32537

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :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)
  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)


32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 32537

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :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)
  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.



32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 32537

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :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)
  SENSITIVE = []
  include Aws::Structure
end

#network_interface_idString

The ID of the network interface.

Returns:

  • (String)


32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 32537

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :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)
  SENSITIVE = []
  include Aws::Structure
end

#private_ip_addressString

The primary private IPv4 address of the network interface.

Returns:

  • (String)


32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 32537

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :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)
  SENSITIVE = []
  include Aws::Structure
end

#private_ip_addressesArray<Types::PrivateIpAddressSpecification>

One or more private IPv4 addresses.



32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 32537

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :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)
  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)


32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 32537

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :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)
  SENSITIVE = []
  include Aws::Structure
end

#subnet_idString

The ID of the subnet for the network interface.

Returns:

  • (String)


32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 32537

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :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)
  SENSITIVE = []
  include Aws::Structure
end