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

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-02T11:03:41.332Z") @Stability(Experimental) public class Segment extends software.amazon.jsii.JsiiObject
(experimental) The length of a media segment for an output group.

Express the length in whole seconds with

invalid reference
Segment.seconds
or in milliseconds with
invalid reference
Segment.milliseconds
. Some output groups (e.g. HLS) only support whole-second segments and will reject sub-second millisecond values.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.medialive.alpha.*;
 Segment segment = Segment.milliseconds(123);
 
  • 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
    Segment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Segment(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Segment
    (experimental) A segment length in milliseconds.
    static Segment
    seconds(Number value)
    (experimental) A segment length in whole seconds.

    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

    • Segment

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

      protected Segment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • milliseconds

      @Stability(Experimental) @NotNull public static Segment milliseconds(@NotNull Number value)
      (experimental) A segment length in milliseconds.

      Parameters:
      value - Number of milliseconds (non-negative integer). This parameter is required.
    • seconds

      @Stability(Experimental) @NotNull public static Segment seconds(@NotNull Number value)
      (experimental) A segment length in whole seconds.

      Parameters:
      value - Number of seconds (non-negative integer). This parameter is required.