Class: Aws::EC2::Types::InstanceRequirementsWithMetadataRequest

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 InstanceRequirementsWithMetadataRequest data as a hash:

{
  architecture_types: ["i386"], # accepts i386, x86_64, arm64, x86_64_mac
  virtualization_types: ["hvm"], # accepts hvm, paravirtual
  instance_requirements: {
    v_cpu_count: { # required
      min: 1, # required
      max: 1,
    },
    memory_mi_b: { # required
      min: 1, # required
      max: 1,
    },
    cpu_manufacturers: ["intel"], # accepts intel, amd, amazon-web-services
    memory_gi_b_per_v_cpu: {
      min: 1.0,
      max: 1.0,
    },
    excluded_instance_types: ["ExcludedInstanceType"],
    instance_generations: ["current"], # accepts current, previous
    spot_max_price_percentage_over_lowest_price: 1,
    on_demand_max_price_percentage_over_lowest_price: 1,
    bare_metal: "included", # accepts included, required, excluded
    burstable_performance: "included", # accepts included, required, excluded
    require_hibernate_support: false,
    network_interface_count: {
      min: 1,
      max: 1,
    },
    local_storage: "included", # accepts included, required, excluded
    local_storage_types: ["hdd"], # accepts hdd, ssd
    total_local_storage_gb: {
      min: 1.0,
      max: 1.0,
    },
    baseline_ebs_bandwidth_mbps: {
      min: 1,
      max: 1,
    },
    accelerator_types: ["gpu"], # accepts gpu, fpga, inference
    accelerator_count: {
      min: 1,
      max: 1,
    },
    accelerator_manufacturers: ["nvidia"], # accepts nvidia, amd, amazon-web-services, xilinx
    accelerator_names: ["a100"], # accepts a100, v100, k80, t4, m60, radeon-pro-v520, vu9p
    accelerator_total_memory_mi_b: {
      min: 1,
      max: 1,
    },
  },
}

The architecture type, virtualization type, and other attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.

If you specify InstanceRequirementsWithMetadataRequest, you can't specify InstanceTypes.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#architecture_typesArray<String>

The architecture type.

Returns:

  • (Array<String>)


41461
41462
41463
41464
41465
41466
41467
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 41461

class InstanceRequirementsWithMetadataRequest < Struct.new(
  :architecture_types,
  :virtualization_types,
  :instance_requirements)
  SENSITIVE = []
  include Aws::Structure
end

#instance_requirementsTypes::InstanceRequirementsRequest

The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.



41461
41462
41463
41464
41465
41466
41467
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 41461

class InstanceRequirementsWithMetadataRequest < Struct.new(
  :architecture_types,
  :virtualization_types,
  :instance_requirements)
  SENSITIVE = []
  include Aws::Structure
end

#virtualization_typesArray<String>

The virtualization type.

Returns:

  • (Array<String>)


41461
41462
41463
41464
41465
41466
41467
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 41461

class InstanceRequirementsWithMetadataRequest < Struct.new(
  :architecture_types,
  :virtualization_types,
  :instance_requirements)
  SENSITIVE = []
  include Aws::Structure
end