{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.FMS.Types.RemediationActionType
( RemediationActionType
( ..,
RemediationActionType_MODIFY,
RemediationActionType_REMOVE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype RemediationActionType = RemediationActionType'
{ RemediationActionType -> Text
fromRemediationActionType ::
Core.Text
}
deriving stock
( Int -> RemediationActionType -> ShowS
[RemediationActionType] -> ShowS
RemediationActionType -> String
(Int -> RemediationActionType -> ShowS)
-> (RemediationActionType -> String)
-> ([RemediationActionType] -> ShowS)
-> Show RemediationActionType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RemediationActionType] -> ShowS
$cshowList :: [RemediationActionType] -> ShowS
show :: RemediationActionType -> String
$cshow :: RemediationActionType -> String
showsPrec :: Int -> RemediationActionType -> ShowS
$cshowsPrec :: Int -> RemediationActionType -> ShowS
Prelude.Show,
ReadPrec [RemediationActionType]
ReadPrec RemediationActionType
Int -> ReadS RemediationActionType
ReadS [RemediationActionType]
(Int -> ReadS RemediationActionType)
-> ReadS [RemediationActionType]
-> ReadPrec RemediationActionType
-> ReadPrec [RemediationActionType]
-> Read RemediationActionType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RemediationActionType]
$creadListPrec :: ReadPrec [RemediationActionType]
readPrec :: ReadPrec RemediationActionType
$creadPrec :: ReadPrec RemediationActionType
readList :: ReadS [RemediationActionType]
$creadList :: ReadS [RemediationActionType]
readsPrec :: Int -> ReadS RemediationActionType
$creadsPrec :: Int -> ReadS RemediationActionType
Prelude.Read,
RemediationActionType -> RemediationActionType -> Bool
(RemediationActionType -> RemediationActionType -> Bool)
-> (RemediationActionType -> RemediationActionType -> Bool)
-> Eq RemediationActionType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RemediationActionType -> RemediationActionType -> Bool
$c/= :: RemediationActionType -> RemediationActionType -> Bool
== :: RemediationActionType -> RemediationActionType -> Bool
$c== :: RemediationActionType -> RemediationActionType -> Bool
Prelude.Eq,
Eq RemediationActionType
Eq RemediationActionType
-> (RemediationActionType -> RemediationActionType -> Ordering)
-> (RemediationActionType -> RemediationActionType -> Bool)
-> (RemediationActionType -> RemediationActionType -> Bool)
-> (RemediationActionType -> RemediationActionType -> Bool)
-> (RemediationActionType -> RemediationActionType -> Bool)
-> (RemediationActionType
-> RemediationActionType -> RemediationActionType)
-> (RemediationActionType
-> RemediationActionType -> RemediationActionType)
-> Ord RemediationActionType
RemediationActionType -> RemediationActionType -> Bool
RemediationActionType -> RemediationActionType -> Ordering
RemediationActionType
-> RemediationActionType -> RemediationActionType
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 :: RemediationActionType
-> RemediationActionType -> RemediationActionType
$cmin :: RemediationActionType
-> RemediationActionType -> RemediationActionType
max :: RemediationActionType
-> RemediationActionType -> RemediationActionType
$cmax :: RemediationActionType
-> RemediationActionType -> RemediationActionType
>= :: RemediationActionType -> RemediationActionType -> Bool
$c>= :: RemediationActionType -> RemediationActionType -> Bool
> :: RemediationActionType -> RemediationActionType -> Bool
$c> :: RemediationActionType -> RemediationActionType -> Bool
<= :: RemediationActionType -> RemediationActionType -> Bool
$c<= :: RemediationActionType -> RemediationActionType -> Bool
< :: RemediationActionType -> RemediationActionType -> Bool
$c< :: RemediationActionType -> RemediationActionType -> Bool
compare :: RemediationActionType -> RemediationActionType -> Ordering
$ccompare :: RemediationActionType -> RemediationActionType -> Ordering
$cp1Ord :: Eq RemediationActionType
Prelude.Ord,
(forall x. RemediationActionType -> Rep RemediationActionType x)
-> (forall x. Rep RemediationActionType x -> RemediationActionType)
-> Generic RemediationActionType
forall x. Rep RemediationActionType x -> RemediationActionType
forall x. RemediationActionType -> Rep RemediationActionType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RemediationActionType x -> RemediationActionType
$cfrom :: forall x. RemediationActionType -> Rep RemediationActionType x
Prelude.Generic
)
deriving newtype
( Int -> RemediationActionType -> Int
RemediationActionType -> Int
(Int -> RemediationActionType -> Int)
-> (RemediationActionType -> Int) -> Hashable RemediationActionType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: RemediationActionType -> Int
$chash :: RemediationActionType -> Int
hashWithSalt :: Int -> RemediationActionType -> Int
$chashWithSalt :: Int -> RemediationActionType -> Int
Prelude.Hashable,
RemediationActionType -> ()
(RemediationActionType -> ()) -> NFData RemediationActionType
forall a. (a -> ()) -> NFData a
rnf :: RemediationActionType -> ()
$crnf :: RemediationActionType -> ()
Prelude.NFData,
Text -> Either String RemediationActionType
(Text -> Either String RemediationActionType)
-> FromText RemediationActionType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RemediationActionType
$cfromText :: Text -> Either String RemediationActionType
Core.FromText,
RemediationActionType -> Text
(RemediationActionType -> Text) -> ToText RemediationActionType
forall a. (a -> Text) -> ToText a
toText :: RemediationActionType -> Text
$ctoText :: RemediationActionType -> Text
Core.ToText,
RemediationActionType -> ByteString
(RemediationActionType -> ByteString)
-> ToByteString RemediationActionType
forall a. (a -> ByteString) -> ToByteString a
toBS :: RemediationActionType -> ByteString
$ctoBS :: RemediationActionType -> ByteString
Core.ToByteString,
RemediationActionType -> ByteStringBuilder
(RemediationActionType -> ByteStringBuilder)
-> ToLog RemediationActionType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RemediationActionType -> ByteStringBuilder
$cbuild :: RemediationActionType -> ByteStringBuilder
Core.ToLog,
HeaderName -> RemediationActionType -> [Header]
(HeaderName -> RemediationActionType -> [Header])
-> ToHeader RemediationActionType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RemediationActionType -> [Header]
$ctoHeader :: HeaderName -> RemediationActionType -> [Header]
Core.ToHeader,
RemediationActionType -> QueryString
(RemediationActionType -> QueryString)
-> ToQuery RemediationActionType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RemediationActionType -> QueryString
$ctoQuery :: RemediationActionType -> QueryString
Core.ToQuery,
Value -> Parser [RemediationActionType]
Value -> Parser RemediationActionType
(Value -> Parser RemediationActionType)
-> (Value -> Parser [RemediationActionType])
-> FromJSON RemediationActionType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [RemediationActionType]
$cparseJSONList :: Value -> Parser [RemediationActionType]
parseJSON :: Value -> Parser RemediationActionType
$cparseJSON :: Value -> Parser RemediationActionType
Core.FromJSON,
FromJSONKeyFunction [RemediationActionType]
FromJSONKeyFunction RemediationActionType
FromJSONKeyFunction RemediationActionType
-> FromJSONKeyFunction [RemediationActionType]
-> FromJSONKey RemediationActionType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RemediationActionType]
$cfromJSONKeyList :: FromJSONKeyFunction [RemediationActionType]
fromJSONKey :: FromJSONKeyFunction RemediationActionType
$cfromJSONKey :: FromJSONKeyFunction RemediationActionType
Core.FromJSONKey,
[RemediationActionType] -> Encoding
[RemediationActionType] -> Value
RemediationActionType -> Encoding
RemediationActionType -> Value
(RemediationActionType -> Value)
-> (RemediationActionType -> Encoding)
-> ([RemediationActionType] -> Value)
-> ([RemediationActionType] -> Encoding)
-> ToJSON RemediationActionType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [RemediationActionType] -> Encoding
$ctoEncodingList :: [RemediationActionType] -> Encoding
toJSONList :: [RemediationActionType] -> Value
$ctoJSONList :: [RemediationActionType] -> Value
toEncoding :: RemediationActionType -> Encoding
$ctoEncoding :: RemediationActionType -> Encoding
toJSON :: RemediationActionType -> Value
$ctoJSON :: RemediationActionType -> Value
Core.ToJSON,
ToJSONKeyFunction [RemediationActionType]
ToJSONKeyFunction RemediationActionType
ToJSONKeyFunction RemediationActionType
-> ToJSONKeyFunction [RemediationActionType]
-> ToJSONKey RemediationActionType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RemediationActionType]
$ctoJSONKeyList :: ToJSONKeyFunction [RemediationActionType]
toJSONKey :: ToJSONKeyFunction RemediationActionType
$ctoJSONKey :: ToJSONKeyFunction RemediationActionType
Core.ToJSONKey,
[Node] -> Either String RemediationActionType
([Node] -> Either String RemediationActionType)
-> FromXML RemediationActionType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RemediationActionType
$cparseXML :: [Node] -> Either String RemediationActionType
Core.FromXML,
RemediationActionType -> XML
(RemediationActionType -> XML) -> ToXML RemediationActionType
forall a. (a -> XML) -> ToXML a
toXML :: RemediationActionType -> XML
$ctoXML :: RemediationActionType -> XML
Core.ToXML
)
pattern RemediationActionType_MODIFY :: RemediationActionType
pattern $bRemediationActionType_MODIFY :: RemediationActionType
$mRemediationActionType_MODIFY :: forall r.
RemediationActionType -> (Void# -> r) -> (Void# -> r) -> r
RemediationActionType_MODIFY = RemediationActionType' "MODIFY"
pattern RemediationActionType_REMOVE :: RemediationActionType
pattern $bRemediationActionType_REMOVE :: RemediationActionType
$mRemediationActionType_REMOVE :: forall r.
RemediationActionType -> (Void# -> r) -> (Void# -> r) -> r
RemediationActionType_REMOVE = RemediationActionType' "REMOVE"
{-# COMPLETE
RemediationActionType_MODIFY,
RemediationActionType_REMOVE,
RemediationActionType'
#-}