{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MediaLive.Types.InputLossActionForRtmpOut
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaLive.Types.InputLossActionForRtmpOut
  ( InputLossActionForRtmpOut
      ( ..,
        InputLossActionForRtmpOut_EMIT_OUTPUT,
        InputLossActionForRtmpOut_PAUSE_OUTPUT
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

-- | Input Loss Action For Rtmp Out
newtype InputLossActionForRtmpOut = InputLossActionForRtmpOut'
  { InputLossActionForRtmpOut -> Text
fromInputLossActionForRtmpOut ::
      Core.Text
  }
  deriving stock
    ( Int -> InputLossActionForRtmpOut -> ShowS
[InputLossActionForRtmpOut] -> ShowS
InputLossActionForRtmpOut -> String
(Int -> InputLossActionForRtmpOut -> ShowS)
-> (InputLossActionForRtmpOut -> String)
-> ([InputLossActionForRtmpOut] -> ShowS)
-> Show InputLossActionForRtmpOut
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InputLossActionForRtmpOut] -> ShowS
$cshowList :: [InputLossActionForRtmpOut] -> ShowS
show :: InputLossActionForRtmpOut -> String
$cshow :: InputLossActionForRtmpOut -> String
showsPrec :: Int -> InputLossActionForRtmpOut -> ShowS
$cshowsPrec :: Int -> InputLossActionForRtmpOut -> ShowS
Prelude.Show,
      ReadPrec [InputLossActionForRtmpOut]
ReadPrec InputLossActionForRtmpOut
Int -> ReadS InputLossActionForRtmpOut
ReadS [InputLossActionForRtmpOut]
(Int -> ReadS InputLossActionForRtmpOut)
-> ReadS [InputLossActionForRtmpOut]
-> ReadPrec InputLossActionForRtmpOut
-> ReadPrec [InputLossActionForRtmpOut]
-> Read InputLossActionForRtmpOut
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InputLossActionForRtmpOut]
$creadListPrec :: ReadPrec [InputLossActionForRtmpOut]
readPrec :: ReadPrec InputLossActionForRtmpOut
$creadPrec :: ReadPrec InputLossActionForRtmpOut
readList :: ReadS [InputLossActionForRtmpOut]
$creadList :: ReadS [InputLossActionForRtmpOut]
readsPrec :: Int -> ReadS InputLossActionForRtmpOut
$creadsPrec :: Int -> ReadS InputLossActionForRtmpOut
Prelude.Read,
      InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool
(InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool)
-> (InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool)
-> Eq InputLossActionForRtmpOut
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool
$c/= :: InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool
== :: InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool
$c== :: InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool
Prelude.Eq,
      Eq InputLossActionForRtmpOut
Eq InputLossActionForRtmpOut
-> (InputLossActionForRtmpOut
    -> InputLossActionForRtmpOut -> Ordering)
-> (InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool)
-> (InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool)
-> (InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool)
-> (InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool)
-> (InputLossActionForRtmpOut
    -> InputLossActionForRtmpOut -> InputLossActionForRtmpOut)
-> (InputLossActionForRtmpOut
    -> InputLossActionForRtmpOut -> InputLossActionForRtmpOut)
-> Ord InputLossActionForRtmpOut
InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool
InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Ordering
InputLossActionForRtmpOut
-> InputLossActionForRtmpOut -> InputLossActionForRtmpOut
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: InputLossActionForRtmpOut
-> InputLossActionForRtmpOut -> InputLossActionForRtmpOut
$cmin :: InputLossActionForRtmpOut
-> InputLossActionForRtmpOut -> InputLossActionForRtmpOut
max :: InputLossActionForRtmpOut
-> InputLossActionForRtmpOut -> InputLossActionForRtmpOut
$cmax :: InputLossActionForRtmpOut
-> InputLossActionForRtmpOut -> InputLossActionForRtmpOut
>= :: InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool
$c>= :: InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool
> :: InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool
$c> :: InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool
<= :: InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool
$c<= :: InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool
< :: InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool
$c< :: InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Bool
compare :: InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Ordering
$ccompare :: InputLossActionForRtmpOut -> InputLossActionForRtmpOut -> Ordering
$cp1Ord :: Eq InputLossActionForRtmpOut
Prelude.Ord,
      (forall x.
 InputLossActionForRtmpOut -> Rep InputLossActionForRtmpOut x)
-> (forall x.
    Rep InputLossActionForRtmpOut x -> InputLossActionForRtmpOut)
-> Generic InputLossActionForRtmpOut
forall x.
Rep InputLossActionForRtmpOut x -> InputLossActionForRtmpOut
forall x.
InputLossActionForRtmpOut -> Rep InputLossActionForRtmpOut x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep InputLossActionForRtmpOut x -> InputLossActionForRtmpOut
$cfrom :: forall x.
InputLossActionForRtmpOut -> Rep InputLossActionForRtmpOut x
Prelude.Generic
    )
  deriving newtype
    ( Int -> InputLossActionForRtmpOut -> Int
InputLossActionForRtmpOut -> Int
(Int -> InputLossActionForRtmpOut -> Int)
-> (InputLossActionForRtmpOut -> Int)
-> Hashable InputLossActionForRtmpOut
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: InputLossActionForRtmpOut -> Int
$chash :: InputLossActionForRtmpOut -> Int
hashWithSalt :: Int -> InputLossActionForRtmpOut -> Int
$chashWithSalt :: Int -> InputLossActionForRtmpOut -> Int
Prelude.Hashable,
      InputLossActionForRtmpOut -> ()
(InputLossActionForRtmpOut -> ())
-> NFData InputLossActionForRtmpOut
forall a. (a -> ()) -> NFData a
rnf :: InputLossActionForRtmpOut -> ()
$crnf :: InputLossActionForRtmpOut -> ()
Prelude.NFData,
      Text -> Either String InputLossActionForRtmpOut
(Text -> Either String InputLossActionForRtmpOut)
-> FromText InputLossActionForRtmpOut
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InputLossActionForRtmpOut
$cfromText :: Text -> Either String InputLossActionForRtmpOut
Core.FromText,
      InputLossActionForRtmpOut -> Text
(InputLossActionForRtmpOut -> Text)
-> ToText InputLossActionForRtmpOut
forall a. (a -> Text) -> ToText a
toText :: InputLossActionForRtmpOut -> Text
$ctoText :: InputLossActionForRtmpOut -> Text
Core.ToText,
      InputLossActionForRtmpOut -> ByteString
(InputLossActionForRtmpOut -> ByteString)
-> ToByteString InputLossActionForRtmpOut
forall a. (a -> ByteString) -> ToByteString a
toBS :: InputLossActionForRtmpOut -> ByteString
$ctoBS :: InputLossActionForRtmpOut -> ByteString
Core.ToByteString,
      InputLossActionForRtmpOut -> ByteStringBuilder
(InputLossActionForRtmpOut -> ByteStringBuilder)
-> ToLog InputLossActionForRtmpOut
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InputLossActionForRtmpOut -> ByteStringBuilder
$cbuild :: InputLossActionForRtmpOut -> ByteStringBuilder
Core.ToLog,
      HeaderName -> InputLossActionForRtmpOut -> [Header]
(HeaderName -> InputLossActionForRtmpOut -> [Header])
-> ToHeader InputLossActionForRtmpOut
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InputLossActionForRtmpOut -> [Header]
$ctoHeader :: HeaderName -> InputLossActionForRtmpOut -> [Header]
Core.ToHeader,
      InputLossActionForRtmpOut -> QueryString
(InputLossActionForRtmpOut -> QueryString)
-> ToQuery InputLossActionForRtmpOut
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InputLossActionForRtmpOut -> QueryString
$ctoQuery :: InputLossActionForRtmpOut -> QueryString
Core.ToQuery,
      Value -> Parser [InputLossActionForRtmpOut]
Value -> Parser InputLossActionForRtmpOut
(Value -> Parser InputLossActionForRtmpOut)
-> (Value -> Parser [InputLossActionForRtmpOut])
-> FromJSON InputLossActionForRtmpOut
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [InputLossActionForRtmpOut]
$cparseJSONList :: Value -> Parser [InputLossActionForRtmpOut]
parseJSON :: Value -> Parser InputLossActionForRtmpOut
$cparseJSON :: Value -> Parser InputLossActionForRtmpOut
Core.FromJSON,
      FromJSONKeyFunction [InputLossActionForRtmpOut]
FromJSONKeyFunction InputLossActionForRtmpOut
FromJSONKeyFunction InputLossActionForRtmpOut
-> FromJSONKeyFunction [InputLossActionForRtmpOut]
-> FromJSONKey InputLossActionForRtmpOut
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InputLossActionForRtmpOut]
$cfromJSONKeyList :: FromJSONKeyFunction [InputLossActionForRtmpOut]
fromJSONKey :: FromJSONKeyFunction InputLossActionForRtmpOut
$cfromJSONKey :: FromJSONKeyFunction InputLossActionForRtmpOut
Core.FromJSONKey,
      [InputLossActionForRtmpOut] -> Encoding
[InputLossActionForRtmpOut] -> Value
InputLossActionForRtmpOut -> Encoding
InputLossActionForRtmpOut -> Value
(InputLossActionForRtmpOut -> Value)
-> (InputLossActionForRtmpOut -> Encoding)
-> ([InputLossActionForRtmpOut] -> Value)
-> ([InputLossActionForRtmpOut] -> Encoding)
-> ToJSON InputLossActionForRtmpOut
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [InputLossActionForRtmpOut] -> Encoding
$ctoEncodingList :: [InputLossActionForRtmpOut] -> Encoding
toJSONList :: [InputLossActionForRtmpOut] -> Value
$ctoJSONList :: [InputLossActionForRtmpOut] -> Value
toEncoding :: InputLossActionForRtmpOut -> Encoding
$ctoEncoding :: InputLossActionForRtmpOut -> Encoding
toJSON :: InputLossActionForRtmpOut -> Value
$ctoJSON :: InputLossActionForRtmpOut -> Value
Core.ToJSON,
      ToJSONKeyFunction [InputLossActionForRtmpOut]
ToJSONKeyFunction InputLossActionForRtmpOut
ToJSONKeyFunction InputLossActionForRtmpOut
-> ToJSONKeyFunction [InputLossActionForRtmpOut]
-> ToJSONKey InputLossActionForRtmpOut
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InputLossActionForRtmpOut]
$ctoJSONKeyList :: ToJSONKeyFunction [InputLossActionForRtmpOut]
toJSONKey :: ToJSONKeyFunction InputLossActionForRtmpOut
$ctoJSONKey :: ToJSONKeyFunction InputLossActionForRtmpOut
Core.ToJSONKey,
      [Node] -> Either String InputLossActionForRtmpOut
([Node] -> Either String InputLossActionForRtmpOut)
-> FromXML InputLossActionForRtmpOut
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InputLossActionForRtmpOut
$cparseXML :: [Node] -> Either String InputLossActionForRtmpOut
Core.FromXML,
      InputLossActionForRtmpOut -> XML
(InputLossActionForRtmpOut -> XML)
-> ToXML InputLossActionForRtmpOut
forall a. (a -> XML) -> ToXML a
toXML :: InputLossActionForRtmpOut -> XML
$ctoXML :: InputLossActionForRtmpOut -> XML
Core.ToXML
    )

pattern InputLossActionForRtmpOut_EMIT_OUTPUT :: InputLossActionForRtmpOut
pattern $bInputLossActionForRtmpOut_EMIT_OUTPUT :: InputLossActionForRtmpOut
$mInputLossActionForRtmpOut_EMIT_OUTPUT :: forall r.
InputLossActionForRtmpOut -> (Void# -> r) -> (Void# -> r) -> r
InputLossActionForRtmpOut_EMIT_OUTPUT = InputLossActionForRtmpOut' "EMIT_OUTPUT"

pattern InputLossActionForRtmpOut_PAUSE_OUTPUT :: InputLossActionForRtmpOut
pattern $bInputLossActionForRtmpOut_PAUSE_OUTPUT :: InputLossActionForRtmpOut
$mInputLossActionForRtmpOut_PAUSE_OUTPUT :: forall r.
InputLossActionForRtmpOut -> (Void# -> r) -> (Void# -> r) -> r
InputLossActionForRtmpOut_PAUSE_OUTPUT = InputLossActionForRtmpOut' "PAUSE_OUTPUT"

{-# COMPLETE
  InputLossActionForRtmpOut_EMIT_OUTPUT,
  InputLossActionForRtmpOut_PAUSE_OUTPUT,
  InputLossActionForRtmpOut'
  #-}