module Stratosphere.SSM.MaintenanceWindowTask.MaintenanceWindowStepFunctionsParametersProperty (
        MaintenanceWindowStepFunctionsParametersProperty(..),
        mkMaintenanceWindowStepFunctionsParametersProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MaintenanceWindowStepFunctionsParametersProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowstepfunctionsparameters.html>
    MaintenanceWindowStepFunctionsParametersProperty {MaintenanceWindowStepFunctionsParametersProperty -> ()
haddock_workaround_ :: (),
                                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowstepfunctionsparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowstepfunctionsparameters-input>
                                                      MaintenanceWindowStepFunctionsParametersProperty
-> Maybe (Value Text)
input :: (Prelude.Maybe (Value Prelude.Text)),
                                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowstepfunctionsparameters.html#cfn-ssm-maintenancewindowtask-maintenancewindowstepfunctionsparameters-name>
                                                      MaintenanceWindowStepFunctionsParametersProperty
-> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (MaintenanceWindowStepFunctionsParametersProperty
-> MaintenanceWindowStepFunctionsParametersProperty -> Bool
(MaintenanceWindowStepFunctionsParametersProperty
 -> MaintenanceWindowStepFunctionsParametersProperty -> Bool)
-> (MaintenanceWindowStepFunctionsParametersProperty
    -> MaintenanceWindowStepFunctionsParametersProperty -> Bool)
-> Eq MaintenanceWindowStepFunctionsParametersProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MaintenanceWindowStepFunctionsParametersProperty
-> MaintenanceWindowStepFunctionsParametersProperty -> Bool
== :: MaintenanceWindowStepFunctionsParametersProperty
-> MaintenanceWindowStepFunctionsParametersProperty -> Bool
$c/= :: MaintenanceWindowStepFunctionsParametersProperty
-> MaintenanceWindowStepFunctionsParametersProperty -> Bool
/= :: MaintenanceWindowStepFunctionsParametersProperty
-> MaintenanceWindowStepFunctionsParametersProperty -> Bool
Prelude.Eq, Int -> MaintenanceWindowStepFunctionsParametersProperty -> ShowS
[MaintenanceWindowStepFunctionsParametersProperty] -> ShowS
MaintenanceWindowStepFunctionsParametersProperty -> String
(Int -> MaintenanceWindowStepFunctionsParametersProperty -> ShowS)
-> (MaintenanceWindowStepFunctionsParametersProperty -> String)
-> ([MaintenanceWindowStepFunctionsParametersProperty] -> ShowS)
-> Show MaintenanceWindowStepFunctionsParametersProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MaintenanceWindowStepFunctionsParametersProperty -> ShowS
showsPrec :: Int -> MaintenanceWindowStepFunctionsParametersProperty -> ShowS
$cshow :: MaintenanceWindowStepFunctionsParametersProperty -> String
show :: MaintenanceWindowStepFunctionsParametersProperty -> String
$cshowList :: [MaintenanceWindowStepFunctionsParametersProperty] -> ShowS
showList :: [MaintenanceWindowStepFunctionsParametersProperty] -> ShowS
Prelude.Show)
mkMaintenanceWindowStepFunctionsParametersProperty ::
  MaintenanceWindowStepFunctionsParametersProperty
mkMaintenanceWindowStepFunctionsParametersProperty :: MaintenanceWindowStepFunctionsParametersProperty
mkMaintenanceWindowStepFunctionsParametersProperty
  = MaintenanceWindowStepFunctionsParametersProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), input :: Maybe (Value Text)
input = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MaintenanceWindowStepFunctionsParametersProperty where
  toResourceProperties :: MaintenanceWindowStepFunctionsParametersProperty
-> ResourceProperties
toResourceProperties
    MaintenanceWindowStepFunctionsParametersProperty {Maybe (Value Text)
()
haddock_workaround_ :: MaintenanceWindowStepFunctionsParametersProperty -> ()
input :: MaintenanceWindowStepFunctionsParametersProperty
-> Maybe (Value Text)
name :: MaintenanceWindowStepFunctionsParametersProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
input :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SSM::MaintenanceWindowTask.MaintenanceWindowStepFunctionsParameters",
         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 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
"Input" (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)
input,
                            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 MaintenanceWindowStepFunctionsParametersProperty where
  toJSON :: MaintenanceWindowStepFunctionsParametersProperty -> Value
toJSON MaintenanceWindowStepFunctionsParametersProperty {Maybe (Value Text)
()
haddock_workaround_ :: MaintenanceWindowStepFunctionsParametersProperty -> ()
input :: MaintenanceWindowStepFunctionsParametersProperty
-> Maybe (Value Text)
name :: MaintenanceWindowStepFunctionsParametersProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
input :: Maybe (Value Text)
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 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
"Input" (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)
input,
               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 "Input" MaintenanceWindowStepFunctionsParametersProperty where
  type PropertyType "Input" MaintenanceWindowStepFunctionsParametersProperty = Value Prelude.Text
  set :: PropertyType
  "Input" MaintenanceWindowStepFunctionsParametersProperty
-> MaintenanceWindowStepFunctionsParametersProperty
-> MaintenanceWindowStepFunctionsParametersProperty
set PropertyType
  "Input" MaintenanceWindowStepFunctionsParametersProperty
newValue MaintenanceWindowStepFunctionsParametersProperty {Maybe (Value Text)
()
haddock_workaround_ :: MaintenanceWindowStepFunctionsParametersProperty -> ()
input :: MaintenanceWindowStepFunctionsParametersProperty
-> Maybe (Value Text)
name :: MaintenanceWindowStepFunctionsParametersProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
input :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
    = MaintenanceWindowStepFunctionsParametersProperty
        {input :: Maybe (Value Text)
input = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "Input" MaintenanceWindowStepFunctionsParametersProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
..}
instance Property "Name" MaintenanceWindowStepFunctionsParametersProperty where
  type PropertyType "Name" MaintenanceWindowStepFunctionsParametersProperty = Value Prelude.Text
  set :: PropertyType
  "Name" MaintenanceWindowStepFunctionsParametersProperty
-> MaintenanceWindowStepFunctionsParametersProperty
-> MaintenanceWindowStepFunctionsParametersProperty
set PropertyType
  "Name" MaintenanceWindowStepFunctionsParametersProperty
newValue MaintenanceWindowStepFunctionsParametersProperty {Maybe (Value Text)
()
haddock_workaround_ :: MaintenanceWindowStepFunctionsParametersProperty -> ()
input :: MaintenanceWindowStepFunctionsParametersProperty
-> Maybe (Value Text)
name :: MaintenanceWindowStepFunctionsParametersProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
input :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
    = MaintenanceWindowStepFunctionsParametersProperty
        {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" MaintenanceWindowStepFunctionsParametersProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
input :: Maybe (Value Text)
haddock_workaround_ :: ()
input :: Maybe (Value Text)
..}