#[non_exhaustive]pub struct AwsEc2LaunchTemplateDataCpuOptionsDetails { /* private fields */ }
Expand description
Specifies the CPU options for an Amazon EC2 instance. For more information, see Optimize CPU options in the Amazon Elastic Compute Cloud User Guide.
Implementations§
source§impl AwsEc2LaunchTemplateDataCpuOptionsDetails
impl AwsEc2LaunchTemplateDataCpuOptionsDetails
sourcepub fn core_count(&self) -> i32
pub fn core_count(&self) -> i32
The number of CPU cores for the instance.
sourcepub fn threads_per_core(&self) -> i32
pub fn threads_per_core(&self) -> i32
The number of threads per CPU core. A value of 1
disables multithreading for the instance, The default value is 2
.
source§impl AwsEc2LaunchTemplateDataCpuOptionsDetails
impl AwsEc2LaunchTemplateDataCpuOptionsDetails
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AwsEc2LaunchTemplateDataCpuOptionsDetails
.
Trait Implementations§
source§impl Clone for AwsEc2LaunchTemplateDataCpuOptionsDetails
impl Clone for AwsEc2LaunchTemplateDataCpuOptionsDetails
source§fn clone(&self) -> AwsEc2LaunchTemplateDataCpuOptionsDetails
fn clone(&self) -> AwsEc2LaunchTemplateDataCpuOptionsDetails
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq<AwsEc2LaunchTemplateDataCpuOptionsDetails> for AwsEc2LaunchTemplateDataCpuOptionsDetails
impl PartialEq<AwsEc2LaunchTemplateDataCpuOptionsDetails> for AwsEc2LaunchTemplateDataCpuOptionsDetails
source§fn eq(&self, other: &AwsEc2LaunchTemplateDataCpuOptionsDetails) -> bool
fn eq(&self, other: &AwsEc2LaunchTemplateDataCpuOptionsDetails) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.