module Stratosphere.Evidently.Launch.GroupToWeightProperty (
GroupToWeightProperty(..), mkGroupToWeightProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GroupToWeightProperty
=
GroupToWeightProperty {GroupToWeightProperty -> ()
haddock_workaround_ :: (),
GroupToWeightProperty -> Value Text
groupName :: (Value Prelude.Text),
GroupToWeightProperty -> Value Integer
splitWeight :: (Value Prelude.Integer)}
deriving stock (GroupToWeightProperty -> GroupToWeightProperty -> Bool
(GroupToWeightProperty -> GroupToWeightProperty -> Bool)
-> (GroupToWeightProperty -> GroupToWeightProperty -> Bool)
-> Eq GroupToWeightProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GroupToWeightProperty -> GroupToWeightProperty -> Bool
== :: GroupToWeightProperty -> GroupToWeightProperty -> Bool
$c/= :: GroupToWeightProperty -> GroupToWeightProperty -> Bool
/= :: GroupToWeightProperty -> GroupToWeightProperty -> Bool
Prelude.Eq, Int -> GroupToWeightProperty -> ShowS
[GroupToWeightProperty] -> ShowS
GroupToWeightProperty -> String
(Int -> GroupToWeightProperty -> ShowS)
-> (GroupToWeightProperty -> String)
-> ([GroupToWeightProperty] -> ShowS)
-> Show GroupToWeightProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GroupToWeightProperty -> ShowS
showsPrec :: Int -> GroupToWeightProperty -> ShowS
$cshow :: GroupToWeightProperty -> String
show :: GroupToWeightProperty -> String
$cshowList :: [GroupToWeightProperty] -> ShowS
showList :: [GroupToWeightProperty] -> ShowS
Prelude.Show)
mkGroupToWeightProperty ::
Value Prelude.Text
-> Value Prelude.Integer -> GroupToWeightProperty
mkGroupToWeightProperty :: Value Text -> Value Integer -> GroupToWeightProperty
mkGroupToWeightProperty Value Text
groupName Value Integer
splitWeight
= GroupToWeightProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), groupName :: Value Text
groupName = Value Text
groupName,
splitWeight :: Value Integer
splitWeight = Value Integer
splitWeight}
instance ToResourceProperties GroupToWeightProperty where
toResourceProperties :: GroupToWeightProperty -> ResourceProperties
toResourceProperties GroupToWeightProperty {()
Value Integer
Value Text
haddock_workaround_ :: GroupToWeightProperty -> ()
groupName :: GroupToWeightProperty -> Value Text
splitWeight :: GroupToWeightProperty -> Value Integer
haddock_workaround_ :: ()
groupName :: Value Text
splitWeight :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Evidently::Launch.GroupToWeight",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"GroupName" 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..= Value Text
groupName,
Key
"SplitWeight" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
splitWeight]}
instance JSON.ToJSON GroupToWeightProperty where
toJSON :: GroupToWeightProperty -> Value
toJSON GroupToWeightProperty {()
Value Integer
Value Text
haddock_workaround_ :: GroupToWeightProperty -> ()
groupName :: GroupToWeightProperty -> Value Text
splitWeight :: GroupToWeightProperty -> Value Integer
haddock_workaround_ :: ()
groupName :: Value Text
splitWeight :: Value Integer
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"GroupName" 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..= Value Text
groupName, Key
"SplitWeight" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
splitWeight]
instance Property "GroupName" GroupToWeightProperty where
type PropertyType "GroupName" GroupToWeightProperty = Value Prelude.Text
set :: PropertyType "GroupName" GroupToWeightProperty
-> GroupToWeightProperty -> GroupToWeightProperty
set PropertyType "GroupName" GroupToWeightProperty
newValue GroupToWeightProperty {()
Value Integer
Value Text
haddock_workaround_ :: GroupToWeightProperty -> ()
groupName :: GroupToWeightProperty -> Value Text
splitWeight :: GroupToWeightProperty -> Value Integer
haddock_workaround_ :: ()
groupName :: Value Text
splitWeight :: Value Integer
..}
= GroupToWeightProperty {groupName :: Value Text
groupName = PropertyType "GroupName" GroupToWeightProperty
Value Text
newValue, ()
Value Integer
haddock_workaround_ :: ()
splitWeight :: Value Integer
haddock_workaround_ :: ()
splitWeight :: Value Integer
..}
instance Property "SplitWeight" GroupToWeightProperty where
type PropertyType "SplitWeight" GroupToWeightProperty = Value Prelude.Integer
set :: PropertyType "SplitWeight" GroupToWeightProperty
-> GroupToWeightProperty -> GroupToWeightProperty
set PropertyType "SplitWeight" GroupToWeightProperty
newValue GroupToWeightProperty {()
Value Integer
Value Text
haddock_workaround_ :: GroupToWeightProperty -> ()
groupName :: GroupToWeightProperty -> Value Text
splitWeight :: GroupToWeightProperty -> Value Integer
haddock_workaround_ :: ()
groupName :: Value Text
splitWeight :: Value Integer
..}
= GroupToWeightProperty {splitWeight :: Value Integer
splitWeight = PropertyType "SplitWeight" GroupToWeightProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
groupName :: Value Text
haddock_workaround_ :: ()
groupName :: Value Text
..}