Struct aws_sdk_computeoptimizer::operation::get_effective_recommendation_preferences::GetEffectiveRecommendationPreferencesOutput
source · #[non_exhaustive]pub struct GetEffectiveRecommendationPreferencesOutput {
pub enhanced_infrastructure_metrics: Option<EnhancedInfrastructureMetrics>,
pub external_metrics_preference: Option<ExternalMetricsPreference>,
pub look_back_period: Option<LookBackPeriodPreference>,
pub utilization_preferences: Option<Vec<UtilizationPreference>>,
pub preferred_resources: Option<Vec<EffectivePreferredResource>>,
/* private fields */
}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.enhanced_infrastructure_metrics: Option<EnhancedInfrastructureMetrics>The status of the enhanced infrastructure metrics recommendation preference. Considers all applicable preferences that you might have set at the resource, account, and organization level.
A status of Active confirms that the preference is applied in the latest recommendation refresh, and a status of Inactive confirms that it's not yet applied to recommendations.
To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.
For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
external_metrics_preference: Option<ExternalMetricsPreference>The provider of the external metrics recommendation preference. Considers all applicable preferences that you might have set at the account and organization level.
If the preference is applied in the latest recommendation refresh, an object with a valid source value appears in the response. If the preference isn't applied to the recommendations already, then this object doesn't appear in the response.
To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetEC2InstanceRecommendations actions.
For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
look_back_period: Option<LookBackPeriodPreference>The number of days the utilization metrics of the Amazon Web Services resource are analyzed.
To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.
utilization_preferences: Option<Vec<UtilizationPreference>>The resource’s CPU and memory utilization preferences, such as threshold and headroom, that were used to generate rightsizing recommendations. It considers all applicable preferences that you set at the resource, account, and organization level.
To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.
preferred_resources: Option<Vec<EffectivePreferredResource>>The resource type values that are considered as candidates when generating rightsizing recommendations. This object resolves any wildcard expressions and returns the effective list of candidate resource type values. It also considers all applicable preferences that you set at the resource, account, and organization level.
To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.
Implementations§
source§impl GetEffectiveRecommendationPreferencesOutput
impl GetEffectiveRecommendationPreferencesOutput
sourcepub fn enhanced_infrastructure_metrics(
&self,
) -> Option<&EnhancedInfrastructureMetrics>
pub fn enhanced_infrastructure_metrics( &self, ) -> Option<&EnhancedInfrastructureMetrics>
The status of the enhanced infrastructure metrics recommendation preference. Considers all applicable preferences that you might have set at the resource, account, and organization level.
A status of Active confirms that the preference is applied in the latest recommendation refresh, and a status of Inactive confirms that it's not yet applied to recommendations.
To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.
For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
sourcepub fn external_metrics_preference(&self) -> Option<&ExternalMetricsPreference>
pub fn external_metrics_preference(&self) -> Option<&ExternalMetricsPreference>
The provider of the external metrics recommendation preference. Considers all applicable preferences that you might have set at the account and organization level.
If the preference is applied in the latest recommendation refresh, an object with a valid source value appears in the response. If the preference isn't applied to the recommendations already, then this object doesn't appear in the response.
To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetEC2InstanceRecommendations actions.
For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
sourcepub fn look_back_period(&self) -> Option<&LookBackPeriodPreference>
pub fn look_back_period(&self) -> Option<&LookBackPeriodPreference>
The number of days the utilization metrics of the Amazon Web Services resource are analyzed.
To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.
sourcepub fn utilization_preferences(&self) -> &[UtilizationPreference]
pub fn utilization_preferences(&self) -> &[UtilizationPreference]
The resource’s CPU and memory utilization preferences, such as threshold and headroom, that were used to generate rightsizing recommendations. It considers all applicable preferences that you set at the resource, account, and organization level.
To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .utilization_preferences.is_none().
sourcepub fn preferred_resources(&self) -> &[EffectivePreferredResource]
pub fn preferred_resources(&self) -> &[EffectivePreferredResource]
The resource type values that are considered as candidates when generating rightsizing recommendations. This object resolves any wildcard expressions and returns the effective list of candidate resource type values. It also considers all applicable preferences that you set at the resource, account, and organization level.
To validate that the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .preferred_resources.is_none().
source§impl GetEffectiveRecommendationPreferencesOutput
impl GetEffectiveRecommendationPreferencesOutput
sourcepub fn builder() -> GetEffectiveRecommendationPreferencesOutputBuilder
pub fn builder() -> GetEffectiveRecommendationPreferencesOutputBuilder
Creates a new builder-style object to manufacture GetEffectiveRecommendationPreferencesOutput.
Trait Implementations§
source§impl Clone for GetEffectiveRecommendationPreferencesOutput
impl Clone for GetEffectiveRecommendationPreferencesOutput
source§fn clone(&self) -> GetEffectiveRecommendationPreferencesOutput
fn clone(&self) -> GetEffectiveRecommendationPreferencesOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for GetEffectiveRecommendationPreferencesOutput
impl PartialEq for GetEffectiveRecommendationPreferencesOutput
source§fn eq(&self, other: &GetEffectiveRecommendationPreferencesOutput) -> bool
fn eq(&self, other: &GetEffectiveRecommendationPreferencesOutput) -> bool
self and other values to be equal, and is used by ==.source§impl RequestId for GetEffectiveRecommendationPreferencesOutput
impl RequestId for GetEffectiveRecommendationPreferencesOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.impl StructuralPartialEq for GetEffectiveRecommendationPreferencesOutput
Auto Trait Implementations§
impl Freeze for GetEffectiveRecommendationPreferencesOutput
impl RefUnwindSafe for GetEffectiveRecommendationPreferencesOutput
impl Send for GetEffectiveRecommendationPreferencesOutput
impl Sync for GetEffectiveRecommendationPreferencesOutput
impl Unpin for GetEffectiveRecommendationPreferencesOutput
impl UnwindSafe for GetEffectiveRecommendationPreferencesOutput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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