v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1421274230.6 KB

Returns Amazon ECS service recommendations.

Compute Optimizer generates recommendations for Amazon ECS services on Fargate that meet a specific set of requirements. For more information, see the Supported resources and requirements in the Compute Optimizer User Guide.

post/#X-Amz-Target=ComputeOptimizerService.GetECSServiceRecommendations

Headers

X-Amz-Target'ComputeOptimizerService.GetECSServiceRecommendations' required

Request body

serviceArnsServiceArn[]
<p> The ARN that identifies the Amazon ECS service. </p> <p> The following is the format of the ARN: </p> <p> <code>arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name</code> </p>
nextTokenstring

The token to advance to the next page of Amazon ECS service recommendations.

maxResultsinteger
<p> The maximum number of Amazon ECS service recommendations to return with a single request. </p> <p>To retrieve the remaining results, make another request with the returned <code>nextToken</code> value.</p>
accountIdsAccountId[]
<p> Return the Amazon ECS service recommendations to the specified Amazon Web Services account IDs. </p> <p>If your account is the management account or the delegated administrator of an organization, use this parameter to return the Amazon ECS service recommendations to specific member accounts.</p> <p>You can only specify one account ID per request.</p>

Response

Success

nextTokenstring

The token to advance to the next page of Amazon ECS service recommendations.