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 |
Gets a list of cache policies.
You can optionally apply a filter to return only the managed policies created by Amazon Web Services, or only the custom policies created in your account.
You can optionally specify the maximum number of items to receive in the
response. If the total number of items in the list exceeds the maximum
that you specify, or the default maximum, the response is paginated. To
get the next page of items, send a subsequent request that specifies the
NextMarker
value from the current response as the Marker
value in
the subsequent request.
Synopsis
- data ListCachePolicies = ListCachePolicies' {}
- newListCachePolicies :: ListCachePolicies
- listCachePolicies_marker :: Lens' ListCachePolicies (Maybe Text)
- listCachePolicies_maxItems :: Lens' ListCachePolicies (Maybe Text)
- listCachePolicies_type :: Lens' ListCachePolicies (Maybe CachePolicyType)
- data ListCachePoliciesResponse = ListCachePoliciesResponse' {}
- newListCachePoliciesResponse :: Int -> ListCachePoliciesResponse
- listCachePoliciesResponse_cachePolicyList :: Lens' ListCachePoliciesResponse (Maybe CachePolicyList)
- listCachePoliciesResponse_httpStatus :: Lens' ListCachePoliciesResponse Int
Creating a Request
data ListCachePolicies Source #
See: newListCachePolicies
smart constructor.
ListCachePolicies' | |
|
Instances
newListCachePolicies :: ListCachePolicies Source #
Create a value of ListCachePolicies
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:ListCachePolicies'
, listCachePolicies_marker
- Use this field when paginating results to indicate where to begin in
your list of cache policies. The response includes cache policies in the
list that occur after the marker. To get the next page of the list, set
this field’s value to the value of NextMarker
from the current page’s
response.
$sel:maxItems:ListCachePolicies'
, listCachePolicies_maxItems
- The maximum number of cache policies that you want in the response.
$sel:type':ListCachePolicies'
, listCachePolicies_type
- A filter to return only the specified kinds of cache policies. Valid
values are:
managed
– Returns only the managed policies created by Amazon Web Services.custom
– Returns only the custom policies created in your account.
Request Lenses
listCachePolicies_marker :: Lens' ListCachePolicies (Maybe Text) Source #
Use this field when paginating results to indicate where to begin in
your list of cache policies. The response includes cache policies in the
list that occur after the marker. To get the next page of the list, set
this field’s value to the value of NextMarker
from the current page’s
response.
listCachePolicies_maxItems :: Lens' ListCachePolicies (Maybe Text) Source #
The maximum number of cache policies that you want in the response.
listCachePolicies_type :: Lens' ListCachePolicies (Maybe CachePolicyType) Source #
A filter to return only the specified kinds of cache policies. Valid values are:
managed
– Returns only the managed policies created by Amazon Web Services.custom
– Returns only the custom policies created in your account.
Destructuring the Response
data ListCachePoliciesResponse Source #
See: newListCachePoliciesResponse
smart constructor.
ListCachePoliciesResponse' | |
|
Instances
newListCachePoliciesResponse Source #
Create a value of ListCachePoliciesResponse
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:cachePolicyList:ListCachePoliciesResponse'
, listCachePoliciesResponse_cachePolicyList
- A list of cache policies.
$sel:httpStatus:ListCachePoliciesResponse'
, listCachePoliciesResponse_httpStatus
- The response's http status code.
Response Lenses
listCachePoliciesResponse_cachePolicyList :: Lens' ListCachePoliciesResponse (Maybe CachePolicyList) Source #
A list of cache policies.
listCachePoliciesResponse_httpStatus :: Lens' ListCachePoliciesResponse Int Source #
The response's http status code.