class InputSource
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.InputSource |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#InputSource |
Java | software.amazon.awscdk.services.medialive.alpha.InputSource |
Python | aws_cdk.aws_medialive_alpha.InputSource |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป InputSource |
A source for a pull-type input.
Use the static factory methods to create.
Example
declare const stack: Stack;
declare const bucket: s3.IBucket;
new medialive.Input(stack, 'FileInput', {
inputName: 'mp4-file',
input: medialive.InputConfiguration.mp4File([
medialive.InputSource.fromBucket(bucket, 'media/input.mp4'),
]),
});
Initializer
new InputSource()
Methods
| Name | Description |
|---|---|
| static from | Create a source from an S3 bucket. |
| static url(url, options?) | Create a source from a URL. |
static fromBucket(bucket, key)
public static fromBucket(bucket: IBucket, key: string): InputSource
Parameters
- bucket
IBucketโ The S3 bucket containing the source file. - key
stringโ The object key within the bucket (e.g. 'videos/intro.mp4').
Returns
Create a source from an S3 bucket.
Automatically grants read access to the channel's role.
static url(url, options?)
public static url(url: string, options?: InputSourceOptions): InputSource
Parameters
- url
stringโ The URL where MediaLive pulls the source content from. - options
Inputโ Optional credentials.Source Options
Returns
Create a source from a URL.

.NET
Go
Java
Python
TypeScript (