| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CloudFront.GetOriginRequestPolicy
Description
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.
Constructors
| GetOriginRequestPolicy' | |
Fields
| |
Instances
newGetOriginRequestPolicy Source #
Arguments
| :: Text | |
| -> GetOriginRequestPolicy |
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:
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.
Constructors
| GetOriginRequestPolicyResponse' | |
Fields
| |
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.
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.