Struct aws_sdk_cloudfront::types::OriginGroup
source · #[non_exhaustive]pub struct OriginGroup {
pub id: String,
pub failover_criteria: Option<OriginGroupFailoverCriteria>,
pub members: Option<OriginGroupMembers>,
}
Expand description
An origin group includes two origins (a primary origin and a second origin to failover to) and a failover criteria that you specify. You create an origin group to support origin failover in CloudFront. When you create or update a distribution, you can specify the origin group instead of a single origin, and CloudFront will failover from the primary origin to the second origin under the failover conditions that you've chosen.
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 origin group's ID.
failover_criteria: Option<OriginGroupFailoverCriteria>
A complex type that contains information about the failover criteria for an origin group.
members: Option<OriginGroupMembers>
A complex type that contains information about the origins in an origin group.
Implementations§
source§impl OriginGroup
impl OriginGroup
sourcepub fn failover_criteria(&self) -> Option<&OriginGroupFailoverCriteria>
pub fn failover_criteria(&self) -> Option<&OriginGroupFailoverCriteria>
A complex type that contains information about the failover criteria for an origin group.
sourcepub fn members(&self) -> Option<&OriginGroupMembers>
pub fn members(&self) -> Option<&OriginGroupMembers>
A complex type that contains information about the origins in an origin group.
source§impl OriginGroup
impl OriginGroup
sourcepub fn builder() -> OriginGroupBuilder
pub fn builder() -> OriginGroupBuilder
Creates a new builder-style object to manufacture OriginGroup
.
Trait Implementations§
source§impl Clone for OriginGroup
impl Clone for OriginGroup
source§fn clone(&self) -> OriginGroup
fn clone(&self) -> OriginGroup
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OriginGroup
impl Debug for OriginGroup
source§impl PartialEq for OriginGroup
impl PartialEq for OriginGroup
source§fn eq(&self, other: &OriginGroup) -> bool
fn eq(&self, other: &OriginGroup) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OriginGroup
Auto Trait Implementations§
impl Freeze for OriginGroup
impl RefUnwindSafe for OriginGroup
impl Send for OriginGroup
impl Sync for OriginGroup
impl Unpin for OriginGroup
impl UnwindSafe for OriginGroup
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