Class: AWSCDK::MediaLive::CfnChannel::HlsMediaStoreSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • connection_retry_interval (Numeric, nil) (defaults to: nil)

    The number of seconds to wait before retrying a connection to the CDN if the connection is lost.

  • filecache_duration (Numeric, nil) (defaults to: nil)

    The size, in seconds, of the file cache for streaming outputs.

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

    When set to temporal, output files are stored in non-persistent memory for faster reading and writing.

  • num_retries (Numeric, nil) (defaults to: nil)

    The number of retry attempts that are made before the channel is put into an error state.

  • restart_delay (Numeric, nil) (defaults to: nil)

    If a streaming output fails, the number of seconds to wait until a restart is initiated.



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_intervalNumeric? (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_durationNumeric? (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_classString? (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_retriesNumeric? (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_delayNumeric? (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_propertiesObject



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_jsiiObject



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