{-# 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.SageMaker.Types.EdgePresetDeploymentType
-- 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.SageMaker.Types.EdgePresetDeploymentType
  ( EdgePresetDeploymentType
      ( ..,
        EdgePresetDeploymentType_GreengrassV2Component
      ),
  )
where

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

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

pattern EdgePresetDeploymentType_GreengrassV2Component :: EdgePresetDeploymentType
pattern $bEdgePresetDeploymentType_GreengrassV2Component :: EdgePresetDeploymentType
$mEdgePresetDeploymentType_GreengrassV2Component :: forall r.
EdgePresetDeploymentType -> (Void# -> r) -> (Void# -> r) -> r
EdgePresetDeploymentType_GreengrassV2Component = EdgePresetDeploymentType' "GreengrassV2Component"

{-# COMPLETE
  EdgePresetDeploymentType_GreengrassV2Component,
  EdgePresetDeploymentType'
  #-}