#[non_exhaustive]pub struct CreateOriginEndpointInput { /* private fields */ }
Expand description
Configuration parameters used to create a new OriginEndpoint.
Implementations§
source§impl CreateOriginEndpointInput
impl CreateOriginEndpointInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateOriginEndpoint, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateOriginEndpoint, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateOriginEndpoint
>
Examples found in repository?
782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateOriginEndpoint,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateOriginEndpointError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateOriginEndpointOutput,
aws_smithy_http::result::SdkError<crate::error::CreateOriginEndpointError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateOriginEndpointInput
.
source§impl CreateOriginEndpointInput
impl CreateOriginEndpointInput
CDN Authorization credentials
sourcepub fn channel_id(&self) -> Option<&str>
pub fn channel_id(&self) -> Option<&str>
The ID of the Channel that the OriginEndpoint will be associated with. This cannot be changed after the OriginEndpoint is created.
sourcepub fn cmaf_package(&self) -> Option<&CmafPackageCreateOrUpdateParameters>
pub fn cmaf_package(&self) -> Option<&CmafPackageCreateOrUpdateParameters>
A Common Media Application Format (CMAF) packaging configuration.
sourcepub fn dash_package(&self) -> Option<&DashPackage>
pub fn dash_package(&self) -> Option<&DashPackage>
A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A short text description of the OriginEndpoint.
sourcepub fn hls_package(&self) -> Option<&HlsPackage>
pub fn hls_package(&self) -> Option<&HlsPackage>
An HTTP Live Streaming (HLS) packaging configuration.
sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
The ID of the OriginEndpoint. The ID must be unique within the region and it cannot be changed after the OriginEndpoint is created.
sourcepub fn manifest_name(&self) -> Option<&str>
pub fn manifest_name(&self) -> Option<&str>
A short string that will be used as the filename of the OriginEndpoint URL (defaults to “index”).
sourcepub fn mss_package(&self) -> Option<&MssPackage>
pub fn mss_package(&self) -> Option<&MssPackage>
A Microsoft Smooth Streaming (MSS) packaging configuration.
sourcepub fn origination(&self) -> Option<&Origination>
pub fn origination(&self) -> Option<&Origination>
Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination
sourcepub fn startover_window_seconds(&self) -> i32
pub fn startover_window_seconds(&self) -> i32
Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.
A collection of tags associated with a resource
sourcepub fn time_delay_seconds(&self) -> i32
pub fn time_delay_seconds(&self) -> i32
Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.
Trait Implementations§
source§impl Clone for CreateOriginEndpointInput
impl Clone for CreateOriginEndpointInput
source§fn clone(&self) -> CreateOriginEndpointInput
fn clone(&self) -> CreateOriginEndpointInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more