{-# 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.SWF.Types.LambdaFunctionTimeoutType
-- 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.SWF.Types.LambdaFunctionTimeoutType
  ( LambdaFunctionTimeoutType
      ( ..,
        LambdaFunctionTimeoutType_START_TO_CLOSE
      ),
  )
where

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

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

pattern LambdaFunctionTimeoutType_START_TO_CLOSE :: LambdaFunctionTimeoutType
pattern $bLambdaFunctionTimeoutType_START_TO_CLOSE :: LambdaFunctionTimeoutType
$mLambdaFunctionTimeoutType_START_TO_CLOSE :: forall r.
LambdaFunctionTimeoutType -> (Void# -> r) -> (Void# -> r) -> r
LambdaFunctionTimeoutType_START_TO_CLOSE = LambdaFunctionTimeoutType' "START_TO_CLOSE"

{-# COMPLETE
  LambdaFunctionTimeoutType_START_TO_CLOSE,
  LambdaFunctionTimeoutType'
  #-}