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 |
Retrieves the names of facets that exist in a schema.
This operation returns paginated results.
Synopsis
- data ListFacetNames = ListFacetNames' {}
- newListFacetNames :: Text -> ListFacetNames
- listFacetNames_nextToken :: Lens' ListFacetNames (Maybe Text)
- listFacetNames_maxResults :: Lens' ListFacetNames (Maybe Natural)
- listFacetNames_schemaArn :: Lens' ListFacetNames Text
- data ListFacetNamesResponse = ListFacetNamesResponse' {
- nextToken :: Maybe Text
- facetNames :: Maybe [Text]
- httpStatus :: Int
- newListFacetNamesResponse :: Int -> ListFacetNamesResponse
- listFacetNamesResponse_nextToken :: Lens' ListFacetNamesResponse (Maybe Text)
- listFacetNamesResponse_facetNames :: Lens' ListFacetNamesResponse (Maybe [Text])
- listFacetNamesResponse_httpStatus :: Lens' ListFacetNamesResponse Int
Creating a Request
data ListFacetNames Source #
See: newListFacetNames
smart constructor.
Instances
Create a value of ListFacetNames
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:ListFacetNames'
, listFacetNames_nextToken
- The pagination token.
$sel:maxResults:ListFacetNames'
, listFacetNames_maxResults
- The maximum number of results to retrieve.
$sel:schemaArn:ListFacetNames'
, listFacetNames_schemaArn
- The Amazon Resource Name (ARN) to retrieve facet names from.
Request Lenses
listFacetNames_nextToken :: Lens' ListFacetNames (Maybe Text) Source #
The pagination token.
listFacetNames_maxResults :: Lens' ListFacetNames (Maybe Natural) Source #
The maximum number of results to retrieve.
listFacetNames_schemaArn :: Lens' ListFacetNames Text Source #
The Amazon Resource Name (ARN) to retrieve facet names from.
Destructuring the Response
data ListFacetNamesResponse Source #
See: newListFacetNamesResponse
smart constructor.
ListFacetNamesResponse' | |
|
Instances
newListFacetNamesResponse Source #
Create a value of ListFacetNamesResponse
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:ListFacetNames'
, listFacetNamesResponse_nextToken
- The pagination token.
$sel:facetNames:ListFacetNamesResponse'
, listFacetNamesResponse_facetNames
- The names of facets that exist within the schema.
$sel:httpStatus:ListFacetNamesResponse'
, listFacetNamesResponse_httpStatus
- The response's http status code.
Response Lenses
listFacetNamesResponse_nextToken :: Lens' ListFacetNamesResponse (Maybe Text) Source #
The pagination token.
listFacetNamesResponse_facetNames :: Lens' ListFacetNamesResponse (Maybe [Text]) Source #
The names of facets that exist within the schema.
listFacetNamesResponse_httpStatus :: Lens' ListFacetNamesResponse Int Source #
The response's http status code.