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 |
List the environments for an application.
Synopsis
- data ListEnvironments = ListEnvironments' {}
- newListEnvironments :: Text -> ListEnvironments
- listEnvironments_nextToken :: Lens' ListEnvironments (Maybe Text)
- listEnvironments_maxResults :: Lens' ListEnvironments (Maybe Natural)
- listEnvironments_applicationId :: Lens' ListEnvironments Text
- data ListEnvironmentsResponse = ListEnvironmentsResponse' {
- items :: Maybe [Environment]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListEnvironmentsResponse :: Int -> ListEnvironmentsResponse
- listEnvironmentsResponse_items :: Lens' ListEnvironmentsResponse (Maybe [Environment])
- listEnvironmentsResponse_nextToken :: Lens' ListEnvironmentsResponse (Maybe Text)
- listEnvironmentsResponse_httpStatus :: Lens' ListEnvironmentsResponse Int
Creating a Request
data ListEnvironments Source #
See: newListEnvironments
smart constructor.
ListEnvironments' | |
|
Instances
Create a value of ListEnvironments
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:ListEnvironments'
, listEnvironments_nextToken
- A token to start the list. Use this token to get the next set of
results.
$sel:maxResults:ListEnvironments'
, listEnvironments_maxResults
- The maximum number of items to return for this call. The call also
returns a token that you can specify in a subsequent call to get the
next set of results.
$sel:applicationId:ListEnvironments'
, listEnvironments_applicationId
- The application ID.
Request Lenses
listEnvironments_nextToken :: Lens' ListEnvironments (Maybe Text) Source #
A token to start the list. Use this token to get the next set of results.
listEnvironments_maxResults :: Lens' ListEnvironments (Maybe Natural) Source #
The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
listEnvironments_applicationId :: Lens' ListEnvironments Text Source #
The application ID.
Destructuring the Response
data ListEnvironmentsResponse Source #
See: newListEnvironmentsResponse
smart constructor.
ListEnvironmentsResponse' | |
|
Instances
newListEnvironmentsResponse Source #
Create a value of ListEnvironmentsResponse
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:items:ListEnvironmentsResponse'
, listEnvironmentsResponse_items
- The elements from this collection.
$sel:nextToken:ListEnvironments'
, listEnvironmentsResponse_nextToken
- The token for the next set of items to return. Use this token to get the
next set of results.
$sel:httpStatus:ListEnvironmentsResponse'
, listEnvironmentsResponse_httpStatus
- The response's http status code.
Response Lenses
listEnvironmentsResponse_items :: Lens' ListEnvironmentsResponse (Maybe [Environment]) Source #
The elements from this collection.
listEnvironmentsResponse_nextToken :: Lens' ListEnvironmentsResponse (Maybe Text) Source #
The token for the next set of items to return. Use this token to get the next set of results.
listEnvironmentsResponse_httpStatus :: Lens' ListEnvironmentsResponse Int Source #
The response's http status code.