#[non_exhaustive]pub struct StreamingDistributionConfig {
pub caller_reference: Option<String>,
pub s3_origin: Option<S3Origin>,
pub aliases: Option<Aliases>,
pub comment: Option<String>,
pub logging: Option<StreamingLoggingConfig>,
pub trusted_signers: Option<TrustedSigners>,
pub price_class: Option<PriceClass>,
pub enabled: Option<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: Option<String>
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.
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: Option<String>
Any 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: Option<bool>
Whether the streaming distribution is enabled to accept user requests for content.
Implementations
sourceimpl 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.
sourceimpl StreamingDistributionConfig
impl StreamingDistributionConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StreamingDistributionConfig
Trait Implementations
sourceimpl Clone for StreamingDistributionConfig
impl Clone for StreamingDistributionConfig
sourcefn clone(&self) -> StreamingDistributionConfig
fn clone(&self) -> StreamingDistributionConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StreamingDistributionConfig
impl Debug for StreamingDistributionConfig
sourceimpl PartialEq<StreamingDistributionConfig> for StreamingDistributionConfig
impl PartialEq<StreamingDistributionConfig> for StreamingDistributionConfig
sourcefn eq(&self, other: &StreamingDistributionConfig) -> bool
fn eq(&self, other: &StreamingDistributionConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StreamingDistributionConfig) -> bool
fn ne(&self, other: &StreamingDistributionConfig) -> bool
This method tests for !=
.
impl StructuralPartialEq for StreamingDistributionConfig
Auto Trait Implementations
impl RefUnwindSafe for StreamingDistributionConfig
impl Send for StreamingDistributionConfig
impl Sync for StreamingDistributionConfig
impl Unpin for StreamingDistributionConfig
impl UnwindSafe for StreamingDistributionConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more