{-# 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.CmfcIFrameOnlyManifest
-- 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.MediaConvert.Types.CmfcIFrameOnlyManifest
  ( CmfcIFrameOnlyManifest
      ( ..,
        CmfcIFrameOnlyManifest_EXCLUDE,
        CmfcIFrameOnlyManifest_INCLUDE
      ),
  )
where

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

-- | Choose Include (INCLUDE) to have MediaConvert generate an HLS child
-- manifest that lists only the I-frames for this rendition, in addition to
-- your regular manifest for this rendition. You might use this manifest as
-- part of a workflow that creates preview functions for your video.
-- MediaConvert adds both the I-frame only child manifest and the regular
-- child manifest to the parent manifest. When you don\'t need the I-frame
-- only child manifest, keep the default value Exclude (EXCLUDE).
newtype CmfcIFrameOnlyManifest = CmfcIFrameOnlyManifest'
  { CmfcIFrameOnlyManifest -> Text
fromCmfcIFrameOnlyManifest ::
      Core.Text
  }
  deriving stock
    ( Int -> CmfcIFrameOnlyManifest -> ShowS
[CmfcIFrameOnlyManifest] -> ShowS
CmfcIFrameOnlyManifest -> String
(Int -> CmfcIFrameOnlyManifest -> ShowS)
-> (CmfcIFrameOnlyManifest -> String)
-> ([CmfcIFrameOnlyManifest] -> ShowS)
-> Show CmfcIFrameOnlyManifest
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CmfcIFrameOnlyManifest] -> ShowS
$cshowList :: [CmfcIFrameOnlyManifest] -> ShowS
show :: CmfcIFrameOnlyManifest -> String
$cshow :: CmfcIFrameOnlyManifest -> String
showsPrec :: Int -> CmfcIFrameOnlyManifest -> ShowS
$cshowsPrec :: Int -> CmfcIFrameOnlyManifest -> ShowS
Prelude.Show,
      ReadPrec [CmfcIFrameOnlyManifest]
ReadPrec CmfcIFrameOnlyManifest
Int -> ReadS CmfcIFrameOnlyManifest
ReadS [CmfcIFrameOnlyManifest]
(Int -> ReadS CmfcIFrameOnlyManifest)
-> ReadS [CmfcIFrameOnlyManifest]
-> ReadPrec CmfcIFrameOnlyManifest
-> ReadPrec [CmfcIFrameOnlyManifest]
-> Read CmfcIFrameOnlyManifest
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CmfcIFrameOnlyManifest]
$creadListPrec :: ReadPrec [CmfcIFrameOnlyManifest]
readPrec :: ReadPrec CmfcIFrameOnlyManifest
$creadPrec :: ReadPrec CmfcIFrameOnlyManifest
readList :: ReadS [CmfcIFrameOnlyManifest]
$creadList :: ReadS [CmfcIFrameOnlyManifest]
readsPrec :: Int -> ReadS CmfcIFrameOnlyManifest
$creadsPrec :: Int -> ReadS CmfcIFrameOnlyManifest
Prelude.Read,
      CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool
(CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool)
-> (CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool)
-> Eq CmfcIFrameOnlyManifest
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool
$c/= :: CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool
== :: CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool
$c== :: CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool
Prelude.Eq,
      Eq CmfcIFrameOnlyManifest
Eq CmfcIFrameOnlyManifest
-> (CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Ordering)
-> (CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool)
-> (CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool)
-> (CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool)
-> (CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool)
-> (CmfcIFrameOnlyManifest
    -> CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest)
-> (CmfcIFrameOnlyManifest
    -> CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest)
-> Ord CmfcIFrameOnlyManifest
CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool
CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Ordering
CmfcIFrameOnlyManifest
-> CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest
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 :: CmfcIFrameOnlyManifest
-> CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest
$cmin :: CmfcIFrameOnlyManifest
-> CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest
max :: CmfcIFrameOnlyManifest
-> CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest
$cmax :: CmfcIFrameOnlyManifest
-> CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest
>= :: CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool
$c>= :: CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool
> :: CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool
$c> :: CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool
<= :: CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool
$c<= :: CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool
< :: CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool
$c< :: CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Bool
compare :: CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Ordering
$ccompare :: CmfcIFrameOnlyManifest -> CmfcIFrameOnlyManifest -> Ordering
$cp1Ord :: Eq CmfcIFrameOnlyManifest
Prelude.Ord,
      (forall x. CmfcIFrameOnlyManifest -> Rep CmfcIFrameOnlyManifest x)
-> (forall x.
    Rep CmfcIFrameOnlyManifest x -> CmfcIFrameOnlyManifest)
-> Generic CmfcIFrameOnlyManifest
forall x. Rep CmfcIFrameOnlyManifest x -> CmfcIFrameOnlyManifest
forall x. CmfcIFrameOnlyManifest -> Rep CmfcIFrameOnlyManifest x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CmfcIFrameOnlyManifest x -> CmfcIFrameOnlyManifest
$cfrom :: forall x. CmfcIFrameOnlyManifest -> Rep CmfcIFrameOnlyManifest x
Prelude.Generic
    )
  deriving newtype
    ( Int -> CmfcIFrameOnlyManifest -> Int
CmfcIFrameOnlyManifest -> Int
(Int -> CmfcIFrameOnlyManifest -> Int)
-> (CmfcIFrameOnlyManifest -> Int)
-> Hashable CmfcIFrameOnlyManifest
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CmfcIFrameOnlyManifest -> Int
$chash :: CmfcIFrameOnlyManifest -> Int
hashWithSalt :: Int -> CmfcIFrameOnlyManifest -> Int
$chashWithSalt :: Int -> CmfcIFrameOnlyManifest -> Int
Prelude.Hashable,
      CmfcIFrameOnlyManifest -> ()
(CmfcIFrameOnlyManifest -> ()) -> NFData CmfcIFrameOnlyManifest
forall a. (a -> ()) -> NFData a
rnf :: CmfcIFrameOnlyManifest -> ()
$crnf :: CmfcIFrameOnlyManifest -> ()
Prelude.NFData,
      Text -> Either String CmfcIFrameOnlyManifest
(Text -> Either String CmfcIFrameOnlyManifest)
-> FromText CmfcIFrameOnlyManifest
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CmfcIFrameOnlyManifest
$cfromText :: Text -> Either String CmfcIFrameOnlyManifest
Core.FromText,
      CmfcIFrameOnlyManifest -> Text
(CmfcIFrameOnlyManifest -> Text) -> ToText CmfcIFrameOnlyManifest
forall a. (a -> Text) -> ToText a
toText :: CmfcIFrameOnlyManifest -> Text
$ctoText :: CmfcIFrameOnlyManifest -> Text
Core.ToText,
      CmfcIFrameOnlyManifest -> ByteString
(CmfcIFrameOnlyManifest -> ByteString)
-> ToByteString CmfcIFrameOnlyManifest
forall a. (a -> ByteString) -> ToByteString a
toBS :: CmfcIFrameOnlyManifest -> ByteString
$ctoBS :: CmfcIFrameOnlyManifest -> ByteString
Core.ToByteString,
      CmfcIFrameOnlyManifest -> ByteStringBuilder
(CmfcIFrameOnlyManifest -> ByteStringBuilder)
-> ToLog CmfcIFrameOnlyManifest
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CmfcIFrameOnlyManifest -> ByteStringBuilder
$cbuild :: CmfcIFrameOnlyManifest -> ByteStringBuilder
Core.ToLog,
      HeaderName -> CmfcIFrameOnlyManifest -> [Header]
(HeaderName -> CmfcIFrameOnlyManifest -> [Header])
-> ToHeader CmfcIFrameOnlyManifest
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CmfcIFrameOnlyManifest -> [Header]
$ctoHeader :: HeaderName -> CmfcIFrameOnlyManifest -> [Header]
Core.ToHeader,
      CmfcIFrameOnlyManifest -> QueryString
(CmfcIFrameOnlyManifest -> QueryString)
-> ToQuery CmfcIFrameOnlyManifest
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CmfcIFrameOnlyManifest -> QueryString
$ctoQuery :: CmfcIFrameOnlyManifest -> QueryString
Core.ToQuery,
      Value -> Parser [CmfcIFrameOnlyManifest]
Value -> Parser CmfcIFrameOnlyManifest
(Value -> Parser CmfcIFrameOnlyManifest)
-> (Value -> Parser [CmfcIFrameOnlyManifest])
-> FromJSON CmfcIFrameOnlyManifest
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CmfcIFrameOnlyManifest]
$cparseJSONList :: Value -> Parser [CmfcIFrameOnlyManifest]
parseJSON :: Value -> Parser CmfcIFrameOnlyManifest
$cparseJSON :: Value -> Parser CmfcIFrameOnlyManifest
Core.FromJSON,
      FromJSONKeyFunction [CmfcIFrameOnlyManifest]
FromJSONKeyFunction CmfcIFrameOnlyManifest
FromJSONKeyFunction CmfcIFrameOnlyManifest
-> FromJSONKeyFunction [CmfcIFrameOnlyManifest]
-> FromJSONKey CmfcIFrameOnlyManifest
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CmfcIFrameOnlyManifest]
$cfromJSONKeyList :: FromJSONKeyFunction [CmfcIFrameOnlyManifest]
fromJSONKey :: FromJSONKeyFunction CmfcIFrameOnlyManifest
$cfromJSONKey :: FromJSONKeyFunction CmfcIFrameOnlyManifest
Core.FromJSONKey,
      [CmfcIFrameOnlyManifest] -> Encoding
[CmfcIFrameOnlyManifest] -> Value
CmfcIFrameOnlyManifest -> Encoding
CmfcIFrameOnlyManifest -> Value
(CmfcIFrameOnlyManifest -> Value)
-> (CmfcIFrameOnlyManifest -> Encoding)
-> ([CmfcIFrameOnlyManifest] -> Value)
-> ([CmfcIFrameOnlyManifest] -> Encoding)
-> ToJSON CmfcIFrameOnlyManifest
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CmfcIFrameOnlyManifest] -> Encoding
$ctoEncodingList :: [CmfcIFrameOnlyManifest] -> Encoding
toJSONList :: [CmfcIFrameOnlyManifest] -> Value
$ctoJSONList :: [CmfcIFrameOnlyManifest] -> Value
toEncoding :: CmfcIFrameOnlyManifest -> Encoding
$ctoEncoding :: CmfcIFrameOnlyManifest -> Encoding
toJSON :: CmfcIFrameOnlyManifest -> Value
$ctoJSON :: CmfcIFrameOnlyManifest -> Value
Core.ToJSON,
      ToJSONKeyFunction [CmfcIFrameOnlyManifest]
ToJSONKeyFunction CmfcIFrameOnlyManifest
ToJSONKeyFunction CmfcIFrameOnlyManifest
-> ToJSONKeyFunction [CmfcIFrameOnlyManifest]
-> ToJSONKey CmfcIFrameOnlyManifest
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CmfcIFrameOnlyManifest]
$ctoJSONKeyList :: ToJSONKeyFunction [CmfcIFrameOnlyManifest]
toJSONKey :: ToJSONKeyFunction CmfcIFrameOnlyManifest
$ctoJSONKey :: ToJSONKeyFunction CmfcIFrameOnlyManifest
Core.ToJSONKey,
      [Node] -> Either String CmfcIFrameOnlyManifest
([Node] -> Either String CmfcIFrameOnlyManifest)
-> FromXML CmfcIFrameOnlyManifest
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CmfcIFrameOnlyManifest
$cparseXML :: [Node] -> Either String CmfcIFrameOnlyManifest
Core.FromXML,
      CmfcIFrameOnlyManifest -> XML
(CmfcIFrameOnlyManifest -> XML) -> ToXML CmfcIFrameOnlyManifest
forall a. (a -> XML) -> ToXML a
toXML :: CmfcIFrameOnlyManifest -> XML
$ctoXML :: CmfcIFrameOnlyManifest -> XML
Core.ToXML
    )

pattern CmfcIFrameOnlyManifest_EXCLUDE :: CmfcIFrameOnlyManifest
pattern $bCmfcIFrameOnlyManifest_EXCLUDE :: CmfcIFrameOnlyManifest
$mCmfcIFrameOnlyManifest_EXCLUDE :: forall r.
CmfcIFrameOnlyManifest -> (Void# -> r) -> (Void# -> r) -> r
CmfcIFrameOnlyManifest_EXCLUDE = CmfcIFrameOnlyManifest' "EXCLUDE"

pattern CmfcIFrameOnlyManifest_INCLUDE :: CmfcIFrameOnlyManifest
pattern $bCmfcIFrameOnlyManifest_INCLUDE :: CmfcIFrameOnlyManifest
$mCmfcIFrameOnlyManifest_INCLUDE :: forall r.
CmfcIFrameOnlyManifest -> (Void# -> r) -> (Void# -> r) -> r
CmfcIFrameOnlyManifest_INCLUDE = CmfcIFrameOnlyManifest' "INCLUDE"

{-# COMPLETE
  CmfcIFrameOnlyManifest_EXCLUDE,
  CmfcIFrameOnlyManifest_INCLUDE,
  CmfcIFrameOnlyManifest'
  #-}