Class: AWSCDK::MediaLive::CfnChannel::HlsBasicPutSettingsProperty

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

Overview

The configuration of HLS Basic Put Settings.

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, num_retries: nil, restart_delay: nil) ⇒ HlsBasicPutSettingsProperty

Returns a new instance of HlsBasicPutSettingsProperty.

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.

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

    The number of retry attempts that MediaLive makes 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.



7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
# File 'media_live/cfn_channel.rb', line 7454

def initialize(connection_retry_interval: nil, filecache_duration: 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?
  @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.



7469
7470
7471
# File 'media_live/cfn_channel.rb', line 7469

def connection_retry_interval
  @connection_retry_interval
end

#filecache_durationNumeric? (readonly)

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



7474
7475
7476
# File 'media_live/cfn_channel.rb', line 7474

def filecache_duration
  @filecache_duration
end

#num_retriesNumeric? (readonly)

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



7479
7480
7481
# File 'media_live/cfn_channel.rb', line 7479

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.



7486
7487
7488
# File 'media_live/cfn_channel.rb', line 7486

def restart_delay
  @restart_delay
end

Class Method Details

.jsii_propertiesObject



7488
7489
7490
7491
7492
7493
7494
7495
# File 'media_live/cfn_channel.rb', line 7488

def self.jsii_properties
  {
    :connection_retry_interval => "connectionRetryInterval",
    :filecache_duration => "filecacheDuration",
    :num_retries => "numRetries",
    :restart_delay => "restartDelay",
  }
end

Instance Method Details

#to_jsiiObject



7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
# File 'media_live/cfn_channel.rb', line 7497

def to_jsii
  result = {}
  result.merge!({
    "connectionRetryInterval" => @connection_retry_interval,
    "filecacheDuration" => @filecache_duration,
    "numRetries" => @num_retries,
    "restartDelay" => @restart_delay,
  })
  result.compact
end