{-# 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.AuditManager.Types.ControlType
-- 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.AuditManager.Types.ControlType
  ( ControlType
      ( ..,
        ControlType_Custom,
        ControlType_Standard
      ),
  )
where

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

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

pattern ControlType_Custom :: ControlType
pattern $bControlType_Custom :: ControlType
$mControlType_Custom :: forall {r}. ControlType -> ((# #) -> r) -> ((# #) -> r) -> r
ControlType_Custom = ControlType' "Custom"

pattern ControlType_Standard :: ControlType
pattern $bControlType_Standard :: ControlType
$mControlType_Standard :: forall {r}. ControlType -> ((# #) -> r) -> ((# #) -> r) -> r
ControlType_Standard = ControlType' "Standard"

{-# COMPLETE
  ControlType_Custom,
  ControlType_Standard,
  ControlType'
  #-}