| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.DevOpsGuru.ListRecommendations
Description
Returns a list of a specified insight's recommendations. Each recommendation includes a list of related metrics and a list of related events.
This operation returns paginated results.
Synopsis
- data ListRecommendations = ListRecommendations' {}
- newListRecommendations :: Text -> ListRecommendations
- listRecommendations_locale :: Lens' ListRecommendations (Maybe Locale)
- listRecommendations_nextToken :: Lens' ListRecommendations (Maybe Text)
- listRecommendations_insightId :: Lens' ListRecommendations Text
- data ListRecommendationsResponse = ListRecommendationsResponse' {}
- newListRecommendationsResponse :: Int -> ListRecommendationsResponse
- listRecommendationsResponse_nextToken :: Lens' ListRecommendationsResponse (Maybe Text)
- listRecommendationsResponse_recommendations :: Lens' ListRecommendationsResponse (Maybe [Recommendation])
- listRecommendationsResponse_httpStatus :: Lens' ListRecommendationsResponse Int
Creating a Request
data ListRecommendations Source #
See: newListRecommendations smart constructor.
Constructors
| ListRecommendations' | |
Fields | |
Instances
newListRecommendations Source #
Arguments
| :: Text | |
| -> ListRecommendations |
Create a value of ListRecommendations 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:locale:ListRecommendations', listRecommendations_locale - A locale that specifies the language to use for recommendations.
$sel:nextToken:ListRecommendations', listRecommendations_nextToken - The pagination token to use to retrieve the next page of results for
this operation. If this value is null, it retrieves the first page.
$sel:insightId:ListRecommendations', listRecommendations_insightId - The ID of the requested insight.
Request Lenses
listRecommendations_locale :: Lens' ListRecommendations (Maybe Locale) Source #
A locale that specifies the language to use for recommendations.
listRecommendations_nextToken :: Lens' ListRecommendations (Maybe Text) Source #
The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
listRecommendations_insightId :: Lens' ListRecommendations Text Source #
The ID of the requested insight.
Destructuring the Response
data ListRecommendationsResponse Source #
See: newListRecommendationsResponse smart constructor.
Constructors
| ListRecommendationsResponse' | |
Fields
| |
Instances
newListRecommendationsResponse Source #
Create a value of ListRecommendationsResponse 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:nextToken:ListRecommendations', listRecommendationsResponse_nextToken - The pagination token to use to retrieve the next page of results for
this operation. If there are no more pages, this value is null.
$sel:recommendations:ListRecommendationsResponse', listRecommendationsResponse_recommendations - An array of the requested recommendations.
$sel:httpStatus:ListRecommendationsResponse', listRecommendationsResponse_httpStatus - The response's http status code.
Response Lenses
listRecommendationsResponse_nextToken :: Lens' ListRecommendationsResponse (Maybe Text) Source #
The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
listRecommendationsResponse_recommendations :: Lens' ListRecommendationsResponse (Maybe [Recommendation]) Source #
An array of the requested recommendations.
listRecommendationsResponse_httpStatus :: Lens' ListRecommendationsResponse Int Source #
The response's http status code.