Class: AWSCDK::MediaLive::CfnChannel::HlsWebdavSettingsProperty

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

Overview

The configuration of a WebDav server as the downstream system 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, http_transfer_mode: nil, num_retries: nil, restart_delay: nil) ⇒ HlsWebdavSettingsProperty

Returns a new instance of HlsWebdavSettingsProperty.

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.

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

    Specifies whether to use chunked transfer encoding to WebDAV.

  • 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.



8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
# File 'media_live/cfn_channel.rb', line 8425

def initialize(connection_retry_interval: nil, filecache_duration: nil, http_transfer_mode: 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?
  @http_transfer_mode = http_transfer_mode
  Jsii::Type.check_type(@http_transfer_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "httpTransferMode") unless @http_transfer_mode.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.



8442
8443
8444
# File 'media_live/cfn_channel.rb', line 8442

def connection_retry_interval
  @connection_retry_interval
end

#filecache_durationNumeric? (readonly)

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



8447
8448
8449
# File 'media_live/cfn_channel.rb', line 8447

def filecache_duration
  @filecache_duration
end

#http_transfer_modeString? (readonly)

Specifies whether to use chunked transfer encoding to WebDAV.



8452
8453
8454
# File 'media_live/cfn_channel.rb', line 8452

def http_transfer_mode
  @http_transfer_mode
end

#num_retriesNumeric? (readonly)

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



8457
8458
8459
# File 'media_live/cfn_channel.rb', line 8457

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.



8464
8465
8466
# File 'media_live/cfn_channel.rb', line 8464

def restart_delay
  @restart_delay
end

Class Method Details

.jsii_propertiesObject



8466
8467
8468
8469
8470
8471
8472
8473
8474
# File 'media_live/cfn_channel.rb', line 8466

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

Instance Method Details

#to_jsiiObject



8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
# File 'media_live/cfn_channel.rb', line 8476

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