amazonka-opensearch-2.0: gen/Amazonka/OpenSearch/Types/LogType.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.OpenSearch.Types.LogType
-- 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.OpenSearch.Types.LogType
( LogType
( ..,
LogType_AUDIT_LOGS,
LogType_ES_APPLICATION_LOGS,
LogType_INDEX_SLOW_LOGS,
LogType_SEARCH_SLOW_LOGS
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
-- | The type of log file. Can be one of the following:
--
-- - __INDEX_SLOW_LOGS__ - Index slow logs contain insert requests that
-- took more time than the configured index query log threshold to
-- execute.
--
-- - __SEARCH_SLOW_LOGS__ - Search slow logs contain search queries that
-- took more time than the configured search query log threshold to
-- execute.
--
-- - __ES_APPLICATION_LOGS__ - OpenSearch application logs contain
-- information about errors and warnings raised during the operation of
-- the service and can be useful for troubleshooting.
--
-- - __AUDIT_LOGS__ - Audit logs contain records of user requests for
-- access to the domain.
newtype LogType = LogType' {fromLogType :: 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 LogType_AUDIT_LOGS :: LogType
pattern LogType_AUDIT_LOGS = LogType' "AUDIT_LOGS"
pattern LogType_ES_APPLICATION_LOGS :: LogType
pattern LogType_ES_APPLICATION_LOGS = LogType' "ES_APPLICATION_LOGS"
pattern LogType_INDEX_SLOW_LOGS :: LogType
pattern LogType_INDEX_SLOW_LOGS = LogType' "INDEX_SLOW_LOGS"
pattern LogType_SEARCH_SLOW_LOGS :: LogType
pattern LogType_SEARCH_SLOW_LOGS = LogType' "SEARCH_SLOW_LOGS"
{-# COMPLETE
LogType_AUDIT_LOGS,
LogType_ES_APPLICATION_LOGS,
LogType_INDEX_SLOW_LOGS,
LogType_SEARCH_SLOW_LOGS,
LogType'
#-}