{-# 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.ConformancePackComplianceType
-- 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.ConformancePackComplianceType
  ( ConformancePackComplianceType
      ( ..,
        ConformancePackComplianceType_COMPLIANT,
        ConformancePackComplianceType_INSUFFICIENT_DATA,
        ConformancePackComplianceType_NON_COMPLIANT
      ),
  )
where

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

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

pattern ConformancePackComplianceType_COMPLIANT :: ConformancePackComplianceType
pattern $bConformancePackComplianceType_COMPLIANT :: ConformancePackComplianceType
$mConformancePackComplianceType_COMPLIANT :: forall r.
ConformancePackComplianceType -> (Void# -> r) -> (Void# -> r) -> r
ConformancePackComplianceType_COMPLIANT = ConformancePackComplianceType' "COMPLIANT"

pattern ConformancePackComplianceType_INSUFFICIENT_DATA :: ConformancePackComplianceType
pattern $bConformancePackComplianceType_INSUFFICIENT_DATA :: ConformancePackComplianceType
$mConformancePackComplianceType_INSUFFICIENT_DATA :: forall r.
ConformancePackComplianceType -> (Void# -> r) -> (Void# -> r) -> r
ConformancePackComplianceType_INSUFFICIENT_DATA = ConformancePackComplianceType' "INSUFFICIENT_DATA"

pattern ConformancePackComplianceType_NON_COMPLIANT :: ConformancePackComplianceType
pattern $bConformancePackComplianceType_NON_COMPLIANT :: ConformancePackComplianceType
$mConformancePackComplianceType_NON_COMPLIANT :: forall r.
ConformancePackComplianceType -> (Void# -> r) -> (Void# -> r) -> r
ConformancePackComplianceType_NON_COMPLIANT = ConformancePackComplianceType' "NON_COMPLIANT"

{-# COMPLETE
  ConformancePackComplianceType_COMPLIANT,
  ConformancePackComplianceType_INSUFFICIENT_DATA,
  ConformancePackComplianceType_NON_COMPLIANT,
  ConformancePackComplianceType'
  #-}