AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

Note:

This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginCreatePreset and EndCreatePreset.

Namespace: Amazon.ElasticTranscoder
Assembly: AWSSDK.ElasticTranscoder.dll
Version: 3.x.y.z

Syntax

C#
public abstract Task<CreatePresetResponse> CreatePresetAsync(
         CreatePresetRequest request,
         CancellationToken cancellationToken
)

Parameters

request
Type: Amazon.ElasticTranscoder.Model.CreatePresetRequest

Container for the necessary parameters to execute the CreatePreset service method.

cancellationToken
Type: System.Threading.CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Return Value


The response from the CreatePreset service method, as returned by ElasticTranscoder.

Exceptions

ExceptionCondition
AccessDeniedException General authentication failure. The request was not signed correctly.
IncompatibleVersionException
InternalServiceException Elastic Transcoder encountered an unexpected exception while trying to fulfill the request.
LimitExceededException Too many operations for a given AWS account. For example, the number of pipelines exceeds the maximum allowed.
ValidationException One or more required parameter values were not provided in the request.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5

See Also