Class: Aws::EC2::Types::LaunchTemplateCpuOptionsRequest

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

{
  core_count: 1,
  threads_per_core: 1,
}

The CPU options for the instance. Both the core count and threads per core must be specified in the request.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#core_countInteger

The number of CPU cores for the instance.

Returns:

  • (Integer)


32619
32620
32621
32622
32623
32624
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 32619

class LaunchTemplateCpuOptionsRequest < Struct.new(
  :core_count,
  :threads_per_core)
  SENSITIVE = []
  include Aws::Structure
end

#threads_per_coreInteger

The number of threads per CPU core. To disable multithreading for the instance, specify a value of 1. Otherwise, specify the default value of 2.

Returns:

  • (Integer)


32619
32620
32621
32622
32623
32624
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 32619

class LaunchTemplateCpuOptionsRequest < Struct.new(
  :core_count,
  :threads_per_core)
  SENSITIVE = []
  include Aws::Structure
end