{-# 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.AbortAction
-- 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.AbortAction
  ( AbortAction
      ( ..,
        AbortAction_CANCEL
      ),
  )
where

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

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

pattern AbortAction_CANCEL :: AbortAction
pattern $bAbortAction_CANCEL :: AbortAction
$mAbortAction_CANCEL :: forall r. AbortAction -> (Void# -> r) -> (Void# -> r) -> r
AbortAction_CANCEL = AbortAction' "CANCEL"

{-# COMPLETE
  AbortAction_CANCEL,
  AbortAction'
  #-}