Struct aws_sdk_cloudfront::model::OriginAccessControl
source · #[non_exhaustive]pub struct OriginAccessControl { /* private fields */ }
Expand description
A CloudFront origin access control, including its unique identifier.
Implementations§
source§impl OriginAccessControl
impl OriginAccessControl
sourcepub fn origin_access_control_config(&self) -> Option<&OriginAccessControlConfig>
pub fn origin_access_control_config(&self) -> Option<&OriginAccessControlConfig>
The origin access control.
source§impl OriginAccessControl
impl OriginAccessControl
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture OriginAccessControl
.
Examples found in repository?
src/xml_deser.rs (line 6670)
6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700
pub fn deser_structure_crate_model_origin_access_control(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::OriginAccessControl, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::OriginAccessControl::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Id") /* Id com.amazonaws.cloudfront#OriginAccessControl$Id */ => {
let var_181 =
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_181);
}
,
s if s.matches("OriginAccessControlConfig") /* OriginAccessControlConfig com.amazonaws.cloudfront#OriginAccessControl$OriginAccessControlConfig */ => {
let var_182 =
Some(
crate::xml_deser::deser_structure_crate_model_origin_access_control_config(&mut tag)
?
)
;
builder = builder.set_origin_access_control_config(var_182);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for OriginAccessControl
impl Clone for OriginAccessControl
source§fn clone(&self) -> OriginAccessControl
fn clone(&self) -> OriginAccessControl
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