{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Input Loss Action For Rtmp Out
newtype InputLossActionForRtmpOut = InputLossActionForRtmpOut'
  { InputLossActionForRtmpOut -> Text
fromInputLossActionForRtmpOut ::
      Data.Text
  }
  deriving stock
    ( Int -> InputLossActionForRtmpOut -> ShowS
[InputLossActionForRtmpOut] -> ShowS
InputLossActionForRtmpOut -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq InputLossActionForRtmpOut
Int -> InputLossActionForRtmpOut -> Int
InputLossActionForRtmpOut -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: InputLossActionForRtmpOut -> ()
$crnf :: InputLossActionForRtmpOut -> ()
Prelude.NFData,
      Text -> Either String InputLossActionForRtmpOut
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InputLossActionForRtmpOut
$cfromText :: Text -> Either String InputLossActionForRtmpOut
Data.FromText,
      InputLossActionForRtmpOut -> Text
forall a. (a -> Text) -> ToText a
toText :: InputLossActionForRtmpOut -> Text
$ctoText :: InputLossActionForRtmpOut -> Text
Data.ToText,
      InputLossActionForRtmpOut -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: InputLossActionForRtmpOut -> ByteString
$ctoBS :: InputLossActionForRtmpOut -> ByteString
Data.ToByteString,
      InputLossActionForRtmpOut -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InputLossActionForRtmpOut -> ByteStringBuilder
$cbuild :: InputLossActionForRtmpOut -> ByteStringBuilder
Data.ToLog,
      HeaderName -> InputLossActionForRtmpOut -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InputLossActionForRtmpOut -> [Header]
$ctoHeader :: HeaderName -> InputLossActionForRtmpOut -> [Header]
Data.ToHeader,
      InputLossActionForRtmpOut -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InputLossActionForRtmpOut -> QueryString
$ctoQuery :: InputLossActionForRtmpOut -> QueryString
Data.ToQuery,
      Value -> Parser [InputLossActionForRtmpOut]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [InputLossActionForRtmpOut]
FromJSONKeyFunction InputLossActionForRtmpOut
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InputLossActionForRtmpOut]
$cfromJSONKeyList :: FromJSONKeyFunction [InputLossActionForRtmpOut]
fromJSONKey :: FromJSONKeyFunction InputLossActionForRtmpOut
$cfromJSONKey :: FromJSONKeyFunction InputLossActionForRtmpOut
Data.FromJSONKey,
      [InputLossActionForRtmpOut] -> Encoding
[InputLossActionForRtmpOut] -> Value
InputLossActionForRtmpOut -> Encoding
InputLossActionForRtmpOut -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [InputLossActionForRtmpOut]
ToJSONKeyFunction InputLossActionForRtmpOut
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InputLossActionForRtmpOut]
$ctoJSONKeyList :: ToJSONKeyFunction [InputLossActionForRtmpOut]
toJSONKey :: ToJSONKeyFunction InputLossActionForRtmpOut
$ctoJSONKey :: ToJSONKeyFunction InputLossActionForRtmpOut
Data.ToJSONKey,
      [Node] -> Either String InputLossActionForRtmpOut
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InputLossActionForRtmpOut
$cparseXML :: [Node] -> Either String InputLossActionForRtmpOut
Data.FromXML,
      InputLossActionForRtmpOut -> XML
forall a. (a -> XML) -> ToXML a
toXML :: InputLossActionForRtmpOut -> XML
$ctoXML :: InputLossActionForRtmpOut -> XML
Data.ToXML
    )

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

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

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