{-# 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.TypeTestsStatus
-- 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.CloudFormation.Types.TypeTestsStatus
  ( TypeTestsStatus
      ( ..,
        TypeTestsStatus_FAILED,
        TypeTestsStatus_IN_PROGRESS,
        TypeTestsStatus_NOT_TESTED,
        TypeTestsStatus_PASSED
      ),
  )
where

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

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

pattern TypeTestsStatus_FAILED :: TypeTestsStatus
pattern $bTypeTestsStatus_FAILED :: TypeTestsStatus
$mTypeTestsStatus_FAILED :: forall r. TypeTestsStatus -> (Void# -> r) -> (Void# -> r) -> r
TypeTestsStatus_FAILED = TypeTestsStatus' "FAILED"

pattern TypeTestsStatus_IN_PROGRESS :: TypeTestsStatus
pattern $bTypeTestsStatus_IN_PROGRESS :: TypeTestsStatus
$mTypeTestsStatus_IN_PROGRESS :: forall r. TypeTestsStatus -> (Void# -> r) -> (Void# -> r) -> r
TypeTestsStatus_IN_PROGRESS = TypeTestsStatus' "IN_PROGRESS"

pattern TypeTestsStatus_NOT_TESTED :: TypeTestsStatus
pattern $bTypeTestsStatus_NOT_TESTED :: TypeTestsStatus
$mTypeTestsStatus_NOT_TESTED :: forall r. TypeTestsStatus -> (Void# -> r) -> (Void# -> r) -> r
TypeTestsStatus_NOT_TESTED = TypeTestsStatus' "NOT_TESTED"

pattern TypeTestsStatus_PASSED :: TypeTestsStatus
pattern $bTypeTestsStatus_PASSED :: TypeTestsStatus
$mTypeTestsStatus_PASSED :: forall r. TypeTestsStatus -> (Void# -> r) -> (Void# -> r) -> r
TypeTestsStatus_PASSED = TypeTestsStatus' "PASSED"

{-# COMPLETE
  TypeTestsStatus_FAILED,
  TypeTestsStatus_IN_PROGRESS,
  TypeTestsStatus_NOT_TESTED,
  TypeTestsStatus_PASSED,
  TypeTestsStatus'
  #-}