> **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.
# FilterConfiguration

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.

- 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#L1129)

## Example

TypeScript:

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

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

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

C# / .NET:

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

Golang:

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

- `clipStartTime`: date — 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.

- `drmSettings`: [DrmSettingsKey](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-mediapackagev2-alpha.DrmSettingsKey.html)[] — 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.

- `end`: date — 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.

- `manifestFilter`: [ManifestFilter](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-mediapackagev2-alpha.ManifestFilter.html)[] — 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.

- `start`: date — 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.

- `timeDelay`: [Duration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Duration.html) — 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.
