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.

FilterConfiguration Struct ​

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.

Example ​

ts
declare const channel: Channel;

new OriginEndpoint(this, 'Endpoint', {
  channel,
  segment: Segment.cmaf(),
  manifests: [
    Manifest.hls({
      manifestName: 'index',
      filterConfiguration: {
        manifestFilter: [
          // video_height:240-360,720-1080,1440
          ManifestFilter.numericCombo(NumericFilterKey.VIDEO_HEIGHT, [
            NumericExpression.range(240, 360),
            NumericExpression.range(720, 1080),
            NumericExpression.value(1440),
          ]),
        ],
      },
    }),
  ],
});
python
from aws_cdk.aws_mediapackagev2_alpha import FilterConfiguration
# channel: Channel


OriginEndpoint(self, "Endpoint",
    channel=channel,
    segment=Segment.cmaf(),
    manifests=[
        Manifest.hls(
            manifest_name="index",
            filter_configuration=FilterConfiguration(
                manifest_filter=[
                    # video_height:240-360,720-1080,1440
                    ManifestFilter.numeric_combo(NumericFilterKey.VIDEO_HEIGHT, [
                        NumericExpression.range(240, 360),
                        NumericExpression.range(720, 1080),
                        NumericExpression.value(1440)
                    ])
                ]
            )
        )
    ]
)
java
Channel channel;


OriginEndpoint.Builder.create(this, "Endpoint")
        .channel(channel)
        .segment(Segment.cmaf())
        .manifests(List.of(Manifest.hls(HlsManifestConfiguration.builder()
                .manifestName("index")
                .filterConfiguration(FilterConfiguration.builder()
                        .manifestFilter(List.of(ManifestFilter.numericCombo(NumericFilterKey.VIDEO_HEIGHT, List.of(NumericExpression.range(240, 360), NumericExpression.range(720, 1080), NumericExpression.value(1440)))))
                        .build())
                .build())))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaPackageV2.Alpha
Channel channel;


new OriginEndpoint(this, "Endpoint", new OriginEndpointProps {
    Channel = channel,
    Segment = Segment.Cmaf(),
    Manifests = new [] { Manifest.Hls(new HlsManifestConfiguration {
        ManifestName = "index",
        FilterConfiguration = new FilterConfiguration {
            ManifestFilter = new [] { ManifestFilter.NumericCombo(NumericFilterKey.VIDEO_HEIGHT, new [] { NumericExpression.Range(240, 360), NumericExpression.Range(720, 1080), NumericExpression.Value(1440) }) }
        }
    }) }
});
go
// Install: go get github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2
var channel Channel


awsmediapackagev2alpha.NewOriginEndpoint(this, jsii.String("Endpoint"), &OriginEndpointProps{
	Channel: Channel,
	Segment: awsmediapackagev2alpha.Segment_Cmaf(),
	Manifests: []Manifest{
		awsmediapackagev2alpha.Manifest_Hls(&HlsManifestConfiguration{
			ManifestName: jsii.String("index"),
			FilterConfiguration: &FilterConfiguration{
				ManifestFilter: []ManifestFilter{
					awsmediapackagev2alpha.ManifestFilter_NumericCombo(awsmediapackagev2alpha.NumericFilterKey_VIDEO_HEIGHT, []NumericExpression{
						awsmediapackagev2alpha.NumericExpression_Range(jsii.Number(240), jsii.Number(360)),
						awsmediapackagev2alpha.NumericExpression_*Range(jsii.Number(720), jsii.Number(1080)),
						awsmediapackagev2alpha.NumericExpression_Value(jsii.Number(1440)),
					}),
				},
			},
		}),
	},
})

Properties ​

clipStartTimeoptionaldateclip_start_timeoptionaldatetimeclipStartTimeoptionalInstantClipStartTimeoptionalDateTimeClipStartTimeoptional*time.Time #
Optionally specify the clip start time for all of your manifest egress requests.

Default: No clip start time

When you include clip start time, note that you cannot use clip start time query parameters for this manifest's endpoint URL.

This will be converted to a UTC timestamp.

drmSettingsoptionalDrmSettingsKey[]drm_settingsoptionaltyping.List[DrmSettingsKey]drmSettingsoptionalList<DrmSettingsKey>DrmSettingsoptionalDrmSettingsKey[]DrmSettingsoptional*[]DrmSettingsKey #
DRM settings for manifest egress requests.

Default: No DRM settings

When you include a DRM setting, note that you cannot use an identical DRM setting query parameter for this manifest's endpoint URL.

endoptionaldateendoptionaldatetimeendoptionalInstantEndoptionalDateTimeEndoptional*time.Time #
Optionally specify the end time for all of your manifest egress requests.

Default: No end time

When you include end time, note that you cannot use end time query parameters for this manifest's endpoint URL.

This will be converted to a UTC timestamp.

manifestFilteroptionalManifestFilter[]manifest_filteroptionaltyping.List[ManifestFilter]manifestFilteroptionalList<ManifestFilter>ManifestFilteroptionalManifestFilter[]ManifestFilteroptional*[]ManifestFilter #
Optionally specify one or more manifest filters for all of your manifest egress requests.

Default: No manifest filters

When you include a manifest filter, note that you cannot use an identical manifest filter query parameter for this manifest's endpoint URL.

startoptionaldatestartoptionaldatetimestartoptionalInstantStartoptionalDateTimeStartoptional*time.Time #
Optionally specify the start time for all of your manifest egress requests.

Default: No start time

When you include start time, note that you cannot use start time query parameters for this manifest's endpoint URL.

This will be converted to a UTC timestamp.

timeDelayoptionalDurationtime_delayoptionalDurationtimeDelayoptionalDurationTimeDelayoptionalDurationTimeDelayoptionalDuration #
Optionally specify the time delay for all of your manifest egress requests.

Default: No time delay

Enter a value that is smaller than your endpoint's startover window. When you include time delay, note that you cannot use time delay query parameters for this manifest's endpoint URL.