{-# 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.SecurityLake.Types.SubscriptionProtocolType
-- 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.SecurityLake.Types.SubscriptionProtocolType
  ( SubscriptionProtocolType
      ( ..,
        SubscriptionProtocolType_APP,
        SubscriptionProtocolType_EMAIL,
        SubscriptionProtocolType_EMAIL_JSON,
        SubscriptionProtocolType_FIREHOSE,
        SubscriptionProtocolType_HTTP,
        SubscriptionProtocolType_HTTPS,
        SubscriptionProtocolType_LAMBDA,
        SubscriptionProtocolType_SMS,
        SubscriptionProtocolType_SQS
      ),
  )
where

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

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

pattern SubscriptionProtocolType_APP :: SubscriptionProtocolType
pattern $bSubscriptionProtocolType_APP :: SubscriptionProtocolType
$mSubscriptionProtocolType_APP :: forall {r}.
SubscriptionProtocolType -> ((# #) -> r) -> ((# #) -> r) -> r
SubscriptionProtocolType_APP = SubscriptionProtocolType' "APP"

pattern SubscriptionProtocolType_EMAIL :: SubscriptionProtocolType
pattern $bSubscriptionProtocolType_EMAIL :: SubscriptionProtocolType
$mSubscriptionProtocolType_EMAIL :: forall {r}.
SubscriptionProtocolType -> ((# #) -> r) -> ((# #) -> r) -> r
SubscriptionProtocolType_EMAIL = SubscriptionProtocolType' "EMAIL"

pattern SubscriptionProtocolType_EMAIL_JSON :: SubscriptionProtocolType
pattern $bSubscriptionProtocolType_EMAIL_JSON :: SubscriptionProtocolType
$mSubscriptionProtocolType_EMAIL_JSON :: forall {r}.
SubscriptionProtocolType -> ((# #) -> r) -> ((# #) -> r) -> r
SubscriptionProtocolType_EMAIL_JSON = SubscriptionProtocolType' "EMAIL_JSON"

pattern SubscriptionProtocolType_FIREHOSE :: SubscriptionProtocolType
pattern $bSubscriptionProtocolType_FIREHOSE :: SubscriptionProtocolType
$mSubscriptionProtocolType_FIREHOSE :: forall {r}.
SubscriptionProtocolType -> ((# #) -> r) -> ((# #) -> r) -> r
SubscriptionProtocolType_FIREHOSE = SubscriptionProtocolType' "FIREHOSE"

pattern SubscriptionProtocolType_HTTP :: SubscriptionProtocolType
pattern $bSubscriptionProtocolType_HTTP :: SubscriptionProtocolType
$mSubscriptionProtocolType_HTTP :: forall {r}.
SubscriptionProtocolType -> ((# #) -> r) -> ((# #) -> r) -> r
SubscriptionProtocolType_HTTP = SubscriptionProtocolType' "HTTP"

pattern SubscriptionProtocolType_HTTPS :: SubscriptionProtocolType
pattern $bSubscriptionProtocolType_HTTPS :: SubscriptionProtocolType
$mSubscriptionProtocolType_HTTPS :: forall {r}.
SubscriptionProtocolType -> ((# #) -> r) -> ((# #) -> r) -> r
SubscriptionProtocolType_HTTPS = SubscriptionProtocolType' "HTTPS"

pattern SubscriptionProtocolType_LAMBDA :: SubscriptionProtocolType
pattern $bSubscriptionProtocolType_LAMBDA :: SubscriptionProtocolType
$mSubscriptionProtocolType_LAMBDA :: forall {r}.
SubscriptionProtocolType -> ((# #) -> r) -> ((# #) -> r) -> r
SubscriptionProtocolType_LAMBDA = SubscriptionProtocolType' "LAMBDA"

pattern SubscriptionProtocolType_SMS :: SubscriptionProtocolType
pattern $bSubscriptionProtocolType_SMS :: SubscriptionProtocolType
$mSubscriptionProtocolType_SMS :: forall {r}.
SubscriptionProtocolType -> ((# #) -> r) -> ((# #) -> r) -> r
SubscriptionProtocolType_SMS = SubscriptionProtocolType' "SMS"

pattern SubscriptionProtocolType_SQS :: SubscriptionProtocolType
pattern $bSubscriptionProtocolType_SQS :: SubscriptionProtocolType
$mSubscriptionProtocolType_SQS :: forall {r}.
SubscriptionProtocolType -> ((# #) -> r) -> ((# #) -> r) -> r
SubscriptionProtocolType_SQS = SubscriptionProtocolType' "SQS"

{-# COMPLETE
  SubscriptionProtocolType_APP,
  SubscriptionProtocolType_EMAIL,
  SubscriptionProtocolType_EMAIL_JSON,
  SubscriptionProtocolType_FIREHOSE,
  SubscriptionProtocolType_HTTP,
  SubscriptionProtocolType_HTTPS,
  SubscriptionProtocolType_LAMBDA,
  SubscriptionProtocolType_SMS,
  SubscriptionProtocolType_SQS,
  SubscriptionProtocolType'
  #-}