{-# 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.IoTThingsGraph.Types.DeploymentTarget
-- 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.IoTThingsGraph.Types.DeploymentTarget
  ( DeploymentTarget
      ( ..,
        DeploymentTarget_CLOUD,
        DeploymentTarget_GREENGRASS
      ),
  )
where

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

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

pattern DeploymentTarget_CLOUD :: DeploymentTarget
pattern $bDeploymentTarget_CLOUD :: DeploymentTarget
$mDeploymentTarget_CLOUD :: forall r. DeploymentTarget -> (Void# -> r) -> (Void# -> r) -> r
DeploymentTarget_CLOUD = DeploymentTarget' "CLOUD"

pattern DeploymentTarget_GREENGRASS :: DeploymentTarget
pattern $bDeploymentTarget_GREENGRASS :: DeploymentTarget
$mDeploymentTarget_GREENGRASS :: forall r. DeploymentTarget -> (Void# -> r) -> (Void# -> r) -> r
DeploymentTarget_GREENGRASS = DeploymentTarget' "GREENGRASS"

{-# COMPLETE
  DeploymentTarget_CLOUD,
  DeploymentTarget_GREENGRASS,
  DeploymentTarget'
  #-}