# StreamSelectionProperty

Limitations for outputs from the endpoint, based on the video bitrate.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediapackage as mediapackage } from 'aws-cdk-lib';
const streamSelectionProperty: mediapackage.CfnPackagingConfiguration.StreamSelectionProperty = {
  maxVideoBitsPerSecond: 123,
  minVideoBitsPerSecond: 123,
  streamOrder: 'streamOrder',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_mediapackage as mediapackage

stream_selection_property = mediapackage.CfnPackagingConfiguration.StreamSelectionProperty(
    max_video_bits_per_second=123,
    min_video_bits_per_second=123,
    stream_order="streamOrder"
)
```

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.mediapackage.*;

StreamSelectionProperty streamSelectionProperty = StreamSelectionProperty.builder()
        .maxVideoBitsPerSecond(123)
        .minVideoBitsPerSecond(123)
        .streamOrder("streamOrder")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaPackage;

var streamSelectionProperty = new StreamSelectionProperty {
    MaxVideoBitsPerSecond = 123,
    MinVideoBitsPerSecond = 123,
    StreamOrder = "streamOrder"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/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/awscdk"

streamSelectionProperty := &StreamSelectionProperty{
	MaxVideoBitsPerSecond: jsii.Number(123),
	MinVideoBitsPerSecond: jsii.Number(123),
	StreamOrder: jsii.String("streamOrder"),
}
```

## Properties

- `maxVideoBitsPerSecond`: number — The upper limit of the bitrates that this endpoint serves.

  If the video track exceeds this threshold, then AWS Elemental MediaPackage excludes it from output. If you don't specify a value, it defaults to 2147483647 bits per second.

- `minVideoBitsPerSecond`: number — The lower limit of the bitrates that this endpoint serves.

  If the video track is below this threshold, then AWS Elemental MediaPackage excludes it from output. If you don't specify a value, it defaults to 0 bits per second.

- `streamOrder`: string — Order in which the different video bitrates are presented to the player.

  Valid values: `ORIGINAL` , `VIDEO_BITRATE_ASCENDING` , `VIDEO_BITRATE_DESCENDING` .
