> **Experimental**
>
> `@aws-cdk/aws-mediapackagev2-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# ManifestFilter

Enables you to create filters for your Origin Endpoint.

Obtainable from: ManifestFilter.audioCodec, ManifestFilter.audioCodecList, ManifestFilter.bitrate, ManifestFilter.bitrateCombo, ManifestFilter.bitrateRange, ManifestFilter.custom, ManifestFilter.numeric, ManifestFilter.numericCombo, ManifestFilter.numericList, ManifestFilter.numericRange, ManifestFilter.text, ManifestFilter.textList, ManifestFilter.trickplayType, ManifestFilter.trickplayTypeList, ManifestFilter.videoCodec, ManifestFilter.videoCodecList, ManifestFilter.videoDynamicRange, ManifestFilter.videoDynamicRangeList

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/endpoint.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-mediapackagev2-alpha/lib/endpoint.ts#L253)

## Example

TypeScript:

```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:

```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:

```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);
```

C# / .NET:

```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);
```

Golang:

```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

- `filterString`: string — Normalised manifest filter string.

## Methods

- `audioCodec(value: AudioCodec): ManifestFilter // chainable` (static) — Filter by a single audio codec.

- `audioCodecList(values: AudioCodec[]): ManifestFilter // chainable` (static) — Filter by multiple audio codecs.

- `bitrate(key: BitrateFilterKey, value: Bitrate): ManifestFilter // chainable` (static) — Filter by a single bitrate value.

- `bitrateCombo(key: BitrateFilterKey, expressions: BitrateExpression[]): ManifestFilter // chainable` (static) — Filter by a combination of bitrate ranges and individual values.

  ```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` (static) — Filter by a bitrate range (inclusive).

- `custom(custom: string): ManifestFilter // chainable` (static) — Specify a custom manifest filter string.

- `numeric(key: NumericFilterKey, value: number): ManifestFilter // chainable` (static) — Specify a single numeric filter value.

- `numericCombo(key: NumericFilterKey, expressions: NumericExpression[]): ManifestFilter // chainable` (static) — Filter by a combination of numeric ranges and individual values.

  Use this for advanced patterns like `video_height:240-360,720-1080,1440`.

  ```ts
  ManifestFilter.numericCombo(NumericFilterKey.VIDEO_HEIGHT, [
    NumericExpression.range(240, 360),
    NumericExpression.range(720, 1080),
    NumericExpression.value(1440),
  ])
  ```

- `numericList(key: NumericFilterKey, values: number[]): ManifestFilter // chainable` (static) — Specify multiple numeric filter values.

- `numericRange(key: NumericFilterKey, start: number, end: number): ManifestFilter // chainable` (static) — Specify a numeric filter range (inclusive).

- `text(key: TextFilterKey, value: string): ManifestFilter // chainable` (static) — Specify a free-form text filter value (for language keys).

- `textList(key: TextFilterKey, values: string[]): ManifestFilter // chainable` (static) — Specify multiple free-form text filter values (for language keys).

- `trickplayType(value: TrickplayType): ManifestFilter // chainable` (static) — Filter by a single trickplay type.

- `trickplayTypeList(values: TrickplayType[]): ManifestFilter // chainable` (static) — Filter by multiple trickplay types.

- `videoCodec(value: VideoCodec): ManifestFilter // chainable` (static) — Filter by a single video codec.

- `videoCodecList(values: VideoCodec[]): ManifestFilter // chainable` (static) — Filter by multiple video codecs.

- `videoDynamicRange(value: VideoDynamicRange): ManifestFilter // chainable` (static) — Filter by a single video dynamic range.

- `videoDynamicRangeList(values: VideoDynamicRange[]): ManifestFilter // chainable` (static) — Filter by multiple video dynamic ranges.
