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 |
Gets an origin request policy configuration.
To get an origin request policy configuration, 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 GetOriginRequestPolicyConfig = GetOriginRequestPolicyConfig' {}
- newGetOriginRequestPolicyConfig :: Text -> GetOriginRequestPolicyConfig
- getOriginRequestPolicyConfig_id :: Lens' GetOriginRequestPolicyConfig Text
- data GetOriginRequestPolicyConfigResponse = GetOriginRequestPolicyConfigResponse' {}
- newGetOriginRequestPolicyConfigResponse :: Int -> GetOriginRequestPolicyConfigResponse
- getOriginRequestPolicyConfigResponse_eTag :: Lens' GetOriginRequestPolicyConfigResponse (Maybe Text)
- getOriginRequestPolicyConfigResponse_originRequestPolicyConfig :: Lens' GetOriginRequestPolicyConfigResponse (Maybe OriginRequestPolicyConfig)
- getOriginRequestPolicyConfigResponse_httpStatus :: Lens' GetOriginRequestPolicyConfigResponse Int
Creating a Request
data GetOriginRequestPolicyConfig Source #
See: newGetOriginRequestPolicyConfig
smart constructor.
GetOriginRequestPolicyConfig' | |
|
Instances
newGetOriginRequestPolicyConfig Source #
Create a value of GetOriginRequestPolicyConfig
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:
GetOriginRequestPolicyConfig
, getOriginRequestPolicyConfig_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
getOriginRequestPolicyConfig_id :: Lens' GetOriginRequestPolicyConfig 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 GetOriginRequestPolicyConfigResponse Source #
See: newGetOriginRequestPolicyConfigResponse
smart constructor.
GetOriginRequestPolicyConfigResponse' | |
|
Instances
newGetOriginRequestPolicyConfigResponse Source #
Create a value of GetOriginRequestPolicyConfigResponse
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:GetOriginRequestPolicyConfigResponse'
, getOriginRequestPolicyConfigResponse_eTag
- The current version of the origin request policy.
GetOriginRequestPolicyConfigResponse
, getOriginRequestPolicyConfigResponse_originRequestPolicyConfig
- The origin request policy configuration.
$sel:httpStatus:GetOriginRequestPolicyConfigResponse'
, getOriginRequestPolicyConfigResponse_httpStatus
- The response's http status code.
Response Lenses
getOriginRequestPolicyConfigResponse_eTag :: Lens' GetOriginRequestPolicyConfigResponse (Maybe Text) Source #
The current version of the origin request policy.
getOriginRequestPolicyConfigResponse_originRequestPolicyConfig :: Lens' GetOriginRequestPolicyConfigResponse (Maybe OriginRequestPolicyConfig) Source #
The origin request policy configuration.
getOriginRequestPolicyConfigResponse_httpStatus :: Lens' GetOriginRequestPolicyConfigResponse Int Source #
The response's http status code.