Struct aws_sdk_elastictranscoder::client::fluent_builders::CreatePreset [−][src]
pub struct CreatePreset<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreatePreset
.
The CreatePreset operation creates a preset with settings that you specify.
Elastic Transcoder checks the CreatePreset settings to ensure that they meet Elastic Transcoder requirements
and to determine whether they comply with H.264 standards. If your settings are not
valid for Elastic Transcoder, Elastic Transcoder returns an HTTP 400 response (ValidationException
) and
does not create the preset. If the settings are valid for Elastic Transcoder but aren't strictly
compliant with the H.264 standard, Elastic Transcoder creates the preset and returns a warning message
in the response. This helps you determine whether your settings comply with the H.264
standard while giving you greater flexibility with respect to the video that Elastic Transcoder
produces.
Elastic Transcoder uses the H.264 video-compression format. For more information, see the International Telecommunication Union publication Recommendation ITU-T H.264: Advanced video coding for generic audiovisual services.
Implementations
impl<C, M, R> CreatePreset<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreatePreset<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreatePresetOutput, SdkError<CreatePresetError>> where
R::Policy: SmithyRetryPolicy<CreatePresetInputOperationOutputAlias, CreatePresetOutput, CreatePresetError, CreatePresetInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreatePresetOutput, SdkError<CreatePresetError>> where
R::Policy: SmithyRetryPolicy<CreatePresetInputOperationOutputAlias, CreatePresetOutput, CreatePresetError, CreatePresetInputOperationRetryAlias>,
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, which can be set when configuring the client.
The name of the preset. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.
The name of the preset. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.
A description of the preset.
A description of the preset.
The container type for the output file. Valid values include flac
,
flv
, fmp4
,
gif
, mp3
,
mp4
, mpg
, mxf
, oga
,
ogg
, ts
, and webm
.
The container type for the output file. Valid values include flac
,
flv
, fmp4
,
gif
, mp3
,
mp4
, mpg
, mxf
, oga
,
ogg
, ts
, and webm
.
A section of the request body that specifies the video parameters.
A section of the request body that specifies the video parameters.
A section of the request body that specifies the audio parameters.
A section of the request body that specifies the audio parameters.
A section of the request body that specifies the thumbnail parameters, if any.
A section of the request body that specifies the thumbnail parameters, if any.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreatePreset<C, M, R>
impl<C, M, R> Unpin for CreatePreset<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreatePreset<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more