Struct aws_sdk_computeoptimizer::types::builders::AutoScalingGroupRecommendationOptionBuilder
source · #[non_exhaustive]pub struct AutoScalingGroupRecommendationOptionBuilder { /* private fields */ }
Expand description
A builder for AutoScalingGroupRecommendationOption
.
Implementations§
source§impl AutoScalingGroupRecommendationOptionBuilder
impl AutoScalingGroupRecommendationOptionBuilder
sourcepub fn configuration(self, input: AutoScalingGroupConfiguration) -> Self
pub fn configuration(self, input: AutoScalingGroupConfiguration) -> Self
An array of objects that describe an Auto Scaling group configuration.
sourcepub fn set_configuration(
self,
input: Option<AutoScalingGroupConfiguration>
) -> Self
pub fn set_configuration( self, input: Option<AutoScalingGroupConfiguration> ) -> Self
An array of objects that describe an Auto Scaling group configuration.
sourcepub fn get_configuration(&self) -> &Option<AutoScalingGroupConfiguration>
pub fn get_configuration(&self) -> &Option<AutoScalingGroupConfiguration>
An array of objects that describe an Auto Scaling group configuration.
sourcepub fn projected_utilization_metrics(self, input: UtilizationMetric) -> Self
pub fn projected_utilization_metrics(self, input: UtilizationMetric) -> Self
Appends an item to projected_utilization_metrics
.
To override the contents of this collection use set_projected_utilization_metrics
.
An array of objects that describe the projected utilization metrics of the Auto Scaling group recommendation option.
The Cpu
and Memory
metrics are the only projected utilization metrics returned. Additionally, the Memory
metric is returned only for resources that have the unified CloudWatch agent installed on them. For more information, see Enabling Memory Utilization with the CloudWatch Agent.
sourcepub fn set_projected_utilization_metrics(
self,
input: Option<Vec<UtilizationMetric>>
) -> Self
pub fn set_projected_utilization_metrics( self, input: Option<Vec<UtilizationMetric>> ) -> Self
An array of objects that describe the projected utilization metrics of the Auto Scaling group recommendation option.
The Cpu
and Memory
metrics are the only projected utilization metrics returned. Additionally, the Memory
metric is returned only for resources that have the unified CloudWatch agent installed on them. For more information, see Enabling Memory Utilization with the CloudWatch Agent.
sourcepub fn get_projected_utilization_metrics(
&self
) -> &Option<Vec<UtilizationMetric>>
pub fn get_projected_utilization_metrics( &self ) -> &Option<Vec<UtilizationMetric>>
An array of objects that describe the projected utilization metrics of the Auto Scaling group recommendation option.
The Cpu
and Memory
metrics are the only projected utilization metrics returned. Additionally, the Memory
metric is returned only for resources that have the unified CloudWatch agent installed on them. For more information, see Enabling Memory Utilization with the CloudWatch Agent.
sourcepub fn performance_risk(self, input: f64) -> Self
pub fn performance_risk(self, input: f64) -> Self
The performance risk of the Auto Scaling group configuration recommendation.
Performance risk indicates the likelihood of the recommended instance type not meeting the resource needs of your workload. Compute Optimizer calculates an individual performance risk score for each specification of the recommended instance, including CPU, memory, EBS throughput, EBS IOPS, disk throughput, disk IOPS, network throughput, and network PPS. The performance risk of the recommended instance is calculated as the maximum performance risk score across the analyzed resource specifications.
The value ranges from 0
- 4
, with 0
meaning that the recommended resource is predicted to always provide enough hardware capability. The higher the performance risk is, the more likely you should validate whether the recommendation will meet the performance requirements of your workload before migrating your resource.
sourcepub fn set_performance_risk(self, input: Option<f64>) -> Self
pub fn set_performance_risk(self, input: Option<f64>) -> Self
The performance risk of the Auto Scaling group configuration recommendation.
Performance risk indicates the likelihood of the recommended instance type not meeting the resource needs of your workload. Compute Optimizer calculates an individual performance risk score for each specification of the recommended instance, including CPU, memory, EBS throughput, EBS IOPS, disk throughput, disk IOPS, network throughput, and network PPS. The performance risk of the recommended instance is calculated as the maximum performance risk score across the analyzed resource specifications.
The value ranges from 0
- 4
, with 0
meaning that the recommended resource is predicted to always provide enough hardware capability. The higher the performance risk is, the more likely you should validate whether the recommendation will meet the performance requirements of your workload before migrating your resource.
sourcepub fn get_performance_risk(&self) -> &Option<f64>
pub fn get_performance_risk(&self) -> &Option<f64>
The performance risk of the Auto Scaling group configuration recommendation.
Performance risk indicates the likelihood of the recommended instance type not meeting the resource needs of your workload. Compute Optimizer calculates an individual performance risk score for each specification of the recommended instance, including CPU, memory, EBS throughput, EBS IOPS, disk throughput, disk IOPS, network throughput, and network PPS. The performance risk of the recommended instance is calculated as the maximum performance risk score across the analyzed resource specifications.
The value ranges from 0
- 4
, with 0
meaning that the recommended resource is predicted to always provide enough hardware capability. The higher the performance risk is, the more likely you should validate whether the recommendation will meet the performance requirements of your workload before migrating your resource.
sourcepub fn rank(self, input: i32) -> Self
pub fn rank(self, input: i32) -> Self
The rank of the Auto Scaling group recommendation option.
The top recommendation option is ranked as 1
.
sourcepub fn set_rank(self, input: Option<i32>) -> Self
pub fn set_rank(self, input: Option<i32>) -> Self
The rank of the Auto Scaling group recommendation option.
The top recommendation option is ranked as 1
.
sourcepub fn get_rank(&self) -> &Option<i32>
pub fn get_rank(&self) -> &Option<i32>
The rank of the Auto Scaling group recommendation option.
The top recommendation option is ranked as 1
.
sourcepub fn savings_opportunity(self, input: SavingsOpportunity) -> Self
pub fn savings_opportunity(self, input: SavingsOpportunity) -> Self
An object that describes the savings opportunity for the Auto Scaling group recommendation option. Savings opportunity includes the estimated monthly savings amount and percentage.
sourcepub fn set_savings_opportunity(self, input: Option<SavingsOpportunity>) -> Self
pub fn set_savings_opportunity(self, input: Option<SavingsOpportunity>) -> Self
An object that describes the savings opportunity for the Auto Scaling group recommendation option. Savings opportunity includes the estimated monthly savings amount and percentage.
sourcepub fn get_savings_opportunity(&self) -> &Option<SavingsOpportunity>
pub fn get_savings_opportunity(&self) -> &Option<SavingsOpportunity>
An object that describes the savings opportunity for the Auto Scaling group recommendation option. Savings opportunity includes the estimated monthly savings amount and percentage.
sourcepub fn migration_effort(self, input: MigrationEffort) -> Self
pub fn migration_effort(self, input: MigrationEffort) -> Self
The level of effort required to migrate from the current instance type to the recommended instance type.
For example, the migration effort is Low
if Amazon EMR is the inferred workload type and an Amazon Web Services Graviton instance type is recommended. The migration effort is Medium
if a workload type couldn't be inferred but an Amazon Web Services Graviton instance type is recommended. The migration effort is VeryLow
if both the current and recommended instance types are of the same CPU architecture.
sourcepub fn set_migration_effort(self, input: Option<MigrationEffort>) -> Self
pub fn set_migration_effort(self, input: Option<MigrationEffort>) -> Self
The level of effort required to migrate from the current instance type to the recommended instance type.
For example, the migration effort is Low
if Amazon EMR is the inferred workload type and an Amazon Web Services Graviton instance type is recommended. The migration effort is Medium
if a workload type couldn't be inferred but an Amazon Web Services Graviton instance type is recommended. The migration effort is VeryLow
if both the current and recommended instance types are of the same CPU architecture.
sourcepub fn get_migration_effort(&self) -> &Option<MigrationEffort>
pub fn get_migration_effort(&self) -> &Option<MigrationEffort>
The level of effort required to migrate from the current instance type to the recommended instance type.
For example, the migration effort is Low
if Amazon EMR is the inferred workload type and an Amazon Web Services Graviton instance type is recommended. The migration effort is Medium
if a workload type couldn't be inferred but an Amazon Web Services Graviton instance type is recommended. The migration effort is VeryLow
if both the current and recommended instance types are of the same CPU architecture.
sourcepub fn instance_gpu_info(self, input: GpuInfo) -> Self
pub fn instance_gpu_info(self, input: GpuInfo) -> Self
Describes the GPU accelerator settings for the recommended instance type of the Auto Scaling group.
sourcepub fn set_instance_gpu_info(self, input: Option<GpuInfo>) -> Self
pub fn set_instance_gpu_info(self, input: Option<GpuInfo>) -> Self
Describes the GPU accelerator settings for the recommended instance type of the Auto Scaling group.
sourcepub fn get_instance_gpu_info(&self) -> &Option<GpuInfo>
pub fn get_instance_gpu_info(&self) -> &Option<GpuInfo>
Describes the GPU accelerator settings for the recommended instance type of the Auto Scaling group.
sourcepub fn savings_opportunity_after_discounts(
self,
input: AutoScalingGroupSavingsOpportunityAfterDiscounts
) -> Self
pub fn savings_opportunity_after_discounts( self, input: AutoScalingGroupSavingsOpportunityAfterDiscounts ) -> Self
An object that describes the savings opportunity for the Auto Scaling group recommendation option that includes Savings Plans and Reserved Instances discounts. Savings opportunity includes the estimated monthly savings and percentage.
sourcepub fn set_savings_opportunity_after_discounts(
self,
input: Option<AutoScalingGroupSavingsOpportunityAfterDiscounts>
) -> Self
pub fn set_savings_opportunity_after_discounts( self, input: Option<AutoScalingGroupSavingsOpportunityAfterDiscounts> ) -> Self
An object that describes the savings opportunity for the Auto Scaling group recommendation option that includes Savings Plans and Reserved Instances discounts. Savings opportunity includes the estimated monthly savings and percentage.
sourcepub fn get_savings_opportunity_after_discounts(
&self
) -> &Option<AutoScalingGroupSavingsOpportunityAfterDiscounts>
pub fn get_savings_opportunity_after_discounts( &self ) -> &Option<AutoScalingGroupSavingsOpportunityAfterDiscounts>
An object that describes the savings opportunity for the Auto Scaling group recommendation option that includes Savings Plans and Reserved Instances discounts. Savings opportunity includes the estimated monthly savings and percentage.
sourcepub fn build(self) -> AutoScalingGroupRecommendationOption
pub fn build(self) -> AutoScalingGroupRecommendationOption
Consumes the builder and constructs a AutoScalingGroupRecommendationOption
.
Trait Implementations§
source§impl Clone for AutoScalingGroupRecommendationOptionBuilder
impl Clone for AutoScalingGroupRecommendationOptionBuilder
source§fn clone(&self) -> AutoScalingGroupRecommendationOptionBuilder
fn clone(&self) -> AutoScalingGroupRecommendationOptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AutoScalingGroupRecommendationOptionBuilder
impl Default for AutoScalingGroupRecommendationOptionBuilder
source§fn default() -> AutoScalingGroupRecommendationOptionBuilder
fn default() -> AutoScalingGroupRecommendationOptionBuilder
source§impl PartialEq for AutoScalingGroupRecommendationOptionBuilder
impl PartialEq for AutoScalingGroupRecommendationOptionBuilder
source§fn eq(&self, other: &AutoScalingGroupRecommendationOptionBuilder) -> bool
fn eq(&self, other: &AutoScalingGroupRecommendationOptionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AutoScalingGroupRecommendationOptionBuilder
Auto Trait Implementations§
impl Freeze for AutoScalingGroupRecommendationOptionBuilder
impl RefUnwindSafe for AutoScalingGroupRecommendationOptionBuilder
impl Send for AutoScalingGroupRecommendationOptionBuilder
impl Sync for AutoScalingGroupRecommendationOptionBuilder
impl Unpin for AutoScalingGroupRecommendationOptionBuilder
impl UnwindSafe for AutoScalingGroupRecommendationOptionBuilder
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