#[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
GetEC2InstanceRecommendationsorGetAutoScalingGroupRecommendationsrequest, Compute Optimizer returns recommendations that consist of Graviton2 instance types only. -
A
GetEC2RecommendationProjectedMetricsrequest, Compute Optimizer returns projected utilization metrics for Graviton2 instance type recommendations only. -
A
ExportEC2InstanceRecommendationsorExportAutoScalingGroupRecommendationsrequest, Compute Optimizer exports recommendations that consist of Graviton2 instance types only.
Implementations§
source§impl RecommendationPreferences
impl RecommendationPreferences
sourcepub fn cpu_vendor_architectures(&self) -> Option<&[CpuVendorArchitecture]>
pub fn cpu_vendor_architectures(&self) -> Option<&[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
GetEC2InstanceRecommendationsorGetAutoScalingGroupRecommendationsrequest, Compute Optimizer returns recommendations that consist of Graviton2 instance types only. -
A
GetEC2RecommendationProjectedMetricsrequest, Compute Optimizer returns projected utilization metrics for Graviton2 instance type recommendations only. -
A
ExportEC2InstanceRecommendationsorExportAutoScalingGroupRecommendationsrequest, Compute Optimizer exports recommendations that consist of Graviton2 instance types only.
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<RecommendationPreferences> for RecommendationPreferences
impl PartialEq<RecommendationPreferences> 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 ==.