All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cloudshift.awscdk.dsl.services.medialive.CfnChannelHlsInputSettingsPropertyDsl.kt Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")

package cloudshift.awscdk.dsl.services.medialive

import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Number
import kotlin.String
import software.amazon.awscdk.services.medialive.CfnChannel

/**
 * Information about how to connect to the upstream system.
 *
 * The parent of this entity is NetworkInputSettings.
 *
 * Example:
 *
 * ```
 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.medialive.*;
 * HlsInputSettingsProperty hlsInputSettingsProperty = HlsInputSettingsProperty.builder()
 * .bandwidth(123)
 * .bufferSegments(123)
 * .retries(123)
 * .retryInterval(123)
 * .scte35Source("scte35Source")
 * .build();
 * ```
 *
 * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-hlsinputsettings.html)
 */
@CdkDslMarker
public class CfnChannelHlsInputSettingsPropertyDsl {
  private val cdkBuilder: CfnChannel.HlsInputSettingsProperty.Builder =
      CfnChannel.HlsInputSettingsProperty.builder()

  /**
   * @param bandwidth When specified, the HLS stream with the m3u8 bandwidth that most closely
   * matches this value is chosen.
   * Otherwise, the highest bandwidth stream in the m3u8 is chosen. The bitrate is specified in bits
   * per second, as in an HLS manifest.
   */
  public fun bandwidth(bandwidth: Number) {
    cdkBuilder.bandwidth(bandwidth)
  }

  /**
   * @param bufferSegments When specified, reading of the HLS input begins this many buffer segments
   * from the end (most recently written segment).
   * When not specified, the HLS input begins with the first segment specified in the m3u8.
   */
  public fun bufferSegments(bufferSegments: Number) {
    cdkBuilder.bufferSegments(bufferSegments)
  }

  /**
   * @param retries The number of consecutive times that attempts to read a manifest or segment must
   * fail before the input is considered unavailable.
   */
  public fun retries(retries: Number) {
    cdkBuilder.retries(retries)
  }

  /**
   * @param retryInterval The number of seconds between retries when an attempt to read a manifest
   * or segment fails.
   */
  public fun retryInterval(retryInterval: Number) {
    cdkBuilder.retryInterval(retryInterval)
  }

  /**
   * @param scte35Source Identifies the source for the SCTE-35 messages that MediaLive will ingest.
   * Messages can be ingested from the content segments (in the stream) or from tags in the playlist
   * (the HLS manifest). MediaLive ignores SCTE-35 information in the source that is not selected.
   */
  public fun scte35Source(scte35Source: String) {
    cdkBuilder.scte35Source(scte35Source)
  }

  public fun build(): CfnChannel.HlsInputSettingsProperty = cdkBuilder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy