aws-cdk-lib.aws_mediapackage.CfnPackagingConfiguration.CmafPackageProperty

interface CmafPackageProperty

LanguageType name
.NETAmazon.CDK.AWS.MediaPackage.CfnPackagingConfiguration.CmafPackageProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsmediapackage#CfnPackagingConfiguration_CmafPackageProperty
Javasoftware.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.CmafPackageProperty
Pythonaws_cdk.aws_mediapackage.CfnPackagingConfiguration.CmafPackageProperty
TypeScript aws-cdk-lib » aws_mediapackage » CfnPackagingConfiguration » CmafPackageProperty

Parameters for a packaging configuration that uses Common Media Application Format (CMAF) packaging.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediapackage as mediapackage } from 'aws-cdk-lib';
const cmafPackageProperty: mediapackage.CfnPackagingConfiguration.CmafPackageProperty = {
  hlsManifests: [{
    adMarkers: 'adMarkers',
    includeIframeOnlyStream: false,
    manifestName: 'manifestName',
    programDateTimeIntervalSeconds: 123,
    repeatExtXKey: false,
    streamSelection: {
      maxVideoBitsPerSecond: 123,
      minVideoBitsPerSecond: 123,
      streamOrder: 'streamOrder',
    },
  }],

  // the properties below are optional
  encryption: {
    spekeKeyProvider: {
      roleArn: 'roleArn',
      systemIds: ['systemIds'],
      url: 'url',

      // the properties below are optional
      encryptionContractConfiguration: { },
    },
  },
  includeEncoderConfigurationInSegments: false,
  segmentDurationSeconds: 123,
};

Properties

NameTypeDescription
hlsManifestsIResolvable | IResolvable | HlsManifestProperty[]A list of HLS manifest configurations that are available from this endpoint.
encryption?IResolvable | CmafEncryptionPropertyParameters for encrypting content.
includeEncoderConfigurationInSegments?boolean | IResolvableWhen includeEncoderConfigurationInSegments is set to true, AWS Elemental MediaPackage places your encoder's Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) metadata in every video segment instead of in the init fragment.
segmentDurationSeconds?numberDuration (in seconds) of each segment.

hlsManifests

Type: IResolvable | IResolvable | HlsManifestProperty[]

A list of HLS manifest configurations that are available from this endpoint.


encryption?

Type: IResolvable | CmafEncryptionProperty (optional)

Parameters for encrypting content.


includeEncoderConfigurationInSegments?

Type: boolean | IResolvable (optional)

When includeEncoderConfigurationInSegments is set to true, AWS Elemental MediaPackage places your encoder's Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) metadata in every video segment instead of in the init fragment.

This lets you use different SPS/PPS/VPS settings for your assets during content playback.


segmentDurationSeconds?

Type: number (optional)

Duration (in seconds) of each segment.

Actual segments are rounded to the nearest multiple of the source fragment duration.