InputSource
- class aws_cdk.aws_medialive_alpha.InputSource
Bases:
object(experimental) A source for a pull-type input.
Use the static factory methods to create.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
# stack: Stack # bucket: s3.IBucket medialive.Input(stack, "FileInput", input_name="mp4-file", input=medialive.InputConfiguration.mp4_file([ medialive.InputSource.from_bucket(bucket, "media/input.mp4") ]) )
- Stability:
experimental
Static Methods
- classmethod from_bucket(bucket, key)
(experimental) Create a source from an S3 bucket.
Automatically grants read access to the channel’s role.
- Parameters:
bucket (
IBucket) – The S3 bucket containing the source file.key (
str) – The object key within the bucket (e.g. ‘videos/intro.mp4’).
- Stability:
experimental
- Return type:
- classmethod url(url, *, password=None, username=None)
(experimental) Create a source from a URL.
- Parameters:
url (
str) – The URL where MediaLive pulls the source content from.password (
Optional[IStringParameter]) – (experimental) The SSM parameter that holds the password for accessing the upstream system. Default: - no passwordusername (
Optional[str]) – (experimental) The username for accessing the upstream system. Default: - no username
- Stability:
experimental
- Return type: