{-# 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.Config.Types.ComplianceType
-- 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.Config.Types.ComplianceType
  ( ComplianceType
      ( ..,
        ComplianceType_COMPLIANT,
        ComplianceType_INSUFFICIENT_DATA,
        ComplianceType_NON_COMPLIANT,
        ComplianceType_NOT_APPLICABLE
      ),
  )
where

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

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

pattern ComplianceType_COMPLIANT :: ComplianceType
pattern $bComplianceType_COMPLIANT :: ComplianceType
$mComplianceType_COMPLIANT :: forall r. ComplianceType -> (Void# -> r) -> (Void# -> r) -> r
ComplianceType_COMPLIANT = ComplianceType' "COMPLIANT"

pattern ComplianceType_INSUFFICIENT_DATA :: ComplianceType
pattern $bComplianceType_INSUFFICIENT_DATA :: ComplianceType
$mComplianceType_INSUFFICIENT_DATA :: forall r. ComplianceType -> (Void# -> r) -> (Void# -> r) -> r
ComplianceType_INSUFFICIENT_DATA = ComplianceType' "INSUFFICIENT_DATA"

pattern ComplianceType_NON_COMPLIANT :: ComplianceType
pattern $bComplianceType_NON_COMPLIANT :: ComplianceType
$mComplianceType_NON_COMPLIANT :: forall r. ComplianceType -> (Void# -> r) -> (Void# -> r) -> r
ComplianceType_NON_COMPLIANT = ComplianceType' "NON_COMPLIANT"

pattern ComplianceType_NOT_APPLICABLE :: ComplianceType
pattern $bComplianceType_NOT_APPLICABLE :: ComplianceType
$mComplianceType_NOT_APPLICABLE :: forall r. ComplianceType -> (Void# -> r) -> (Void# -> r) -> r
ComplianceType_NOT_APPLICABLE = ComplianceType' "NOT_APPLICABLE"

{-# COMPLETE
  ComplianceType_COMPLIANT,
  ComplianceType_INSUFFICIENT_DATA,
  ComplianceType_NON_COMPLIANT,
  ComplianceType_NOT_APPLICABLE,
  ComplianceType'
  #-}