| 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.ListPrincipalPolicies
Description
Lists the policies attached to the specified principal. If you use an Cognito identity, the ID must be in AmazonCognito Identity format .
This operation returns paginated results.
- 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
listPrincipalPolicies Source #
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:
lppMarker- The marker for the next set of results.lppAscendingOrder- Specifies the order for results. If true, results are returned in ascending creation order.lppPageSize- The result page size.lppPrincipal- The principal.
data ListPrincipalPolicies Source #
The input for the ListPrincipalPolicies operation.
See: listPrincipalPolicies smart constructor.
Instances
Request Lenses
lppMarker :: Lens' ListPrincipalPolicies (Maybe Text) Source #
The marker for the next set of results.
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:
lpprsNextMarker- The marker for the next set of results, or null if there are no additional results.lpprsPolicies- The policies.lpprsResponseStatus- -- | The response status code.
data ListPrincipalPoliciesResponse Source #
The output from the ListPrincipalPolicies operation.
See: listPrincipalPoliciesResponse smart constructor.
Instances
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.