module Stratosphere.FIS.ExperimentTemplate.ExperimentTemplateActionProperty (
        ExperimentTemplateActionProperty(..),
        mkExperimentTemplateActionProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ExperimentTemplateActionProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fis-experimenttemplate-experimenttemplateaction.html>
    ExperimentTemplateActionProperty {ExperimentTemplateActionProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fis-experimenttemplate-experimenttemplateaction.html#cfn-fis-experimenttemplate-experimenttemplateaction-actionid>
                                      ExperimentTemplateActionProperty -> Value Text
actionId :: (Value Prelude.Text),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fis-experimenttemplate-experimenttemplateaction.html#cfn-fis-experimenttemplate-experimenttemplateaction-description>
                                      ExperimentTemplateActionProperty -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fis-experimenttemplate-experimenttemplateaction.html#cfn-fis-experimenttemplate-experimenttemplateaction-parameters>
                                      ExperimentTemplateActionProperty -> Maybe (Map Text (Value Text))
parameters :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fis-experimenttemplate-experimenttemplateaction.html#cfn-fis-experimenttemplate-experimenttemplateaction-startafter>
                                      ExperimentTemplateActionProperty -> Maybe (ValueList Text)
startAfter :: (Prelude.Maybe (ValueList Prelude.Text)),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fis-experimenttemplate-experimenttemplateaction.html#cfn-fis-experimenttemplate-experimenttemplateaction-targets>
                                      ExperimentTemplateActionProperty -> Maybe (Map Text (Value Text))
targets :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
  deriving stock (ExperimentTemplateActionProperty
-> ExperimentTemplateActionProperty -> Bool
(ExperimentTemplateActionProperty
 -> ExperimentTemplateActionProperty -> Bool)
-> (ExperimentTemplateActionProperty
    -> ExperimentTemplateActionProperty -> Bool)
-> Eq ExperimentTemplateActionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ExperimentTemplateActionProperty
-> ExperimentTemplateActionProperty -> Bool
== :: ExperimentTemplateActionProperty
-> ExperimentTemplateActionProperty -> Bool
$c/= :: ExperimentTemplateActionProperty
-> ExperimentTemplateActionProperty -> Bool
/= :: ExperimentTemplateActionProperty
-> ExperimentTemplateActionProperty -> Bool
Prelude.Eq, Int -> ExperimentTemplateActionProperty -> ShowS
[ExperimentTemplateActionProperty] -> ShowS
ExperimentTemplateActionProperty -> String
(Int -> ExperimentTemplateActionProperty -> ShowS)
-> (ExperimentTemplateActionProperty -> String)
-> ([ExperimentTemplateActionProperty] -> ShowS)
-> Show ExperimentTemplateActionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ExperimentTemplateActionProperty -> ShowS
showsPrec :: Int -> ExperimentTemplateActionProperty -> ShowS
$cshow :: ExperimentTemplateActionProperty -> String
show :: ExperimentTemplateActionProperty -> String
$cshowList :: [ExperimentTemplateActionProperty] -> ShowS
showList :: [ExperimentTemplateActionProperty] -> ShowS
Prelude.Show)
mkExperimentTemplateActionProperty ::
  Value Prelude.Text -> ExperimentTemplateActionProperty
mkExperimentTemplateActionProperty :: Value Text -> ExperimentTemplateActionProperty
mkExperimentTemplateActionProperty Value Text
actionId
  = ExperimentTemplateActionProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), actionId :: Value Text
actionId = Value Text
actionId,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, parameters :: Maybe (Map Text (Value Text))
parameters = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing,
       startAfter :: Maybe (ValueList Text)
startAfter = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, targets :: Maybe (Map Text (Value Text))
targets = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ExperimentTemplateActionProperty where
  toResourceProperties :: ExperimentTemplateActionProperty -> ResourceProperties
toResourceProperties ExperimentTemplateActionProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ExperimentTemplateActionProperty -> ()
actionId :: ExperimentTemplateActionProperty -> Value Text
description :: ExperimentTemplateActionProperty -> Maybe (Value Text)
parameters :: ExperimentTemplateActionProperty -> Maybe (Map Text (Value Text))
startAfter :: ExperimentTemplateActionProperty -> Maybe (ValueList Text)
targets :: ExperimentTemplateActionProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actionId :: Value Text
description :: Maybe (Value Text)
parameters :: Maybe (Map Text (Value Text))
startAfter :: Maybe (ValueList Text)
targets :: Maybe (Map Text (Value Text))
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::FIS::ExperimentTemplate.ExperimentTemplateAction",
         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
"ActionId" 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
actionId]
                           ([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,
                               Key -> Map Text (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
"Parameters" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
parameters,
                               Key -> ValueList 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
"StartAfter" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
startAfter,
                               Key -> Map Text (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
"Targets" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
targets]))}
instance JSON.ToJSON ExperimentTemplateActionProperty where
  toJSON :: ExperimentTemplateActionProperty -> Value
toJSON ExperimentTemplateActionProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ExperimentTemplateActionProperty -> ()
actionId :: ExperimentTemplateActionProperty -> Value Text
description :: ExperimentTemplateActionProperty -> Maybe (Value Text)
parameters :: ExperimentTemplateActionProperty -> Maybe (Map Text (Value Text))
startAfter :: ExperimentTemplateActionProperty -> Maybe (ValueList Text)
targets :: ExperimentTemplateActionProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actionId :: Value Text
description :: Maybe (Value Text)
parameters :: Maybe (Map Text (Value Text))
startAfter :: Maybe (ValueList Text)
targets :: Maybe (Map Text (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
"ActionId" 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
actionId]
              ([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,
                  Key -> Map Text (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
"Parameters" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
parameters,
                  Key -> ValueList 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
"StartAfter" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
startAfter,
                  Key -> Map Text (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
"Targets" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
targets])))
instance Property "ActionId" ExperimentTemplateActionProperty where
  type PropertyType "ActionId" ExperimentTemplateActionProperty = Value Prelude.Text
  set :: PropertyType "ActionId" ExperimentTemplateActionProperty
-> ExperimentTemplateActionProperty
-> ExperimentTemplateActionProperty
set PropertyType "ActionId" ExperimentTemplateActionProperty
newValue ExperimentTemplateActionProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ExperimentTemplateActionProperty -> ()
actionId :: ExperimentTemplateActionProperty -> Value Text
description :: ExperimentTemplateActionProperty -> Maybe (Value Text)
parameters :: ExperimentTemplateActionProperty -> Maybe (Map Text (Value Text))
startAfter :: ExperimentTemplateActionProperty -> Maybe (ValueList Text)
targets :: ExperimentTemplateActionProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actionId :: Value Text
description :: Maybe (Value Text)
parameters :: Maybe (Map Text (Value Text))
startAfter :: Maybe (ValueList Text)
targets :: Maybe (Map Text (Value Text))
..}
    = ExperimentTemplateActionProperty {actionId :: Value Text
actionId = PropertyType "ActionId" ExperimentTemplateActionProperty
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
parameters :: Maybe (Map Text (Value Text))
startAfter :: Maybe (ValueList Text)
targets :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
parameters :: Maybe (Map Text (Value Text))
startAfter :: Maybe (ValueList Text)
targets :: Maybe (Map Text (Value Text))
..}
instance Property "Description" ExperimentTemplateActionProperty where
  type PropertyType "Description" ExperimentTemplateActionProperty = Value Prelude.Text
  set :: PropertyType "Description" ExperimentTemplateActionProperty
-> ExperimentTemplateActionProperty
-> ExperimentTemplateActionProperty
set PropertyType "Description" ExperimentTemplateActionProperty
newValue ExperimentTemplateActionProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ExperimentTemplateActionProperty -> ()
actionId :: ExperimentTemplateActionProperty -> Value Text
description :: ExperimentTemplateActionProperty -> Maybe (Value Text)
parameters :: ExperimentTemplateActionProperty -> Maybe (Map Text (Value Text))
startAfter :: ExperimentTemplateActionProperty -> Maybe (ValueList Text)
targets :: ExperimentTemplateActionProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actionId :: Value Text
description :: Maybe (Value Text)
parameters :: Maybe (Map Text (Value Text))
startAfter :: Maybe (ValueList Text)
targets :: Maybe (Map Text (Value Text))
..}
    = ExperimentTemplateActionProperty
        {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" ExperimentTemplateActionProperty
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
actionId :: Value Text
parameters :: Maybe (Map Text (Value Text))
startAfter :: Maybe (ValueList Text)
targets :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actionId :: Value Text
parameters :: Maybe (Map Text (Value Text))
startAfter :: Maybe (ValueList Text)
targets :: Maybe (Map Text (Value Text))
..}
instance Property "Parameters" ExperimentTemplateActionProperty where
  type PropertyType "Parameters" ExperimentTemplateActionProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "Parameters" ExperimentTemplateActionProperty
-> ExperimentTemplateActionProperty
-> ExperimentTemplateActionProperty
set PropertyType "Parameters" ExperimentTemplateActionProperty
newValue ExperimentTemplateActionProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ExperimentTemplateActionProperty -> ()
actionId :: ExperimentTemplateActionProperty -> Value Text
description :: ExperimentTemplateActionProperty -> Maybe (Value Text)
parameters :: ExperimentTemplateActionProperty -> Maybe (Map Text (Value Text))
startAfter :: ExperimentTemplateActionProperty -> Maybe (ValueList Text)
targets :: ExperimentTemplateActionProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actionId :: Value Text
description :: Maybe (Value Text)
parameters :: Maybe (Map Text (Value Text))
startAfter :: Maybe (ValueList Text)
targets :: Maybe (Map Text (Value Text))
..}
    = ExperimentTemplateActionProperty
        {parameters :: Maybe (Map Text (Value Text))
parameters = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Parameters" ExperimentTemplateActionProperty
newValue, Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
actionId :: Value Text
description :: Maybe (Value Text)
startAfter :: Maybe (ValueList Text)
targets :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actionId :: Value Text
description :: Maybe (Value Text)
startAfter :: Maybe (ValueList Text)
targets :: Maybe (Map Text (Value Text))
..}
instance Property "StartAfter" ExperimentTemplateActionProperty where
  type PropertyType "StartAfter" ExperimentTemplateActionProperty = ValueList Prelude.Text
  set :: PropertyType "StartAfter" ExperimentTemplateActionProperty
-> ExperimentTemplateActionProperty
-> ExperimentTemplateActionProperty
set PropertyType "StartAfter" ExperimentTemplateActionProperty
newValue ExperimentTemplateActionProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ExperimentTemplateActionProperty -> ()
actionId :: ExperimentTemplateActionProperty -> Value Text
description :: ExperimentTemplateActionProperty -> Maybe (Value Text)
parameters :: ExperimentTemplateActionProperty -> Maybe (Map Text (Value Text))
startAfter :: ExperimentTemplateActionProperty -> Maybe (ValueList Text)
targets :: ExperimentTemplateActionProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actionId :: Value Text
description :: Maybe (Value Text)
parameters :: Maybe (Map Text (Value Text))
startAfter :: Maybe (ValueList Text)
targets :: Maybe (Map Text (Value Text))
..}
    = ExperimentTemplateActionProperty
        {startAfter :: Maybe (ValueList Text)
startAfter = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StartAfter" ExperimentTemplateActionProperty
ValueList Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
actionId :: Value Text
description :: Maybe (Value Text)
parameters :: Maybe (Map Text (Value Text))
targets :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actionId :: Value Text
description :: Maybe (Value Text)
parameters :: Maybe (Map Text (Value Text))
targets :: Maybe (Map Text (Value Text))
..}
instance Property "Targets" ExperimentTemplateActionProperty where
  type PropertyType "Targets" ExperimentTemplateActionProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "Targets" ExperimentTemplateActionProperty
-> ExperimentTemplateActionProperty
-> ExperimentTemplateActionProperty
set PropertyType "Targets" ExperimentTemplateActionProperty
newValue ExperimentTemplateActionProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ExperimentTemplateActionProperty -> ()
actionId :: ExperimentTemplateActionProperty -> Value Text
description :: ExperimentTemplateActionProperty -> Maybe (Value Text)
parameters :: ExperimentTemplateActionProperty -> Maybe (Map Text (Value Text))
startAfter :: ExperimentTemplateActionProperty -> Maybe (ValueList Text)
targets :: ExperimentTemplateActionProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
actionId :: Value Text
description :: Maybe (Value Text)
parameters :: Maybe (Map Text (Value Text))
startAfter :: Maybe (ValueList Text)
targets :: Maybe (Map Text (Value Text))
..}
    = ExperimentTemplateActionProperty
        {targets :: Maybe (Map Text (Value Text))
targets = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Targets" ExperimentTemplateActionProperty
newValue, Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
actionId :: Value Text
description :: Maybe (Value Text)
parameters :: Maybe (Map Text (Value Text))
startAfter :: Maybe (ValueList Text)
haddock_workaround_ :: ()
actionId :: Value Text
description :: Maybe (Value Text)
parameters :: Maybe (Map Text (Value Text))
startAfter :: Maybe (ValueList Text)
..}