{-# 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.TopicRuleDestinationStatus
-- 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.IoT.Types.TopicRuleDestinationStatus
  ( TopicRuleDestinationStatus
      ( ..,
        TopicRuleDestinationStatus_DELETING,
        TopicRuleDestinationStatus_DISABLED,
        TopicRuleDestinationStatus_ENABLED,
        TopicRuleDestinationStatus_ERROR,
        TopicRuleDestinationStatus_IN_PROGRESS
      ),
  )
where

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

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

pattern TopicRuleDestinationStatus_DELETING :: TopicRuleDestinationStatus
pattern $bTopicRuleDestinationStatus_DELETING :: TopicRuleDestinationStatus
$mTopicRuleDestinationStatus_DELETING :: forall r.
TopicRuleDestinationStatus -> (Void# -> r) -> (Void# -> r) -> r
TopicRuleDestinationStatus_DELETING = TopicRuleDestinationStatus' "DELETING"

pattern TopicRuleDestinationStatus_DISABLED :: TopicRuleDestinationStatus
pattern $bTopicRuleDestinationStatus_DISABLED :: TopicRuleDestinationStatus
$mTopicRuleDestinationStatus_DISABLED :: forall r.
TopicRuleDestinationStatus -> (Void# -> r) -> (Void# -> r) -> r
TopicRuleDestinationStatus_DISABLED = TopicRuleDestinationStatus' "DISABLED"

pattern TopicRuleDestinationStatus_ENABLED :: TopicRuleDestinationStatus
pattern $bTopicRuleDestinationStatus_ENABLED :: TopicRuleDestinationStatus
$mTopicRuleDestinationStatus_ENABLED :: forall r.
TopicRuleDestinationStatus -> (Void# -> r) -> (Void# -> r) -> r
TopicRuleDestinationStatus_ENABLED = TopicRuleDestinationStatus' "ENABLED"

pattern TopicRuleDestinationStatus_ERROR :: TopicRuleDestinationStatus
pattern $bTopicRuleDestinationStatus_ERROR :: TopicRuleDestinationStatus
$mTopicRuleDestinationStatus_ERROR :: forall r.
TopicRuleDestinationStatus -> (Void# -> r) -> (Void# -> r) -> r
TopicRuleDestinationStatus_ERROR = TopicRuleDestinationStatus' "ERROR"

pattern TopicRuleDestinationStatus_IN_PROGRESS :: TopicRuleDestinationStatus
pattern $bTopicRuleDestinationStatus_IN_PROGRESS :: TopicRuleDestinationStatus
$mTopicRuleDestinationStatus_IN_PROGRESS :: forall r.
TopicRuleDestinationStatus -> (Void# -> r) -> (Void# -> r) -> r
TopicRuleDestinationStatus_IN_PROGRESS = TopicRuleDestinationStatus' "IN_PROGRESS"

{-# COMPLETE
  TopicRuleDestinationStatus_DELETING,
  TopicRuleDestinationStatus_DISABLED,
  TopicRuleDestinationStatus_ENABLED,
  TopicRuleDestinationStatus_ERROR,
  TopicRuleDestinationStatus_IN_PROGRESS,
  TopicRuleDestinationStatus'
  #-}