{-# 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.DevOpsGuru.Types.EventClass
-- 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.DevOpsGuru.Types.EventClass
  ( EventClass
      ( ..,
        EventClass_CONFIG_CHANGE,
        EventClass_DEPLOYMENT,
        EventClass_INFRASTRUCTURE,
        EventClass_SCHEMA_CHANGE,
        EventClass_SECURITY_CHANGE
      ),
  )
where

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

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

pattern EventClass_CONFIG_CHANGE :: EventClass
pattern $bEventClass_CONFIG_CHANGE :: EventClass
$mEventClass_CONFIG_CHANGE :: forall r. EventClass -> (Void# -> r) -> (Void# -> r) -> r
EventClass_CONFIG_CHANGE = EventClass' "CONFIG_CHANGE"

pattern EventClass_DEPLOYMENT :: EventClass
pattern $bEventClass_DEPLOYMENT :: EventClass
$mEventClass_DEPLOYMENT :: forall r. EventClass -> (Void# -> r) -> (Void# -> r) -> r
EventClass_DEPLOYMENT = EventClass' "DEPLOYMENT"

pattern EventClass_INFRASTRUCTURE :: EventClass
pattern $bEventClass_INFRASTRUCTURE :: EventClass
$mEventClass_INFRASTRUCTURE :: forall r. EventClass -> (Void# -> r) -> (Void# -> r) -> r
EventClass_INFRASTRUCTURE = EventClass' "INFRASTRUCTURE"

pattern EventClass_SCHEMA_CHANGE :: EventClass
pattern $bEventClass_SCHEMA_CHANGE :: EventClass
$mEventClass_SCHEMA_CHANGE :: forall r. EventClass -> (Void# -> r) -> (Void# -> r) -> r
EventClass_SCHEMA_CHANGE = EventClass' "SCHEMA_CHANGE"

pattern EventClass_SECURITY_CHANGE :: EventClass
pattern $bEventClass_SECURITY_CHANGE :: EventClass
$mEventClass_SECURITY_CHANGE :: forall r. EventClass -> (Void# -> r) -> (Void# -> r) -> r
EventClass_SECURITY_CHANGE = EventClass' "SECURITY_CHANGE"

{-# COMPLETE
  EventClass_CONFIG_CHANGE,
  EventClass_DEPLOYMENT,
  EventClass_INFRASTRUCTURE,
  EventClass_SCHEMA_CHANGE,
  EventClass_SECURITY_CHANGE,
  EventClass'
  #-}