Class: AWSCDK::MediaPackagev2::CfnOriginEndpoint::DashDvbSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_packagev2/cfn_origin_endpoint.rb

Overview

For endpoints that use the DVB-DASH profile only.

The font download and error reporting information that you want MediaPackage to pass through to the manifest.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_metrics: nil, font_download: nil) ⇒ DashDvbSettingsProperty

Returns a new instance of DashDvbSettingsProperty.

Parameters:



937
938
939
940
941
942
# File 'media_packagev2/cfn_origin_endpoint.rb', line 937

def initialize(error_metrics: nil, font_download: nil)
  @error_metrics = error_metrics
  Jsii::Type.check_type(@error_metrics, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbWVkaWFwYWNrYWdldjIuQ2ZuT3JpZ2luRW5kcG9pbnQuRGFzaER2Yk1ldHJpY3NSZXBvcnRpbmdQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "errorMetrics") unless @error_metrics.nil?
  @font_download = font_download.is_a?(Hash) ? ::AWSCDK::MediaPackagev2::CfnOriginEndpoint::DashDvbFontDownloadProperty.new(**font_download.transform_keys(&:to_sym)) : font_download
  Jsii::Type.check_type(@font_download, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYXBhY2thZ2V2Mi5DZm5PcmlnaW5FbmRwb2ludC5EYXNoRHZiRm9udERvd25sb2FkUHJvcGVydHkifV19fQ==")), "fontDownload") unless @font_download.nil?
end

Instance Attribute Details

#error_metricsAWSCDK::IResolvable, ... (readonly)

Playback device error reporting settings.



948
949
950
# File 'media_packagev2/cfn_origin_endpoint.rb', line 948

def error_metrics
  @error_metrics
end

Class Method Details

.jsii_propertiesObject



955
956
957
958
959
960
# File 'media_packagev2/cfn_origin_endpoint.rb', line 955

def self.jsii_properties
  {
    :error_metrics => "errorMetrics",
    :font_download => "fontDownload",
  }
end

Instance Method Details

#to_jsiiObject



962
963
964
965
966
967
968
969
# File 'media_packagev2/cfn_origin_endpoint.rb', line 962

def to_jsii
  result = {}
  result.merge!({
    "errorMetrics" => @error_metrics,
    "fontDownload" => @font_download,
  })
  result.compact
end