#[non_exhaustive]pub struct RecommendationPreferences {
pub cpu_vendor_architectures: Option<Vec<CpuVendorArchitecture>>,
}
Expand description
Describes the recommendation preferences to return in the response of a GetAutoScalingGroupRecommendations
, GetEC2InstanceRecommendations
, and GetEC2RecommendationProjectedMetrics
request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.cpu_vendor_architectures: Option<Vec<CpuVendorArchitecture>>
Specifies the CPU vendor and architecture for Amazon EC2 instance and Auto Scaling group recommendations.
For example, when you specify AWS_ARM64
with:
-
A
GetEC2InstanceRecommendations
orGetAutoScalingGroupRecommendations
request, Compute Optimizer returns recommendations that consist of Graviton2 instance types only. -
A
GetEC2RecommendationProjectedMetrics
request, Compute Optimizer returns projected utilization metrics for Graviton2 instance type recommendations only. -
A
ExportEC2InstanceRecommendations
orExportAutoScalingGroupRecommendations
request, Compute Optimizer exports recommendations that consist of Graviton2 instance types only.
Implementations§
source§impl RecommendationPreferences
impl RecommendationPreferences
sourcepub fn cpu_vendor_architectures(&self) -> &[CpuVendorArchitecture]
pub fn cpu_vendor_architectures(&self) -> &[CpuVendorArchitecture]
Specifies the CPU vendor and architecture for Amazon EC2 instance and Auto Scaling group recommendations.
For example, when you specify AWS_ARM64
with:
-
A
GetEC2InstanceRecommendations
orGetAutoScalingGroupRecommendations
request, Compute Optimizer returns recommendations that consist of Graviton2 instance types only. -
A
GetEC2RecommendationProjectedMetrics
request, Compute Optimizer returns projected utilization metrics for Graviton2 instance type recommendations only. -
A
ExportEC2InstanceRecommendations
orExportAutoScalingGroupRecommendations
request, Compute Optimizer exports recommendations that consist of Graviton2 instance types only.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .cpu_vendor_architectures.is_none()
.
source§impl RecommendationPreferences
impl RecommendationPreferences
sourcepub fn builder() -> RecommendationPreferencesBuilder
pub fn builder() -> RecommendationPreferencesBuilder
Creates a new builder-style object to manufacture RecommendationPreferences
.
Trait Implementations§
source§impl Clone for RecommendationPreferences
impl Clone for RecommendationPreferences
source§fn clone(&self) -> RecommendationPreferences
fn clone(&self) -> RecommendationPreferences
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RecommendationPreferences
impl Debug for RecommendationPreferences
source§impl PartialEq for RecommendationPreferences
impl PartialEq for RecommendationPreferences
source§fn eq(&self, other: &RecommendationPreferences) -> bool
fn eq(&self, other: &RecommendationPreferences) -> bool
self
and other
values to be equal, and is used
by ==
.