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 an origin request policy, including the following metadata:
- The policy’s identifier.
- The date and time when the policy was last modified.
To get an origin request policy, you must provide the policy’s
identifier. If the origin request policy is attached to a distribution’s
cache behavior, you can get the policy’s identifier using
ListDistributions
or GetDistribution
. If the origin request policy
is not attached to a cache behavior, you can get the identifier using
ListOriginRequestPolicies
.
Synopsis
- data GetOriginRequestPolicy = GetOriginRequestPolicy' {}
- newGetOriginRequestPolicy :: Text -> GetOriginRequestPolicy
- getOriginRequestPolicy_id :: Lens' GetOriginRequestPolicy Text
- data GetOriginRequestPolicyResponse = GetOriginRequestPolicyResponse' {}
- newGetOriginRequestPolicyResponse :: Int -> GetOriginRequestPolicyResponse
- getOriginRequestPolicyResponse_eTag :: Lens' GetOriginRequestPolicyResponse (Maybe Text)
- getOriginRequestPolicyResponse_originRequestPolicy :: Lens' GetOriginRequestPolicyResponse (Maybe OriginRequestPolicy)
- getOriginRequestPolicyResponse_httpStatus :: Lens' GetOriginRequestPolicyResponse Int
Creating a Request
data GetOriginRequestPolicy Source #
See: newGetOriginRequestPolicy
smart constructor.
GetOriginRequestPolicy' | |
|
Instances
newGetOriginRequestPolicy Source #
Create a value of GetOriginRequestPolicy
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:id:GetOriginRequestPolicy'
, getOriginRequestPolicy_id
- The unique identifier for the origin request policy. If the origin
request policy is attached to a distribution’s cache behavior, you can
get the policy’s identifier using ListDistributions
or
GetDistribution
. If the origin request policy is not attached to a
cache behavior, you can get the identifier using
ListOriginRequestPolicies
.
Request Lenses
getOriginRequestPolicy_id :: Lens' GetOriginRequestPolicy Text Source #
The unique identifier for the origin request policy. If the origin
request policy is attached to a distribution’s cache behavior, you can
get the policy’s identifier using ListDistributions
or
GetDistribution
. If the origin request policy is not attached to a
cache behavior, you can get the identifier using
ListOriginRequestPolicies
.
Destructuring the Response
data GetOriginRequestPolicyResponse Source #
See: newGetOriginRequestPolicyResponse
smart constructor.
GetOriginRequestPolicyResponse' | |
|
Instances
newGetOriginRequestPolicyResponse Source #
Create a value of GetOriginRequestPolicyResponse
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:eTag:GetOriginRequestPolicyResponse'
, getOriginRequestPolicyResponse_eTag
- The current version of the origin request policy.
$sel:originRequestPolicy:GetOriginRequestPolicyResponse'
, getOriginRequestPolicyResponse_originRequestPolicy
- The origin request policy.
$sel:httpStatus:GetOriginRequestPolicyResponse'
, getOriginRequestPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getOriginRequestPolicyResponse_eTag :: Lens' GetOriginRequestPolicyResponse (Maybe Text) Source #
The current version of the origin request policy.
getOriginRequestPolicyResponse_originRequestPolicy :: Lens' GetOriginRequestPolicyResponse (Maybe OriginRequestPolicy) Source #
The origin request policy.
getOriginRequestPolicyResponse_httpStatus :: Lens' GetOriginRequestPolicyResponse Int Source #
The response's http status code.