{-# 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.CloudFormation.Types.EvaluationType
-- 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.CloudFormation.Types.EvaluationType
  ( EvaluationType
      ( ..,
        EvaluationType_Dynamic,
        EvaluationType_Static
      ),
  )
where

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

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

pattern EvaluationType_Dynamic :: EvaluationType
pattern $bEvaluationType_Dynamic :: EvaluationType
$mEvaluationType_Dynamic :: forall {r}. EvaluationType -> ((# #) -> r) -> ((# #) -> r) -> r
EvaluationType_Dynamic = EvaluationType' "Dynamic"

pattern EvaluationType_Static :: EvaluationType
pattern $bEvaluationType_Static :: EvaluationType
$mEvaluationType_Static :: forall {r}. EvaluationType -> ((# #) -> r) -> ((# #) -> r) -> r
EvaluationType_Static = EvaluationType' "Static"

{-# COMPLETE
  EvaluationType_Dynamic,
  EvaluationType_Static,
  EvaluationType'
  #-}