java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.medialive.alpha.InputSource
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-02T11:03:41.201Z") @Stability(Experimental) public abstract class InputSource extends software.amazon.jsii.JsiiObject
(experimental) A source for a pull-type input.

Use the static factory methods to create.

Example:

 Stack stack;
 IBucket bucket;
 Input.Builder.create(stack, "FileInput")
         .inputName("mp4-file")
         .input(InputConfiguration.mp4File(List.of(InputSource.fromBucket(bucket, "media/input.mp4"))))
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    InputSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    InputSource(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    fromBucket(IBucket bucket, String key)
    (experimental) Create a source from an S3 bucket.
    url(String url)
    (experimental) Create a source from a URL.
    url(String url, InputSourceOptions options)
    (experimental) Create a source from a URL.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • InputSource

      protected InputSource(software.amazon.jsii.JsiiObjectRef objRef)
    • InputSource

      protected InputSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • InputSource

      @Stability(Experimental) protected InputSource()
  • Method Details

    • fromBucket

      @Stability(Experimental) @NotNull public static InputSource fromBucket(@NotNull IBucket bucket, @NotNull String key)
      (experimental) Create a source from an S3 bucket.

      Automatically grants read access to the channel's role.

      Parameters:
      bucket - The S3 bucket containing the source file. This parameter is required.
      key - The object key within the bucket (e.g. 'videos/intro.mp4'). This parameter is required.
    • url

      @Stability(Experimental) @NotNull public static InputSource url(@NotNull String url, @Nullable InputSourceOptions options)
      (experimental) Create a source from a URL.

      Parameters:
      url - The URL where MediaLive pulls the source content from. This parameter is required.
      options - Optional credentials.
    • url

      @Stability(Experimental) @NotNull public static InputSource url(@NotNull String url)
      (experimental) Create a source from a URL.

      Parameters:
      url - The URL where MediaLive pulls the source content from. This parameter is required.