{-# 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.IoT.Types.AlertTargetType
-- 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.IoT.Types.AlertTargetType
  ( AlertTargetType
      ( ..,
        AlertTargetType_SNS
      ),
  )
where

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

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

pattern AlertTargetType_SNS :: AlertTargetType
pattern $bAlertTargetType_SNS :: AlertTargetType
$mAlertTargetType_SNS :: forall {r}. AlertTargetType -> ((# #) -> r) -> ((# #) -> r) -> r
AlertTargetType_SNS = AlertTargetType' "SNS"

{-# COMPLETE
  AlertTargetType_SNS,
  AlertTargetType'
  #-}