{-# 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.HyperParameterTuningAllocationStrategy
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SageMaker.Types.HyperParameterTuningAllocationStrategy
  ( HyperParameterTuningAllocationStrategy
      ( ..,
        HyperParameterTuningAllocationStrategy_Prioritized
      ),
  )
where

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

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

pattern HyperParameterTuningAllocationStrategy_Prioritized :: HyperParameterTuningAllocationStrategy
pattern $bHyperParameterTuningAllocationStrategy_Prioritized :: HyperParameterTuningAllocationStrategy
$mHyperParameterTuningAllocationStrategy_Prioritized :: forall {r}.
HyperParameterTuningAllocationStrategy
-> ((# #) -> r) -> ((# #) -> r) -> r
HyperParameterTuningAllocationStrategy_Prioritized = HyperParameterTuningAllocationStrategy' "Prioritized"

{-# COMPLETE
  HyperParameterTuningAllocationStrategy_Prioritized,
  HyperParameterTuningAllocationStrategy'
  #-}