{-# 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.CodePipeline.Types.ExecutorType
-- 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.CodePipeline.Types.ExecutorType
  ( ExecutorType
      ( ..,
        ExecutorType_JobWorker,
        ExecutorType_Lambda
      ),
  )
where

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

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

pattern ExecutorType_JobWorker :: ExecutorType
pattern $bExecutorType_JobWorker :: ExecutorType
$mExecutorType_JobWorker :: forall r. ExecutorType -> (Void# -> r) -> (Void# -> r) -> r
ExecutorType_JobWorker = ExecutorType' "JobWorker"

pattern ExecutorType_Lambda :: ExecutorType
pattern $bExecutorType_Lambda :: ExecutorType
$mExecutorType_Lambda :: forall r. ExecutorType -> (Void# -> r) -> (Void# -> r) -> r
ExecutorType_Lambda = ExecutorType' "Lambda"

{-# COMPLETE
  ExecutorType_JobWorker,
  ExecutorType_Lambda,
  ExecutorType'
  #-}