| Copyright | (c) 2013-2017 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 |
| Language | Haskell2010 |
Network.AWS.IoT.ListPolicyPrincipals
Description
Lists the principals associated with the specified policy.
This operation returns paginated results.
- listPolicyPrincipals :: Text -> ListPolicyPrincipals
- data ListPolicyPrincipals
- lMarker :: Lens' ListPolicyPrincipals (Maybe Text)
- lAscendingOrder :: Lens' ListPolicyPrincipals (Maybe Bool)
- lPageSize :: Lens' ListPolicyPrincipals (Maybe Natural)
- lPolicyName :: Lens' ListPolicyPrincipals Text
- listPolicyPrincipalsResponse :: Int -> ListPolicyPrincipalsResponse
- data ListPolicyPrincipalsResponse
- lrsPrincipals :: Lens' ListPolicyPrincipalsResponse [Text]
- lrsNextMarker :: Lens' ListPolicyPrincipalsResponse (Maybe Text)
- lrsResponseStatus :: Lens' ListPolicyPrincipalsResponse Int
Creating a Request
Arguments
| :: Text | |
| -> ListPolicyPrincipals |
Creates a value of ListPolicyPrincipals with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lMarker- The marker for the next set of results.lAscendingOrder- Specifies the order for results. If true, the results are returned in ascending creation order.lPageSize- The result page size.lPolicyName- The policy name.
data ListPolicyPrincipals Source #
The input for the ListPolicyPrincipals operation.
See: listPolicyPrincipals smart constructor.
Instances
Request Lenses
lAscendingOrder :: Lens' ListPolicyPrincipals (Maybe Bool) Source #
Specifies the order for results. If true, the results are returned in ascending creation order.
lPolicyName :: Lens' ListPolicyPrincipals Text Source #
The policy name.
Destructuring the Response
listPolicyPrincipalsResponse Source #
Arguments
| :: Int | |
| -> ListPolicyPrincipalsResponse |
Creates a value of ListPolicyPrincipalsResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lrsPrincipals- The descriptions of the principals.lrsNextMarker- The marker for the next set of results, or null if there are no additional results.lrsResponseStatus- -- | The response status code.
data ListPolicyPrincipalsResponse Source #
The output from the ListPolicyPrincipals operation.
See: listPolicyPrincipalsResponse smart constructor.
Instances
Response Lenses
lrsPrincipals :: Lens' ListPolicyPrincipalsResponse [Text] Source #
The descriptions of the principals.
lrsNextMarker :: Lens' ListPolicyPrincipalsResponse (Maybe Text) Source #
The marker for the next set of results, or null if there are no additional results.
lrsResponseStatus :: Lens' ListPolicyPrincipalsResponse Int Source #
- - | The response status code.