#[non_exhaustive]pub struct OriginAccessControlSummary {
pub id: String,
pub description: String,
pub name: String,
pub signing_protocol: OriginAccessControlSigningProtocols,
pub signing_behavior: OriginAccessControlSigningBehaviors,
pub origin_access_control_origin_type: OriginAccessControlOriginTypes,
}
Expand description
A CloudFront origin access control.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: String
The unique identifier of the origin access control.
description: String
A description of the origin access control.
name: String
A unique name that identifies the origin access control.
signing_protocol: OriginAccessControlSigningProtocols
The signing protocol of the origin access control. The signing protocol determines how CloudFront signs (authenticates) requests. The only valid value is sigv4
.
signing_behavior: OriginAccessControlSigningBehaviors
A value that specifies which requests CloudFront signs (adds authentication information to). This field can have one of the following values:
-
never
– CloudFront doesn't sign any origin requests. -
always
– CloudFront signs all origin requests, overwriting theAuthorization
header from the viewer request if necessary. -
no-override
– If the viewer request doesn't contain theAuthorization
header, CloudFront signs the origin request. If the viewer request contains theAuthorization
header, CloudFront doesn't sign the origin request, but instead passes along theAuthorization
header that it received in the viewer request.
origin_access_control_origin_type: OriginAccessControlOriginTypes
The type of origin that this origin access control is for.
Implementations§
source§impl OriginAccessControlSummary
impl OriginAccessControlSummary
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
A description of the origin access control.
sourcepub fn signing_protocol(&self) -> &OriginAccessControlSigningProtocols
pub fn signing_protocol(&self) -> &OriginAccessControlSigningProtocols
The signing protocol of the origin access control. The signing protocol determines how CloudFront signs (authenticates) requests. The only valid value is sigv4
.
sourcepub fn signing_behavior(&self) -> &OriginAccessControlSigningBehaviors
pub fn signing_behavior(&self) -> &OriginAccessControlSigningBehaviors
A value that specifies which requests CloudFront signs (adds authentication information to). This field can have one of the following values:
-
never
– CloudFront doesn't sign any origin requests. -
always
– CloudFront signs all origin requests, overwriting theAuthorization
header from the viewer request if necessary. -
no-override
– If the viewer request doesn't contain theAuthorization
header, CloudFront signs the origin request. If the viewer request contains theAuthorization
header, CloudFront doesn't sign the origin request, but instead passes along theAuthorization
header that it received in the viewer request.
sourcepub fn origin_access_control_origin_type(
&self
) -> &OriginAccessControlOriginTypes
pub fn origin_access_control_origin_type( &self ) -> &OriginAccessControlOriginTypes
The type of origin that this origin access control is for.
source§impl OriginAccessControlSummary
impl OriginAccessControlSummary
sourcepub fn builder() -> OriginAccessControlSummaryBuilder
pub fn builder() -> OriginAccessControlSummaryBuilder
Creates a new builder-style object to manufacture OriginAccessControlSummary
.
Trait Implementations§
source§impl Clone for OriginAccessControlSummary
impl Clone for OriginAccessControlSummary
source§fn clone(&self) -> OriginAccessControlSummary
fn clone(&self) -> OriginAccessControlSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OriginAccessControlSummary
impl Debug for OriginAccessControlSummary
source§impl PartialEq for OriginAccessControlSummary
impl PartialEq for OriginAccessControlSummary
source§fn eq(&self, other: &OriginAccessControlSummary) -> bool
fn eq(&self, other: &OriginAccessControlSummary) -> bool
self
and other
values to be equal, and is used
by ==
.