interface SegmentProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaPackageV2.CfnOriginEndpoint.SegmentProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsmediapackagev2#CfnOriginEndpoint_SegmentProperty |
Java | software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.SegmentProperty |
Python | aws_cdk.aws_mediapackagev2.CfnOriginEndpoint.SegmentProperty |
TypeScript | aws-cdk-lib » aws_mediapackagev2 » CfnOriginEndpoint » SegmentProperty |
The segment configuration, including the segment name, duration, and other configuration values.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediapackagev2 as mediapackagev2 } from 'aws-cdk-lib';
const segmentProperty: mediapackagev2.CfnOriginEndpoint.SegmentProperty = {
encryption: {
encryptionMethod: {
cmafEncryptionMethod: 'cmafEncryptionMethod',
ismEncryptionMethod: 'ismEncryptionMethod',
tsEncryptionMethod: 'tsEncryptionMethod',
},
spekeKeyProvider: {
drmSystems: ['drmSystems'],
encryptionContractConfiguration: {
presetSpeke20Audio: 'presetSpeke20Audio',
presetSpeke20Video: 'presetSpeke20Video',
},
resourceId: 'resourceId',
roleArn: 'roleArn',
url: 'url',
},
// the properties below are optional
cmafExcludeSegmentDrmMetadata: false,
constantInitializationVector: 'constantInitializationVector',
keyRotationIntervalSeconds: 123,
},
includeIframeOnlyStreams: false,
scte: {
scteFilter: ['scteFilter'],
},
segmentDurationSeconds: 123,
segmentName: 'segmentName',
tsIncludeDvbSubtitles: false,
tsUseAudioRenditionGroup: false,
};
Properties
| Name | Type | Description |
|---|---|---|
| encryption? | IResolvable | Encryption | Whether to use encryption for the segment. |
| include | boolean | IResolvable | Whether the segment includes I-frame-only streams. |
| scte? | IResolvable | Scte | The SCTE-35 configuration associated with the segment. |
| segment | number | The duration of the segment, in seconds. |
| segment | string | The name of the segment associated with the origin endpoint. |
| ts | boolean | IResolvable | Whether the segment includes DVB subtitles. |
| ts | boolean | IResolvable | Whether the segment is an audio rendition group. |
encryption?
Type:
IResolvable | Encryption
(optional)
Whether to use encryption for the segment.
includeIframeOnlyStreams?
Type:
boolean | IResolvable
(optional)
Whether the segment includes I-frame-only streams.
scte?
Type:
IResolvable | Scte
(optional)
The SCTE-35 configuration associated with the segment.
segmentDurationSeconds?
Type:
number
(optional)
The duration of the segment, in seconds.
segmentName?
Type:
string
(optional)
The name of the segment associated with the origin endpoint.
tsIncludeDvbSubtitles?
Type:
boolean | IResolvable
(optional)
Whether the segment includes DVB subtitles.
tsUseAudioRenditionGroup?
Type:
boolean | IResolvable
(optional)
Whether the segment is an audio rendition group.

.NET
Go
Java
Python
TypeScript