{-# 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.EC2.Types.ConnectionNotificationType
-- 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.EC2.Types.ConnectionNotificationType
  ( ConnectionNotificationType
      ( ..,
        ConnectionNotificationType_Topic
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude

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

pattern ConnectionNotificationType_Topic :: ConnectionNotificationType
pattern $bConnectionNotificationType_Topic :: ConnectionNotificationType
$mConnectionNotificationType_Topic :: forall {r}.
ConnectionNotificationType -> ((# #) -> r) -> ((# #) -> r) -> r
ConnectionNotificationType_Topic = ConnectionNotificationType' "Topic"

{-# COMPLETE
  ConnectionNotificationType_Topic,
  ConnectionNotificationType'
  #-}