#[non_exhaustive]pub struct OriginAccessControlSummary { /* private fields */ }
Expand description
A CloudFront origin access control.
Implementations§
source§impl OriginAccessControlSummary
impl OriginAccessControlSummary
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the origin access control.
sourcepub fn signing_protocol(&self) -> Option<&OriginAccessControlSigningProtocols>
pub fn signing_protocol(&self) -> Option<&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) -> Option<&OriginAccessControlSigningBehaviors>
pub fn signing_behavior(&self) -> Option<&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
) -> Option<&OriginAccessControlOriginTypes>
pub fn origin_access_control_origin_type(
&self
) -> Option<&OriginAccessControlOriginTypes>
The type of origin that this origin access control is for. The only valid value is s3
.
source§impl OriginAccessControlSummary
impl OriginAccessControlSummary
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture OriginAccessControlSummary
.
Examples found in repository?
13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373
pub fn deser_structure_crate_model_origin_access_control_summary(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::OriginAccessControlSummary, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::OriginAccessControlSummary::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Id") /* Id com.amazonaws.cloudfront#OriginAccessControlSummary$Id */ => {
let var_547 =
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_547);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudfront#OriginAccessControlSummary$Description */ => {
let var_548 =
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_description(var_548);
}
,
s if s.matches("Name") /* Name com.amazonaws.cloudfront#OriginAccessControlSummary$Name */ => {
let var_549 =
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_name(var_549);
}
,
s if s.matches("SigningProtocol") /* SigningProtocol com.amazonaws.cloudfront#OriginAccessControlSummary$SigningProtocol */ => {
let var_550 =
Some(
Result::<crate::model::OriginAccessControlSigningProtocols, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::OriginAccessControlSigningProtocols::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_signing_protocol(var_550);
}
,
s if s.matches("SigningBehavior") /* SigningBehavior com.amazonaws.cloudfront#OriginAccessControlSummary$SigningBehavior */ => {
let var_551 =
Some(
Result::<crate::model::OriginAccessControlSigningBehaviors, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::OriginAccessControlSigningBehaviors::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_signing_behavior(var_551);
}
,
s if s.matches("OriginAccessControlOriginType") /* OriginAccessControlOriginType com.amazonaws.cloudfront#OriginAccessControlSummary$OriginAccessControlOriginType */ => {
let var_552 =
Some(
Result::<crate::model::OriginAccessControlOriginTypes, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::OriginAccessControlOriginTypes::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_origin_access_control_origin_type(var_552);
}
,
_ => {}
}
}
Ok(builder.build())
}
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 more