To create a transcoding pipeline, you need to specify the input and output S3 buckets and IAM role that grants Elastic Transcoder the necessary permissions.
Example (Python code using Boto3):
import boto3
# Initialize the Elastic Transcoder client
transcoder = boto3.client('elastictranscoder', region_name='us-west-2')
# Create a new pipeline
response = transcoder.create_pipeline(
Name='MyPipeline',
InputBucket='my-input-bucket',
OutputBucket='my-output-bucket',
Role='arn:aws:iam::123456789012:role/Elastic_Transcoder_Default_Role'
)
print('Pipeline ID:', response['Pipeline']['Id'])