Class: AWSCDK::MediaLive::CfnChannel::InputSpecificationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_live/cfn_channel.rb

Overview

The input specification for this channel.

It specifies the key characteristics of the inputs for this channel: the maximum bitrate, the resolution, and the codec.

This entity is at the top level in the channel.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(codec: nil, maximum_bitrate: nil, resolution: nil) ⇒ InputSpecificationProperty

Returns a new instance of InputSpecificationProperty.

Parameters:

  • codec (String, nil) (defaults to: nil)

    The codec to include in the input specification for this channel.

  • maximum_bitrate (String, nil) (defaults to: nil)

    The maximum input bitrate for any input attached to this channel.

  • resolution (String, nil) (defaults to: nil)

    The resolution for any input attached to this channel.



9003
9004
9005
9006
9007
9008
9009
9010
# File 'media_live/cfn_channel.rb', line 9003

def initialize(codec: nil, maximum_bitrate: nil, resolution: nil)
  @codec = codec
  Jsii::Type.check_type(@codec, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "codec") unless @codec.nil?
  @maximum_bitrate = maximum_bitrate
  Jsii::Type.check_type(@maximum_bitrate, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "maximumBitrate") unless @maximum_bitrate.nil?
  @resolution = resolution
  Jsii::Type.check_type(@resolution, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resolution") unless @resolution.nil?
end

Instance Attribute Details

#codecString? (readonly)

The codec to include in the input specification for this channel.



9016
9017
9018
# File 'media_live/cfn_channel.rb', line 9016

def codec
  @codec
end

#maximum_bitrateString? (readonly)

The maximum input bitrate for any input attached to this channel.



9021
9022
9023
# File 'media_live/cfn_channel.rb', line 9021

def maximum_bitrate
  @maximum_bitrate
end

#resolutionString? (readonly)

The resolution for any input attached to this channel.



9026
9027
9028
# File 'media_live/cfn_channel.rb', line 9026

def resolution
  @resolution
end

Class Method Details

.jsii_propertiesObject



9028
9029
9030
9031
9032
9033
9034
# File 'media_live/cfn_channel.rb', line 9028

def self.jsii_properties
  {
    :codec => "codec",
    :maximum_bitrate => "maximumBitrate",
    :resolution => "resolution",
  }
end

Instance Method Details

#to_jsiiObject



9036
9037
9038
9039
9040
9041
9042
9043
9044
# File 'media_live/cfn_channel.rb', line 9036

def to_jsii
  result = {}
  result.merge!({
    "codec" => @codec,
    "maximumBitrate" => @maximum_bitrate,
    "resolution" => @resolution,
  })
  result.compact
end