Skip to content
v2.278.0

Experimental

@aws-cdk/aws-mediapackagev2-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

HlsManifestConfiguration Struct ​

The HLS manifest configuration associated with the origin endpoint.

Example ​

ts
declare const channel: Channel;
declare const spekeRole: iam.IRole;

new OriginEndpoint(this, 'TsEndpoint', {
  channel,
  segment: Segment.ts({
    encryption: TsEncryption.speke({
      method: TsEncryptionMethod.SAMPLE_AES,
      resourceId: 'my-content-id',
      url: 'https://example.com/speke',
      role: spekeRole,
    }),
  }),
  manifests: [Manifest.hls({ manifestName: 'index' })],
});
python
# channel: Channel
# speke_role: iam.IRole


OriginEndpoint(self, "TsEndpoint",
    channel=channel,
    segment=Segment.ts(
        encryption=TsEncryption.speke(
            method=TsEncryptionMethod.SAMPLE_AES,
            resource_id="my-content-id",
            url="https://example.com/speke",
            role=speke_role
        )
    ),
    manifests=[Manifest.hls(manifest_name="index")]
)
java
Channel channel;
IRole spekeRole;


OriginEndpoint.Builder.create(this, "TsEndpoint")
        .channel(channel)
        .segment(Segment.ts(TsSegmentProps.builder()
                .encryption(TsEncryption.speke(TsSpekeEncryptionProps.builder()
                        .method(TsEncryptionMethod.SAMPLE_AES)
                        .resourceId("my-content-id")
                        .url("https://example.com/speke")
                        .role(spekeRole)
                        .build()))
                .build()))
        .manifests(List.of(Manifest.hls(HlsManifestConfiguration.builder().manifestName("index").build())))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaPackageV2.Alpha
Channel channel;
IRole spekeRole;


new OriginEndpoint(this, "TsEndpoint", new OriginEndpointProps {
    Channel = channel,
    Segment = Segment.Ts(new TsSegmentProps {
        Encryption = TsEncryption.Speke(new TsSpekeEncryptionProps {
            Method = TsEncryptionMethod.SAMPLE_AES,
            ResourceId = "my-content-id",
            Url = "https://example.com/speke",
            Role = spekeRole
        })
    }),
    Manifests = new [] { Manifest.Hls(new HlsManifestConfiguration { ManifestName = "index" }) }
});
go
// Install: go get github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2
var channel Channel
var spekeRole IRole


awsmediapackagev2alpha.NewOriginEndpoint(this, jsii.String("TsEndpoint"), &OriginEndpointProps{
	Channel: Channel,
	Segment: awsmediapackagev2alpha.Segment_Ts(&TsSegmentProps{
		Encryption: awsmediapackagev2alpha.TsEncryption_Speke(&TsSpekeEncryptionProps{
			Method: awsmediapackagev2alpha.TsEncryptionMethod_SAMPLE_AES,
			ResourceId: jsii.String("my-content-id"),
			Url: jsii.String("https://example.com/speke"),
			Role: spekeRole,
		}),
	}),
	Manifests: []Manifest{
		awsmediapackagev2alpha.Manifest_Hls(&HlsManifestConfiguration{
			ManifestName: jsii.String("index"),
		}),
	},
})

Properties ​

childManifestNameoptionalstringchild_manifest_nameoptionalstrchildManifestNameoptionalStringChildManifestNameoptionalstringChildManifestNameoptional*string #
The name of the child manifest associated with the HLS manifest configuration.

Default: No child manifest name specified

filterConfigurationoptionalFilterConfigurationfilter_configurationoptionalFilterConfigurationfilterConfigurationoptionalFilterConfigurationFilterConfigurationoptionalFilterConfigurationFilterConfigurationoptionalFilterConfiguration #
Filter configuration includes settings for manifest filtering, start and end times, and time delay that apply to all of your egress requests for this manifest.
manifestNamestringmanifest_namestrmanifestNameStringManifestNamestringManifestName*string required #
The name of the manifest associated with the HLS manifest configuration.
manifestWindowoptionalDurationmanifest_windowoptionalDurationmanifestWindowoptionalDurationManifestWindowoptionalDurationManifestWindowoptionalDuration = 60 #
The total duration (in seconds) of the manifest's content.
programDateTimeIntervaloptionalDurationprogram_date_time_intervaloptionalDurationprogramDateTimeIntervaloptionalDurationProgramDateTimeIntervaloptionalDurationProgramDateTimeIntervaloptionalDuration #
Inserts EXT-X-PROGRAM-DATE-TIME tags in the output manifest at the interval that you specify.

Default: No program date time interval

If you don't enter an interval, EXT-X-PROGRAM-DATE-TIME tags aren't included in the manifest. The tags sync the stream to the wall clock so that viewers can seek to a specific time in the playback timeline on the player.

scteAdMarkerHlsoptionalAdMarkerHlsscte_ad_marker_hlsoptionalAdMarkerHlsscteAdMarkerHlsoptionalAdMarkerHlsScteAdMarkerHlsoptionalAdMarkerHlsScteAdMarkerHlsoptionalAdMarkerHls #
The SCTE-35 HLS configuration associated with the HLS manifest configuration of the origin endpoint.

Default: No SCTE ad marker configuration

startTagoptionalStartTagstart_tagoptionalStartTagstartTagoptionalStartTagStartTagoptionalStartTagStartTagoptionalStartTag #
Insert EXT-X-START tag in the manifest with the configured settings.

Default: No start tag

urlEncodeChildManifestoptionalbooleanurl_encode_child_manifestoptionalboolurlEncodeChildManifestoptionalBooleanUrlEncodeChildManifestoptionalboolUrlEncodeChildManifestoptional*bool = false #
When enabled, MediaPackage URL-encodes the query string for API requests for HLS child manifests to comply with AWS Signature Version 4 (SigV4) signature signing protocol.

For more information, see AWS Signature Version 4 for API requests in AWS Identity and Access Management User Guide.