| 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.IoT.ListPrincipalThings
Description
Lists the things associated with the specified principal. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.
Requires permission to access the ListPrincipalThings action.
This operation returns paginated results.
Synopsis
- data ListPrincipalThings = ListPrincipalThings' {}
- newListPrincipalThings :: Text -> ListPrincipalThings
- listPrincipalThings_maxResults :: Lens' ListPrincipalThings (Maybe Natural)
- listPrincipalThings_nextToken :: Lens' ListPrincipalThings (Maybe Text)
- listPrincipalThings_principal :: Lens' ListPrincipalThings Text
- data ListPrincipalThingsResponse = ListPrincipalThingsResponse' {}
- newListPrincipalThingsResponse :: Int -> ListPrincipalThingsResponse
- listPrincipalThingsResponse_nextToken :: Lens' ListPrincipalThingsResponse (Maybe Text)
- listPrincipalThingsResponse_things :: Lens' ListPrincipalThingsResponse (Maybe [Text])
- listPrincipalThingsResponse_httpStatus :: Lens' ListPrincipalThingsResponse Int
Creating a Request
data ListPrincipalThings Source #
The input for the ListPrincipalThings operation.
See: newListPrincipalThings smart constructor.
Constructors
| ListPrincipalThings' | |
Instances
newListPrincipalThings Source #
Arguments
| :: Text | |
| -> ListPrincipalThings |
Create a value of ListPrincipalThings 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:ListPrincipalThings', listPrincipalThings_maxResults - The maximum number of results to return in this operation.
ListPrincipalThings, listPrincipalThings_nextToken - To retrieve the next set of results, the nextToken value from a
previous response; otherwise null to receive the first set of
results.
$sel:principal:ListPrincipalThings', listPrincipalThings_principal - The principal.
Request Lenses
listPrincipalThings_maxResults :: Lens' ListPrincipalThings (Maybe Natural) Source #
The maximum number of results to return in this operation.
listPrincipalThings_nextToken :: Lens' ListPrincipalThings (Maybe Text) Source #
To retrieve the next set of results, the nextToken value from a
previous response; otherwise null to receive the first set of
results.
listPrincipalThings_principal :: Lens' ListPrincipalThings Text Source #
The principal.
Destructuring the Response
data ListPrincipalThingsResponse Source #
The output from the ListPrincipalThings operation.
See: newListPrincipalThingsResponse smart constructor.
Constructors
| ListPrincipalThingsResponse' | |
Instances
newListPrincipalThingsResponse Source #
Create a value of ListPrincipalThingsResponse 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:
ListPrincipalThings, listPrincipalThingsResponse_nextToken - The token to use to get the next set of results, or null if there
are no additional results.
$sel:things:ListPrincipalThingsResponse', listPrincipalThingsResponse_things - The things.
$sel:httpStatus:ListPrincipalThingsResponse', listPrincipalThingsResponse_httpStatus - The response's http status code.
Response Lenses
listPrincipalThingsResponse_nextToken :: Lens' ListPrincipalThingsResponse (Maybe Text) Source #
The token to use to get the next set of results, or null if there are no additional results.
listPrincipalThingsResponse_things :: Lens' ListPrincipalThingsResponse (Maybe [Text]) Source #
The things.
listPrincipalThingsResponse_httpStatus :: Lens' ListPrincipalThingsResponse Int Source #
The response's http status code.