Class: AWSCDK::MediaLive::CfnChannel::HlsMediaStoreSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaLive::CfnChannel::HlsMediaStoreSettingsProperty
- Defined in:
- media_live/cfn_channel.rb
Overview
The configuration of a MediaStore container as the destination for an HLS output.
The parent of this entity is HlsCdnSettings.
Instance Attribute Summary collapse
-
#connection_retry_interval ⇒ Numeric?
readonly
The number of seconds to wait before retrying a connection to the CDN if the connection is lost.
-
#filecache_duration ⇒ Numeric?
readonly
The size, in seconds, of the file cache for streaming outputs.
-
#media_store_storage_class ⇒ String?
readonly
When set to temporal, output files are stored in non-persistent memory for faster reading and writing.
-
#num_retries ⇒ Numeric?
readonly
The number of retry attempts that are made before the channel is put into an error state.
-
#restart_delay ⇒ Numeric?
readonly
If a streaming output fails, the number of seconds to wait until a restart is initiated.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(connection_retry_interval: nil, filecache_duration: nil, media_store_storage_class: nil, num_retries: nil, restart_delay: nil) ⇒ HlsMediaStoreSettingsProperty
constructor
A new instance of HlsMediaStoreSettingsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(connection_retry_interval: nil, filecache_duration: nil, media_store_storage_class: nil, num_retries: nil, restart_delay: nil) ⇒ HlsMediaStoreSettingsProperty
Returns a new instance of HlsMediaStoreSettingsProperty.
8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 |
# File 'media_live/cfn_channel.rb', line 8177 def initialize(connection_retry_interval: nil, filecache_duration: nil, media_store_storage_class: nil, num_retries: nil, restart_delay: nil) @connection_retry_interval = connection_retry_interval Jsii::Type.check_type(@connection_retry_interval, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "connectionRetryInterval") unless @connection_retry_interval.nil? @filecache_duration = filecache_duration Jsii::Type.check_type(@filecache_duration, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "filecacheDuration") unless @filecache_duration.nil? @media_store_storage_class = media_store_storage_class Jsii::Type.check_type(@media_store_storage_class, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mediaStoreStorageClass") unless @media_store_storage_class.nil? @num_retries = num_retries Jsii::Type.check_type(@num_retries, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "numRetries") unless @num_retries.nil? @restart_delay = restart_delay Jsii::Type.check_type(@restart_delay, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "restartDelay") unless @restart_delay.nil? end |
Instance Attribute Details
#connection_retry_interval ⇒ Numeric? (readonly)
The number of seconds to wait before retrying a connection to the CDN if the connection is lost.
8194 8195 8196 |
# File 'media_live/cfn_channel.rb', line 8194 def connection_retry_interval @connection_retry_interval end |
#filecache_duration ⇒ Numeric? (readonly)
The size, in seconds, of the file cache for streaming outputs.
8199 8200 8201 |
# File 'media_live/cfn_channel.rb', line 8199 def filecache_duration @filecache_duration end |
#media_store_storage_class ⇒ String? (readonly)
When set to temporal, output files are stored in non-persistent memory for faster reading and writing.
8204 8205 8206 |
# File 'media_live/cfn_channel.rb', line 8204 def media_store_storage_class @media_store_storage_class end |
#num_retries ⇒ Numeric? (readonly)
The number of retry attempts that are made before the channel is put into an error state.
8209 8210 8211 |
# File 'media_live/cfn_channel.rb', line 8209 def num_retries @num_retries end |
#restart_delay ⇒ Numeric? (readonly)
If a streaming output fails, the number of seconds to wait until a restart is initiated.
A value of 0 means never restart.
8216 8217 8218 |
# File 'media_live/cfn_channel.rb', line 8216 def restart_delay @restart_delay end |
Class Method Details
.jsii_properties ⇒ Object
8218 8219 8220 8221 8222 8223 8224 8225 8226 |
# File 'media_live/cfn_channel.rb', line 8218 def self.jsii_properties { :connection_retry_interval => "connectionRetryInterval", :filecache_duration => "filecacheDuration", :media_store_storage_class => "mediaStoreStorageClass", :num_retries => "numRetries", :restart_delay => "restartDelay", } end |
Instance Method Details
#to_jsii ⇒ Object
8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 |
# File 'media_live/cfn_channel.rb', line 8228 def to_jsii result = {} result.merge!({ "connectionRetryInterval" => @connection_retry_interval, "filecacheDuration" => @filecache_duration, "mediaStoreStorageClass" => @media_store_storage_class, "numRetries" => @num_retries, "restartDelay" => @restart_delay, }) result.compact end |