class Segment
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaPackageV2.Alpha.Segment |
Go | github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2#Segment |
Java | software.amazon.awscdk.services.mediapackagev2.alpha.Segment |
Python | aws_cdk.aws_mediapackagev2_alpha.Segment |
TypeScript (source) | @aws-cdk/aws-mediapackagev2-alpha ยป Segment |
Helper class for creating segment configurations.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as mediapackagev2_alpha from '@aws-cdk/aws-mediapackagev2-alpha';
const segment = new mediapackagev2_alpha.Segment();
Initializer
new Segment()
Methods
| Name | Description |
|---|---|
| static cmaf(props?) | Create a CMAF segment configuration. |
| static ism(props?) | Create an ISM (Microsoft Smooth Streaming) segment configuration. |
| static ts(props?) | Create a TS (Transport Stream) segment configuration. |
static cmaf(props?)
public static cmaf(props?: CmafSegmentProps): SegmentConfiguration
Parameters
- props
CmafSegment Props
Returns
Create a CMAF segment configuration.
Use this for endpoints with ContainerType.CMAF.
static ism(props?)
public static ism(props?: IsmSegmentProps): SegmentConfiguration
Parameters
- props
IsmSegment Props
Returns
Create an ISM (Microsoft Smooth Streaming) segment configuration.
Use this for endpoints with ContainerType.ISM.
static ts(props?)
public static ts(props?: TsSegmentProps): SegmentConfiguration
Parameters
- props
TsSegment Props
Returns
Create a TS (Transport Stream) segment configuration.
Use this for endpoints with ContainerType.TS.

.NET
Go
Java
Python
TypeScript (