Code examples for MediaConvert using AWS SDKs - AWS SDK Code Examples

There are more AWS SDK examples available in the AWS Doc SDK Examples GitHub repo.

Code examples for MediaConvert using AWS SDKs

The following code examples show you how to use AWS Elemental MediaConvert with an AWS software development kit (SDK).

Actions are code excerpts from larger programs and must be run in context. While actions show you how to call individual service functions, you can see actions in context in their related scenarios and cross-service examples.

More resources

Get started

The following code example shows how to get started using AWS Elemental MediaConvert.

.NET
AWS SDK for .NET
Note

There's more on GitHub. Find the complete example and learn how to set up and run in the AWS Code Examples Repository.

using Amazon.MediaConvert; using Amazon.MediaConvert.Model; namespace MediaConvertActions; public static class HelloMediaConvert { static async Task Main(string[] args) { // Create the client using the default profile. var mediaConvertClient = new AmazonMediaConvertClient(); Console.WriteLine($"Hello AWS Elemental MediaConvert! Your MediaConvert Endpoints are:"); Console.WriteLine(); // You can use await and any of the async methods to get a response. // Let's get the MediaConvert endpoints. var response = await mediaConvertClient.DescribeEndpointsAsync( new DescribeEndpointsRequest() ); foreach (var endPoint in response.Endpoints) { Console.WriteLine($"\tEndPoint: {endPoint.Url}"); Console.WriteLine(); } } }