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.CreateOriginRequestPolicy

Description

Creates an origin request policy.

After you create an origin request policy, you can attach it to one or more cache behaviors. When it’s attached to a cache behavior, the origin request policy determines the values that CloudFront includes in requests that it sends to the origin. Each request that CloudFront sends to the origin includes the following:

  • The request body and the URL path (without the domain name) from the viewer request.
  • The headers that CloudFront automatically includes in every origin request, including Host, User-Agent, and X-Amz-Cf-Id.
  • All HTTP headers, cookies, and URL query strings that are specified in the cache policy or the origin request policy. These can include items from the viewer request and, in the case of headers, additional ones that are added by CloudFront.

CloudFront sends a request when it can’t find a valid object in its cache that matches the request. If you want to send values to the origin and also include them in the cache key, use CachePolicy.

For more information about origin request policies, see Controlling origin requests in the Amazon CloudFront Developer Guide.

Synopsis

Creating a Request

data CreateOriginRequestPolicy Source #

See: newCreateOriginRequestPolicy smart constructor.

Constructors

CreateOriginRequestPolicy' 

Fields

Instances

Instances details
Eq CreateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginRequestPolicy

Read CreateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginRequestPolicy

Show CreateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginRequestPolicy

Generic CreateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginRequestPolicy

Associated Types

type Rep CreateOriginRequestPolicy :: Type -> Type #

NFData CreateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginRequestPolicy

Hashable CreateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginRequestPolicy

AWSRequest CreateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginRequestPolicy

ToHeaders CreateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginRequestPolicy

ToPath CreateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginRequestPolicy

ToQuery CreateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginRequestPolicy

ToElement CreateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginRequestPolicy

type Rep CreateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginRequestPolicy

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

Defined in Amazonka.CloudFront.CreateOriginRequestPolicy

newCreateOriginRequestPolicy Source #

Create a value of CreateOriginRequestPolicy 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:originRequestPolicyConfig:CreateOriginRequestPolicy', createOriginRequestPolicy_originRequestPolicyConfig - An origin request policy configuration.

Request Lenses

Destructuring the Response

data CreateOriginRequestPolicyResponse Source #

See: newCreateOriginRequestPolicyResponse smart constructor.

Constructors

CreateOriginRequestPolicyResponse' 

Fields

Instances

Instances details
Eq CreateOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginRequestPolicy

Read CreateOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginRequestPolicy

Show CreateOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginRequestPolicy

Generic CreateOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginRequestPolicy

Associated Types

type Rep CreateOriginRequestPolicyResponse :: Type -> Type #

NFData CreateOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginRequestPolicy

type Rep CreateOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateOriginRequestPolicy

type Rep CreateOriginRequestPolicyResponse = D1 ('MetaData "CreateOriginRequestPolicyResponse" "Amazonka.CloudFront.CreateOriginRequestPolicy" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "CreateOriginRequestPolicyResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "eTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "location") '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))))

newCreateOriginRequestPolicyResponse Source #

Create a value of CreateOriginRequestPolicyResponse 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:CreateOriginRequestPolicyResponse', createOriginRequestPolicyResponse_eTag - The current version of the origin request policy.

$sel:location:CreateOriginRequestPolicyResponse', createOriginRequestPolicyResponse_location - The fully qualified URI of the origin request policy just created.

$sel:originRequestPolicy:CreateOriginRequestPolicyResponse', createOriginRequestPolicyResponse_originRequestPolicy - An origin request policy.

$sel:httpStatus:CreateOriginRequestPolicyResponse', createOriginRequestPolicyResponse_httpStatus - The response's http status code.

Response Lenses

createOriginRequestPolicyResponse_location :: Lens' CreateOriginRequestPolicyResponse (Maybe Text) Source #

The fully qualified URI of the origin request policy just created.