#[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 ==
.impl StructuralPartialEq for RecommendationPreferences
Auto Trait Implementations§
impl Freeze for RecommendationPreferences
impl RefUnwindSafe for RecommendationPreferences
impl Send for RecommendationPreferences
impl Sync for RecommendationPreferences
impl Unpin for RecommendationPreferences
impl UnwindSafe for RecommendationPreferences
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more