packages feed

amazonka-cloudtrail-2.0: gen/Amazonka/CloudTrail/Types/LookupAttributeKey.hs

{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype LookupAttributeKey = LookupAttributeKey'
  { fromLookupAttributeKey ::
      Data.Text
  }
  deriving stock
    ( Prelude.Show,
      Prelude.Read,
      Prelude.Eq,
      Prelude.Ord,
      Prelude.Generic
    )
  deriving newtype
    ( Prelude.Hashable,
      Prelude.NFData,
      Data.FromText,
      Data.ToText,
      Data.ToByteString,
      Data.ToLog,
      Data.ToHeader,
      Data.ToQuery,
      Data.FromJSON,
      Data.FromJSONKey,
      Data.ToJSON,
      Data.ToJSONKey,
      Data.FromXML,
      Data.ToXML
    )

pattern LookupAttributeKey_AccessKeyId :: LookupAttributeKey
pattern LookupAttributeKey_AccessKeyId = LookupAttributeKey' "AccessKeyId"

pattern LookupAttributeKey_EventId :: LookupAttributeKey
pattern LookupAttributeKey_EventId = LookupAttributeKey' "EventId"

pattern LookupAttributeKey_EventName :: LookupAttributeKey
pattern LookupAttributeKey_EventName = LookupAttributeKey' "EventName"

pattern LookupAttributeKey_EventSource :: LookupAttributeKey
pattern LookupAttributeKey_EventSource = LookupAttributeKey' "EventSource"

pattern LookupAttributeKey_ReadOnly :: LookupAttributeKey
pattern LookupAttributeKey_ReadOnly = LookupAttributeKey' "ReadOnly"

pattern LookupAttributeKey_ResourceName :: LookupAttributeKey
pattern LookupAttributeKey_ResourceName = LookupAttributeKey' "ResourceName"

pattern LookupAttributeKey_ResourceType :: LookupAttributeKey
pattern LookupAttributeKey_ResourceType = LookupAttributeKey' "ResourceType"

pattern LookupAttributeKey_Username :: LookupAttributeKey
pattern LookupAttributeKey_Username = LookupAttributeKey' "Username"

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