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 your policies.
Requires permission to access the ListPolicies action.
This operation returns paginated results.
Synopsis
- data ListPolicies = ListPolicies' {}
- newListPolicies :: ListPolicies
- listPolicies_marker :: Lens' ListPolicies (Maybe Text)
- listPolicies_ascendingOrder :: Lens' ListPolicies (Maybe Bool)
- listPolicies_pageSize :: Lens' ListPolicies (Maybe Natural)
- data ListPoliciesResponse = ListPoliciesResponse' {
- nextMarker :: Maybe Text
- policies :: Maybe [Policy]
- httpStatus :: Int
- newListPoliciesResponse :: Int -> ListPoliciesResponse
- listPoliciesResponse_nextMarker :: Lens' ListPoliciesResponse (Maybe Text)
- listPoliciesResponse_policies :: Lens' ListPoliciesResponse (Maybe [Policy])
- listPoliciesResponse_httpStatus :: Lens' ListPoliciesResponse Int
Creating a Request
data ListPolicies Source #
The input for the ListPolicies operation.
See: newListPolicies
smart constructor.
Instances
newListPolicies :: ListPolicies Source #
Create a value of ListPolicies
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:marker:ListPolicies'
, listPolicies_marker
- The marker for the next set of results.
$sel:ascendingOrder:ListPolicies'
, listPolicies_ascendingOrder
- Specifies the order for results. If true, the results are returned in
ascending creation order.
$sel:pageSize:ListPolicies'
, listPolicies_pageSize
- The result page size.
Request Lenses
listPolicies_marker :: Lens' ListPolicies (Maybe Text) Source #
The marker for the next set of results.
listPolicies_ascendingOrder :: Lens' ListPolicies (Maybe Bool) Source #
Specifies the order for results. If true, the results are returned in ascending creation order.
listPolicies_pageSize :: Lens' ListPolicies (Maybe Natural) Source #
The result page size.
Destructuring the Response
data ListPoliciesResponse Source #
The output from the ListPolicies operation.
See: newListPoliciesResponse
smart constructor.
ListPoliciesResponse' | |
|
Instances
newListPoliciesResponse Source #
Create a value of ListPoliciesResponse
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:nextMarker:ListPoliciesResponse'
, listPoliciesResponse_nextMarker
- The marker for the next set of results, or null if there are no
additional results.
$sel:policies:ListPoliciesResponse'
, listPoliciesResponse_policies
- The descriptions of the policies.
$sel:httpStatus:ListPoliciesResponse'
, listPoliciesResponse_httpStatus
- The response's http status code.
Response Lenses
listPoliciesResponse_nextMarker :: Lens' ListPoliciesResponse (Maybe Text) Source #
The marker for the next set of results, or null if there are no additional results.
listPoliciesResponse_policies :: Lens' ListPoliciesResponse (Maybe [Policy]) Source #
The descriptions of the policies.
listPoliciesResponse_httpStatus :: Lens' ListPoliciesResponse Int Source #
The response's http status code.