Skip to main content

origin_access_control_configs

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

Overview

Nameorigin_access_control_configs
TypeResource
Idaws.cloudfront.origin_access_control_configs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
descriptionstringA description of the origin access control.
namestringA name to identify the origin access control. You can specify up to 64 characters.
origin_access_control_origin_typestringThe type of origin that this origin access control is for.
signing_behaviorstringSpecifies which requests CloudFront signs (adds authentication information to). Specify always for the most common use case. For more information, see origin access control advanced settings in the Amazon CloudFront Developer Guide. This field can have one of the following values: always – CloudFront signs all origin requests, overwriting the Authorization header from the viewer request if one exists. never – CloudFront doesn't sign any origin requests. This value turns off origin access control for all origins in all distributions that use this origin access control. no-override – If the viewer request doesn't contain the Authorization header, then CloudFront signs the origin request. If the viewer request contains the Authorization header, then CloudFront doesn't sign the origin request and instead passes along the Authorization header from the viewer request. WARNING: To pass along the Authorization header from the viewer request, you must add the Authorization header to a cache policy for all cache behaviors that use origins associated with this origin access control.
signing_protocolstringThe signing protocol of the origin access control, which determines how CloudFront signs (authenticates) requests. The only valid value is sigv4.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_origin_access_control_configselectid, regionGets a CloudFront origin access control configuration.

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 of the origin access control.
regionstringAWS region (default: us-east-1)

SELECT examples

Gets a CloudFront origin access control configuration.

SELECT
description,
name,
origin_access_control_origin_type,
signing_behavior,
signing_protocol
FROM aws.cloudfront.origin_access_control_configs
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;