Skip to main content

origin_request_policy_configs

Creates, updates, deletes, gets or lists an origin_request_policy_configs resource.

Overview

Nameorigin_request_policy_configs
TypeResource
Idaws.cloudfront.origin_request_policy_configs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
commentstringA comment to describe the origin request policy. The comment cannot be longer than 128 characters.
cookies_configstringThe cookies from viewer requests to include in origin requests.
headers_configstringThe HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront.
namestringA unique name to identify the origin request policy.
query_strings_configstringThe URL query strings from viewer requests to include in origin requests.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_origin_request_policy_configselectid, regionGets 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe 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.
regionstringAWS region (default: us-east-1)

SELECT examples

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.

SELECT
comment,
cookies_config,
headers_config,
name,
query_strings_config
FROM aws.cloudfront.origin_request_policy_configs
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;