Experimental
@aws-cdk/aws-mediapackagev2-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
BitrateExpression Class
Represents a bitrate filter expression segment — either a single value or a range.
Use with ManifestFilter.bitrateCombo() to build filters that combine ranges and individual bitrate values.
| 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';
import * as cdk from 'aws-cdk-lib';
declare const bitrate: cdk.Bitrate;
const bitrateExpression = mediapackagev2_alpha.BitrateExpression.range(bitrate, bitrate);
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
import aws_cdk as cdk
# bitrate: cdk.Bitrate
bitrate_expression = mediapackagev2_alpha.BitrateExpression.range(bitrate, bitrate)
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.*;
import software.amazon.awscdk.*;
Bitrate bitrate;
BitrateExpression bitrateExpression = BitrateExpression.range(bitrate, bitrate);
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;
using Amazon.CDK;
Bitrate bitrate;
var bitrateExpression = BitrateExpression.Range(bitrate, bitrate);
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"
import cdk "github.com/aws/aws-cdk-go/awscdk"
var bitrate Bitrate
bitrateExpression := mediapackagev2_alpha.BitrateExpression_Range(bitrate, bitrate)
Methods
range(start: Bitrate, end: Bitrate): BitrateExpression // chainable@staticmethod def range(start: Bitrate, end: Bitrate) -> BitrateExpressionpublic static BitrateExpression range(Bitrate start, Bitrate end)public static BitrateExpression Range(Bitrate start, Bitrate end)func Range(Start Bitrate, End Bitrate) BitrateExpression static #An inclusive bitrate range.
value(v: Bitrate): BitrateExpression // chainable@staticmethod def value(v: Bitrate) -> BitrateExpressionpublic static BitrateExpression value(Bitrate v)public static BitrateExpression Value(Bitrate v)func Value(V Bitrate) BitrateExpression static #A single bitrate value.