#[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 ==
.impl StructuralPartialEq for OriginAccessControlSummary
Auto Trait Implementations§
impl Freeze for OriginAccessControlSummary
impl RefUnwindSafe for OriginAccessControlSummary
impl Send for OriginAccessControlSummary
impl Sync for OriginAccessControlSummary
impl Unpin for OriginAccessControlSummary
impl UnwindSafe for OriginAccessControlSummary
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more