| 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.GreengrassV2.ListComponents
Description
Retrieves a paginated list of component summaries. This list includes components that you have permission to view.
This operation returns paginated results.
Synopsis
- data ListComponents = ListComponents' {}
- newListComponents :: ListComponents
- listComponents_maxResults :: Lens' ListComponents (Maybe Natural)
- listComponents_nextToken :: Lens' ListComponents (Maybe Text)
- listComponents_scope :: Lens' ListComponents (Maybe ComponentVisibilityScope)
- data ListComponentsResponse = ListComponentsResponse' {
- components :: Maybe [Component]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListComponentsResponse :: Int -> ListComponentsResponse
- listComponentsResponse_components :: Lens' ListComponentsResponse (Maybe [Component])
- listComponentsResponse_nextToken :: Lens' ListComponentsResponse (Maybe Text)
- listComponentsResponse_httpStatus :: Lens' ListComponentsResponse Int
Creating a Request
data ListComponents Source #
See: newListComponents smart constructor.
Constructors
| ListComponents' | |
Fields
| |
Instances
newListComponents :: ListComponents Source #
Create a value of ListComponents 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:ListComponents', listComponents_maxResults - The maximum number of results to be returned per paginated request.
ListComponents, listComponents_nextToken - The token to be used for the next set of paginated results.
$sel:scope:ListComponents', listComponents_scope - The scope of the components to list.
Default: PRIVATE
Request Lenses
listComponents_maxResults :: Lens' ListComponents (Maybe Natural) Source #
The maximum number of results to be returned per paginated request.
listComponents_nextToken :: Lens' ListComponents (Maybe Text) Source #
The token to be used for the next set of paginated results.
listComponents_scope :: Lens' ListComponents (Maybe ComponentVisibilityScope) Source #
The scope of the components to list.
Default: PRIVATE
Destructuring the Response
data ListComponentsResponse Source #
See: newListComponentsResponse smart constructor.
Constructors
| ListComponentsResponse' | |
Fields
| |
Instances
newListComponentsResponse Source #
Create a value of ListComponentsResponse 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:components:ListComponentsResponse', listComponentsResponse_components - A list that summarizes each component.
ListComponents, listComponentsResponse_nextToken - The token for the next set of results, or null if there are no
additional results.
$sel:httpStatus:ListComponentsResponse', listComponentsResponse_httpStatus - The response's http status code.
Response Lenses
listComponentsResponse_components :: Lens' ListComponentsResponse (Maybe [Component]) Source #
A list that summarizes each component.
listComponentsResponse_nextToken :: Lens' ListComponentsResponse (Maybe Text) Source #
The token for the next set of results, or null if there are no additional results.
listComponentsResponse_httpStatus :: Lens' ListComponentsResponse Int Source #
The response's http status code.