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 |
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_accountId :: Lens' ListRecommendations (Maybe Text)
- 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:
ListRecommendations
, listRecommendations_accountId
- The ID of the Amazon Web Services account.
$sel:locale:ListRecommendations'
, listRecommendations_locale
- A locale that specifies the language to use for recommendations.
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.
ListRecommendations
, listRecommendations_insightId
- The ID of the requested insight.
Request Lenses
listRecommendations_accountId :: Lens' ListRecommendations (Maybe Text) Source #
The ID of the Amazon Web Services account.
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:
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.