pub struct Builder { /* private fields */ }
Expand description
A builder for AwsCloudFrontDistributionDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn cache_behaviors(
self,
input: AwsCloudFrontDistributionCacheBehaviors
) -> Self
pub fn cache_behaviors(
self,
input: AwsCloudFrontDistributionCacheBehaviors
) -> Self
Provides information about the cache configuration for the distribution.
sourcepub fn set_cache_behaviors(
self,
input: Option<AwsCloudFrontDistributionCacheBehaviors>
) -> Self
pub fn set_cache_behaviors(
self,
input: Option<AwsCloudFrontDistributionCacheBehaviors>
) -> Self
Provides information about the cache configuration for the distribution.
Examples found in repository?
10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634
pub(crate) fn deser_structure_crate_model_aws_cloud_front_distribution_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCloudFrontDistributionDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_cloud_front_distribution_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CacheBehaviors" => {
builder = builder.set_cache_behaviors(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_cache_behaviors(tokens)?
);
}
"DefaultCacheBehavior" => {
builder = builder.set_default_cache_behavior(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_default_cache_behavior(tokens)?
);
}
"DefaultRootObject" => {
builder = builder.set_default_root_object(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ETag" => {
builder = builder.set_e_tag(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LastModifiedTime" => {
builder = builder.set_last_modified_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Logging" => {
builder = builder.set_logging(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_logging(tokens)?
);
}
"Origins" => {
builder = builder.set_origins(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origins(tokens)?
);
}
"OriginGroups" => {
builder = builder.set_origin_groups(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origin_groups(tokens)?
);
}
"ViewerCertificate" => {
builder = builder.set_viewer_certificate(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_viewer_certificate(tokens)?
);
}
"Status" => {
builder = builder.set_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"WebAclId" => {
builder = builder.set_web_acl_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn default_cache_behavior(
self,
input: AwsCloudFrontDistributionDefaultCacheBehavior
) -> Self
pub fn default_cache_behavior(
self,
input: AwsCloudFrontDistributionDefaultCacheBehavior
) -> Self
The default cache behavior for the configuration.
sourcepub fn set_default_cache_behavior(
self,
input: Option<AwsCloudFrontDistributionDefaultCacheBehavior>
) -> Self
pub fn set_default_cache_behavior(
self,
input: Option<AwsCloudFrontDistributionDefaultCacheBehavior>
) -> Self
The default cache behavior for the configuration.
Examples found in repository?
10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634
pub(crate) fn deser_structure_crate_model_aws_cloud_front_distribution_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCloudFrontDistributionDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_cloud_front_distribution_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CacheBehaviors" => {
builder = builder.set_cache_behaviors(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_cache_behaviors(tokens)?
);
}
"DefaultCacheBehavior" => {
builder = builder.set_default_cache_behavior(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_default_cache_behavior(tokens)?
);
}
"DefaultRootObject" => {
builder = builder.set_default_root_object(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ETag" => {
builder = builder.set_e_tag(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LastModifiedTime" => {
builder = builder.set_last_modified_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Logging" => {
builder = builder.set_logging(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_logging(tokens)?
);
}
"Origins" => {
builder = builder.set_origins(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origins(tokens)?
);
}
"OriginGroups" => {
builder = builder.set_origin_groups(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origin_groups(tokens)?
);
}
"ViewerCertificate" => {
builder = builder.set_viewer_certificate(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_viewer_certificate(tokens)?
);
}
"Status" => {
builder = builder.set_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"WebAclId" => {
builder = builder.set_web_acl_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn default_root_object(self, input: impl Into<String>) -> Self
pub fn default_root_object(self, input: impl Into<String>) -> Self
The object that CloudFront sends in response to requests from the origin (for example, index.html) when a viewer requests the root URL for the distribution (http://www.example.com) instead of an object in your distribution (http://www.example.com/product-description.html).
sourcepub fn set_default_root_object(self, input: Option<String>) -> Self
pub fn set_default_root_object(self, input: Option<String>) -> Self
The object that CloudFront sends in response to requests from the origin (for example, index.html) when a viewer requests the root URL for the distribution (http://www.example.com) instead of an object in your distribution (http://www.example.com/product-description.html).
Examples found in repository?
10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634
pub(crate) fn deser_structure_crate_model_aws_cloud_front_distribution_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCloudFrontDistributionDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_cloud_front_distribution_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CacheBehaviors" => {
builder = builder.set_cache_behaviors(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_cache_behaviors(tokens)?
);
}
"DefaultCacheBehavior" => {
builder = builder.set_default_cache_behavior(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_default_cache_behavior(tokens)?
);
}
"DefaultRootObject" => {
builder = builder.set_default_root_object(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ETag" => {
builder = builder.set_e_tag(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LastModifiedTime" => {
builder = builder.set_last_modified_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Logging" => {
builder = builder.set_logging(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_logging(tokens)?
);
}
"Origins" => {
builder = builder.set_origins(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origins(tokens)?
);
}
"OriginGroups" => {
builder = builder.set_origin_groups(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origin_groups(tokens)?
);
}
"ViewerCertificate" => {
builder = builder.set_viewer_certificate(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_viewer_certificate(tokens)?
);
}
"Status" => {
builder = builder.set_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"WebAclId" => {
builder = builder.set_web_acl_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn domain_name(self, input: impl Into<String>) -> Self
pub fn domain_name(self, input: impl Into<String>) -> Self
The domain name corresponding to the distribution.
sourcepub fn set_domain_name(self, input: Option<String>) -> Self
pub fn set_domain_name(self, input: Option<String>) -> Self
The domain name corresponding to the distribution.
Examples found in repository?
10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634
pub(crate) fn deser_structure_crate_model_aws_cloud_front_distribution_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCloudFrontDistributionDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_cloud_front_distribution_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CacheBehaviors" => {
builder = builder.set_cache_behaviors(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_cache_behaviors(tokens)?
);
}
"DefaultCacheBehavior" => {
builder = builder.set_default_cache_behavior(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_default_cache_behavior(tokens)?
);
}
"DefaultRootObject" => {
builder = builder.set_default_root_object(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ETag" => {
builder = builder.set_e_tag(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LastModifiedTime" => {
builder = builder.set_last_modified_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Logging" => {
builder = builder.set_logging(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_logging(tokens)?
);
}
"Origins" => {
builder = builder.set_origins(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origins(tokens)?
);
}
"OriginGroups" => {
builder = builder.set_origin_groups(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origin_groups(tokens)?
);
}
"ViewerCertificate" => {
builder = builder.set_viewer_certificate(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_viewer_certificate(tokens)?
);
}
"Status" => {
builder = builder.set_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"WebAclId" => {
builder = builder.set_web_acl_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn set_e_tag(self, input: Option<String>) -> Self
pub fn set_e_tag(self, input: Option<String>) -> Self
The entity tag is a hash of the object.
Examples found in repository?
10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634
pub(crate) fn deser_structure_crate_model_aws_cloud_front_distribution_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCloudFrontDistributionDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_cloud_front_distribution_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CacheBehaviors" => {
builder = builder.set_cache_behaviors(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_cache_behaviors(tokens)?
);
}
"DefaultCacheBehavior" => {
builder = builder.set_default_cache_behavior(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_default_cache_behavior(tokens)?
);
}
"DefaultRootObject" => {
builder = builder.set_default_root_object(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ETag" => {
builder = builder.set_e_tag(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LastModifiedTime" => {
builder = builder.set_last_modified_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Logging" => {
builder = builder.set_logging(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_logging(tokens)?
);
}
"Origins" => {
builder = builder.set_origins(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origins(tokens)?
);
}
"OriginGroups" => {
builder = builder.set_origin_groups(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origin_groups(tokens)?
);
}
"ViewerCertificate" => {
builder = builder.set_viewer_certificate(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_viewer_certificate(tokens)?
);
}
"Status" => {
builder = builder.set_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"WebAclId" => {
builder = builder.set_web_acl_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn last_modified_time(self, input: impl Into<String>) -> Self
pub fn last_modified_time(self, input: impl Into<String>) -> Self
Indicates when that the distribution was last modified.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn set_last_modified_time(self, input: Option<String>) -> Self
pub fn set_last_modified_time(self, input: Option<String>) -> Self
Indicates when that the distribution was last modified.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
Examples found in repository?
10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634
pub(crate) fn deser_structure_crate_model_aws_cloud_front_distribution_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCloudFrontDistributionDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_cloud_front_distribution_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CacheBehaviors" => {
builder = builder.set_cache_behaviors(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_cache_behaviors(tokens)?
);
}
"DefaultCacheBehavior" => {
builder = builder.set_default_cache_behavior(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_default_cache_behavior(tokens)?
);
}
"DefaultRootObject" => {
builder = builder.set_default_root_object(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ETag" => {
builder = builder.set_e_tag(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LastModifiedTime" => {
builder = builder.set_last_modified_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Logging" => {
builder = builder.set_logging(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_logging(tokens)?
);
}
"Origins" => {
builder = builder.set_origins(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origins(tokens)?
);
}
"OriginGroups" => {
builder = builder.set_origin_groups(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origin_groups(tokens)?
);
}
"ViewerCertificate" => {
builder = builder.set_viewer_certificate(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_viewer_certificate(tokens)?
);
}
"Status" => {
builder = builder.set_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"WebAclId" => {
builder = builder.set_web_acl_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn logging(self, input: AwsCloudFrontDistributionLogging) -> Self
pub fn logging(self, input: AwsCloudFrontDistributionLogging) -> Self
A complex type that controls whether access logs are written for the distribution.
sourcepub fn set_logging(self, input: Option<AwsCloudFrontDistributionLogging>) -> Self
pub fn set_logging(self, input: Option<AwsCloudFrontDistributionLogging>) -> Self
A complex type that controls whether access logs are written for the distribution.
Examples found in repository?
10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634
pub(crate) fn deser_structure_crate_model_aws_cloud_front_distribution_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCloudFrontDistributionDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_cloud_front_distribution_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CacheBehaviors" => {
builder = builder.set_cache_behaviors(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_cache_behaviors(tokens)?
);
}
"DefaultCacheBehavior" => {
builder = builder.set_default_cache_behavior(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_default_cache_behavior(tokens)?
);
}
"DefaultRootObject" => {
builder = builder.set_default_root_object(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ETag" => {
builder = builder.set_e_tag(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LastModifiedTime" => {
builder = builder.set_last_modified_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Logging" => {
builder = builder.set_logging(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_logging(tokens)?
);
}
"Origins" => {
builder = builder.set_origins(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origins(tokens)?
);
}
"OriginGroups" => {
builder = builder.set_origin_groups(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origin_groups(tokens)?
);
}
"ViewerCertificate" => {
builder = builder.set_viewer_certificate(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_viewer_certificate(tokens)?
);
}
"Status" => {
builder = builder.set_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"WebAclId" => {
builder = builder.set_web_acl_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn origins(self, input: AwsCloudFrontDistributionOrigins) -> Self
pub fn origins(self, input: AwsCloudFrontDistributionOrigins) -> Self
A complex type that contains information about origins for this distribution.
sourcepub fn set_origins(self, input: Option<AwsCloudFrontDistributionOrigins>) -> Self
pub fn set_origins(self, input: Option<AwsCloudFrontDistributionOrigins>) -> Self
A complex type that contains information about origins for this distribution.
Examples found in repository?
10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634
pub(crate) fn deser_structure_crate_model_aws_cloud_front_distribution_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCloudFrontDistributionDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_cloud_front_distribution_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CacheBehaviors" => {
builder = builder.set_cache_behaviors(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_cache_behaviors(tokens)?
);
}
"DefaultCacheBehavior" => {
builder = builder.set_default_cache_behavior(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_default_cache_behavior(tokens)?
);
}
"DefaultRootObject" => {
builder = builder.set_default_root_object(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ETag" => {
builder = builder.set_e_tag(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LastModifiedTime" => {
builder = builder.set_last_modified_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Logging" => {
builder = builder.set_logging(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_logging(tokens)?
);
}
"Origins" => {
builder = builder.set_origins(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origins(tokens)?
);
}
"OriginGroups" => {
builder = builder.set_origin_groups(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origin_groups(tokens)?
);
}
"ViewerCertificate" => {
builder = builder.set_viewer_certificate(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_viewer_certificate(tokens)?
);
}
"Status" => {
builder = builder.set_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"WebAclId" => {
builder = builder.set_web_acl_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn origin_groups(self, input: AwsCloudFrontDistributionOriginGroups) -> Self
pub fn origin_groups(self, input: AwsCloudFrontDistributionOriginGroups) -> Self
Provides information about the origin groups in the distribution.
sourcepub fn set_origin_groups(
self,
input: Option<AwsCloudFrontDistributionOriginGroups>
) -> Self
pub fn set_origin_groups(
self,
input: Option<AwsCloudFrontDistributionOriginGroups>
) -> Self
Provides information about the origin groups in the distribution.
Examples found in repository?
10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634
pub(crate) fn deser_structure_crate_model_aws_cloud_front_distribution_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCloudFrontDistributionDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_cloud_front_distribution_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CacheBehaviors" => {
builder = builder.set_cache_behaviors(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_cache_behaviors(tokens)?
);
}
"DefaultCacheBehavior" => {
builder = builder.set_default_cache_behavior(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_default_cache_behavior(tokens)?
);
}
"DefaultRootObject" => {
builder = builder.set_default_root_object(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ETag" => {
builder = builder.set_e_tag(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LastModifiedTime" => {
builder = builder.set_last_modified_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Logging" => {
builder = builder.set_logging(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_logging(tokens)?
);
}
"Origins" => {
builder = builder.set_origins(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origins(tokens)?
);
}
"OriginGroups" => {
builder = builder.set_origin_groups(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origin_groups(tokens)?
);
}
"ViewerCertificate" => {
builder = builder.set_viewer_certificate(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_viewer_certificate(tokens)?
);
}
"Status" => {
builder = builder.set_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"WebAclId" => {
builder = builder.set_web_acl_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn viewer_certificate(
self,
input: AwsCloudFrontDistributionViewerCertificate
) -> Self
pub fn viewer_certificate(
self,
input: AwsCloudFrontDistributionViewerCertificate
) -> Self
Provides information about the TLS/SSL configuration that the distribution uses to communicate with viewers.
sourcepub fn set_viewer_certificate(
self,
input: Option<AwsCloudFrontDistributionViewerCertificate>
) -> Self
pub fn set_viewer_certificate(
self,
input: Option<AwsCloudFrontDistributionViewerCertificate>
) -> Self
Provides information about the TLS/SSL configuration that the distribution uses to communicate with viewers.
Examples found in repository?
10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634
pub(crate) fn deser_structure_crate_model_aws_cloud_front_distribution_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCloudFrontDistributionDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_cloud_front_distribution_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CacheBehaviors" => {
builder = builder.set_cache_behaviors(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_cache_behaviors(tokens)?
);
}
"DefaultCacheBehavior" => {
builder = builder.set_default_cache_behavior(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_default_cache_behavior(tokens)?
);
}
"DefaultRootObject" => {
builder = builder.set_default_root_object(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ETag" => {
builder = builder.set_e_tag(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LastModifiedTime" => {
builder = builder.set_last_modified_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Logging" => {
builder = builder.set_logging(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_logging(tokens)?
);
}
"Origins" => {
builder = builder.set_origins(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origins(tokens)?
);
}
"OriginGroups" => {
builder = builder.set_origin_groups(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origin_groups(tokens)?
);
}
"ViewerCertificate" => {
builder = builder.set_viewer_certificate(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_viewer_certificate(tokens)?
);
}
"Status" => {
builder = builder.set_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"WebAclId" => {
builder = builder.set_web_acl_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
Indicates the current status of the distribution.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
Indicates the current status of the distribution.
Examples found in repository?
10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634
pub(crate) fn deser_structure_crate_model_aws_cloud_front_distribution_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCloudFrontDistributionDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_cloud_front_distribution_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CacheBehaviors" => {
builder = builder.set_cache_behaviors(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_cache_behaviors(tokens)?
);
}
"DefaultCacheBehavior" => {
builder = builder.set_default_cache_behavior(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_default_cache_behavior(tokens)?
);
}
"DefaultRootObject" => {
builder = builder.set_default_root_object(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ETag" => {
builder = builder.set_e_tag(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LastModifiedTime" => {
builder = builder.set_last_modified_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Logging" => {
builder = builder.set_logging(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_logging(tokens)?
);
}
"Origins" => {
builder = builder.set_origins(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origins(tokens)?
);
}
"OriginGroups" => {
builder = builder.set_origin_groups(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origin_groups(tokens)?
);
}
"ViewerCertificate" => {
builder = builder.set_viewer_certificate(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_viewer_certificate(tokens)?
);
}
"Status" => {
builder = builder.set_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"WebAclId" => {
builder = builder.set_web_acl_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn web_acl_id(self, input: impl Into<String>) -> Self
pub fn web_acl_id(self, input: impl Into<String>) -> Self
A unique identifier that specifies the WAF web ACL, if any, to associate with this distribution.
sourcepub fn set_web_acl_id(self, input: Option<String>) -> Self
pub fn set_web_acl_id(self, input: Option<String>) -> Self
A unique identifier that specifies the WAF web ACL, if any, to associate with this distribution.
Examples found in repository?
10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634
pub(crate) fn deser_structure_crate_model_aws_cloud_front_distribution_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCloudFrontDistributionDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_cloud_front_distribution_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CacheBehaviors" => {
builder = builder.set_cache_behaviors(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_cache_behaviors(tokens)?
);
}
"DefaultCacheBehavior" => {
builder = builder.set_default_cache_behavior(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_default_cache_behavior(tokens)?
);
}
"DefaultRootObject" => {
builder = builder.set_default_root_object(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ETag" => {
builder = builder.set_e_tag(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LastModifiedTime" => {
builder = builder.set_last_modified_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Logging" => {
builder = builder.set_logging(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_logging(tokens)?
);
}
"Origins" => {
builder = builder.set_origins(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origins(tokens)?
);
}
"OriginGroups" => {
builder = builder.set_origin_groups(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origin_groups(tokens)?
);
}
"ViewerCertificate" => {
builder = builder.set_viewer_certificate(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_viewer_certificate(tokens)?
);
}
"Status" => {
builder = builder.set_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"WebAclId" => {
builder = builder.set_web_acl_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn build(self) -> AwsCloudFrontDistributionDetails
pub fn build(self) -> AwsCloudFrontDistributionDetails
Consumes the builder and constructs a AwsCloudFrontDistributionDetails
.
Examples found in repository?
10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634
pub(crate) fn deser_structure_crate_model_aws_cloud_front_distribution_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsCloudFrontDistributionDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_cloud_front_distribution_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CacheBehaviors" => {
builder = builder.set_cache_behaviors(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_cache_behaviors(tokens)?
);
}
"DefaultCacheBehavior" => {
builder = builder.set_default_cache_behavior(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_default_cache_behavior(tokens)?
);
}
"DefaultRootObject" => {
builder = builder.set_default_root_object(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ETag" => {
builder = builder.set_e_tag(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LastModifiedTime" => {
builder = builder.set_last_modified_time(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Logging" => {
builder = builder.set_logging(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_logging(tokens)?
);
}
"Origins" => {
builder = builder.set_origins(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origins(tokens)?
);
}
"OriginGroups" => {
builder = builder.set_origin_groups(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_origin_groups(tokens)?
);
}
"ViewerCertificate" => {
builder = builder.set_viewer_certificate(
crate::json_deser::deser_structure_crate_model_aws_cloud_front_distribution_viewer_certificate(tokens)?
);
}
"Status" => {
builder = builder.set_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"WebAclId" => {
builder = builder.set_web_acl_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}