origin_request_policy_configs
Creates, updates, deletes, gets or lists an origin_request_policy_configs resource.
Overview
| Name | origin_request_policy_configs |
| Type | Resource |
| Id | aws.cloudfront.origin_request_policy_configs |
Fields
The following fields are returned by SELECT queries:
- get_origin_request_policy_config
| Name | Datatype | Description |
|---|---|---|
comment | string | A comment to describe the origin request policy. The comment cannot be longer than 128 characters. |
cookies_config | string | The cookies from viewer requests to include in origin requests. |
headers_config | string | The HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront. |
name | string | A unique name to identify the origin request policy. |
query_strings_config | string | The URL query strings from viewer requests to include in origin requests. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_origin_request_policy_config | select | id, region | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
id | string | 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. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_origin_request_policy_config
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
;