#[non_exhaustive]pub struct StreamingDistributionBuilder { /* private fields */ }
Expand description
A builder for StreamingDistribution
.
Implementations§
source§impl StreamingDistributionBuilder
impl StreamingDistributionBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The identifier for the RTMP distribution. For example: EGTXBD79EXAMPLE
.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The identifier for the RTMP distribution. For example: EGTXBD79EXAMPLE
.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The identifier for the RTMP distribution. For example: EGTXBD79EXAMPLE
.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
, where 123456789012
is your Amazon Web Services account ID.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
, where 123456789012
is your Amazon Web Services account ID.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5
, where 123456789012
is your Amazon Web Services account ID.
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
The current status of the RTMP distribution. When the status is Deployed
, the distribution's information is propagated to all CloudFront edge locations.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The current status of the RTMP distribution. When the status is Deployed
, the distribution's information is propagated to all CloudFront edge locations.
sourcepub fn get_status(&self) -> &Option<String>
pub fn get_status(&self) -> &Option<String>
The current status of the RTMP distribution. When the status is Deployed
, the distribution's information is propagated to all CloudFront edge locations.
sourcepub fn last_modified_time(self, input: DateTime) -> Self
pub fn last_modified_time(self, input: DateTime) -> Self
The date and time that the distribution was last modified.
sourcepub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
pub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
The date and time that the distribution was last modified.
sourcepub fn get_last_modified_time(&self) -> &Option<DateTime>
pub fn get_last_modified_time(&self) -> &Option<DateTime>
The date and time that the distribution was last modified.
sourcepub fn domain_name(self, input: impl Into<String>) -> Self
pub fn domain_name(self, input: impl Into<String>) -> Self
The domain name that corresponds to the streaming distribution, for example, s5c39gqb8ow64r.cloudfront.net
.
sourcepub fn set_domain_name(self, input: Option<String>) -> Self
pub fn set_domain_name(self, input: Option<String>) -> Self
The domain name that corresponds to the streaming distribution, for example, s5c39gqb8ow64r.cloudfront.net
.
sourcepub fn get_domain_name(&self) -> &Option<String>
pub fn get_domain_name(&self) -> &Option<String>
The domain name that corresponds to the streaming distribution, for example, s5c39gqb8ow64r.cloudfront.net
.
sourcepub fn active_trusted_signers(self, input: ActiveTrustedSigners) -> Self
pub fn active_trusted_signers(self, input: ActiveTrustedSigners) -> Self
A complex type that lists the Amazon Web Services accounts, if any, that you included in the TrustedSigners
complex type for this distribution. These are the accounts that you want to allow to create signed URLs for private content.
The Signer
complex type lists the Amazon Web Services account number of the trusted signer or self
if the signer is the Amazon Web Services account that created the distribution. The Signer
element also includes the IDs of any active CloudFront key pairs that are associated with the trusted signer's Amazon Web Services account. If no KeyPairId
element appears for a Signer
, that signer can't create signed URLs.
For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
This field is required.sourcepub fn set_active_trusted_signers(
self,
input: Option<ActiveTrustedSigners>
) -> Self
pub fn set_active_trusted_signers( self, input: Option<ActiveTrustedSigners> ) -> Self
A complex type that lists the Amazon Web Services accounts, if any, that you included in the TrustedSigners
complex type for this distribution. These are the accounts that you want to allow to create signed URLs for private content.
The Signer
complex type lists the Amazon Web Services account number of the trusted signer or self
if the signer is the Amazon Web Services account that created the distribution. The Signer
element also includes the IDs of any active CloudFront key pairs that are associated with the trusted signer's Amazon Web Services account. If no KeyPairId
element appears for a Signer
, that signer can't create signed URLs.
For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
sourcepub fn get_active_trusted_signers(&self) -> &Option<ActiveTrustedSigners>
pub fn get_active_trusted_signers(&self) -> &Option<ActiveTrustedSigners>
A complex type that lists the Amazon Web Services accounts, if any, that you included in the TrustedSigners
complex type for this distribution. These are the accounts that you want to allow to create signed URLs for private content.
The Signer
complex type lists the Amazon Web Services account number of the trusted signer or self
if the signer is the Amazon Web Services account that created the distribution. The Signer
element also includes the IDs of any active CloudFront key pairs that are associated with the trusted signer's Amazon Web Services account. If no KeyPairId
element appears for a Signer
, that signer can't create signed URLs.
For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
sourcepub fn streaming_distribution_config(
self,
input: StreamingDistributionConfig
) -> Self
pub fn streaming_distribution_config( self, input: StreamingDistributionConfig ) -> Self
The current configuration information for the RTMP distribution.
This field is required.sourcepub fn set_streaming_distribution_config(
self,
input: Option<StreamingDistributionConfig>
) -> Self
pub fn set_streaming_distribution_config( self, input: Option<StreamingDistributionConfig> ) -> Self
The current configuration information for the RTMP distribution.
sourcepub fn get_streaming_distribution_config(
&self
) -> &Option<StreamingDistributionConfig>
pub fn get_streaming_distribution_config( &self ) -> &Option<StreamingDistributionConfig>
The current configuration information for the RTMP distribution.
sourcepub fn build(self) -> Result<StreamingDistribution, BuildError>
pub fn build(self) -> Result<StreamingDistribution, BuildError>
Consumes the builder and constructs a StreamingDistribution
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for StreamingDistributionBuilder
impl Clone for StreamingDistributionBuilder
source§fn clone(&self) -> StreamingDistributionBuilder
fn clone(&self) -> StreamingDistributionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StreamingDistributionBuilder
impl Debug for StreamingDistributionBuilder
source§impl Default for StreamingDistributionBuilder
impl Default for StreamingDistributionBuilder
source§fn default() -> StreamingDistributionBuilder
fn default() -> StreamingDistributionBuilder
source§impl PartialEq for StreamingDistributionBuilder
impl PartialEq for StreamingDistributionBuilder
source§fn eq(&self, other: &StreamingDistributionBuilder) -> bool
fn eq(&self, other: &StreamingDistributionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StreamingDistributionBuilder
Auto Trait Implementations§
impl Freeze for StreamingDistributionBuilder
impl RefUnwindSafe for StreamingDistributionBuilder
impl Send for StreamingDistributionBuilder
impl Sync for StreamingDistributionBuilder
impl Unpin for StreamingDistributionBuilder
impl UnwindSafe for StreamingDistributionBuilder
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