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 |
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_nextToken :: Lens' ListThingPrincipals (Maybe Text)
- listThingPrincipals_maxResults :: Lens' ListThingPrincipals (Maybe Natural)
- listThingPrincipals_thingName :: Lens' ListThingPrincipals Text
- data ListThingPrincipalsResponse = ListThingPrincipalsResponse' {
- principals :: Maybe [Text]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListThingPrincipalsResponse :: Int -> ListThingPrincipalsResponse
- listThingPrincipalsResponse_principals :: Lens' ListThingPrincipalsResponse (Maybe [Text])
- listThingPrincipalsResponse_nextToken :: 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.
Instances
newListThingPrincipals Source #
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:nextToken: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.
$sel:maxResults:ListThingPrincipals'
, listThingPrincipals_maxResults
- The maximum number of results to return in this operation.
$sel:thingName:ListThingPrincipals'
, listThingPrincipals_thingName
- The name of the thing.
Request Lenses
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_maxResults :: Lens' ListThingPrincipals (Maybe Natural) Source #
The maximum number of results to return in this operation.
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.
ListThingPrincipalsResponse' | |
|
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:
$sel:principals:ListThingPrincipalsResponse'
, listThingPrincipalsResponse_principals
- The principals associated with the thing.
$sel:nextToken:ListThingPrincipals'
, listThingPrincipalsResponse_nextToken
- The token to use to get the next set of results, or null if there
are no additional results.
$sel:httpStatus:ListThingPrincipalsResponse'
, listThingPrincipalsResponse_httpStatus
- The response's http status code.
Response Lenses
listThingPrincipalsResponse_principals :: Lens' ListThingPrincipalsResponse (Maybe [Text]) Source #
The principals associated with the thing.
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_httpStatus :: Lens' ListThingPrincipalsResponse Int Source #
The response's http status code.