#[non_exhaustive]pub struct StreamingDistributionConfig { /* private fields */ }
Expand description
The RTMP distribution's configuration information.
Implementations§
source§impl StreamingDistributionConfig
impl StreamingDistributionConfig
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 StreamingDistributionConfig
object), CloudFront creates a new distribution.
If CallerReference
is a value that you already sent in a previous request to create a distribution, CloudFront returns a DistributionAlreadyExists
error.
sourcepub fn s3_origin(&self) -> Option<&S3Origin>
pub fn s3_origin(&self) -> Option<&S3Origin>
A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.
sourcepub fn aliases(&self) -> Option<&Aliases>
pub fn aliases(&self) -> Option<&Aliases>
A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.
sourcepub fn comment(&self) -> Option<&str>
pub fn comment(&self) -> Option<&str>
Any comments you want to include about the streaming distribution.
sourcepub fn logging(&self) -> Option<&StreamingLoggingConfig>
pub fn logging(&self) -> Option<&StreamingLoggingConfig>
A complex type that controls whether access logs are written for the streaming distribution.
sourcepub fn trusted_signers(&self) -> Option<&TrustedSigners>
pub fn trusted_signers(&self) -> Option<&TrustedSigners>
A complex type that specifies any Amazon Web Services accounts that you want to permit to create signed URLs for private content. If you want the distribution to use signed URLs, include this element; if you want the distribution to use public URLs, remove this element. For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
sourcepub fn price_class(&self) -> Option<&PriceClass>
pub fn price_class(&self) -> Option<&PriceClass>
A complex type that contains information about price class for this streaming distribution.
source§impl StreamingDistributionConfig
impl StreamingDistributionConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StreamingDistributionConfig
.
Examples found in repository?
7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871
pub fn deser_structure_crate_model_streaming_distribution_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StreamingDistributionConfig, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StreamingDistributionConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CallerReference") /* CallerReference com.amazonaws.cloudfront#StreamingDistributionConfig$CallerReference */ => {
let var_255 =
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_255);
}
,
s if s.matches("S3Origin") /* S3Origin com.amazonaws.cloudfront#StreamingDistributionConfig$S3Origin */ => {
let var_256 =
Some(
crate::xml_deser::deser_structure_crate_model_s3_origin(&mut tag)
?
)
;
builder = builder.set_s3_origin(var_256);
}
,
s if s.matches("Aliases") /* Aliases com.amazonaws.cloudfront#StreamingDistributionConfig$Aliases */ => {
let var_257 =
Some(
crate::xml_deser::deser_structure_crate_model_aliases(&mut tag)
?
)
;
builder = builder.set_aliases(var_257);
}
,
s if s.matches("Comment") /* Comment com.amazonaws.cloudfront#StreamingDistributionConfig$Comment */ => {
let var_258 =
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_258);
}
,
s if s.matches("Logging") /* Logging com.amazonaws.cloudfront#StreamingDistributionConfig$Logging */ => {
let var_259 =
Some(
crate::xml_deser::deser_structure_crate_model_streaming_logging_config(&mut tag)
?
)
;
builder = builder.set_logging(var_259);
}
,
s if s.matches("TrustedSigners") /* TrustedSigners com.amazonaws.cloudfront#StreamingDistributionConfig$TrustedSigners */ => {
let var_260 =
Some(
crate::xml_deser::deser_structure_crate_model_trusted_signers(&mut tag)
?
)
;
builder = builder.set_trusted_signers(var_260);
}
,
s if s.matches("PriceClass") /* PriceClass com.amazonaws.cloudfront#StreamingDistributionConfig$PriceClass */ => {
let var_261 =
Some(
Result::<crate::model::PriceClass, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PriceClass::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_price_class(var_261);
}
,
s if s.matches("Enabled") /* Enabled com.amazonaws.cloudfront#StreamingDistributionConfig$Enabled */ => {
let var_262 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudfront#boolean`)"))
}
?
)
;
builder = builder.set_enabled(var_262);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for StreamingDistributionConfig
impl Clone for StreamingDistributionConfig
source§fn clone(&self) -> StreamingDistributionConfig
fn clone(&self) -> StreamingDistributionConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more