Struct aws_sdk_cloudfront::model::OriginGroup
source · #[non_exhaustive]pub struct OriginGroup { /* private fields */ }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 specifiy 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.
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() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture OriginGroup.
Examples found in repository?
src/xml_deser.rs (line 13990)
13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030
pub fn deser_structure_crate_model_origin_group(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::OriginGroup, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::OriginGroup::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Id") /* Id com.amazonaws.cloudfront#OriginGroup$Id */ => {
let var_591 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_id(var_591);
}
,
s if s.matches("FailoverCriteria") /* FailoverCriteria com.amazonaws.cloudfront#OriginGroup$FailoverCriteria */ => {
let var_592 =
Some(
crate::xml_deser::deser_structure_crate_model_origin_group_failover_criteria(&mut tag)
?
)
;
builder = builder.set_failover_criteria(var_592);
}
,
s if s.matches("Members") /* Members com.amazonaws.cloudfront#OriginGroup$Members */ => {
let var_593 =
Some(
crate::xml_deser::deser_structure_crate_model_origin_group_members(&mut tag)
?
)
;
builder = builder.set_members(var_593);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for OriginGroup
impl Clone for OriginGroup
source§fn clone(&self) -> OriginGroup
fn clone(&self) -> OriginGroup
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more