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

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: ["String"],
  ipv_6_address_count: 1,
  ipv_6_addresses: [
    {
      ipv_6_address: "String",
    },
  ],
  network_interface_id: "String",
  private_ip_address: "String",
  private_ip_addresses: [
    {
      primary: false,
      private_ip_address: "String", # required
    },
  ],
  secondary_private_ip_address_count: 1,
  subnet_id: "String",
}

The parameters for a network interface.

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)


18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18938

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id)
  include Aws::Structure
end

#delete_on_terminationBoolean

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

Returns:

  • (Boolean)


18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18938

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id)
  include Aws::Structure
end

#descriptionString

A description for the network interface.

Returns:

  • (String)


18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18938

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id)
  include Aws::Structure
end

#device_indexInteger

The device index for the network interface attachment.

Returns:

  • (Integer)


18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18938

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id)
  include Aws::Structure
end

#groupsArray<String>

The IDs of one or more security groups.

Returns:

  • (Array<String>)


18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18938

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id)
  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)


18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18938

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id)
  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.



18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18938

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id)
  include Aws::Structure
end

#network_interface_idString

The ID of the network interface.

Returns:

  • (String)


18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18938

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id)
  include Aws::Structure
end

#private_ip_addressString

The primary private IPv4 address of the network interface.

Returns:

  • (String)


18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18938

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id)
  include Aws::Structure
end

#private_ip_addressesArray<Types::PrivateIpAddressSpecification>

One or more private IPv4 addresses.



18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18938

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id)
  include Aws::Structure
end

#secondary_private_ip_address_countInteger

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

Returns:

  • (Integer)


18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18938

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id)
  include Aws::Structure
end

#subnet_idString

The ID of the subnet for the network interface.

Returns:

  • (String)


18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18938

class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
  :associate_public_ip_address,
  :delete_on_termination,
  :description,
  :device_index,
  :groups,
  :ipv_6_address_count,
  :ipv_6_addresses,
  :network_interface_id,
  :private_ip_address,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :subnet_id)
  include Aws::Structure
end