| 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.AppConfig.ListEnvironments
Description
Lists the environments for an application.
Synopsis
- data ListEnvironments = ListEnvironments' {}
 - newListEnvironments :: Text -> ListEnvironments
 - listEnvironments_maxResults :: Lens' ListEnvironments (Maybe Natural)
 - listEnvironments_nextToken :: Lens' ListEnvironments (Maybe Text)
 - 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.
Constructors
| ListEnvironments' | |
Fields 
  | |
Instances
Arguments
| :: Text | |
| -> ListEnvironments | 
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: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.
ListEnvironments, listEnvironments_nextToken - A token to start the list. Use this token to get the next set of
 results.
ListEnvironments, listEnvironments_applicationId - The application ID.
Request Lenses
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_nextToken :: Lens' ListEnvironments (Maybe Text) Source #
A token to start the list. Use this token 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.
Constructors
| ListEnvironmentsResponse' | |
Fields 
  | |
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.
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.