pub struct OriginAccessControlConfig {
pub name: String,
pub description: Option<String>,
pub signing_protocol: String,
pub signing_behavior: String,
pub origin_access_control_origin_type: String,
}Expand description
A CloudFront origin access control configuration.
AWS API: cloudfront.v1.OriginAccessControlConfig
Reference: https://docs.aws.amazon.com/cloudfront/latest/APIReference/OriginAccessControlConfig
Fields§
§name: StringA name to identify the origin access control. You can specify up to 64 characters.
description: Option<String>A description of the origin access control.
signing_protocol: StringThe signing protocol of the origin access control, which determines how CloudFront signs (authenticates) requests. The only valid value is sigv4.
signing_behavior: StringSpecifies 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.
origin_access_control_origin_type: StringThe type of origin that this origin access control is for.
Trait Implementations§
Source§impl Clone for OriginAccessControlConfig
impl Clone for OriginAccessControlConfig
Source§fn clone(&self) -> OriginAccessControlConfig
fn clone(&self) -> OriginAccessControlConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more