Experimental
@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
ScalingBehavior Class
Video scaling behavior.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as medialive_alpha from '@aws-cdk/aws-medialive-alpha';
const scalingBehavior = medialive_alpha.ScalingBehavior.DEFAULT;
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_medialive_alpha as medialive_alpha
scaling_behavior = medialive_alpha.ScalingBehavior.DEFAULT
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.medialive.alpha.*;
ScalingBehavior scalingBehavior = ScalingBehavior.DEFAULT;
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaLive.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaLive.Alpha;
var scalingBehavior = ScalingBehavior.DEFAULT;
go
// Install: go get github.com/aws/aws-cdk-go/awsmedialivealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import medialive_alpha "github.com/aws/aws-cdk-go/awsmedialivealpha"
scalingBehavior := medialive_alpha.ScalingBehavior_DEFAULT()
Properties
DEFAULTScalingBehaviordefaultScalingBehaviorDEFAULTScalingBehaviorDEFAULTScalingBehaviorDEFAULTScalingBehaviorstatic#May insert black boxes to match output resolution.
SMART_CROPScalingBehaviorsmart_cropScalingBehaviorSMART_CROPScalingBehaviorSMART_CROPScalingBehaviorSMART_CROPScalingBehaviorstatic#Intelligently crop the video to focus on key subjects (9:16 vertical).
Requires an Elemental Inference feed on the channel via inferenceFeed. Do NOT include FeedOutput.cropping() on the feed — MediaLive auto-inserts it.
STRETCH_TO_OUTPUTScalingBehaviorstretch_to_outputScalingBehaviorSTRETCH_TO_OUTPUTScalingBehaviorSTRETCH_TO_OUTPUTScalingBehaviorSTRETCH_TO_OUTPUTScalingBehaviorstatic#Stretch video to fill the output resolution.
The underlying string value passed to CloudFormation.
Methods
of(value: string): ScalingBehavior // chainable@staticmethod def of(value: str) -> ScalingBehaviorpublic static ScalingBehavior of(String value)public static ScalingBehavior Of(string value)func Of(Value *string) ScalingBehaviorstatic#A value not yet modelled by AWS CDK.