pub struct Builder { /* private fields */ }
Expand description
A builder for EcsServiceRecommendation
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn service_arn(self, input: impl Into<String>) -> Self
pub fn service_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the current ECS service.
The following is the format of the ARN:
arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
sourcepub fn set_service_arn(self, input: Option<String>) -> Self
pub fn set_service_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the current ECS service.
The following is the format of the ARN:
arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID of the ECS service.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID of the ECS service.
sourcepub fn current_service_configuration(self, input: ServiceConfiguration) -> Self
pub fn current_service_configuration(self, input: ServiceConfiguration) -> Self
The configuration of the current ECS service.
sourcepub fn set_current_service_configuration(
self,
input: Option<ServiceConfiguration>
) -> Self
pub fn set_current_service_configuration(
self,
input: Option<ServiceConfiguration>
) -> Self
The configuration of the current ECS service.
sourcepub fn utilization_metrics(self, input: EcsServiceUtilizationMetric) -> Self
pub fn utilization_metrics(self, input: EcsServiceUtilizationMetric) -> Self
Appends an item to utilization_metrics
.
To override the contents of this collection use set_utilization_metrics
.
An array of objects that describe the utilization metrics of the ECS service.
sourcepub fn set_utilization_metrics(
self,
input: Option<Vec<EcsServiceUtilizationMetric>>
) -> Self
pub fn set_utilization_metrics(
self,
input: Option<Vec<EcsServiceUtilizationMetric>>
) -> Self
An array of objects that describe the utilization metrics of the ECS service.
sourcepub fn lookback_period_in_days(self, input: f64) -> Self
pub fn lookback_period_in_days(self, input: f64) -> Self
The number of days the ECS service utilization metrics were analyzed.
sourcepub fn set_lookback_period_in_days(self, input: Option<f64>) -> Self
pub fn set_lookback_period_in_days(self, input: Option<f64>) -> Self
The number of days the ECS service utilization metrics were analyzed.
sourcepub fn launch_type(self, input: EcsServiceLaunchType) -> Self
pub fn launch_type(self, input: EcsServiceLaunchType) -> Self
The launch type the ECS service is using.
Compute Optimizer only supports the Fargate launch type.
sourcepub fn set_launch_type(self, input: Option<EcsServiceLaunchType>) -> Self
pub fn set_launch_type(self, input: Option<EcsServiceLaunchType>) -> Self
The launch type the ECS service is using.
Compute Optimizer only supports the Fargate launch type.
sourcepub fn last_refresh_timestamp(self, input: DateTime) -> Self
pub fn last_refresh_timestamp(self, input: DateTime) -> Self
The timestamp of when the ECS service recommendation was last generated.
sourcepub fn set_last_refresh_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_last_refresh_timestamp(self, input: Option<DateTime>) -> Self
The timestamp of when the ECS service recommendation was last generated.
sourcepub fn finding(self, input: EcsServiceRecommendationFinding) -> Self
pub fn finding(self, input: EcsServiceRecommendationFinding) -> Self
The finding classification of an ECS service.
Findings for ECS services include:
-
Underprovisioned
— When Compute Optimizer detects that there’s not enough memory or CPU, an ECS service is considered under-provisioned. An under-provisioned ECS service might result in poor application performance. -
Overprovisioned
— When Compute Optimizer detects that there’s excessive memory or CPU, an ECS service is considered over-provisioned. An over-provisioned ECS service might result in additional infrastructure costs. -
Optimized
— When both the CPU and memory of your ECS service meet the performance requirements of your workload, the service is considered optimized.
sourcepub fn set_finding(self, input: Option<EcsServiceRecommendationFinding>) -> Self
pub fn set_finding(self, input: Option<EcsServiceRecommendationFinding>) -> Self
The finding classification of an ECS service.
Findings for ECS services include:
-
Underprovisioned
— When Compute Optimizer detects that there’s not enough memory or CPU, an ECS service is considered under-provisioned. An under-provisioned ECS service might result in poor application performance. -
Overprovisioned
— When Compute Optimizer detects that there’s excessive memory or CPU, an ECS service is considered over-provisioned. An over-provisioned ECS service might result in additional infrastructure costs. -
Optimized
— When both the CPU and memory of your ECS service meet the performance requirements of your workload, the service is considered optimized.
sourcepub fn finding_reason_codes(
self,
input: EcsServiceRecommendationFindingReasonCode
) -> Self
pub fn finding_reason_codes(
self,
input: EcsServiceRecommendationFindingReasonCode
) -> Self
Appends an item to finding_reason_codes
.
To override the contents of this collection use set_finding_reason_codes
.
The reason for the finding classification of an ECS service.
Finding reason codes for ECS services include:
-
CPUUnderprovisioned
— The ECS service CPU configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
CPUOverprovisioned
— The ECS service CPU configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
MemoryUnderprovisioned
— The ECS service memory configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period. -
MemoryOverprovisioned
— The ECS service memory configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period.
sourcepub fn set_finding_reason_codes(
self,
input: Option<Vec<EcsServiceRecommendationFindingReasonCode>>
) -> Self
pub fn set_finding_reason_codes(
self,
input: Option<Vec<EcsServiceRecommendationFindingReasonCode>>
) -> Self
The reason for the finding classification of an ECS service.
Finding reason codes for ECS services include:
-
CPUUnderprovisioned
— The ECS service CPU configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
CPUOverprovisioned
— The ECS service CPU configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theCPUUtilization
metric of the current service during the look-back period. -
MemoryUnderprovisioned
— The ECS service memory configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period. -
MemoryOverprovisioned
— The ECS service memory configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theMemoryUtilization
metric of the current service during the look-back period.
sourcepub fn service_recommendation_options(
self,
input: EcsServiceRecommendationOption
) -> Self
pub fn service_recommendation_options(
self,
input: EcsServiceRecommendationOption
) -> Self
Appends an item to service_recommendation_options
.
To override the contents of this collection use set_service_recommendation_options
.
An array of objects that describe the recommendation options for the ECS service.
sourcepub fn set_service_recommendation_options(
self,
input: Option<Vec<EcsServiceRecommendationOption>>
) -> Self
pub fn set_service_recommendation_options(
self,
input: Option<Vec<EcsServiceRecommendationOption>>
) -> Self
An array of objects that describe the recommendation options for the ECS service.
sourcepub fn current_performance_risk(self, input: CurrentPerformanceRisk) -> Self
pub fn current_performance_risk(self, input: CurrentPerformanceRisk) -> Self
The risk of the current ECS service not meeting the performance needs of its workloads. The higher the risk, the more likely the current service can't meet the performance requirements of its workload.
sourcepub fn set_current_performance_risk(
self,
input: Option<CurrentPerformanceRisk>
) -> Self
pub fn set_current_performance_risk(
self,
input: Option<CurrentPerformanceRisk>
) -> Self
The risk of the current ECS service not meeting the performance needs of its workloads. The higher the risk, the more likely the current service can't meet the performance requirements of its workload.
sourcepub fn build(self) -> EcsServiceRecommendation
pub fn build(self) -> EcsServiceRecommendation
Consumes the builder and constructs a EcsServiceRecommendation
.