{-# 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.MediaConvert.Types.InputPsiControl
-- 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.MediaConvert.Types.InputPsiControl
  ( InputPsiControl
      ( ..,
        InputPsiControl_IGNORE_PSI,
        InputPsiControl_USE_PSI
      ),
  )
where

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

-- | Set PSI control (InputPsiControl) for transport stream inputs to specify
-- which data the demux process to scans. * Ignore PSI - Scan all PIDs for
-- audio and video. * Use PSI - Scan only PSI data.
newtype InputPsiControl = InputPsiControl'
  { InputPsiControl -> Text
fromInputPsiControl ::
      Data.Text
  }
  deriving stock
    ( Int -> InputPsiControl -> ShowS
[InputPsiControl] -> ShowS
InputPsiControl -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InputPsiControl] -> ShowS
$cshowList :: [InputPsiControl] -> ShowS
show :: InputPsiControl -> String
$cshow :: InputPsiControl -> String
showsPrec :: Int -> InputPsiControl -> ShowS
$cshowsPrec :: Int -> InputPsiControl -> ShowS
Prelude.Show,
      ReadPrec [InputPsiControl]
ReadPrec InputPsiControl
Int -> ReadS InputPsiControl
ReadS [InputPsiControl]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InputPsiControl]
$creadListPrec :: ReadPrec [InputPsiControl]
readPrec :: ReadPrec InputPsiControl
$creadPrec :: ReadPrec InputPsiControl
readList :: ReadS [InputPsiControl]
$creadList :: ReadS [InputPsiControl]
readsPrec :: Int -> ReadS InputPsiControl
$creadsPrec :: Int -> ReadS InputPsiControl
Prelude.Read,
      InputPsiControl -> InputPsiControl -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InputPsiControl -> InputPsiControl -> Bool
$c/= :: InputPsiControl -> InputPsiControl -> Bool
== :: InputPsiControl -> InputPsiControl -> Bool
$c== :: InputPsiControl -> InputPsiControl -> Bool
Prelude.Eq,
      Eq InputPsiControl
InputPsiControl -> InputPsiControl -> Bool
InputPsiControl -> InputPsiControl -> Ordering
InputPsiControl -> InputPsiControl -> InputPsiControl
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 :: InputPsiControl -> InputPsiControl -> InputPsiControl
$cmin :: InputPsiControl -> InputPsiControl -> InputPsiControl
max :: InputPsiControl -> InputPsiControl -> InputPsiControl
$cmax :: InputPsiControl -> InputPsiControl -> InputPsiControl
>= :: InputPsiControl -> InputPsiControl -> Bool
$c>= :: InputPsiControl -> InputPsiControl -> Bool
> :: InputPsiControl -> InputPsiControl -> Bool
$c> :: InputPsiControl -> InputPsiControl -> Bool
<= :: InputPsiControl -> InputPsiControl -> Bool
$c<= :: InputPsiControl -> InputPsiControl -> Bool
< :: InputPsiControl -> InputPsiControl -> Bool
$c< :: InputPsiControl -> InputPsiControl -> Bool
compare :: InputPsiControl -> InputPsiControl -> Ordering
$ccompare :: InputPsiControl -> InputPsiControl -> Ordering
Prelude.Ord,
      forall x. Rep InputPsiControl x -> InputPsiControl
forall x. InputPsiControl -> Rep InputPsiControl x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep InputPsiControl x -> InputPsiControl
$cfrom :: forall x. InputPsiControl -> Rep InputPsiControl x
Prelude.Generic
    )
  deriving newtype
    ( Eq InputPsiControl
Int -> InputPsiControl -> Int
InputPsiControl -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: InputPsiControl -> Int
$chash :: InputPsiControl -> Int
hashWithSalt :: Int -> InputPsiControl -> Int
$chashWithSalt :: Int -> InputPsiControl -> Int
Prelude.Hashable,
      InputPsiControl -> ()
forall a. (a -> ()) -> NFData a
rnf :: InputPsiControl -> ()
$crnf :: InputPsiControl -> ()
Prelude.NFData,
      Text -> Either String InputPsiControl
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InputPsiControl
$cfromText :: Text -> Either String InputPsiControl
Data.FromText,
      InputPsiControl -> Text
forall a. (a -> Text) -> ToText a
toText :: InputPsiControl -> Text
$ctoText :: InputPsiControl -> Text
Data.ToText,
      InputPsiControl -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: InputPsiControl -> ByteString
$ctoBS :: InputPsiControl -> ByteString
Data.ToByteString,
      InputPsiControl -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InputPsiControl -> ByteStringBuilder
$cbuild :: InputPsiControl -> ByteStringBuilder
Data.ToLog,
      HeaderName -> InputPsiControl -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InputPsiControl -> [Header]
$ctoHeader :: HeaderName -> InputPsiControl -> [Header]
Data.ToHeader,
      InputPsiControl -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InputPsiControl -> QueryString
$ctoQuery :: InputPsiControl -> QueryString
Data.ToQuery,
      Value -> Parser [InputPsiControl]
Value -> Parser InputPsiControl
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [InputPsiControl]
$cparseJSONList :: Value -> Parser [InputPsiControl]
parseJSON :: Value -> Parser InputPsiControl
$cparseJSON :: Value -> Parser InputPsiControl
Data.FromJSON,
      FromJSONKeyFunction [InputPsiControl]
FromJSONKeyFunction InputPsiControl
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InputPsiControl]
$cfromJSONKeyList :: FromJSONKeyFunction [InputPsiControl]
fromJSONKey :: FromJSONKeyFunction InputPsiControl
$cfromJSONKey :: FromJSONKeyFunction InputPsiControl
Data.FromJSONKey,
      [InputPsiControl] -> Encoding
[InputPsiControl] -> Value
InputPsiControl -> Encoding
InputPsiControl -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [InputPsiControl] -> Encoding
$ctoEncodingList :: [InputPsiControl] -> Encoding
toJSONList :: [InputPsiControl] -> Value
$ctoJSONList :: [InputPsiControl] -> Value
toEncoding :: InputPsiControl -> Encoding
$ctoEncoding :: InputPsiControl -> Encoding
toJSON :: InputPsiControl -> Value
$ctoJSON :: InputPsiControl -> Value
Data.ToJSON,
      ToJSONKeyFunction [InputPsiControl]
ToJSONKeyFunction InputPsiControl
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InputPsiControl]
$ctoJSONKeyList :: ToJSONKeyFunction [InputPsiControl]
toJSONKey :: ToJSONKeyFunction InputPsiControl
$ctoJSONKey :: ToJSONKeyFunction InputPsiControl
Data.ToJSONKey,
      [Node] -> Either String InputPsiControl
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InputPsiControl
$cparseXML :: [Node] -> Either String InputPsiControl
Data.FromXML,
      InputPsiControl -> XML
forall a. (a -> XML) -> ToXML a
toXML :: InputPsiControl -> XML
$ctoXML :: InputPsiControl -> XML
Data.ToXML
    )

pattern InputPsiControl_IGNORE_PSI :: InputPsiControl
pattern $bInputPsiControl_IGNORE_PSI :: InputPsiControl
$mInputPsiControl_IGNORE_PSI :: forall {r}. InputPsiControl -> ((# #) -> r) -> ((# #) -> r) -> r
InputPsiControl_IGNORE_PSI = InputPsiControl' "IGNORE_PSI"

pattern InputPsiControl_USE_PSI :: InputPsiControl
pattern $bInputPsiControl_USE_PSI :: InputPsiControl
$mInputPsiControl_USE_PSI :: forall {r}. InputPsiControl -> ((# #) -> r) -> ((# #) -> r) -> r
InputPsiControl_USE_PSI = InputPsiControl' "USE_PSI"

{-# COMPLETE
  InputPsiControl_IGNORE_PSI,
  InputPsiControl_USE_PSI,
  InputPsiControl'
  #-}