Class: AWSCDK::MediaLive::CfnChannel::VideoSelectorProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaLive::CfnChannel::VideoSelectorProperty
- Defined in:
- media_live/cfn_channel.rb
Overview
Information about the video to extract from the input. An input can contain only one video selector.
The parent of this entity is InputSettings.
Instance Attribute Summary collapse
-
#color_space ⇒ String?
readonly
Specifies the color space of an input.
-
#color_space_settings ⇒ AWSCDK::IResolvable, ...
readonly
Settings to configure color space settings in the incoming video.
-
#color_space_usage ⇒ String?
readonly
Applies only if colorSpace is a value other than Follow.
-
#selector_settings ⇒ AWSCDK::IResolvable, ...
readonly
Information about the video to select from the content.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(color_space: nil, color_space_settings: nil, color_space_usage: nil, selector_settings: nil) ⇒ VideoSelectorProperty
constructor
A new instance of VideoSelectorProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(color_space: nil, color_space_settings: nil, color_space_usage: nil, selector_settings: nil) ⇒ VideoSelectorProperty
Returns a new instance of VideoSelectorProperty.
14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 |
# File 'media_live/cfn_channel.rb', line 14155 def initialize(color_space: nil, color_space_settings: nil, color_space_usage: nil, selector_settings: nil) @color_space = color_space Jsii::Type.check_type(@color_space, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "colorSpace") unless @color_space.nil? @color_space_settings = color_space_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::VideoSelectorColorSpaceSettingsProperty.new(**color_space_settings.transform_keys(&:to_sym)) : color_space_settings Jsii::Type.check_type(@color_space_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5WaWRlb1NlbGVjdG9yQ29sb3JTcGFjZVNldHRpbmdzUHJvcGVydHkifV19fQ==")), "colorSpaceSettings") unless @color_space_settings.nil? @color_space_usage = color_space_usage Jsii::Type.check_type(@color_space_usage, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "colorSpaceUsage") unless @color_space_usage.nil? @selector_settings = selector_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::VideoSelectorSettingsProperty.new(**selector_settings.transform_keys(&:to_sym)) : selector_settings Jsii::Type.check_type(@selector_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5WaWRlb1NlbGVjdG9yU2V0dGluZ3NQcm9wZXJ0eSJ9XX19")), "selectorSettings") unless @selector_settings.nil? end |
Instance Attribute Details
#color_space ⇒ String? (readonly)
Specifies the color space of an input.
This setting works in tandem with colorSpaceConversion to determine if MediaLive will perform any conversion.
14172 14173 14174 |
# File 'media_live/cfn_channel.rb', line 14172 def color_space @color_space end |
#color_space_settings ⇒ AWSCDK::IResolvable, ... (readonly)
Settings to configure color space settings in the incoming video.
14177 14178 14179 |
# File 'media_live/cfn_channel.rb', line 14177 def color_space_settings @color_space_settings end |
#color_space_usage ⇒ String? (readonly)
Applies only if colorSpace is a value other than Follow.
This field controls how the value in the colorSpace field is used. Fallback means that when the input does include color space data, that data is used, but when the input has no color space data, the value in colorSpace is used. Choose fallback if your input is sometimes missing color space data, but when it does have color space data, that data is correct. Force means to always use the value in colorSpace. Choose force if your input usually has no color space data or might have unreliable color space data.
14184 14185 14186 |
# File 'media_live/cfn_channel.rb', line 14184 def color_space_usage @color_space_usage end |
#selector_settings ⇒ AWSCDK::IResolvable, ... (readonly)
Information about the video to select from the content.
14189 14190 14191 |
# File 'media_live/cfn_channel.rb', line 14189 def selector_settings @selector_settings end |
Class Method Details
.jsii_properties ⇒ Object
14191 14192 14193 14194 14195 14196 14197 14198 |
# File 'media_live/cfn_channel.rb', line 14191 def self.jsii_properties { :color_space => "colorSpace", :color_space_settings => "colorSpaceSettings", :color_space_usage => "colorSpaceUsage", :selector_settings => "selectorSettings", } end |
Instance Method Details
#to_jsii ⇒ Object
14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 |
# File 'media_live/cfn_channel.rb', line 14200 def to_jsii result = {} result.merge!({ "colorSpace" => @color_space, "colorSpaceSettings" => @color_space_settings, "colorSpaceUsage" => @color_space_usage, "selectorSettings" => @selector_settings, }) result.compact end |