Skip to content

/AWS1/CL_FNT=>UPDATEORIGINREQUESTPOLICY()

About UpdateOriginRequestPolicy

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.

Method Signature

IMPORTING

Required arguments:

IO_ORIGINREQUESTPOLICYCONFIG TYPE REF TO /AWS1/CL_FNTORIGINREQPLYCONFIG /AWS1/CL_FNTORIGINREQPLYCONFIG

An origin request policy configuration.

IV_ID TYPE /AWS1/FNTSTRING /AWS1/FNTSTRING

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.

Optional arguments:

IV_IFMATCH TYPE /AWS1/FNTSTRING /AWS1/FNTSTRING

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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_FNTUPORIGINREQPLYRS /AWS1/CL_FNTUPORIGINREQPLYRS