#[non_exhaustive]pub struct StreamingDistributionConfig {
pub caller_reference: String,
pub s3_origin: Option<S3Origin>,
pub aliases: Option<Aliases>,
pub comment: String,
pub logging: Option<StreamingLoggingConfig>,
pub trusted_signers: Option<TrustedSigners>,
pub price_class: Option<PriceClass>,
pub enabled: bool,
}Expand description
The RTMP distribution's configuration information.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.caller_reference: StringA 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.
s3_origin: 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.
aliases: Option<Aliases>A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.
comment: StringAny comments you want to include about the streaming distribution.
logging: Option<StreamingLoggingConfig>A complex type that controls whether access logs are written for the streaming distribution.
trusted_signers: 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.
price_class: Option<PriceClass>A complex type that contains information about price class for this streaming distribution.
enabled: boolWhether the streaming distribution is enabled to accept user requests for content.
Implementations§
source§impl StreamingDistributionConfig
impl StreamingDistributionConfig
sourcepub fn caller_reference(&self) -> &str
pub fn caller_reference(&self) -> &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) -> &str
pub fn comment(&self) -> &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() -> StreamingDistributionConfigBuilder
pub fn builder() -> StreamingDistributionConfigBuilder
Creates a new builder-style object to manufacture StreamingDistributionConfig.
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 moresource§impl Debug for StreamingDistributionConfig
impl Debug for StreamingDistributionConfig
source§impl PartialEq for StreamingDistributionConfig
impl PartialEq for StreamingDistributionConfig
source§fn eq(&self, other: &StreamingDistributionConfig) -> bool
fn eq(&self, other: &StreamingDistributionConfig) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for StreamingDistributionConfig
Auto Trait Implementations§
impl Freeze for StreamingDistributionConfig
impl RefUnwindSafe for StreamingDistributionConfig
impl Send for StreamingDistributionConfig
impl Sync for StreamingDistributionConfig
impl Unpin for StreamingDistributionConfig
impl UnwindSafe for StreamingDistributionConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more