Class: Aws::EC2::Types::GetInstanceTypesFromInstanceRequirementsRequest

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

{
  dry_run: false,
  architecture_types: ["i386"], # required, accepts i386, x86_64, arm64, x86_64_mac
  virtualization_types: ["hvm"], # required, accepts hvm, paravirtual
  instance_requirements: { # required
    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,
    },
  },
  max_results: 1,
  next_token: "String",
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#architecture_typesArray<String>

The processor architecture type.

Returns:

  • (Array<String>)


35166
35167
35168
35169
35170
35171
35172
35173
35174
35175
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 35166

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

#dry_runBoolean

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Returns:

  • (Boolean)


35166
35167
35168
35169
35170
35171
35172
35173
35174
35175
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 35166

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

#instance_requirementsTypes::InstanceRequirementsRequest

The attributes required for the instance types.



35166
35167
35168
35169
35170
35171
35172
35173
35174
35175
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 35166

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

#max_resultsInteger

The maximum number of results to return in a single call. Specify a value between 1 and
 1000. The default value is 1000. To retrieve the remaining results, make another call with
 the returned NextToken value.

Returns:

  • (Integer)


35166
35167
35168
35169
35170
35171
35172
35173
35174
35175
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 35166

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

#next_tokenString

The token for the next set of results.

Returns:

  • (String)


35166
35167
35168
35169
35170
35171
35172
35173
35174
35175
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 35166

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

#virtualization_typesArray<String>

The virtualization type.

Returns:

  • (Array<String>)


35166
35167
35168
35169
35170
35171
35172
35173
35174
35175
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 35166

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