module Stratosphere.Evidently.Launch.LaunchGroupObjectProperty (
        LaunchGroupObjectProperty(..), mkLaunchGroupObjectProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LaunchGroupObjectProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-evidently-launch-launchgroupobject.html>
    LaunchGroupObjectProperty {LaunchGroupObjectProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-evidently-launch-launchgroupobject.html#cfn-evidently-launch-launchgroupobject-description>
                               LaunchGroupObjectProperty -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-evidently-launch-launchgroupobject.html#cfn-evidently-launch-launchgroupobject-feature>
                               LaunchGroupObjectProperty -> Value Text
feature :: (Value Prelude.Text),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-evidently-launch-launchgroupobject.html#cfn-evidently-launch-launchgroupobject-groupname>
                               LaunchGroupObjectProperty -> Value Text
groupName :: (Value Prelude.Text),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-evidently-launch-launchgroupobject.html#cfn-evidently-launch-launchgroupobject-variation>
                               LaunchGroupObjectProperty -> Value Text
variation :: (Value Prelude.Text)}
  deriving stock (LaunchGroupObjectProperty -> LaunchGroupObjectProperty -> Bool
(LaunchGroupObjectProperty -> LaunchGroupObjectProperty -> Bool)
-> (LaunchGroupObjectProperty -> LaunchGroupObjectProperty -> Bool)
-> Eq LaunchGroupObjectProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LaunchGroupObjectProperty -> LaunchGroupObjectProperty -> Bool
== :: LaunchGroupObjectProperty -> LaunchGroupObjectProperty -> Bool
$c/= :: LaunchGroupObjectProperty -> LaunchGroupObjectProperty -> Bool
/= :: LaunchGroupObjectProperty -> LaunchGroupObjectProperty -> Bool
Prelude.Eq, Int -> LaunchGroupObjectProperty -> ShowS
[LaunchGroupObjectProperty] -> ShowS
LaunchGroupObjectProperty -> String
(Int -> LaunchGroupObjectProperty -> ShowS)
-> (LaunchGroupObjectProperty -> String)
-> ([LaunchGroupObjectProperty] -> ShowS)
-> Show LaunchGroupObjectProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LaunchGroupObjectProperty -> ShowS
showsPrec :: Int -> LaunchGroupObjectProperty -> ShowS
$cshow :: LaunchGroupObjectProperty -> String
show :: LaunchGroupObjectProperty -> String
$cshowList :: [LaunchGroupObjectProperty] -> ShowS
showList :: [LaunchGroupObjectProperty] -> ShowS
Prelude.Show)
mkLaunchGroupObjectProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text -> LaunchGroupObjectProperty
mkLaunchGroupObjectProperty :: Value Text -> Value Text -> Value Text -> LaunchGroupObjectProperty
mkLaunchGroupObjectProperty Value Text
feature Value Text
groupName Value Text
variation
  = LaunchGroupObjectProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), feature :: Value Text
feature = Value Text
feature,
       groupName :: Value Text
groupName = Value Text
groupName, variation :: Value Text
variation = Value Text
variation,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LaunchGroupObjectProperty where
  toResourceProperties :: LaunchGroupObjectProperty -> ResourceProperties
toResourceProperties LaunchGroupObjectProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LaunchGroupObjectProperty -> ()
description :: LaunchGroupObjectProperty -> Maybe (Value Text)
feature :: LaunchGroupObjectProperty -> Value Text
groupName :: LaunchGroupObjectProperty -> Value Text
variation :: LaunchGroupObjectProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
feature :: Value Text
groupName :: Value Text
variation :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Evidently::Launch.LaunchGroupObject",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"Feature" 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
feature, 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
"Variation" 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
variation]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [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
"Description" (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)
description]))}
instance JSON.ToJSON LaunchGroupObjectProperty where
  toJSON :: LaunchGroupObjectProperty -> Value
toJSON LaunchGroupObjectProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LaunchGroupObjectProperty -> ()
description :: LaunchGroupObjectProperty -> Maybe (Value Text)
feature :: LaunchGroupObjectProperty -> Value Text
groupName :: LaunchGroupObjectProperty -> Value Text
variation :: LaunchGroupObjectProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
feature :: Value Text
groupName :: Value Text
variation :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"Feature" 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
feature, 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
"Variation" 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
variation]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [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
"Description" (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)
description])))
instance Property "Description" LaunchGroupObjectProperty where
  type PropertyType "Description" LaunchGroupObjectProperty = Value Prelude.Text
  set :: PropertyType "Description" LaunchGroupObjectProperty
-> LaunchGroupObjectProperty -> LaunchGroupObjectProperty
set PropertyType "Description" LaunchGroupObjectProperty
newValue LaunchGroupObjectProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LaunchGroupObjectProperty -> ()
description :: LaunchGroupObjectProperty -> Maybe (Value Text)
feature :: LaunchGroupObjectProperty -> Value Text
groupName :: LaunchGroupObjectProperty -> Value Text
variation :: LaunchGroupObjectProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
feature :: Value Text
groupName :: Value Text
variation :: Value Text
..}
    = LaunchGroupObjectProperty
        {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" LaunchGroupObjectProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
feature :: Value Text
groupName :: Value Text
variation :: Value Text
haddock_workaround_ :: ()
feature :: Value Text
groupName :: Value Text
variation :: Value Text
..}
instance Property "Feature" LaunchGroupObjectProperty where
  type PropertyType "Feature" LaunchGroupObjectProperty = Value Prelude.Text
  set :: PropertyType "Feature" LaunchGroupObjectProperty
-> LaunchGroupObjectProperty -> LaunchGroupObjectProperty
set PropertyType "Feature" LaunchGroupObjectProperty
newValue LaunchGroupObjectProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LaunchGroupObjectProperty -> ()
description :: LaunchGroupObjectProperty -> Maybe (Value Text)
feature :: LaunchGroupObjectProperty -> Value Text
groupName :: LaunchGroupObjectProperty -> Value Text
variation :: LaunchGroupObjectProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
feature :: Value Text
groupName :: Value Text
variation :: Value Text
..}
    = LaunchGroupObjectProperty {feature :: Value Text
feature = PropertyType "Feature" LaunchGroupObjectProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
groupName :: Value Text
variation :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
groupName :: Value Text
variation :: Value Text
..}
instance Property "GroupName" LaunchGroupObjectProperty where
  type PropertyType "GroupName" LaunchGroupObjectProperty = Value Prelude.Text
  set :: PropertyType "GroupName" LaunchGroupObjectProperty
-> LaunchGroupObjectProperty -> LaunchGroupObjectProperty
set PropertyType "GroupName" LaunchGroupObjectProperty
newValue LaunchGroupObjectProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LaunchGroupObjectProperty -> ()
description :: LaunchGroupObjectProperty -> Maybe (Value Text)
feature :: LaunchGroupObjectProperty -> Value Text
groupName :: LaunchGroupObjectProperty -> Value Text
variation :: LaunchGroupObjectProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
feature :: Value Text
groupName :: Value Text
variation :: Value Text
..}
    = LaunchGroupObjectProperty {groupName :: Value Text
groupName = PropertyType "GroupName" LaunchGroupObjectProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
feature :: Value Text
variation :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
feature :: Value Text
variation :: Value Text
..}
instance Property "Variation" LaunchGroupObjectProperty where
  type PropertyType "Variation" LaunchGroupObjectProperty = Value Prelude.Text
  set :: PropertyType "Variation" LaunchGroupObjectProperty
-> LaunchGroupObjectProperty -> LaunchGroupObjectProperty
set PropertyType "Variation" LaunchGroupObjectProperty
newValue LaunchGroupObjectProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LaunchGroupObjectProperty -> ()
description :: LaunchGroupObjectProperty -> Maybe (Value Text)
feature :: LaunchGroupObjectProperty -> Value Text
groupName :: LaunchGroupObjectProperty -> Value Text
variation :: LaunchGroupObjectProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
feature :: Value Text
groupName :: Value Text
variation :: Value Text
..}
    = LaunchGroupObjectProperty {variation :: Value Text
variation = PropertyType "Variation" LaunchGroupObjectProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
feature :: Value Text
groupName :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
feature :: Value Text
groupName :: Value Text
..}