Queue
The Queue resource lets you manage AWS MediaConvert Queues for processing media files using AWS MediaConvert service.
Minimal Example
Section titled “Minimal Example”Create a basic MediaConvert queue with a specified name and default settings:
import AWS from "alchemy/aws/control";
const mediaConvertQueue = await AWS.MediaConvert.Queue("basicQueue", { name: "StandardQueue", status: "ACTIVE", description: "A standard queue for processing video files", pricingPlan: "ON_DEMAND", concurrentJobs: 5});
Advanced Configuration
Section titled “Advanced Configuration”Configure a MediaConvert queue with additional options such as tagging and status:
const advancedQueue = await AWS.MediaConvert.Queue("advancedQueue", { name: "AdvancedQueue", status: "ACTIVE", description: "An advanced queue for high priority video processing", pricingPlan: "ON_DEMAND", concurrentJobs: 10, tags: { Project: "VideoProcessing", Environment: "Production" }});
Queue with Adoption
Section titled “Queue with Adoption”Create a MediaConvert queue that adopts an existing resource if it exists:
const adoptQueue = await AWS.MediaConvert.Queue("adoptedQueue", { name: "AdoptedQueue", status: "ACTIVE", description: "A queue that adopts existing resources", concurrentJobs: 3, adopt: true});
Queue with High Throughput
Section titled “Queue with High Throughput”Set up a MediaConvert queue optimized for high throughput:
const highThroughputQueue = await AWS.MediaConvert.Queue("highThroughputQueue", { name: "HighThroughputQueue", status: "ACTIVE", description: "A queue optimized for high throughput processing", pricingPlan: "ON_DEMAND", concurrentJobs: 20, tags: { UseCase: "LiveStreaming", Priority: "High" }});