Experimental
@aws-cdk/aws-mediapackagev2-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
Segment Class
Helper class for creating segment configurations.
| Stability | Experimental |
|---|---|
| Source | lib/endpoint.ts |
Example
ts
// 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();
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_mediapackagev2_alpha as mediapackagev2_alpha
segment = mediapackagev2_alpha.Segment()
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaPackageV2.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaPackageV2.Alpha;
var segment = new Segment();
go
// Install: go get github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import mediapackagev2_alpha "github.com/aws/aws-cdk-go/awsmediapackagev2alpha"
segment := mediapackagev2_alpha.NewSegment()
Initializer
ts
new Segment()
python
Segment()
java
new Segment()
csharp
new Segment()
go
NewSegment()
Methods
cmaf(props?: CmafSegmentProps): SegmentConfiguration@staticmethod def cmaf(props: typing.Optional[CmafSegmentProps] = None) -> SegmentConfigurationpublic static SegmentConfiguration cmaf(CmafSegmentProps props)public static SegmentConfiguration Cmaf(CmafSegmentProps? props = null)func Cmaf(Props CmafSegmentProps) SegmentConfiguration static #Create a CMAF segment configuration.
Use this for endpoints with ContainerType.CMAF.
ism(props?: IsmSegmentProps): SegmentConfiguration@staticmethod def ism(props: typing.Optional[IsmSegmentProps] = None) -> SegmentConfigurationpublic static SegmentConfiguration ism(IsmSegmentProps props)public static SegmentConfiguration Ism(IsmSegmentProps? props = null)func Ism(Props IsmSegmentProps) SegmentConfiguration static #Create an ISM (Microsoft Smooth Streaming) segment configuration.
Use this for endpoints with ContainerType.ISM.
ts(props?: TsSegmentProps): SegmentConfiguration@staticmethod def ts(props: typing.Optional[TsSegmentProps] = None) -> SegmentConfigurationpublic static SegmentConfiguration ts(TsSegmentProps props)public static SegmentConfiguration Ts(TsSegmentProps? props = null)func Ts(Props TsSegmentProps) SegmentConfiguration static #Create a TS (Transport Stream) segment configuration.
Use this for endpoints with ContainerType.TS.