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 origin request 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 ListOriginRequestPolicies = ListOriginRequestPolicies' {}
- newListOriginRequestPolicies :: ListOriginRequestPolicies
- listOriginRequestPolicies_marker :: Lens' ListOriginRequestPolicies (Maybe Text)
- listOriginRequestPolicies_maxItems :: Lens' ListOriginRequestPolicies (Maybe Text)
- listOriginRequestPolicies_type :: Lens' ListOriginRequestPolicies (Maybe OriginRequestPolicyType)
- data ListOriginRequestPoliciesResponse = ListOriginRequestPoliciesResponse' {}
- newListOriginRequestPoliciesResponse :: Int -> ListOriginRequestPoliciesResponse
- listOriginRequestPoliciesResponse_originRequestPolicyList :: Lens' ListOriginRequestPoliciesResponse (Maybe OriginRequestPolicyList)
- listOriginRequestPoliciesResponse_httpStatus :: Lens' ListOriginRequestPoliciesResponse Int
Creating a Request
data ListOriginRequestPolicies Source #
See: newListOriginRequestPolicies
smart constructor.
ListOriginRequestPolicies' | |
|
Instances
newListOriginRequestPolicies :: ListOriginRequestPolicies Source #
Create a value of ListOriginRequestPolicies
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:ListOriginRequestPolicies'
, listOriginRequestPolicies_marker
- Use this field when paginating results to indicate where to begin in
your list of origin request policies. The response includes origin
request 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:ListOriginRequestPolicies'
, listOriginRequestPolicies_maxItems
- The maximum number of origin request policies that you want in the
response.
$sel:type':ListOriginRequestPolicies'
, listOriginRequestPolicies_type
- A filter to return only the specified kinds of origin request 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
listOriginRequestPolicies_marker :: Lens' ListOriginRequestPolicies (Maybe Text) Source #
Use this field when paginating results to indicate where to begin in
your list of origin request policies. The response includes origin
request 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.
listOriginRequestPolicies_maxItems :: Lens' ListOriginRequestPolicies (Maybe Text) Source #
The maximum number of origin request policies that you want in the response.
listOriginRequestPolicies_type :: Lens' ListOriginRequestPolicies (Maybe OriginRequestPolicyType) Source #
A filter to return only the specified kinds of origin request 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 ListOriginRequestPoliciesResponse Source #
See: newListOriginRequestPoliciesResponse
smart constructor.
ListOriginRequestPoliciesResponse' | |
|
Instances
Eq ListOriginRequestPoliciesResponse Source # | |
Read ListOriginRequestPoliciesResponse Source # | |
Show ListOriginRequestPoliciesResponse Source # | |
Generic ListOriginRequestPoliciesResponse Source # | |
NFData ListOriginRequestPoliciesResponse Source # | |
Defined in Amazonka.CloudFront.ListOriginRequestPolicies rnf :: ListOriginRequestPoliciesResponse -> () # | |
type Rep ListOriginRequestPoliciesResponse Source # | |
Defined in Amazonka.CloudFront.ListOriginRequestPolicies type Rep ListOriginRequestPoliciesResponse = D1 ('MetaData "ListOriginRequestPoliciesResponse" "Amazonka.CloudFront.ListOriginRequestPolicies" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "ListOriginRequestPoliciesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "originRequestPolicyList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OriginRequestPolicyList)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newListOriginRequestPoliciesResponse Source #
Create a value of ListOriginRequestPoliciesResponse
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:originRequestPolicyList:ListOriginRequestPoliciesResponse'
, listOriginRequestPoliciesResponse_originRequestPolicyList
- A list of origin request policies.
$sel:httpStatus:ListOriginRequestPoliciesResponse'
, listOriginRequestPoliciesResponse_httpStatus
- The response's http status code.
Response Lenses
listOriginRequestPoliciesResponse_originRequestPolicyList :: Lens' ListOriginRequestPoliciesResponse (Maybe OriginRequestPolicyList) Source #
A list of origin request policies.
listOriginRequestPoliciesResponse_httpStatus :: Lens' ListOriginRequestPoliciesResponse Int Source #
The response's http status code.