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

Description

Updates an origin request policy configuration.

When you update an origin request policy configuration, all the fields are updated with the values provided in the request. You cannot update some fields independent of others. To update an origin request policy configuration:

  1. Use GetOriginRequestPolicyConfig to get the current configuration.
  2. Locally modify the fields in the origin request policy configuration that you want to update.
  3. Call UpdateOriginRequestPolicy by providing the entire origin request policy configuration, including the fields that you modified and those that you didn’t.
Synopsis

Creating a Request

data UpdateOriginRequestPolicy Source #

See: newUpdateOriginRequestPolicy smart constructor.

Constructors

UpdateOriginRequestPolicy' 

Fields

  • ifMatch :: Maybe Text

    The version of the origin request policy that you are updating. The version is returned in the origin request policy’s ETag field in the response to GetOriginRequestPolicyConfig.

  • originRequestPolicyConfig :: OriginRequestPolicyConfig

    An origin request policy configuration.

  • id :: Text

    The unique identifier for the origin request policy that you are updating. The identifier is returned in a cache behavior’s OriginRequestPolicyId field in the response to GetDistributionConfig.

Instances

Instances details
Eq UpdateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateOriginRequestPolicy

Read UpdateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateOriginRequestPolicy

Show UpdateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateOriginRequestPolicy

Generic UpdateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateOriginRequestPolicy

Associated Types

type Rep UpdateOriginRequestPolicy :: Type -> Type #

NFData UpdateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateOriginRequestPolicy

Hashable UpdateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateOriginRequestPolicy

AWSRequest UpdateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateOriginRequestPolicy

ToHeaders UpdateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateOriginRequestPolicy

ToPath UpdateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateOriginRequestPolicy

ToQuery UpdateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateOriginRequestPolicy

ToElement UpdateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateOriginRequestPolicy

type Rep UpdateOriginRequestPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateOriginRequestPolicy

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

Defined in Amazonka.CloudFront.UpdateOriginRequestPolicy

newUpdateOriginRequestPolicy Source #

Create a value of UpdateOriginRequestPolicy 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:ifMatch:UpdateOriginRequestPolicy', updateOriginRequestPolicy_ifMatch - The version of the origin request policy that you are updating. The version is returned in the origin request policy’s ETag field in the response to GetOriginRequestPolicyConfig.

$sel:originRequestPolicyConfig:UpdateOriginRequestPolicy', updateOriginRequestPolicy_originRequestPolicyConfig - An origin request policy configuration.

$sel:id:UpdateOriginRequestPolicy', updateOriginRequestPolicy_id - The unique identifier for the origin request policy that you are updating. The identifier is returned in a cache behavior’s OriginRequestPolicyId field in the response to GetDistributionConfig.

Request Lenses

updateOriginRequestPolicy_ifMatch :: Lens' UpdateOriginRequestPolicy (Maybe Text) Source #

The version of the origin request policy that you are updating. The version is returned in the origin request policy’s ETag field in the response to GetOriginRequestPolicyConfig.

updateOriginRequestPolicy_id :: Lens' UpdateOriginRequestPolicy Text Source #

The unique identifier for the origin request policy that you are updating. The identifier is returned in a cache behavior’s OriginRequestPolicyId field in the response to GetDistributionConfig.

Destructuring the Response

data UpdateOriginRequestPolicyResponse Source #

See: newUpdateOriginRequestPolicyResponse smart constructor.

Constructors

UpdateOriginRequestPolicyResponse' 

Fields

Instances

Instances details
Eq UpdateOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateOriginRequestPolicy

Read UpdateOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateOriginRequestPolicy

Show UpdateOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateOriginRequestPolicy

Generic UpdateOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateOriginRequestPolicy

Associated Types

type Rep UpdateOriginRequestPolicyResponse :: Type -> Type #

NFData UpdateOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateOriginRequestPolicy

type Rep UpdateOriginRequestPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateOriginRequestPolicy

type Rep UpdateOriginRequestPolicyResponse = D1 ('MetaData "UpdateOriginRequestPolicyResponse" "Amazonka.CloudFront.UpdateOriginRequestPolicy" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "UpdateOriginRequestPolicyResponse'" '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))))

newUpdateOriginRequestPolicyResponse Source #

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

$sel:originRequestPolicy:UpdateOriginRequestPolicyResponse', updateOriginRequestPolicyResponse_originRequestPolicy - An origin request policy.

$sel:httpStatus:UpdateOriginRequestPolicyResponse', updateOriginRequestPolicyResponse_httpStatus - The response's http status code.

Response Lenses