Skip to content

GetECSServiceRecommendationsRequest

Source code in docs_src/capo_compute_optimizer/types/get_ecs_service_recommendations_request.py
class GetECSServiceRecommendationsRequest(TypedDict, closed=True):
    service_arns: NotRequired["capo_compute_optimizer.types.service_arns.ServiceArns"]
    """<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>"""
    next_token: NotRequired["capo_compute_optimizer.types.next_token.NextToken"]
    """<p> The token to advance to the next page of Amazon ECS service recommendations. </p>"""
    max_results: NotRequired["capo_compute_optimizer.types.max_results.MaxResults"]
    """<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>"""
    filters: NotRequired[
        "capo_compute_optimizer.types.ecs_service_recommendation_filters.ECSServiceRecommendationFilters"
    ]
    """<p> An array of objects to specify a filter that returns a more specific list of Amazon ECS service recommendations. </p>"""
    account_ids: NotRequired["capo_compute_optimizer.types.account_ids.AccountIds"]
    """<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>"""

account_ids instance-attribute

account_ids: NotRequired[AccountIds]

Return the Amazon ECS service recommendations to the specified Amazon Web Services account IDs.

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.

You can only specify one account ID per request.

filters instance-attribute

filters: NotRequired[ECSServiceRecommendationFilters]

An array of objects to specify a filter that returns a more specific list of Amazon ECS service recommendations.

max_results instance-attribute

max_results: NotRequired[MaxResults]

The maximum number of Amazon ECS service recommendations to return with a single request.

To retrieve the remaining results, make another request with the returned nextToken value.

next_token instance-attribute

next_token: NotRequired[NextToken]

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

service_arns instance-attribute

service_arns: NotRequired[ServiceArns]

The ARN that identifies the Amazon ECS service.

The following is the format of the ARN:

arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name