#[non_exhaustive]pub struct OriginAccessControlConfig { /* private fields */ }
Expand description
A CloudFront origin access control configuration.
Implementations§
source§impl OriginAccessControlConfig
impl OriginAccessControlConfig
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the origin access control.
sourcepub fn signing_protocol(&self) -> Option<&OriginAccessControlSigningProtocols>
pub fn signing_protocol(&self) -> Option<&OriginAccessControlSigningProtocols>
The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) requests. The only valid value is sigv4
.
sourcepub fn signing_behavior(&self) -> Option<&OriginAccessControlSigningBehaviors>
pub fn signing_behavior(&self) -> Option<&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 theAuthorization
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 theAuthorization
header, then CloudFront signs the origin request. If the viewer request contains theAuthorization
header, then CloudFront doesn't sign the origin request and instead passes along theAuthorization
header from the viewer request. WARNING: To pass along theAuthorization
header from the viewer request, you must add theAuthorization
header to a cache policy for all cache behaviors that use origins associated with this origin access control.
sourcepub fn origin_access_control_origin_type(
&self
) -> Option<&OriginAccessControlOriginTypes>
pub fn origin_access_control_origin_type(
&self
) -> Option<&OriginAccessControlOriginTypes>
The type of origin that this origin access control is for. The only valid value is s3
.
source§impl OriginAccessControlConfig
impl OriginAccessControlConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture OriginAccessControlConfig
.
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 moresource§impl Debug for OriginAccessControlConfig
impl Debug for OriginAccessControlConfig
source§impl PartialEq<OriginAccessControlConfig> for OriginAccessControlConfig
impl PartialEq<OriginAccessControlConfig> for OriginAccessControlConfig
source§fn eq(&self, other: &OriginAccessControlConfig) -> bool
fn eq(&self, other: &OriginAccessControlConfig) -> bool
self
and other
values to be equal, and is used
by ==
.