OriginAccessControlConfig
¶
Used by
Source code in docs_src/capo_cloudfront/types/origin_access_control_config.py
description
instance-attribute
¶
description: NotRequired[string]
A description of the origin access control.
name
instance-attribute
¶
name: string
A name to identify the origin access control. You can specify up to 64 characters.
origin_access_control_origin_type
instance-attribute
¶
origin_access_control_origin_type: OriginAccessControlOriginTypes
The type of origin that this origin access control is for.
signing_behavior
instance-attribute
¶
signing_behavior: OriginAccessControlSigningBehaviors
Specifies 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 theAuthorizationheader 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 theAuthorizationheader, then CloudFront signs the origin request. If the viewer request contains theAuthorizationheader, then CloudFront doesn't sign the origin request and instead passes along theAuthorizationheader from the viewer request. WARNING: To pass along theAuthorizationheader from the viewer request, you must add theAuthorizationheader to a cache policy for all cache behaviors that use origins associated with this origin access control. -
always-amz-auth– CloudFront signs all origin requests with Amazon authentication headers. If the viewer request contains theAuthorizationheader, then CloudFront also forwards that header to the origin. This value is only valid with Lambda-Web origins. WARNING: To forward theAuthorizationheader from the viewer request, you must add theAuthorizationheader to a cache policy for all cache behaviors that use origins associated with this origin access control.
signing_protocol
instance-attribute
¶
signing_protocol: OriginAccessControlSigningProtocols
The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) requests. The only valid values are sigv4 and sigv4a.