| Copyright | (c) 2013-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.IoT.ListPrincipalPolicies
Description
Lists the policies attached to the specified principal. If you use an Cognito identity, the ID must be in AmazonCognito Identity format.
- listPrincipalPolicies :: Text -> ListPrincipalPolicies
- data ListPrincipalPolicies
- lppMarker :: Lens' ListPrincipalPolicies (Maybe Text)
- lppAscendingOrder :: Lens' ListPrincipalPolicies (Maybe Bool)
- lppPageSize :: Lens' ListPrincipalPolicies (Maybe Natural)
- lppPrincipal :: Lens' ListPrincipalPolicies Text
- listPrincipalPoliciesResponse :: Int -> ListPrincipalPoliciesResponse
- data ListPrincipalPoliciesResponse
- lpprsNextMarker :: Lens' ListPrincipalPoliciesResponse (Maybe Text)
- lpprsPolicies :: Lens' ListPrincipalPoliciesResponse [Policy]
- lpprsResponseStatus :: Lens' ListPrincipalPoliciesResponse Int
Creating a Request
Arguments
| :: Text | |
| -> ListPrincipalPolicies |
Creates a value of ListPrincipalPolicies with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ListPrincipalPolicies Source
The input for the ListPrincipalPolicies operation.
See: listPrincipalPolicies smart constructor.
Instances
Request Lenses
lppAscendingOrder :: Lens' ListPrincipalPolicies (Maybe Bool) Source
Specifies the order for results. If true, results are returned in ascending creation order.
lppPageSize :: Lens' ListPrincipalPolicies (Maybe Natural) Source
The result page size.
lppPrincipal :: Lens' ListPrincipalPolicies Text Source
The principal.
Destructuring the Response
listPrincipalPoliciesResponse Source
Arguments
| :: Int | |
| -> ListPrincipalPoliciesResponse |
Creates a value of ListPrincipalPoliciesResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ListPrincipalPoliciesResponse Source
The output from the ListPrincipalPolicies operation.
See: listPrincipalPoliciesResponse smart constructor.
Response Lenses
lpprsNextMarker :: Lens' ListPrincipalPoliciesResponse (Maybe Text) Source
The marker for the next set of results, or null if there are no additional results.
lpprsPolicies :: Lens' ListPrincipalPoliciesResponse [Policy] Source
The policies.
lpprsResponseStatus :: Lens' ListPrincipalPoliciesResponse Int Source
The response status code.