module Stratosphere.Personalize.Solution.ContinuousHyperParameterRangeProperty (
ContinuousHyperParameterRangeProperty(..),
mkContinuousHyperParameterRangeProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ContinuousHyperParameterRangeProperty
=
ContinuousHyperParameterRangeProperty {ContinuousHyperParameterRangeProperty -> ()
haddock_workaround_ :: (),
ContinuousHyperParameterRangeProperty -> Maybe (Value Double)
maxValue :: (Prelude.Maybe (Value Prelude.Double)),
ContinuousHyperParameterRangeProperty -> Maybe (Value Double)
minValue :: (Prelude.Maybe (Value Prelude.Double)),
ContinuousHyperParameterRangeProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ContinuousHyperParameterRangeProperty
-> ContinuousHyperParameterRangeProperty -> Bool
(ContinuousHyperParameterRangeProperty
-> ContinuousHyperParameterRangeProperty -> Bool)
-> (ContinuousHyperParameterRangeProperty
-> ContinuousHyperParameterRangeProperty -> Bool)
-> Eq ContinuousHyperParameterRangeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ContinuousHyperParameterRangeProperty
-> ContinuousHyperParameterRangeProperty -> Bool
== :: ContinuousHyperParameterRangeProperty
-> ContinuousHyperParameterRangeProperty -> Bool
$c/= :: ContinuousHyperParameterRangeProperty
-> ContinuousHyperParameterRangeProperty -> Bool
/= :: ContinuousHyperParameterRangeProperty
-> ContinuousHyperParameterRangeProperty -> Bool
Prelude.Eq, Int -> ContinuousHyperParameterRangeProperty -> ShowS
[ContinuousHyperParameterRangeProperty] -> ShowS
ContinuousHyperParameterRangeProperty -> String
(Int -> ContinuousHyperParameterRangeProperty -> ShowS)
-> (ContinuousHyperParameterRangeProperty -> String)
-> ([ContinuousHyperParameterRangeProperty] -> ShowS)
-> Show ContinuousHyperParameterRangeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ContinuousHyperParameterRangeProperty -> ShowS
showsPrec :: Int -> ContinuousHyperParameterRangeProperty -> ShowS
$cshow :: ContinuousHyperParameterRangeProperty -> String
show :: ContinuousHyperParameterRangeProperty -> String
$cshowList :: [ContinuousHyperParameterRangeProperty] -> ShowS
showList :: [ContinuousHyperParameterRangeProperty] -> ShowS
Prelude.Show)
mkContinuousHyperParameterRangeProperty ::
ContinuousHyperParameterRangeProperty
mkContinuousHyperParameterRangeProperty :: ContinuousHyperParameterRangeProperty
mkContinuousHyperParameterRangeProperty
= ContinuousHyperParameterRangeProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), maxValue :: Maybe (Value Double)
maxValue = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
minValue :: Maybe (Value Double)
minValue = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing, name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ContinuousHyperParameterRangeProperty where
toResourceProperties :: ContinuousHyperParameterRangeProperty -> ResourceProperties
toResourceProperties ContinuousHyperParameterRangeProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ContinuousHyperParameterRangeProperty -> ()
maxValue :: ContinuousHyperParameterRangeProperty -> Maybe (Value Double)
minValue :: ContinuousHyperParameterRangeProperty -> Maybe (Value Double)
name :: ContinuousHyperParameterRangeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
maxValue :: Maybe (Value Double)
minValue :: Maybe (Value Double)
name :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Personalize::Solution.ContinuousHyperParameterRange",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxValue" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
maxValue,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MinValue" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
minValue,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Name" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
name])}
instance JSON.ToJSON ContinuousHyperParameterRangeProperty where
toJSON :: ContinuousHyperParameterRangeProperty -> Value
toJSON ContinuousHyperParameterRangeProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ContinuousHyperParameterRangeProperty -> ()
maxValue :: ContinuousHyperParameterRangeProperty -> Maybe (Value Double)
minValue :: ContinuousHyperParameterRangeProperty -> Maybe (Value Double)
name :: ContinuousHyperParameterRangeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
maxValue :: Maybe (Value Double)
minValue :: Maybe (Value Double)
name :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxValue" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
maxValue,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MinValue" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
minValue,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Name" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
name]))
instance Property "MaxValue" ContinuousHyperParameterRangeProperty where
type PropertyType "MaxValue" ContinuousHyperParameterRangeProperty = Value Prelude.Double
set :: PropertyType "MaxValue" ContinuousHyperParameterRangeProperty
-> ContinuousHyperParameterRangeProperty
-> ContinuousHyperParameterRangeProperty
set PropertyType "MaxValue" ContinuousHyperParameterRangeProperty
newValue ContinuousHyperParameterRangeProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ContinuousHyperParameterRangeProperty -> ()
maxValue :: ContinuousHyperParameterRangeProperty -> Maybe (Value Double)
minValue :: ContinuousHyperParameterRangeProperty -> Maybe (Value Double)
name :: ContinuousHyperParameterRangeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
maxValue :: Maybe (Value Double)
minValue :: Maybe (Value Double)
name :: Maybe (Value Text)
..}
= ContinuousHyperParameterRangeProperty
{maxValue :: Maybe (Value Double)
maxValue = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MaxValue" ContinuousHyperParameterRangeProperty
Value Double
newValue, Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
minValue :: Maybe (Value Double)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
minValue :: Maybe (Value Double)
name :: Maybe (Value Text)
..}
instance Property "MinValue" ContinuousHyperParameterRangeProperty where
type PropertyType "MinValue" ContinuousHyperParameterRangeProperty = Value Prelude.Double
set :: PropertyType "MinValue" ContinuousHyperParameterRangeProperty
-> ContinuousHyperParameterRangeProperty
-> ContinuousHyperParameterRangeProperty
set PropertyType "MinValue" ContinuousHyperParameterRangeProperty
newValue ContinuousHyperParameterRangeProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ContinuousHyperParameterRangeProperty -> ()
maxValue :: ContinuousHyperParameterRangeProperty -> Maybe (Value Double)
minValue :: ContinuousHyperParameterRangeProperty -> Maybe (Value Double)
name :: ContinuousHyperParameterRangeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
maxValue :: Maybe (Value Double)
minValue :: Maybe (Value Double)
name :: Maybe (Value Text)
..}
= ContinuousHyperParameterRangeProperty
{minValue :: Maybe (Value Double)
minValue = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MinValue" ContinuousHyperParameterRangeProperty
Value Double
newValue, Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
maxValue :: Maybe (Value Double)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
maxValue :: Maybe (Value Double)
name :: Maybe (Value Text)
..}
instance Property "Name" ContinuousHyperParameterRangeProperty where
type PropertyType "Name" ContinuousHyperParameterRangeProperty = Value Prelude.Text
set :: PropertyType "Name" ContinuousHyperParameterRangeProperty
-> ContinuousHyperParameterRangeProperty
-> ContinuousHyperParameterRangeProperty
set PropertyType "Name" ContinuousHyperParameterRangeProperty
newValue ContinuousHyperParameterRangeProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ContinuousHyperParameterRangeProperty -> ()
maxValue :: ContinuousHyperParameterRangeProperty -> Maybe (Value Double)
minValue :: ContinuousHyperParameterRangeProperty -> Maybe (Value Double)
name :: ContinuousHyperParameterRangeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
maxValue :: Maybe (Value Double)
minValue :: Maybe (Value Double)
name :: Maybe (Value Text)
..}
= ContinuousHyperParameterRangeProperty
{name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" ContinuousHyperParameterRangeProperty
Value Text
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
maxValue :: Maybe (Value Double)
minValue :: Maybe (Value Double)
haddock_workaround_ :: ()
maxValue :: Maybe (Value Double)
minValue :: Maybe (Value Double)
..}