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

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

newtype AbortAction = AbortAction'
  { AbortAction -> Text
fromAbortAction ::
      Data.Text
  }
  deriving stock
    ( Int -> AbortAction -> ShowS
[AbortAction] -> ShowS
AbortAction -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq AbortAction
Int -> AbortAction -> Int
AbortAction -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: AbortAction -> ()
$crnf :: AbortAction -> ()
Prelude.NFData,
      Text -> Either String AbortAction
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AbortAction
$cfromText :: Text -> Either String AbortAction
Data.FromText,
      AbortAction -> Text
forall a. (a -> Text) -> ToText a
toText :: AbortAction -> Text
$ctoText :: AbortAction -> Text
Data.ToText,
      AbortAction -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: AbortAction -> ByteString
$ctoBS :: AbortAction -> ByteString
Data.ToByteString,
      AbortAction -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AbortAction -> ByteStringBuilder
$cbuild :: AbortAction -> ByteStringBuilder
Data.ToLog,
      HeaderName -> AbortAction -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AbortAction -> [Header]
$ctoHeader :: HeaderName -> AbortAction -> [Header]
Data.ToHeader,
      AbortAction -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AbortAction -> QueryString
$ctoQuery :: AbortAction -> QueryString
Data.ToQuery,
      Value -> Parser [AbortAction]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [AbortAction]
FromJSONKeyFunction AbortAction
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AbortAction]
$cfromJSONKeyList :: FromJSONKeyFunction [AbortAction]
fromJSONKey :: FromJSONKeyFunction AbortAction
$cfromJSONKey :: FromJSONKeyFunction AbortAction
Data.FromJSONKey,
      [AbortAction] -> Encoding
[AbortAction] -> Value
AbortAction -> Encoding
AbortAction -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [AbortAction]
ToJSONKeyFunction AbortAction
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AbortAction]
$ctoJSONKeyList :: ToJSONKeyFunction [AbortAction]
toJSONKey :: ToJSONKeyFunction AbortAction
$ctoJSONKey :: ToJSONKeyFunction AbortAction
Data.ToJSONKey,
      [Node] -> Either String AbortAction
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AbortAction
$cparseXML :: [Node] -> Either String AbortAction
Data.FromXML,
      AbortAction -> XML
forall a. (a -> XML) -> ToXML a
toXML :: AbortAction -> XML
$ctoXML :: AbortAction -> XML
Data.ToXML
    )

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

{-# COMPLETE
  AbortAction_CANCEL,
  AbortAction'
  #-}