Skip to content
v2.273.0

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;

Properties ​

May insert black boxes to match output resolution.
SMART_CROPScalingBehaviorsmart_cropScalingBehaviorSMART_CROPScalingBehaviorSMART_CROPScalingBehaviorSMART_CROPScalingBehaviorrequiredstatic#
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_OUTPUTScalingBehaviorrequiredstatic#
Stretch video to fill the output resolution.
valuestringvaluestrvalueStringValuestringValue*stringrequired#
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.