{-# 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.Framework
-- 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.Framework
  ( Framework
      ( ..,
        Framework_DARKNET,
        Framework_KERAS,
        Framework_MXNET,
        Framework_ONNX,
        Framework_PYTORCH,
        Framework_SKLEARN,
        Framework_TENSORFLOW,
        Framework_TFLITE,
        Framework_XGBOOST
      ),
  )
where

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

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

pattern Framework_DARKNET :: Framework
pattern $bFramework_DARKNET :: Framework
$mFramework_DARKNET :: forall r. Framework -> (Void# -> r) -> (Void# -> r) -> r
Framework_DARKNET = Framework' "DARKNET"

pattern Framework_KERAS :: Framework
pattern $bFramework_KERAS :: Framework
$mFramework_KERAS :: forall r. Framework -> (Void# -> r) -> (Void# -> r) -> r
Framework_KERAS = Framework' "KERAS"

pattern Framework_MXNET :: Framework
pattern $bFramework_MXNET :: Framework
$mFramework_MXNET :: forall r. Framework -> (Void# -> r) -> (Void# -> r) -> r
Framework_MXNET = Framework' "MXNET"

pattern Framework_ONNX :: Framework
pattern $bFramework_ONNX :: Framework
$mFramework_ONNX :: forall r. Framework -> (Void# -> r) -> (Void# -> r) -> r
Framework_ONNX = Framework' "ONNX"

pattern Framework_PYTORCH :: Framework
pattern $bFramework_PYTORCH :: Framework
$mFramework_PYTORCH :: forall r. Framework -> (Void# -> r) -> (Void# -> r) -> r
Framework_PYTORCH = Framework' "PYTORCH"

pattern Framework_SKLEARN :: Framework
pattern $bFramework_SKLEARN :: Framework
$mFramework_SKLEARN :: forall r. Framework -> (Void# -> r) -> (Void# -> r) -> r
Framework_SKLEARN = Framework' "SKLEARN"

pattern Framework_TENSORFLOW :: Framework
pattern $bFramework_TENSORFLOW :: Framework
$mFramework_TENSORFLOW :: forall r. Framework -> (Void# -> r) -> (Void# -> r) -> r
Framework_TENSORFLOW = Framework' "TENSORFLOW"

pattern Framework_TFLITE :: Framework
pattern $bFramework_TFLITE :: Framework
$mFramework_TFLITE :: forall r. Framework -> (Void# -> r) -> (Void# -> r) -> r
Framework_TFLITE = Framework' "TFLITE"

pattern Framework_XGBOOST :: Framework
pattern $bFramework_XGBOOST :: Framework
$mFramework_XGBOOST :: forall r. Framework -> (Void# -> r) -> (Void# -> r) -> r
Framework_XGBOOST = Framework' "XGBOOST"

{-# COMPLETE
  Framework_DARKNET,
  Framework_KERAS,
  Framework_MXNET,
  Framework_ONNX,
  Framework_PYTORCH,
  Framework_SKLEARN,
  Framework_TENSORFLOW,
  Framework_TFLITE,
  Framework_XGBOOST,
  Framework'
  #-}