{-# 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.ResilienceHub.Types.TemplateFormat
-- 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.ResilienceHub.Types.TemplateFormat
  ( TemplateFormat
      ( ..,
        TemplateFormat_CfnJson,
        TemplateFormat_CfnYaml
      ),
  )
where

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

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

pattern TemplateFormat_CfnJson :: TemplateFormat
pattern $bTemplateFormat_CfnJson :: TemplateFormat
$mTemplateFormat_CfnJson :: forall {r}. TemplateFormat -> ((# #) -> r) -> ((# #) -> r) -> r
TemplateFormat_CfnJson = TemplateFormat' "CfnJson"

pattern TemplateFormat_CfnYaml :: TemplateFormat
pattern $bTemplateFormat_CfnYaml :: TemplateFormat
$mTemplateFormat_CfnYaml :: forall {r}. TemplateFormat -> ((# #) -> r) -> ((# #) -> r) -> r
TemplateFormat_CfnYaml = TemplateFormat' "CfnYaml"

{-# COMPLETE
  TemplateFormat_CfnJson,
  TemplateFormat_CfnYaml,
  TemplateFormat'
  #-}