{-# 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.CloudTrail.Types.LookupAttributeKey
-- 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.CloudTrail.Types.LookupAttributeKey
  ( LookupAttributeKey
      ( ..,
        LookupAttributeKey_AccessKeyId,
        LookupAttributeKey_EventId,
        LookupAttributeKey_EventName,
        LookupAttributeKey_EventSource,
        LookupAttributeKey_ReadOnly,
        LookupAttributeKey_ResourceName,
        LookupAttributeKey_ResourceType,
        LookupAttributeKey_Username
      ),
  )
where

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

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

pattern LookupAttributeKey_AccessKeyId :: LookupAttributeKey
pattern $bLookupAttributeKey_AccessKeyId :: LookupAttributeKey
$mLookupAttributeKey_AccessKeyId :: forall r. LookupAttributeKey -> (Void# -> r) -> (Void# -> r) -> r
LookupAttributeKey_AccessKeyId = LookupAttributeKey' "AccessKeyId"

pattern LookupAttributeKey_EventId :: LookupAttributeKey
pattern $bLookupAttributeKey_EventId :: LookupAttributeKey
$mLookupAttributeKey_EventId :: forall r. LookupAttributeKey -> (Void# -> r) -> (Void# -> r) -> r
LookupAttributeKey_EventId = LookupAttributeKey' "EventId"

pattern LookupAttributeKey_EventName :: LookupAttributeKey
pattern $bLookupAttributeKey_EventName :: LookupAttributeKey
$mLookupAttributeKey_EventName :: forall r. LookupAttributeKey -> (Void# -> r) -> (Void# -> r) -> r
LookupAttributeKey_EventName = LookupAttributeKey' "EventName"

pattern LookupAttributeKey_EventSource :: LookupAttributeKey
pattern $bLookupAttributeKey_EventSource :: LookupAttributeKey
$mLookupAttributeKey_EventSource :: forall r. LookupAttributeKey -> (Void# -> r) -> (Void# -> r) -> r
LookupAttributeKey_EventSource = LookupAttributeKey' "EventSource"

pattern LookupAttributeKey_ReadOnly :: LookupAttributeKey
pattern $bLookupAttributeKey_ReadOnly :: LookupAttributeKey
$mLookupAttributeKey_ReadOnly :: forall r. LookupAttributeKey -> (Void# -> r) -> (Void# -> r) -> r
LookupAttributeKey_ReadOnly = LookupAttributeKey' "ReadOnly"

pattern LookupAttributeKey_ResourceName :: LookupAttributeKey
pattern $bLookupAttributeKey_ResourceName :: LookupAttributeKey
$mLookupAttributeKey_ResourceName :: forall r. LookupAttributeKey -> (Void# -> r) -> (Void# -> r) -> r
LookupAttributeKey_ResourceName = LookupAttributeKey' "ResourceName"

pattern LookupAttributeKey_ResourceType :: LookupAttributeKey
pattern $bLookupAttributeKey_ResourceType :: LookupAttributeKey
$mLookupAttributeKey_ResourceType :: forall r. LookupAttributeKey -> (Void# -> r) -> (Void# -> r) -> r
LookupAttributeKey_ResourceType = LookupAttributeKey' "ResourceType"

pattern LookupAttributeKey_Username :: LookupAttributeKey
pattern $bLookupAttributeKey_Username :: LookupAttributeKey
$mLookupAttributeKey_Username :: forall r. LookupAttributeKey -> (Void# -> r) -> (Void# -> r) -> r
LookupAttributeKey_Username = LookupAttributeKey' "Username"

{-# COMPLETE
  LookupAttributeKey_AccessKeyId,
  LookupAttributeKey_EventId,
  LookupAttributeKey_EventName,
  LookupAttributeKey_EventSource,
  LookupAttributeKey_ReadOnly,
  LookupAttributeKey_ResourceName,
  LookupAttributeKey_ResourceType,
  LookupAttributeKey_Username,
  LookupAttributeKey'
  #-}