public static interface ECSServiceRecommendation.Builder extends SdkPojo, CopyableBuilder<ECSServiceRecommendation.Builder,ECSServiceRecommendation>
| Modifier and Type | Method and Description |
|---|---|
ECSServiceRecommendation.Builder |
accountId(String accountId)
The Amazon Web Services account ID of the Amazon ECS service.
|
ECSServiceRecommendation.Builder |
currentPerformanceRisk(CurrentPerformanceRisk currentPerformanceRisk)
The risk of the current Amazon ECS service not meeting the performance needs of its workloads.
|
ECSServiceRecommendation.Builder |
currentPerformanceRisk(String currentPerformanceRisk)
The risk of the current Amazon ECS service not meeting the performance needs of its workloads.
|
default ECSServiceRecommendation.Builder |
currentServiceConfiguration(Consumer<ServiceConfiguration.Builder> currentServiceConfiguration)
The configuration of the current Amazon ECS service.
|
ECSServiceRecommendation.Builder |
currentServiceConfiguration(ServiceConfiguration currentServiceConfiguration)
The configuration of the current Amazon ECS service.
|
ECSServiceRecommendation.Builder |
finding(ECSServiceRecommendationFinding finding)
The finding classification of an Amazon ECS service.
|
ECSServiceRecommendation.Builder |
finding(String finding)
The finding classification of an Amazon ECS service.
|
ECSServiceRecommendation.Builder |
findingReasonCodes(Collection<ECSServiceRecommendationFindingReasonCode> findingReasonCodes)
The reason for the finding classification of an Amazon ECS service.
|
ECSServiceRecommendation.Builder |
findingReasonCodes(ECSServiceRecommendationFindingReasonCode... findingReasonCodes)
The reason for the finding classification of an Amazon ECS service.
|
ECSServiceRecommendation.Builder |
findingReasonCodesWithStrings(Collection<String> findingReasonCodes)
The reason for the finding classification of an Amazon ECS service.
|
ECSServiceRecommendation.Builder |
findingReasonCodesWithStrings(String... findingReasonCodes)
The reason for the finding classification of an Amazon ECS service.
|
ECSServiceRecommendation.Builder |
lastRefreshTimestamp(Instant lastRefreshTimestamp)
The timestamp of when the Amazon ECS service recommendation was last generated.
|
ECSServiceRecommendation.Builder |
launchType(ECSServiceLaunchType launchType)
The launch type the Amazon ECS service is using.
|
ECSServiceRecommendation.Builder |
launchType(String launchType)
The launch type the Amazon ECS service is using.
|
ECSServiceRecommendation.Builder |
lookbackPeriodInDays(Double lookbackPeriodInDays)
The number of days the Amazon ECS service utilization metrics were analyzed.
|
ECSServiceRecommendation.Builder |
serviceArn(String serviceArn)
The Amazon Resource Name (ARN) of the current Amazon ECS service.
|
ECSServiceRecommendation.Builder |
serviceRecommendationOptions(Collection<ECSServiceRecommendationOption> serviceRecommendationOptions)
An array of objects that describe the recommendation options for the Amazon ECS service.
|
ECSServiceRecommendation.Builder |
serviceRecommendationOptions(Consumer<ECSServiceRecommendationOption.Builder>... serviceRecommendationOptions)
An array of objects that describe the recommendation options for the Amazon ECS service.
|
ECSServiceRecommendation.Builder |
serviceRecommendationOptions(ECSServiceRecommendationOption... serviceRecommendationOptions)
An array of objects that describe the recommendation options for the Amazon ECS service.
|
ECSServiceRecommendation.Builder |
tags(Collection<Tag> tags)
A list of tags assigned to your Amazon ECS service recommendations.
|
ECSServiceRecommendation.Builder |
tags(Consumer<Tag.Builder>... tags)
A list of tags assigned to your Amazon ECS service recommendations.
|
ECSServiceRecommendation.Builder |
tags(Tag... tags)
A list of tags assigned to your Amazon ECS service recommendations.
|
ECSServiceRecommendation.Builder |
utilizationMetrics(Collection<ECSServiceUtilizationMetric> utilizationMetrics)
An array of objects that describe the utilization metrics of the Amazon ECS service.
|
ECSServiceRecommendation.Builder |
utilizationMetrics(Consumer<ECSServiceUtilizationMetric.Builder>... utilizationMetrics)
An array of objects that describe the utilization metrics of the Amazon ECS service.
|
ECSServiceRecommendation.Builder |
utilizationMetrics(ECSServiceUtilizationMetric... utilizationMetrics)
An array of objects that describe the utilization metrics of the Amazon ECS service.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildECSServiceRecommendation.Builder serviceArn(String serviceArn)
The Amazon Resource Name (ARN) of the current Amazon ECS service.
The following is the format of the ARN:
arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
serviceArn - The Amazon Resource Name (ARN) of the current Amazon ECS service.
The following is the format of the ARN:
arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
ECSServiceRecommendation.Builder accountId(String accountId)
The Amazon Web Services account ID of the Amazon ECS service.
accountId - The Amazon Web Services account ID of the Amazon ECS service.ECSServiceRecommendation.Builder currentServiceConfiguration(ServiceConfiguration currentServiceConfiguration)
The configuration of the current Amazon ECS service.
currentServiceConfiguration - The configuration of the current Amazon ECS service.default ECSServiceRecommendation.Builder currentServiceConfiguration(Consumer<ServiceConfiguration.Builder> currentServiceConfiguration)
The configuration of the current Amazon ECS service.
This is a convenience method that creates an instance of theServiceConfiguration.Builder avoiding
the need to create one manually via ServiceConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to currentServiceConfiguration(ServiceConfiguration).
currentServiceConfiguration - a consumer that will call methods on ServiceConfiguration.BuildercurrentServiceConfiguration(ServiceConfiguration)ECSServiceRecommendation.Builder utilizationMetrics(Collection<ECSServiceUtilizationMetric> utilizationMetrics)
An array of objects that describe the utilization metrics of the Amazon ECS service.
utilizationMetrics - An array of objects that describe the utilization metrics of the Amazon ECS service.ECSServiceRecommendation.Builder utilizationMetrics(ECSServiceUtilizationMetric... utilizationMetrics)
An array of objects that describe the utilization metrics of the Amazon ECS service.
utilizationMetrics - An array of objects that describe the utilization metrics of the Amazon ECS service.ECSServiceRecommendation.Builder utilizationMetrics(Consumer<ECSServiceUtilizationMetric.Builder>... utilizationMetrics)
An array of objects that describe the utilization metrics of the Amazon ECS service.
This is a convenience method that creates an instance of theECSServiceUtilizationMetric.Builder avoiding
the need to create one manually via
ECSServiceUtilizationMetric.builder().
When the Consumer completes,
SdkBuilder.build() is
called immediately and its result is passed to #utilizationMetrics(List.
utilizationMetrics - a consumer that will call methods on
ECSServiceUtilizationMetric.Builder#utilizationMetrics(java.util.Collection) ECSServiceRecommendation.Builder lookbackPeriodInDays(Double lookbackPeriodInDays)
The number of days the Amazon ECS service utilization metrics were analyzed.
lookbackPeriodInDays - The number of days the Amazon ECS service utilization metrics were analyzed.ECSServiceRecommendation.Builder launchType(String launchType)
The launch type the Amazon ECS service is using.
Compute Optimizer only supports the Fargate launch type.
launchType - The launch type the Amazon ECS service is using. Compute Optimizer only supports the Fargate launch type.
ECSServiceLaunchType,
ECSServiceLaunchTypeECSServiceRecommendation.Builder launchType(ECSServiceLaunchType launchType)
The launch type the Amazon ECS service is using.
Compute Optimizer only supports the Fargate launch type.
launchType - The launch type the Amazon ECS service is using. Compute Optimizer only supports the Fargate launch type.
ECSServiceLaunchType,
ECSServiceLaunchTypeECSServiceRecommendation.Builder lastRefreshTimestamp(Instant lastRefreshTimestamp)
The timestamp of when the Amazon ECS service recommendation was last generated.
lastRefreshTimestamp - The timestamp of when the Amazon ECS service recommendation was last generated.ECSServiceRecommendation.Builder finding(String finding)
The finding classification of an Amazon ECS service.
Findings for Amazon ECS services include:
Underprovisioned — When Compute Optimizer detects that there’s not enough memory or
CPU, an Amazon ECS service is considered under-provisioned. An under-provisioned service might result in poor
application performance.
Overprovisioned — When Compute Optimizer detects that there’s excessive memory or CPU,
an Amazon ECS service is considered over-provisioned. An over-provisioned service might result in additional
infrastructure costs.
Optimized — When both the CPU and memory of your Amazon ECS service meet the
performance requirements of your workload, the service is considered optimized.
finding - The finding classification of an Amazon ECS service.
Findings for Amazon ECS services include:
Underprovisioned — When Compute Optimizer detects that there’s not enough memory
or CPU, an Amazon ECS service is considered under-provisioned. An under-provisioned service might
result in poor application performance.
Overprovisioned — When Compute Optimizer detects that there’s excessive memory
or CPU, an Amazon ECS service is considered over-provisioned. An over-provisioned service might result
in additional infrastructure costs.
Optimized — When both the CPU and memory of your Amazon ECS service meet the
performance requirements of your workload, the service is considered optimized.
ECSServiceRecommendationFinding,
ECSServiceRecommendationFindingECSServiceRecommendation.Builder finding(ECSServiceRecommendationFinding finding)
The finding classification of an Amazon ECS service.
Findings for Amazon ECS services include:
Underprovisioned — When Compute Optimizer detects that there’s not enough memory or
CPU, an Amazon ECS service is considered under-provisioned. An under-provisioned service might result in poor
application performance.
Overprovisioned — When Compute Optimizer detects that there’s excessive memory or CPU,
an Amazon ECS service is considered over-provisioned. An over-provisioned service might result in additional
infrastructure costs.
Optimized — When both the CPU and memory of your Amazon ECS service meet the
performance requirements of your workload, the service is considered optimized.
finding - The finding classification of an Amazon ECS service.
Findings for Amazon ECS services include:
Underprovisioned — When Compute Optimizer detects that there’s not enough memory
or CPU, an Amazon ECS service is considered under-provisioned. An under-provisioned service might
result in poor application performance.
Overprovisioned — When Compute Optimizer detects that there’s excessive memory
or CPU, an Amazon ECS service is considered over-provisioned. An over-provisioned service might result
in additional infrastructure costs.
Optimized — When both the CPU and memory of your Amazon ECS service meet the
performance requirements of your workload, the service is considered optimized.
ECSServiceRecommendationFinding,
ECSServiceRecommendationFindingECSServiceRecommendation.Builder findingReasonCodesWithStrings(Collection<String> findingReasonCodes)
The reason for the finding classification of an Amazon ECS service.
Finding reason codes for Amazon ECS services include:
CPUUnderprovisioned — The service CPU configuration can be sized up to enhance the
performance of your workload. This is identified by analyzing the CPUUtilization metric of the
current service during the look-back period.
CPUOverprovisioned — The service CPU configuration can be sized down while still
meeting the performance requirements of your workload. This is identified by analyzing the
CPUUtilization metric of the current service during the look-back period.
MemoryUnderprovisioned — The service memory configuration can be sized up to enhance
the performance of your workload. This is identified by analyzing the MemoryUtilization metric
of the current service during the look-back period.
MemoryOverprovisioned — The service memory configuration can be sized down while still
meeting the performance requirements of your workload. This is identified by analyzing the
MemoryUtilization metric of the current service during the look-back period.
findingReasonCodes - The reason for the finding classification of an Amazon ECS service.
Finding reason codes for Amazon ECS services include:
CPUUnderprovisioned — The service CPU configuration can be sized up to enhance
the performance of your workload. This is identified by analyzing the CPUUtilization
metric of the current service during the look-back period.
CPUOverprovisioned — The service CPU configuration can be sized down while still
meeting the performance requirements of your workload. This is identified by analyzing the
CPUUtilization metric of the current service during the look-back period.
MemoryUnderprovisioned — The service memory configuration can be sized up to
enhance the performance of your workload. This is identified by analyzing the
MemoryUtilization metric of the current service during the look-back period.
MemoryOverprovisioned — The service memory configuration can be sized down while
still meeting the performance requirements of your workload. This is identified by analyzing the
MemoryUtilization metric of the current service during the look-back period.
ECSServiceRecommendation.Builder findingReasonCodesWithStrings(String... findingReasonCodes)
The reason for the finding classification of an Amazon ECS service.
Finding reason codes for Amazon ECS services include:
CPUUnderprovisioned — The service CPU configuration can be sized up to enhance the
performance of your workload. This is identified by analyzing the CPUUtilization metric of the
current service during the look-back period.
CPUOverprovisioned — The service CPU configuration can be sized down while still
meeting the performance requirements of your workload. This is identified by analyzing the
CPUUtilization metric of the current service during the look-back period.
MemoryUnderprovisioned — The service memory configuration can be sized up to enhance
the performance of your workload. This is identified by analyzing the MemoryUtilization metric
of the current service during the look-back period.
MemoryOverprovisioned — The service memory configuration can be sized down while still
meeting the performance requirements of your workload. This is identified by analyzing the
MemoryUtilization metric of the current service during the look-back period.
findingReasonCodes - The reason for the finding classification of an Amazon ECS service.
Finding reason codes for Amazon ECS services include:
CPUUnderprovisioned — The service CPU configuration can be sized up to enhance
the performance of your workload. This is identified by analyzing the CPUUtilization
metric of the current service during the look-back period.
CPUOverprovisioned — The service CPU configuration can be sized down while still
meeting the performance requirements of your workload. This is identified by analyzing the
CPUUtilization metric of the current service during the look-back period.
MemoryUnderprovisioned — The service memory configuration can be sized up to
enhance the performance of your workload. This is identified by analyzing the
MemoryUtilization metric of the current service during the look-back period.
MemoryOverprovisioned — The service memory configuration can be sized down while
still meeting the performance requirements of your workload. This is identified by analyzing the
MemoryUtilization metric of the current service during the look-back period.
ECSServiceRecommendation.Builder findingReasonCodes(Collection<ECSServiceRecommendationFindingReasonCode> findingReasonCodes)
The reason for the finding classification of an Amazon ECS service.
Finding reason codes for Amazon ECS services include:
CPUUnderprovisioned — The service CPU configuration can be sized up to enhance the
performance of your workload. This is identified by analyzing the CPUUtilization metric of the
current service during the look-back period.
CPUOverprovisioned — The service CPU configuration can be sized down while still
meeting the performance requirements of your workload. This is identified by analyzing the
CPUUtilization metric of the current service during the look-back period.
MemoryUnderprovisioned — The service memory configuration can be sized up to enhance
the performance of your workload. This is identified by analyzing the MemoryUtilization metric
of the current service during the look-back period.
MemoryOverprovisioned — The service memory configuration can be sized down while still
meeting the performance requirements of your workload. This is identified by analyzing the
MemoryUtilization metric of the current service during the look-back period.
findingReasonCodes - The reason for the finding classification of an Amazon ECS service.
Finding reason codes for Amazon ECS services include:
CPUUnderprovisioned — The service CPU configuration can be sized up to enhance
the performance of your workload. This is identified by analyzing the CPUUtilization
metric of the current service during the look-back period.
CPUOverprovisioned — The service CPU configuration can be sized down while still
meeting the performance requirements of your workload. This is identified by analyzing the
CPUUtilization metric of the current service during the look-back period.
MemoryUnderprovisioned — The service memory configuration can be sized up to
enhance the performance of your workload. This is identified by analyzing the
MemoryUtilization metric of the current service during the look-back period.
MemoryOverprovisioned — The service memory configuration can be sized down while
still meeting the performance requirements of your workload. This is identified by analyzing the
MemoryUtilization metric of the current service during the look-back period.
ECSServiceRecommendation.Builder findingReasonCodes(ECSServiceRecommendationFindingReasonCode... findingReasonCodes)
The reason for the finding classification of an Amazon ECS service.
Finding reason codes for Amazon ECS services include:
CPUUnderprovisioned — The service CPU configuration can be sized up to enhance the
performance of your workload. This is identified by analyzing the CPUUtilization metric of the
current service during the look-back period.
CPUOverprovisioned — The service CPU configuration can be sized down while still
meeting the performance requirements of your workload. This is identified by analyzing the
CPUUtilization metric of the current service during the look-back period.
MemoryUnderprovisioned — The service memory configuration can be sized up to enhance
the performance of your workload. This is identified by analyzing the MemoryUtilization metric
of the current service during the look-back period.
MemoryOverprovisioned — The service memory configuration can be sized down while still
meeting the performance requirements of your workload. This is identified by analyzing the
MemoryUtilization metric of the current service during the look-back period.
findingReasonCodes - The reason for the finding classification of an Amazon ECS service.
Finding reason codes for Amazon ECS services include:
CPUUnderprovisioned — The service CPU configuration can be sized up to enhance
the performance of your workload. This is identified by analyzing the CPUUtilization
metric of the current service during the look-back period.
CPUOverprovisioned — The service CPU configuration can be sized down while still
meeting the performance requirements of your workload. This is identified by analyzing the
CPUUtilization metric of the current service during the look-back period.
MemoryUnderprovisioned — The service memory configuration can be sized up to
enhance the performance of your workload. This is identified by analyzing the
MemoryUtilization metric of the current service during the look-back period.
MemoryOverprovisioned — The service memory configuration can be sized down while
still meeting the performance requirements of your workload. This is identified by analyzing the
MemoryUtilization metric of the current service during the look-back period.
ECSServiceRecommendation.Builder serviceRecommendationOptions(Collection<ECSServiceRecommendationOption> serviceRecommendationOptions)
An array of objects that describe the recommendation options for the Amazon ECS service.
serviceRecommendationOptions - An array of objects that describe the recommendation options for the Amazon ECS service.ECSServiceRecommendation.Builder serviceRecommendationOptions(ECSServiceRecommendationOption... serviceRecommendationOptions)
An array of objects that describe the recommendation options for the Amazon ECS service.
serviceRecommendationOptions - An array of objects that describe the recommendation options for the Amazon ECS service.ECSServiceRecommendation.Builder serviceRecommendationOptions(Consumer<ECSServiceRecommendationOption.Builder>... serviceRecommendationOptions)
An array of objects that describe the recommendation options for the Amazon ECS service.
This is a convenience method that creates an instance of theECSServiceRecommendationOption.Builder
avoiding the need to create one manually via
ECSServiceRecommendationOption.builder().
When the Consumer completes,
SdkBuilder.build()
is called immediately and its result is passed to #serviceRecommendationOptions(List.
serviceRecommendationOptions - a consumer that will call methods on
ECSServiceRecommendationOption.Builder#serviceRecommendationOptions(java.util.Collection) ECSServiceRecommendation.Builder currentPerformanceRisk(String currentPerformanceRisk)
The risk of the current Amazon 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.
currentPerformanceRisk - The risk of the current Amazon 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.CurrentPerformanceRisk,
CurrentPerformanceRiskECSServiceRecommendation.Builder currentPerformanceRisk(CurrentPerformanceRisk currentPerformanceRisk)
The risk of the current Amazon 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.
currentPerformanceRisk - The risk of the current Amazon 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.CurrentPerformanceRisk,
CurrentPerformanceRiskECSServiceRecommendation.Builder tags(Collection<Tag> tags)
A list of tags assigned to your Amazon ECS service recommendations.
tags - A list of tags assigned to your Amazon ECS service recommendations.ECSServiceRecommendation.Builder tags(Tag... tags)
A list of tags assigned to your Amazon ECS service recommendations.
tags - A list of tags assigned to your Amazon ECS service recommendations.ECSServiceRecommendation.Builder tags(Consumer<Tag.Builder>... tags)
A list of tags assigned to your Amazon ECS service recommendations.
This is a convenience method that creates an instance of theTag.Builder avoiding the need to create one
manually via Tag.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #tags(List.
tags - a consumer that will call methods on
Tag.Builder#tags(java.util.Collection) Copyright © 2023. All rights reserved.