{-# 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.CodeDeploy.Types.ComputePlatform
-- 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.CodeDeploy.Types.ComputePlatform
  ( ComputePlatform
      ( ..,
        ComputePlatform_ECS,
        ComputePlatform_Lambda,
        ComputePlatform_Server
      ),
  )
where

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

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

pattern ComputePlatform_ECS :: ComputePlatform
pattern $bComputePlatform_ECS :: ComputePlatform
$mComputePlatform_ECS :: forall r. ComputePlatform -> (Void# -> r) -> (Void# -> r) -> r
ComputePlatform_ECS = ComputePlatform' "ECS"

pattern ComputePlatform_Lambda :: ComputePlatform
pattern $bComputePlatform_Lambda :: ComputePlatform
$mComputePlatform_Lambda :: forall r. ComputePlatform -> (Void# -> r) -> (Void# -> r) -> r
ComputePlatform_Lambda = ComputePlatform' "Lambda"

pattern ComputePlatform_Server :: ComputePlatform
pattern $bComputePlatform_Server :: ComputePlatform
$mComputePlatform_Server :: forall r. ComputePlatform -> (Void# -> r) -> (Void# -> r) -> r
ComputePlatform_Server = ComputePlatform' "Server"

{-# COMPLETE
  ComputePlatform_ECS,
  ComputePlatform_Lambda,
  ComputePlatform_Server,
  ComputePlatform'
  #-}