Segment

class aws_cdk.aws_medialive_alpha.Segment(*args: Any, **kwargs)

Bases: object

(experimental) The length of a media segment for an output group.

Express the length in whole seconds with {@link Segment.seconds} or in milliseconds with {@link Segment.milliseconds}. Some output groups (e.g. HLS) only support whole-second segments and will reject sub-second millisecond values.

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_medialive_alpha as medialive_alpha

segment = medialive_alpha.Segment.milliseconds(123)

Static Methods

classmethod milliseconds(value)

(experimental) A segment length in milliseconds.

Parameters:

value (Union[int, float]) – Number of milliseconds (non-negative integer).

Stability:

experimental

Return type:

Segment

classmethod seconds(value)

(experimental) A segment length in whole seconds.

Parameters:

value (Union[int, float]) – Number of seconds (non-negative integer).

Stability:

experimental

Return type:

Segment