#[non_exhaustive]pub struct RecommendationSummary {
pub summaries: Option<Vec<Summary>>,
pub recommendation_resource_type: Option<RecommendationSourceType>,
pub account_id: Option<String>,
pub savings_opportunity: Option<SavingsOpportunity>,
pub current_performance_risk_ratings: Option<CurrentPerformanceRiskRatings>,
pub inferred_workload_savings: Option<Vec<InferredWorkloadSaving>>,
}
Expand description
A summary of a recommendation.
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.summaries: Option<Vec<Summary>>
An array of objects that describe a recommendation summary.
recommendation_resource_type: Option<RecommendationSourceType>
The resource type that the recommendation summary applies to.
account_id: Option<String>
The Amazon Web Services account ID of the recommendation summary.
savings_opportunity: Option<SavingsOpportunity>
An object that describes the savings opportunity for a given resource type. Savings opportunity includes the estimated monthly savings amount and percentage.
current_performance_risk_ratings: Option<CurrentPerformanceRiskRatings>
An object that describes the performance risk ratings for a given resource type.
inferred_workload_savings: Option<Vec<InferredWorkloadSaving>>
An array of objects that describes the estimated monthly saving amounts for the instances running on the specified inferredWorkloadTypes
. The array contains the top five savings opportunites for the instances that run inferred workload types.
Implementations§
source§impl RecommendationSummary
impl RecommendationSummary
sourcepub fn summaries(&self) -> &[Summary]
pub fn summaries(&self) -> &[Summary]
An array of objects that describe a recommendation summary.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .summaries.is_none()
.
sourcepub fn recommendation_resource_type(&self) -> Option<&RecommendationSourceType>
pub fn recommendation_resource_type(&self) -> Option<&RecommendationSourceType>
The resource type that the recommendation summary applies to.
sourcepub fn account_id(&self) -> Option<&str>
pub fn account_id(&self) -> Option<&str>
The Amazon Web Services account ID of the recommendation summary.
sourcepub fn savings_opportunity(&self) -> Option<&SavingsOpportunity>
pub fn savings_opportunity(&self) -> Option<&SavingsOpportunity>
An object that describes the savings opportunity for a given resource type. Savings opportunity includes the estimated monthly savings amount and percentage.
sourcepub fn current_performance_risk_ratings(
&self
) -> Option<&CurrentPerformanceRiskRatings>
pub fn current_performance_risk_ratings( &self ) -> Option<&CurrentPerformanceRiskRatings>
An object that describes the performance risk ratings for a given resource type.
sourcepub fn inferred_workload_savings(&self) -> &[InferredWorkloadSaving]
pub fn inferred_workload_savings(&self) -> &[InferredWorkloadSaving]
An array of objects that describes the estimated monthly saving amounts for the instances running on the specified inferredWorkloadTypes
. The array contains the top five savings opportunites for the instances that run inferred workload types.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .inferred_workload_savings.is_none()
.
source§impl RecommendationSummary
impl RecommendationSummary
sourcepub fn builder() -> RecommendationSummaryBuilder
pub fn builder() -> RecommendationSummaryBuilder
Creates a new builder-style object to manufacture RecommendationSummary
.
Trait Implementations§
source§impl Clone for RecommendationSummary
impl Clone for RecommendationSummary
source§fn clone(&self) -> RecommendationSummary
fn clone(&self) -> RecommendationSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RecommendationSummary
impl Debug for RecommendationSummary
source§impl PartialEq for RecommendationSummary
impl PartialEq for RecommendationSummary
source§fn eq(&self, other: &RecommendationSummary) -> bool
fn eq(&self, other: &RecommendationSummary) -> bool
self
and other
values to be equal, and is used
by ==
.