{-# 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.MacieV2.Types.Type
-- 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.MacieV2.Types.Type
  ( Type
      ( ..,
        Type_AES256,
        Type_Aws_kms,
        Type_NONE
      ),
  )
where

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

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

pattern Type_AES256 :: Type
pattern $bType_AES256 :: Type
$mType_AES256 :: forall r. Type -> (Void# -> r) -> (Void# -> r) -> r
Type_AES256 = Type' "AES256"

pattern Type_Aws_kms :: Type
pattern $bType_Aws_kms :: Type
$mType_Aws_kms :: forall r. Type -> (Void# -> r) -> (Void# -> r) -> r
Type_Aws_kms = Type' "aws:kms"

pattern Type_NONE :: Type
pattern $bType_NONE :: Type
$mType_NONE :: forall r. Type -> (Void# -> r) -> (Void# -> r) -> r
Type_NONE = Type' "NONE"

{-# COMPLETE
  Type_AES256,
  Type_Aws_kms,
  Type_NONE,
  Type'
  #-}