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 |
Lists trails that are in the current account.
This operation returns paginated results.
Synopsis
- data ListTrails = ListTrails' {}
- newListTrails :: ListTrails
- listTrails_nextToken :: Lens' ListTrails (Maybe Text)
- data ListTrailsResponse = ListTrailsResponse' {}
- newListTrailsResponse :: Int -> ListTrailsResponse
- listTrailsResponse_nextToken :: Lens' ListTrailsResponse (Maybe Text)
- listTrailsResponse_trails :: Lens' ListTrailsResponse (Maybe [TrailInfo])
- listTrailsResponse_httpStatus :: Lens' ListTrailsResponse Int
Creating a Request
data ListTrails Source #
See: newListTrails
smart constructor.
ListTrails' | |
|
Instances
newListTrails :: ListTrails Source #
Create a value of ListTrails
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:ListTrails'
, listTrails_nextToken
- The token to use to get the next page of results after a previous API
call. This token must be passed in with the same parameters that were
specified in the the original call. For example, if the original call
specified an AttributeKey of 'Username' with a value of 'root', the
call with NextToken should include those same parameters.
Request Lenses
listTrails_nextToken :: Lens' ListTrails (Maybe Text) Source #
The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the the original call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.
Destructuring the Response
data ListTrailsResponse Source #
See: newListTrailsResponse
smart constructor.
ListTrailsResponse' | |
|
Instances
newListTrailsResponse Source #
Create a value of ListTrailsResponse
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:ListTrails'
, listTrailsResponse_nextToken
- The token to use to get the next page of results after a previous API
call. If the token does not appear, there are no more results to return.
The token must be passed in with the same parameters as the previous
call. For example, if the original call specified an AttributeKey of
'Username' with a value of 'root', the call with NextToken should
include those same parameters.
$sel:trails:ListTrailsResponse'
, listTrailsResponse_trails
- Returns the name, ARN, and home region of trails in the current account.
$sel:httpStatus:ListTrailsResponse'
, listTrailsResponse_httpStatus
- The response's http status code.
Response Lenses
listTrailsResponse_nextToken :: Lens' ListTrailsResponse (Maybe Text) Source #
The token to use to get the next page of results after a previous API call. If the token does not appear, there are no more results to return. The token must be passed in with the same parameters as the previous call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.
listTrailsResponse_trails :: Lens' ListTrailsResponse (Maybe [TrailInfo]) Source #
Returns the name, ARN, and home region of trails in the current account.
listTrailsResponse_httpStatus :: Lens' ListTrailsResponse Int Source #
The response's http status code.