Experimental
@aws-cdk/aws-mediapackagev2-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
ManifestFilter Class
Enables you to create filters for your Origin Endpoint.
| Stability | Experimental |
|---|---|
| Source | lib/endpoint.ts |
Example
ts
// 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';
const manifestFilter = mediapackagev2_alpha.ManifestFilter.audioCodec(mediapackagev2_alpha.AudioCodec.AACL);
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_mediapackagev2_alpha as mediapackagev2_alpha
manifest_filter = mediapackagev2_alpha.ManifestFilter.audio_codec(mediapackagev2_alpha.AudioCodec.AACL)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.mediapackagev2.alpha.*;
ManifestFilter manifestFilter = ManifestFilter.audioCodec(AudioCodec.AACL);
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaPackageV2.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaPackageV2.Alpha;
var manifestFilter = ManifestFilter.AudioCodec(AudioCodec.AACL);
go
// Install: go get github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awsmediapackagev2alpha"
manifestFilter := mediapackagev2_alpha.ManifestFilter_AudioCodec(mediapackagev2_alpha.AudioCodec_AACL)
Properties
Normalised manifest filter string.
Methods
audioCodec(value: AudioCodec): ManifestFilter // chainable@staticmethod def audio_codec(value: AudioCodec) -> ManifestFilterpublic static ManifestFilter audioCodec(AudioCodec value)public static ManifestFilter AudioCodec(AudioCodec value)func AudioCodec(Value AudioCodec) ManifestFilter static #Filter by a single audio codec.
audioCodecList(values: AudioCodec[]): ManifestFilter // chainable@staticmethod def audio_codec_list(values: typing.List[AudioCodec]) -> ManifestFilterpublic static ManifestFilter audioCodecList(List<AudioCodec> values)public static ManifestFilter AudioCodecList(AudioCodec[] values)func AudioCodecList(Values *[]AudioCodec) ManifestFilter static #Filter by multiple audio codecs.
bitrate(key: BitrateFilterKey, value: Bitrate): ManifestFilter // chainable@staticmethod def bitrate(key: BitrateFilterKey, value: Bitrate) -> ManifestFilterpublic static ManifestFilter bitrate(BitrateFilterKey key, Bitrate value)public static ManifestFilter Bitrate(BitrateFilterKey key, Bitrate value)func Bitrate(Key BitrateFilterKey, Value Bitrate) ManifestFilter static #Filter by a single bitrate value.
bitrateCombo(key: BitrateFilterKey, expressions: BitrateExpression[]): ManifestFilter // chainable@staticmethod def bitrate_combo(key: BitrateFilterKey, expressions: typing.List[BitrateExpression]) -> ManifestFilterpublic static ManifestFilter bitrateCombo(BitrateFilterKey key, List<BitrateExpression> expressions)public static ManifestFilter BitrateCombo(BitrateFilterKey key, BitrateExpression[] expressions)func BitrateCombo(Key BitrateFilterKey, Expressions *[]BitrateExpression) ManifestFilter static #Filter by a combination of bitrate ranges and individual values.
example
ts
ManifestFilter.bitrateCombo(BitrateFilterKey.VIDEO_BITRATE, [
BitrateExpression.range(Bitrate.mbps(1), Bitrate.mbps(3)),
BitrateExpression.value(Bitrate.mbps(5)),
])
bitrateRange(key: BitrateFilterKey, start: Bitrate, end: Bitrate): ManifestFilter // chainable@staticmethod def bitrate_range(key: BitrateFilterKey, start: Bitrate, end: Bitrate) -> ManifestFilterpublic static ManifestFilter bitrateRange(BitrateFilterKey key, Bitrate start, Bitrate end)public static ManifestFilter BitrateRange(BitrateFilterKey key, Bitrate start, Bitrate end)func BitrateRange(Key BitrateFilterKey, Start Bitrate, End Bitrate) ManifestFilter static #Filter by a bitrate range (inclusive).
custom(custom: string): ManifestFilter // chainable@staticmethod def custom(custom: str) -> ManifestFilterpublic static ManifestFilter custom(String custom)public static ManifestFilter Custom(string custom)func Custom(Custom *string) ManifestFilter static #Specify a custom manifest filter string.
numeric(key: NumericFilterKey, value: number): ManifestFilter // chainable@staticmethod def numeric(key: NumericFilterKey, value: int | float) -> ManifestFilterpublic static ManifestFilter numeric(NumericFilterKey key, Number value)public static ManifestFilter Numeric(NumericFilterKey key, double value)func Numeric(Key NumericFilterKey, Value *float64) ManifestFilter static #Specify a single numeric filter value.
numericCombo(key: NumericFilterKey, expressions: NumericExpression[]): ManifestFilter // chainable@staticmethod def numeric_combo(key: NumericFilterKey, expressions: typing.List[NumericExpression]) -> ManifestFilterpublic static ManifestFilter numericCombo(NumericFilterKey key, List<NumericExpression> expressions)public static ManifestFilter NumericCombo(NumericFilterKey key, NumericExpression[] expressions)func NumericCombo(Key NumericFilterKey, Expressions *[]NumericExpression) ManifestFilter static #Filter by a combination of numeric ranges and individual values.
Use this for advanced patterns like video_height:240-360,720-1080,1440.
example
ts
ManifestFilter.numericCombo(NumericFilterKey.VIDEO_HEIGHT, [
NumericExpression.range(240, 360),
NumericExpression.range(720, 1080),
NumericExpression.value(1440),
])
numericList(key: NumericFilterKey, values: number[]): ManifestFilter // chainable@staticmethod def numeric_list(key: NumericFilterKey, values: typing.List[int | float]) -> ManifestFilterpublic static ManifestFilter numericList(NumericFilterKey key, List<Number> values)public static ManifestFilter NumericList(NumericFilterKey key, double[] values)func NumericList(Key NumericFilterKey, Values *[]*float64) ManifestFilter static #Specify multiple numeric filter values.
numericRange(key: NumericFilterKey, start: number, end: number): ManifestFilter // chainable@staticmethod def numeric_range(key: NumericFilterKey, start: int | float, end: int | float) -> ManifestFilterpublic static ManifestFilter numericRange(NumericFilterKey key, Number start, Number end)public static ManifestFilter NumericRange(NumericFilterKey key, double start, double end)func NumericRange(Key NumericFilterKey, Start *float64, End *float64) ManifestFilter static #Specify a numeric filter range (inclusive).
text(key: TextFilterKey, value: string): ManifestFilter // chainable@staticmethod def text(key: TextFilterKey, value: str) -> ManifestFilterpublic static ManifestFilter text(TextFilterKey key, String value)public static ManifestFilter Text(TextFilterKey key, string value)func Text(Key TextFilterKey, Value *string) ManifestFilter static #Specify a free-form text filter value (for language keys).
textList(key: TextFilterKey, values: string[]): ManifestFilter // chainable@staticmethod def text_list(key: TextFilterKey, values: typing.List[str]) -> ManifestFilterpublic static ManifestFilter textList(TextFilterKey key, List<String> values)public static ManifestFilter TextList(TextFilterKey key, string[] values)func TextList(Key TextFilterKey, Values *[]*string) ManifestFilter static #Specify multiple free-form text filter values (for language keys).
trickplayType(value: TrickplayType): ManifestFilter // chainable@staticmethod def trickplay_type(value: TrickplayType) -> ManifestFilterpublic static ManifestFilter trickplayType(TrickplayType value)public static ManifestFilter TrickplayType(TrickplayType value)func TrickplayType(Value TrickplayType) ManifestFilter static #Filter by a single trickplay type.
trickplayTypeList(values: TrickplayType[]): ManifestFilter // chainable@staticmethod def trickplay_type_list(values: typing.List[TrickplayType]) -> ManifestFilterpublic static ManifestFilter trickplayTypeList(List<TrickplayType> values)public static ManifestFilter TrickplayTypeList(TrickplayType[] values)func TrickplayTypeList(Values *[]TrickplayType) ManifestFilter static #Filter by multiple trickplay types.
videoCodec(value: VideoCodec): ManifestFilter // chainable@staticmethod def video_codec(value: VideoCodec) -> ManifestFilterpublic static ManifestFilter videoCodec(VideoCodec value)public static ManifestFilter VideoCodec(VideoCodec value)func VideoCodec(Value VideoCodec) ManifestFilter static #Filter by a single video codec.
videoCodecList(values: VideoCodec[]): ManifestFilter // chainable@staticmethod def video_codec_list(values: typing.List[VideoCodec]) -> ManifestFilterpublic static ManifestFilter videoCodecList(List<VideoCodec> values)public static ManifestFilter VideoCodecList(VideoCodec[] values)func VideoCodecList(Values *[]VideoCodec) ManifestFilter static #Filter by multiple video codecs.
videoDynamicRange(value: VideoDynamicRange): ManifestFilter // chainable@staticmethod def video_dynamic_range(value: VideoDynamicRange) -> ManifestFilterpublic static ManifestFilter videoDynamicRange(VideoDynamicRange value)public static ManifestFilter VideoDynamicRange(VideoDynamicRange value)func VideoDynamicRange(Value VideoDynamicRange) ManifestFilter static #Filter by a single video dynamic range.
videoDynamicRangeList(values: VideoDynamicRange[]): ManifestFilter // chainable@staticmethod def video_dynamic_range_list(values: typing.List[VideoDynamicRange]) -> ManifestFilterpublic static ManifestFilter videoDynamicRangeList(List<VideoDynamicRange> values)public static ManifestFilter VideoDynamicRangeList(VideoDynamicRange[] values)func VideoDynamicRangeList(Values *[]VideoDynamicRange) ManifestFilter static #Filter by multiple video dynamic ranges.