{-# 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.UsageType
-- 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.UsageType
  ( UsageType
      ( ..,
        UsageType_DATA_INVENTORY_EVALUATION,
        UsageType_SENSITIVE_DATA_DISCOVERY
      ),
  )
where

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

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

pattern UsageType_DATA_INVENTORY_EVALUATION :: UsageType
pattern $bUsageType_DATA_INVENTORY_EVALUATION :: UsageType
$mUsageType_DATA_INVENTORY_EVALUATION :: forall r. UsageType -> (Void# -> r) -> (Void# -> r) -> r
UsageType_DATA_INVENTORY_EVALUATION = UsageType' "DATA_INVENTORY_EVALUATION"

pattern UsageType_SENSITIVE_DATA_DISCOVERY :: UsageType
pattern $bUsageType_SENSITIVE_DATA_DISCOVERY :: UsageType
$mUsageType_SENSITIVE_DATA_DISCOVERY :: forall r. UsageType -> (Void# -> r) -> (Void# -> r) -> r
UsageType_SENSITIVE_DATA_DISCOVERY = UsageType' "SENSITIVE_DATA_DISCOVERY"

{-# COMPLETE
  UsageType_DATA_INVENTORY_EVALUATION,
  UsageType_SENSITIVE_DATA_DISCOVERY,
  UsageType'
  #-}