{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.AuditManager.Types.ControlType
( ControlType
( ..,
ControlType_Custom,
ControlType_Standard
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ControlType = ControlType'
{ ControlType -> Text
fromControlType ::
Core.Text
}
deriving stock
( Int -> ControlType -> ShowS
[ControlType] -> ShowS
ControlType -> String
(Int -> ControlType -> ShowS)
-> (ControlType -> String)
-> ([ControlType] -> ShowS)
-> Show ControlType
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]
(Int -> ReadS ControlType)
-> ReadS [ControlType]
-> ReadPrec ControlType
-> ReadPrec [ControlType]
-> Read 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
(ControlType -> ControlType -> Bool)
-> (ControlType -> ControlType -> Bool) -> Eq ControlType
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
Eq ControlType
-> (ControlType -> ControlType -> Ordering)
-> (ControlType -> ControlType -> Bool)
-> (ControlType -> ControlType -> Bool)
-> (ControlType -> ControlType -> Bool)
-> (ControlType -> ControlType -> Bool)
-> (ControlType -> ControlType -> ControlType)
-> (ControlType -> ControlType -> ControlType)
-> Ord 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
$cp1Ord :: Eq ControlType
Prelude.Ord,
(forall x. ControlType -> Rep ControlType x)
-> (forall x. Rep ControlType x -> ControlType)
-> Generic ControlType
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
( Int -> ControlType -> Int
ControlType -> Int
(Int -> ControlType -> Int)
-> (ControlType -> Int) -> Hashable ControlType
forall 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 -> ()
(ControlType -> ()) -> NFData ControlType
forall a. (a -> ()) -> NFData a
rnf :: ControlType -> ()
$crnf :: ControlType -> ()
Prelude.NFData,
Text -> Either String ControlType
(Text -> Either String ControlType) -> FromText ControlType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ControlType
$cfromText :: Text -> Either String ControlType
Core.FromText,
ControlType -> Text
(ControlType -> Text) -> ToText ControlType
forall a. (a -> Text) -> ToText a
toText :: ControlType -> Text
$ctoText :: ControlType -> Text
Core.ToText,
ControlType -> ByteString
(ControlType -> ByteString) -> ToByteString ControlType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ControlType -> ByteString
$ctoBS :: ControlType -> ByteString
Core.ToByteString,
ControlType -> ByteStringBuilder
(ControlType -> ByteStringBuilder) -> ToLog ControlType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ControlType -> ByteStringBuilder
$cbuild :: ControlType -> ByteStringBuilder
Core.ToLog,
HeaderName -> ControlType -> [Header]
(HeaderName -> ControlType -> [Header]) -> ToHeader ControlType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ControlType -> [Header]
$ctoHeader :: HeaderName -> ControlType -> [Header]
Core.ToHeader,
ControlType -> QueryString
(ControlType -> QueryString) -> ToQuery ControlType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ControlType -> QueryString
$ctoQuery :: ControlType -> QueryString
Core.ToQuery,
Value -> Parser [ControlType]
Value -> Parser ControlType
(Value -> Parser ControlType)
-> (Value -> Parser [ControlType]) -> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [ControlType]
FromJSONKeyFunction ControlType
FromJSONKeyFunction ControlType
-> FromJSONKeyFunction [ControlType] -> FromJSONKey ControlType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ControlType]
$cfromJSONKeyList :: FromJSONKeyFunction [ControlType]
fromJSONKey :: FromJSONKeyFunction ControlType
$cfromJSONKey :: FromJSONKeyFunction ControlType
Core.FromJSONKey,
[ControlType] -> Encoding
[ControlType] -> Value
ControlType -> Encoding
ControlType -> Value
(ControlType -> Value)
-> (ControlType -> Encoding)
-> ([ControlType] -> Value)
-> ([ControlType] -> Encoding)
-> ToJSON ControlType
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
Core.ToJSON,
ToJSONKeyFunction [ControlType]
ToJSONKeyFunction ControlType
ToJSONKeyFunction ControlType
-> ToJSONKeyFunction [ControlType] -> ToJSONKey ControlType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ControlType]
$ctoJSONKeyList :: ToJSONKeyFunction [ControlType]
toJSONKey :: ToJSONKeyFunction ControlType
$ctoJSONKey :: ToJSONKeyFunction ControlType
Core.ToJSONKey,
[Node] -> Either String ControlType
([Node] -> Either String ControlType) -> FromXML ControlType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ControlType
$cparseXML :: [Node] -> Either String ControlType
Core.FromXML,
ControlType -> XML
(ControlType -> XML) -> ToXML ControlType
forall a. (a -> XML) -> ToXML a
toXML :: ControlType -> XML
$ctoXML :: ControlType -> XML
Core.ToXML
)
pattern ControlType_Custom :: ControlType
pattern $bControlType_Custom :: ControlType
$mControlType_Custom :: forall r. ControlType -> (Void# -> r) -> (Void# -> r) -> r
ControlType_Custom = ControlType' "Custom"
pattern ControlType_Standard :: ControlType
pattern $bControlType_Standard :: ControlType
$mControlType_Standard :: forall r. ControlType -> (Void# -> r) -> (Void# -> r) -> r
ControlType_Standard = ControlType' "Standard"
{-# COMPLETE
ControlType_Custom,
ControlType_Standard,
ControlType'
#-}