#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for StreamingDistributionSummary
Implementations
sourceimpl Builder
impl Builder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The identifier for the distribution, for example, EDFDVBD632BHDS5
.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The identifier for the distribution, for example, EDFDVBD632BHDS5
.
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 streaming distribution. For example: arn:aws:cloudfront::123456789012:streaming-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 streaming distribution. For example: arn:aws:cloudfront::123456789012:streaming-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
Indicates the current status of the distribution. When the status is Deployed
, the distribution's information is fully propagated throughout the Amazon CloudFront system.
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. When the status is Deployed
, the distribution's information is fully propagated throughout the Amazon CloudFront system.
sourcepub fn last_modified_time(self, input: DateTime) -> Self
pub fn last_modified_time(self, input: DateTime) -> Self
The date and time 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 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 corresponding to the distribution, for example, d111111abcdef8.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 corresponding to the distribution, for example, d111111abcdef8.cloudfront.net
.
sourcepub fn s3_origin(self, input: S3Origin) -> Self
pub fn s3_origin(self, input: S3Origin) -> Self
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 set_s3_origin(self, input: Option<S3Origin>) -> Self
pub fn set_s3_origin(self, input: Option<S3Origin>) -> Self
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, input: Aliases) -> Self
pub fn aliases(self, input: Aliases) -> Self
A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.
sourcepub fn set_aliases(self, input: Option<Aliases>) -> Self
pub fn set_aliases(self, input: Option<Aliases>) -> Self
A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.
sourcepub fn trusted_signers(self, input: TrustedSigners) -> Self
pub fn trusted_signers(self, input: TrustedSigners) -> Self
A complex type that specifies the Amazon Web Services accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern
for this cache behavior, specify true
for Enabled
, and specify the applicable values for Quantity
and Items
.If you don't want to require signed URLs in requests for objects that match PathPattern
, specify false
for Enabled
and 0
for Quantity
. Omit Items
. To add, change, or remove one or more trusted signers, change Enabled
to true
(if it's currently false
), change Quantity
as applicable, and specify all of the trusted signers that you want to include in the updated distribution.
For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
sourcepub fn set_trusted_signers(self, input: Option<TrustedSigners>) -> Self
pub fn set_trusted_signers(self, input: Option<TrustedSigners>) -> Self
A complex type that specifies the Amazon Web Services accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern
for this cache behavior, specify true
for Enabled
, and specify the applicable values for Quantity
and Items
.If you don't want to require signed URLs in requests for objects that match PathPattern
, specify false
for Enabled
and 0
for Quantity
. Omit Items
. To add, change, or remove one or more trusted signers, change Enabled
to true
(if it's currently false
), change Quantity
as applicable, and specify all of the trusted signers that you want to include in the updated distribution.
For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
sourcepub fn comment(self, input: impl Into<String>) -> Self
pub fn comment(self, input: impl Into<String>) -> Self
The comment originally specified when this distribution was created.
sourcepub fn set_comment(self, input: Option<String>) -> Self
pub fn set_comment(self, input: Option<String>) -> Self
The comment originally specified when this distribution was created.
sourcepub fn price_class(self, input: PriceClass) -> Self
pub fn price_class(self, input: PriceClass) -> Self
A complex type that contains information about price class for this streaming distribution.
sourcepub fn set_price_class(self, input: Option<PriceClass>) -> Self
pub fn set_price_class(self, input: Option<PriceClass>) -> Self
A complex type that contains information about price class for this streaming distribution.
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Whether the distribution is enabled to accept end user requests for content.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Whether the distribution is enabled to accept end user requests for content.
sourcepub fn build(self) -> StreamingDistributionSummary
pub fn build(self) -> StreamingDistributionSummary
Consumes the builder and constructs a StreamingDistributionSummary
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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