#[non_exhaustive]pub struct CloudFrontOriginAccessIdentityConfig { /* private fields */ }
Expand description
Origin access identity configuration. Send a GET
request to the /CloudFront API version/CloudFront/identity ID/config
resource.
Implementations§
source§impl CloudFrontOriginAccessIdentityConfig
impl CloudFrontOriginAccessIdentityConfig
sourcepub fn caller_reference(&self) -> Option<&str>
pub fn caller_reference(&self) -> Option<&str>
A unique value (for example, a date-time stamp) that ensures that the request can't be replayed.
If the value of CallerReference
is new (regardless of the content of the CloudFrontOriginAccessIdentityConfig
object), a new origin access identity is created.
If the CallerReference
is a value already sent in a previous identity request, and the content of the CloudFrontOriginAccessIdentityConfig
is identical to the original request (ignoring white space), the response includes the same information returned to the original request.
If the CallerReference
is a value you already sent in a previous request to create an identity, but the content of the CloudFrontOriginAccessIdentityConfig
is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists
error.
source§impl CloudFrontOriginAccessIdentityConfig
impl CloudFrontOriginAccessIdentityConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CloudFrontOriginAccessIdentityConfig
.
Examples found in repository?
7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085
pub fn deser_structure_crate_model_cloud_front_origin_access_identity_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
crate::model::CloudFrontOriginAccessIdentityConfig,
aws_smithy_xml::decode::XmlDecodeError,
> {
#[allow(unused_mut)]
let mut builder = crate::model::CloudFrontOriginAccessIdentityConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CallerReference") /* CallerReference com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityConfig$CallerReference */ => {
let var_205 =
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_caller_reference(var_205);
}
,
s if s.matches("Comment") /* Comment com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityConfig$Comment */ => {
let var_206 =
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_comment(var_206);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for CloudFrontOriginAccessIdentityConfig
impl Clone for CloudFrontOriginAccessIdentityConfig
source§fn clone(&self) -> CloudFrontOriginAccessIdentityConfig
fn clone(&self) -> CloudFrontOriginAccessIdentityConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more