{-# 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.SecurityHub.Types.MalwareType
-- 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.SecurityHub.Types.MalwareType
  ( MalwareType
      ( ..,
        MalwareType_ADWARE,
        MalwareType_BLENDED_THREAT,
        MalwareType_BOTNET_AGENT,
        MalwareType_COIN_MINER,
        MalwareType_EXPLOIT_KIT,
        MalwareType_KEYLOGGER,
        MalwareType_MACRO,
        MalwareType_POTENTIALLY_UNWANTED,
        MalwareType_RANSOMWARE,
        MalwareType_REMOTE_ACCESS,
        MalwareType_ROOTKIT,
        MalwareType_SPYWARE,
        MalwareType_TROJAN,
        MalwareType_VIRUS,
        MalwareType_WORM
      ),
  )
where

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

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

pattern MalwareType_ADWARE :: MalwareType
pattern $bMalwareType_ADWARE :: MalwareType
$mMalwareType_ADWARE :: forall r. MalwareType -> (Void# -> r) -> (Void# -> r) -> r
MalwareType_ADWARE = MalwareType' "ADWARE"

pattern MalwareType_BLENDED_THREAT :: MalwareType
pattern $bMalwareType_BLENDED_THREAT :: MalwareType
$mMalwareType_BLENDED_THREAT :: forall r. MalwareType -> (Void# -> r) -> (Void# -> r) -> r
MalwareType_BLENDED_THREAT = MalwareType' "BLENDED_THREAT"

pattern MalwareType_BOTNET_AGENT :: MalwareType
pattern $bMalwareType_BOTNET_AGENT :: MalwareType
$mMalwareType_BOTNET_AGENT :: forall r. MalwareType -> (Void# -> r) -> (Void# -> r) -> r
MalwareType_BOTNET_AGENT = MalwareType' "BOTNET_AGENT"

pattern MalwareType_COIN_MINER :: MalwareType
pattern $bMalwareType_COIN_MINER :: MalwareType
$mMalwareType_COIN_MINER :: forall r. MalwareType -> (Void# -> r) -> (Void# -> r) -> r
MalwareType_COIN_MINER = MalwareType' "COIN_MINER"

pattern MalwareType_EXPLOIT_KIT :: MalwareType
pattern $bMalwareType_EXPLOIT_KIT :: MalwareType
$mMalwareType_EXPLOIT_KIT :: forall r. MalwareType -> (Void# -> r) -> (Void# -> r) -> r
MalwareType_EXPLOIT_KIT = MalwareType' "EXPLOIT_KIT"

pattern MalwareType_KEYLOGGER :: MalwareType
pattern $bMalwareType_KEYLOGGER :: MalwareType
$mMalwareType_KEYLOGGER :: forall r. MalwareType -> (Void# -> r) -> (Void# -> r) -> r
MalwareType_KEYLOGGER = MalwareType' "KEYLOGGER"

pattern MalwareType_MACRO :: MalwareType
pattern $bMalwareType_MACRO :: MalwareType
$mMalwareType_MACRO :: forall r. MalwareType -> (Void# -> r) -> (Void# -> r) -> r
MalwareType_MACRO = MalwareType' "MACRO"

pattern MalwareType_POTENTIALLY_UNWANTED :: MalwareType
pattern $bMalwareType_POTENTIALLY_UNWANTED :: MalwareType
$mMalwareType_POTENTIALLY_UNWANTED :: forall r. MalwareType -> (Void# -> r) -> (Void# -> r) -> r
MalwareType_POTENTIALLY_UNWANTED = MalwareType' "POTENTIALLY_UNWANTED"

pattern MalwareType_RANSOMWARE :: MalwareType
pattern $bMalwareType_RANSOMWARE :: MalwareType
$mMalwareType_RANSOMWARE :: forall r. MalwareType -> (Void# -> r) -> (Void# -> r) -> r
MalwareType_RANSOMWARE = MalwareType' "RANSOMWARE"

pattern MalwareType_REMOTE_ACCESS :: MalwareType
pattern $bMalwareType_REMOTE_ACCESS :: MalwareType
$mMalwareType_REMOTE_ACCESS :: forall r. MalwareType -> (Void# -> r) -> (Void# -> r) -> r
MalwareType_REMOTE_ACCESS = MalwareType' "REMOTE_ACCESS"

pattern MalwareType_ROOTKIT :: MalwareType
pattern $bMalwareType_ROOTKIT :: MalwareType
$mMalwareType_ROOTKIT :: forall r. MalwareType -> (Void# -> r) -> (Void# -> r) -> r
MalwareType_ROOTKIT = MalwareType' "ROOTKIT"

pattern MalwareType_SPYWARE :: MalwareType
pattern $bMalwareType_SPYWARE :: MalwareType
$mMalwareType_SPYWARE :: forall r. MalwareType -> (Void# -> r) -> (Void# -> r) -> r
MalwareType_SPYWARE = MalwareType' "SPYWARE"

pattern MalwareType_TROJAN :: MalwareType
pattern $bMalwareType_TROJAN :: MalwareType
$mMalwareType_TROJAN :: forall r. MalwareType -> (Void# -> r) -> (Void# -> r) -> r
MalwareType_TROJAN = MalwareType' "TROJAN"

pattern MalwareType_VIRUS :: MalwareType
pattern $bMalwareType_VIRUS :: MalwareType
$mMalwareType_VIRUS :: forall r. MalwareType -> (Void# -> r) -> (Void# -> r) -> r
MalwareType_VIRUS = MalwareType' "VIRUS"

pattern MalwareType_WORM :: MalwareType
pattern $bMalwareType_WORM :: MalwareType
$mMalwareType_WORM :: forall r. MalwareType -> (Void# -> r) -> (Void# -> r) -> r
MalwareType_WORM = MalwareType' "WORM"

{-# COMPLETE
  MalwareType_ADWARE,
  MalwareType_BLENDED_THREAT,
  MalwareType_BOTNET_AGENT,
  MalwareType_COIN_MINER,
  MalwareType_EXPLOIT_KIT,
  MalwareType_KEYLOGGER,
  MalwareType_MACRO,
  MalwareType_POTENTIALLY_UNWANTED,
  MalwareType_RANSOMWARE,
  MalwareType_REMOTE_ACCESS,
  MalwareType_ROOTKIT,
  MalwareType_SPYWARE,
  MalwareType_TROJAN,
  MalwareType_VIRUS,
  MalwareType_WORM,
  MalwareType'
  #-}