interface SegmentPropsBase
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaPackageV2.Alpha.SegmentPropsBase |
Go | github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2#SegmentPropsBase |
Java | software.amazon.awscdk.services.mediapackagev2.alpha.SegmentPropsBase |
Python | aws_cdk.aws_mediapackagev2_alpha.SegmentPropsBase |
TypeScript (source) | @aws-cdk/aws-mediapackagev2-alpha ยป SegmentPropsBase |
Base properties common to all 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';
import * as cdk from 'aws-cdk-lib';
const segmentPropsBase: mediapackagev2_alpha.SegmentPropsBase = {
duration: cdk.Duration.minutes(30),
includeIframeOnlyStreams: false,
name: 'name',
};
Properties
| Name | Type | Description |
|---|---|---|
| duration? | Duration | Duration of each segment. |
| include | boolean | Whether to include I-frame-only streams. |
| name? | string | Name of the segment. |
duration?
Type:
Duration
(optional, default: Duration.seconds(6))
Duration of each segment.
includeIframeOnlyStreams?
Type:
boolean
(optional, default: false)
Whether to include I-frame-only streams.
name?
Type:
string
(optional, default: 'segment')
Name of the segment.

.NET
Go
Java
Python
TypeScript (