Experimental
@aws-cdk/aws-mediapackagev2-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
NumericExpression Class
Represents a numeric filter expression segment — either a single value or a range.
Use with ManifestFilter.numericCombo() to build filters that combine ranges and individual values (e.g. video_height:240-360,720-1080,1440).
| 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 numericExpression = mediapackagev2_alpha.NumericExpression.range(123, 123);
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
numeric_expression = mediapackagev2_alpha.NumericExpression.range(123, 123)
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.*;
NumericExpression numericExpression = NumericExpression.range(123, 123);
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 numericExpression = NumericExpression.Range(123, 123);
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 mediapackagev2_alpha "github.com/aws/aws-cdk-go/awsmediapackagev2alpha"
numericExpression := mediapackagev2_alpha.NumericExpression_Range(jsii.Number(123), jsii.Number(123))
Methods
range(start: number, end: number): NumericExpression // chainable@staticmethod def range(start: int | float, end: int | float) -> NumericExpressionpublic static NumericExpression range(Number start, Number end)public static NumericExpression Range(double start, double end)func Range(Start *float64, End *float64) NumericExpression static #An inclusive numeric range.
value(v: number): NumericExpression // chainable@staticmethod def value(v: int | float) -> NumericExpressionpublic static NumericExpression value(Number v)public static NumericExpression Value(double v)func Value(V *float64) NumericExpression static #A single numeric value.