Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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.
Synopsis
- data GetECSServiceRecommendations = GetECSServiceRecommendations' {
- accountIds :: Maybe [Text]
- filters :: Maybe [ECSServiceRecommendationFilter]
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- serviceArns :: Maybe [Text]
- newGetECSServiceRecommendations :: GetECSServiceRecommendations
- getECSServiceRecommendations_accountIds :: Lens' GetECSServiceRecommendations (Maybe [Text])
- getECSServiceRecommendations_filters :: Lens' GetECSServiceRecommendations (Maybe [ECSServiceRecommendationFilter])
- getECSServiceRecommendations_maxResults :: Lens' GetECSServiceRecommendations (Maybe Natural)
- getECSServiceRecommendations_nextToken :: Lens' GetECSServiceRecommendations (Maybe Text)
- getECSServiceRecommendations_serviceArns :: Lens' GetECSServiceRecommendations (Maybe [Text])
- data GetECSServiceRecommendationsResponse = GetECSServiceRecommendationsResponse' {}
- newGetECSServiceRecommendationsResponse :: Int -> GetECSServiceRecommendationsResponse
- getECSServiceRecommendationsResponse_ecsServiceRecommendations :: Lens' GetECSServiceRecommendationsResponse (Maybe [ECSServiceRecommendation])
- getECSServiceRecommendationsResponse_errors :: Lens' GetECSServiceRecommendationsResponse (Maybe [GetRecommendationError])
- getECSServiceRecommendationsResponse_nextToken :: Lens' GetECSServiceRecommendationsResponse (Maybe Text)
- getECSServiceRecommendationsResponse_httpStatus :: Lens' GetECSServiceRecommendationsResponse Int
Creating a Request
data GetECSServiceRecommendations Source #
See: newGetECSServiceRecommendations
smart constructor.
GetECSServiceRecommendations' | |
|
Instances
newGetECSServiceRecommendations :: GetECSServiceRecommendations Source #
Create a value of GetECSServiceRecommendations
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:accountIds:GetECSServiceRecommendations'
, getECSServiceRecommendations_accountIds
- Return the 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 ECS service recommendations to specific member accounts.
You can only specify one account ID per request.
$sel:filters:GetECSServiceRecommendations'
, getECSServiceRecommendations_filters
- An array of objects to specify a filter that returns a more specific
list of ECS service recommendations.
$sel:maxResults:GetECSServiceRecommendations'
, getECSServiceRecommendations_maxResults
- The maximum number of ECS service recommendations to return with a
single request.
To retrieve the remaining results, make another request with the
returned nextToken
value.
GetECSServiceRecommendations
, getECSServiceRecommendations_nextToken
- The token to advance to the next page of ECS service recommendations.
$sel:serviceArns:GetECSServiceRecommendations'
, getECSServiceRecommendations_serviceArns
- The ARN that identifies the ECS service.
The following is the format of the ARN:
arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
Request Lenses
getECSServiceRecommendations_accountIds :: Lens' GetECSServiceRecommendations (Maybe [Text]) Source #
Return the 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 ECS service recommendations to specific member accounts.
You can only specify one account ID per request.
getECSServiceRecommendations_filters :: Lens' GetECSServiceRecommendations (Maybe [ECSServiceRecommendationFilter]) Source #
An array of objects to specify a filter that returns a more specific list of ECS service recommendations.
getECSServiceRecommendations_maxResults :: Lens' GetECSServiceRecommendations (Maybe Natural) Source #
The maximum number of ECS service recommendations to return with a single request.
To retrieve the remaining results, make another request with the
returned nextToken
value.
getECSServiceRecommendations_nextToken :: Lens' GetECSServiceRecommendations (Maybe Text) Source #
The token to advance to the next page of ECS service recommendations.
getECSServiceRecommendations_serviceArns :: Lens' GetECSServiceRecommendations (Maybe [Text]) Source #
The ARN that identifies the ECS service.
The following is the format of the ARN:
arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
Destructuring the Response
data GetECSServiceRecommendationsResponse Source #
See: newGetECSServiceRecommendationsResponse
smart constructor.
GetECSServiceRecommendationsResponse' | |
|
Instances
newGetECSServiceRecommendationsResponse Source #
Create a value of GetECSServiceRecommendationsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:ecsServiceRecommendations:GetECSServiceRecommendationsResponse'
, getECSServiceRecommendationsResponse_ecsServiceRecommendations
- An array of objects that describe the ECS service recommendations.
$sel:errors:GetECSServiceRecommendationsResponse'
, getECSServiceRecommendationsResponse_errors
- An array of objects that describe errors of the request.
GetECSServiceRecommendations
, getECSServiceRecommendationsResponse_nextToken
- The token to advance to the next page of ECS service recommendations.
$sel:httpStatus:GetECSServiceRecommendationsResponse'
, getECSServiceRecommendationsResponse_httpStatus
- The response's http status code.
Response Lenses
getECSServiceRecommendationsResponse_ecsServiceRecommendations :: Lens' GetECSServiceRecommendationsResponse (Maybe [ECSServiceRecommendation]) Source #
An array of objects that describe the ECS service recommendations.
getECSServiceRecommendationsResponse_errors :: Lens' GetECSServiceRecommendationsResponse (Maybe [GetRecommendationError]) Source #
An array of objects that describe errors of the request.
getECSServiceRecommendationsResponse_nextToken :: Lens' GetECSServiceRecommendationsResponse (Maybe Text) Source #
The token to advance to the next page of ECS service recommendations.
getECSServiceRecommendationsResponse_httpStatus :: Lens' GetECSServiceRecommendationsResponse Int Source #
The response's http status code.