libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data GetOriginRequestPolicy Source #

See: newGetOriginRequestPolicy smart constructor.

Constructors

GetOriginRequestPolicy' 

Fields

  • id :: Text

    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.

Instances

Instances details
Eq GetOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetOriginRequestPolicy

Read GetOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetOriginRequestPolicy

Show GetOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetOriginRequestPolicy

Generic GetOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetOriginRequestPolicy

Associated Types

type Rep GetOriginRequestPolicy :: Type -> Type #

NFData GetOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetOriginRequestPolicy

Methods

rnf :: GetOriginRequestPolicy -> () #

Hashable GetOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetOriginRequestPolicy

AWSRequest GetOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetOriginRequestPolicy

Associated Types

type AWSResponse GetOriginRequestPolicy #

ToHeaders GetOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetOriginRequestPolicy

ToPath GetOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetOriginRequestPolicy

ToQuery GetOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetOriginRequestPolicy

type Rep GetOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetOriginRequestPolicy

type Rep GetOriginRequestPolicy = D1 ('MetaData "GetOriginRequestPolicy" "Amazonka.CloudFront.GetOriginRequestPolicy" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "GetOriginRequestPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetOriginRequestPolicy

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.

Constructors

GetOriginRequestPolicyResponse' 

Fields

Instances

Instances details
Eq GetOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetOriginRequestPolicy

Read GetOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetOriginRequestPolicy

Show GetOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetOriginRequestPolicy

Generic GetOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetOriginRequestPolicy

Associated Types

type Rep GetOriginRequestPolicyResponse :: Type -> Type #

NFData GetOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetOriginRequestPolicy

type Rep GetOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetOriginRequestPolicy

type Rep GetOriginRequestPolicyResponse = D1 ('MetaData "GetOriginRequestPolicyResponse" "Amazonka.CloudFront.GetOriginRequestPolicy" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "GetOriginRequestPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "eTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "originRequestPolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OriginRequestPolicy)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.