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