Class: AWSCDK::IVS::CfnEncoderConfigurationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IVS::CfnEncoderConfigurationProps
- Defined in:
- ivs/cfn_encoder_configuration_props.rb
Overview
Properties for defining a CfnEncoderConfiguration.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
Encoder cnfiguration name.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
-
#video ⇒ AWSCDK::IResolvable, ...
readonly
Video configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil, tags: nil, video: nil) ⇒ CfnEncoderConfigurationProps
constructor
A new instance of CfnEncoderConfigurationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name: nil, tags: nil, video: nil) ⇒ CfnEncoderConfigurationProps
Returns a new instance of CfnEncoderConfigurationProps.
12 13 14 15 16 17 18 19 |
# File 'ivs/cfn_encoder_configuration_props.rb', line 12 def initialize(name: nil, tags: nil, video: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? @video = video.is_a?(Hash) ? ::AWSCDK::IVS::CfnEncoderConfiguration::VideoProperty.new(**video.transform_keys(&:to_sym)) : video Jsii::Type.check_type(@video, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pdnMuQ2ZuRW5jb2RlckNvbmZpZ3VyYXRpb24uVmlkZW9Qcm9wZXJ0eSJ9XX19")), "video") unless @video.nil? end |
Instance Attribute Details
#name ⇒ String? (readonly)
Encoder cnfiguration name.
25 26 27 |
# File 'ivs/cfn_encoder_configuration_props.rb', line 25 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
For more information, see Tag .
32 33 34 |
# File 'ivs/cfn_encoder_configuration_props.rb', line 32 def @tags end |
#video ⇒ AWSCDK::IResolvable, ... (readonly)
Video configuration.
Default: video resolution 1280x720, bitrate 2500 kbps, 30 fps. See the Video property type for more information.
39 40 41 |
# File 'ivs/cfn_encoder_configuration_props.rb', line 39 def video @video end |
Class Method Details
.jsii_properties ⇒ Object
41 42 43 44 45 46 47 |
# File 'ivs/cfn_encoder_configuration_props.rb', line 41 def self.jsii_properties { :name => "name", :tags => "tags", :video => "video", } end |
Instance Method Details
#to_jsii ⇒ Object
49 50 51 52 53 54 55 56 57 |
# File 'ivs/cfn_encoder_configuration_props.rb', line 49 def to_jsii result = {} result.merge!({ "name" => @name, "tags" => @tags, "video" => @video, }) result.compact end |