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 |
Retrieves a list of themes for a specified Amplify app and backend environment.
This operation returns paginated results.
Synopsis
- data ListThemes = ListThemes' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- appId :: Text
- environmentName :: Text
- newListThemes :: Text -> Text -> ListThemes
- listThemes_maxResults :: Lens' ListThemes (Maybe Natural)
- listThemes_nextToken :: Lens' ListThemes (Maybe Text)
- listThemes_appId :: Lens' ListThemes Text
- listThemes_environmentName :: Lens' ListThemes Text
- data ListThemesResponse = ListThemesResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- entities :: [ThemeSummary]
- newListThemesResponse :: Int -> ListThemesResponse
- listThemesResponse_nextToken :: Lens' ListThemesResponse (Maybe Text)
- listThemesResponse_httpStatus :: Lens' ListThemesResponse Int
- listThemesResponse_entities :: Lens' ListThemesResponse [ThemeSummary]
Creating a Request
data ListThemes Source #
See: newListThemes
smart constructor.
ListThemes' | |
|
Instances
Create a value of ListThemes
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:ListThemes'
, listThemes_maxResults
- The maximum number of theme results to return in the response.
ListThemes
, listThemes_nextToken
- The token to request the next page of results.
ListThemes
, listThemes_appId
- The unique ID for the Amplify app.
ListThemes
, listThemes_environmentName
- The name of the backend environment that is a part of the Amplify app.
Request Lenses
listThemes_maxResults :: Lens' ListThemes (Maybe Natural) Source #
The maximum number of theme results to return in the response.
listThemes_nextToken :: Lens' ListThemes (Maybe Text) Source #
The token to request the next page of results.
listThemes_appId :: Lens' ListThemes Text Source #
The unique ID for the Amplify app.
listThemes_environmentName :: Lens' ListThemes Text Source #
The name of the backend environment that is a part of the Amplify app.
Destructuring the Response
data ListThemesResponse Source #
See: newListThemesResponse
smart constructor.
ListThemesResponse' | |
|
Instances
newListThemesResponse Source #
Create a value of ListThemesResponse
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:
ListThemes
, listThemesResponse_nextToken
- The pagination token that's returned if more results are available.
$sel:httpStatus:ListThemesResponse'
, listThemesResponse_httpStatus
- The response's http status code.
$sel:entities:ListThemesResponse'
, listThemesResponse_entities
- The list of themes for the Amplify app.
Response Lenses
listThemesResponse_nextToken :: Lens' ListThemesResponse (Maybe Text) Source #
The pagination token that's returned if more results are available.
listThemesResponse_httpStatus :: Lens' ListThemesResponse Int Source #
The response's http status code.
listThemesResponse_entities :: Lens' ListThemesResponse [ThemeSummary] Source #
The list of themes for the Amplify app.