module Stratosphere.SSM.MaintenanceWindowTask.MaintenanceWindowAutomationParametersProperty (
MaintenanceWindowAutomationParametersProperty(..),
mkMaintenanceWindowAutomationParametersProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MaintenanceWindowAutomationParametersProperty
=
MaintenanceWindowAutomationParametersProperty {MaintenanceWindowAutomationParametersProperty -> ()
haddock_workaround_ :: (),
MaintenanceWindowAutomationParametersProperty -> Maybe (Value Text)
documentVersion :: (Prelude.Maybe (Value Prelude.Text)),
MaintenanceWindowAutomationParametersProperty -> Maybe Object
parameters :: (Prelude.Maybe JSON.Object)}
deriving stock (MaintenanceWindowAutomationParametersProperty
-> MaintenanceWindowAutomationParametersProperty -> Bool
(MaintenanceWindowAutomationParametersProperty
-> MaintenanceWindowAutomationParametersProperty -> Bool)
-> (MaintenanceWindowAutomationParametersProperty
-> MaintenanceWindowAutomationParametersProperty -> Bool)
-> Eq MaintenanceWindowAutomationParametersProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MaintenanceWindowAutomationParametersProperty
-> MaintenanceWindowAutomationParametersProperty -> Bool
== :: MaintenanceWindowAutomationParametersProperty
-> MaintenanceWindowAutomationParametersProperty -> Bool
$c/= :: MaintenanceWindowAutomationParametersProperty
-> MaintenanceWindowAutomationParametersProperty -> Bool
/= :: MaintenanceWindowAutomationParametersProperty
-> MaintenanceWindowAutomationParametersProperty -> Bool
Prelude.Eq, Int -> MaintenanceWindowAutomationParametersProperty -> ShowS
[MaintenanceWindowAutomationParametersProperty] -> ShowS
MaintenanceWindowAutomationParametersProperty -> String
(Int -> MaintenanceWindowAutomationParametersProperty -> ShowS)
-> (MaintenanceWindowAutomationParametersProperty -> String)
-> ([MaintenanceWindowAutomationParametersProperty] -> ShowS)
-> Show MaintenanceWindowAutomationParametersProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MaintenanceWindowAutomationParametersProperty -> ShowS
showsPrec :: Int -> MaintenanceWindowAutomationParametersProperty -> ShowS
$cshow :: MaintenanceWindowAutomationParametersProperty -> String
show :: MaintenanceWindowAutomationParametersProperty -> String
$cshowList :: [MaintenanceWindowAutomationParametersProperty] -> ShowS
showList :: [MaintenanceWindowAutomationParametersProperty] -> ShowS
Prelude.Show)
mkMaintenanceWindowAutomationParametersProperty ::
MaintenanceWindowAutomationParametersProperty
mkMaintenanceWindowAutomationParametersProperty :: MaintenanceWindowAutomationParametersProperty
mkMaintenanceWindowAutomationParametersProperty
= MaintenanceWindowAutomationParametersProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), documentVersion :: Maybe (Value Text)
documentVersion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
parameters :: Maybe Object
parameters = Maybe Object
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MaintenanceWindowAutomationParametersProperty where
toResourceProperties :: MaintenanceWindowAutomationParametersProperty -> ResourceProperties
toResourceProperties
MaintenanceWindowAutomationParametersProperty {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: MaintenanceWindowAutomationParametersProperty -> ()
documentVersion :: MaintenanceWindowAutomationParametersProperty -> Maybe (Value Text)
parameters :: MaintenanceWindowAutomationParametersProperty -> Maybe Object
haddock_workaround_ :: ()
documentVersion :: Maybe (Value Text)
parameters :: Maybe Object
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SSM::MaintenanceWindowTask.MaintenanceWindowAutomationParameters",
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
"DocumentVersion" (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)
documentVersion,
Key -> Object -> (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" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
parameters])}
instance JSON.ToJSON MaintenanceWindowAutomationParametersProperty where
toJSON :: MaintenanceWindowAutomationParametersProperty -> Value
toJSON MaintenanceWindowAutomationParametersProperty {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: MaintenanceWindowAutomationParametersProperty -> ()
documentVersion :: MaintenanceWindowAutomationParametersProperty -> Maybe (Value Text)
parameters :: MaintenanceWindowAutomationParametersProperty -> Maybe Object
haddock_workaround_ :: ()
documentVersion :: Maybe (Value Text)
parameters :: Maybe Object
..}
= [(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
"DocumentVersion" (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)
documentVersion,
Key -> Object -> (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" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
parameters]))
instance Property "DocumentVersion" MaintenanceWindowAutomationParametersProperty where
type PropertyType "DocumentVersion" MaintenanceWindowAutomationParametersProperty = Value Prelude.Text
set :: PropertyType
"DocumentVersion" MaintenanceWindowAutomationParametersProperty
-> MaintenanceWindowAutomationParametersProperty
-> MaintenanceWindowAutomationParametersProperty
set PropertyType
"DocumentVersion" MaintenanceWindowAutomationParametersProperty
newValue MaintenanceWindowAutomationParametersProperty {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: MaintenanceWindowAutomationParametersProperty -> ()
documentVersion :: MaintenanceWindowAutomationParametersProperty -> Maybe (Value Text)
parameters :: MaintenanceWindowAutomationParametersProperty -> Maybe Object
haddock_workaround_ :: ()
documentVersion :: Maybe (Value Text)
parameters :: Maybe Object
..}
= MaintenanceWindowAutomationParametersProperty
{documentVersion :: Maybe (Value Text)
documentVersion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"DocumentVersion" MaintenanceWindowAutomationParametersProperty
Value Text
newValue, Maybe Object
()
haddock_workaround_ :: ()
parameters :: Maybe Object
haddock_workaround_ :: ()
parameters :: Maybe Object
..}
instance Property "Parameters" MaintenanceWindowAutomationParametersProperty where
type PropertyType "Parameters" MaintenanceWindowAutomationParametersProperty = JSON.Object
set :: PropertyType
"Parameters" MaintenanceWindowAutomationParametersProperty
-> MaintenanceWindowAutomationParametersProperty
-> MaintenanceWindowAutomationParametersProperty
set PropertyType
"Parameters" MaintenanceWindowAutomationParametersProperty
newValue MaintenanceWindowAutomationParametersProperty {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: MaintenanceWindowAutomationParametersProperty -> ()
documentVersion :: MaintenanceWindowAutomationParametersProperty -> Maybe (Value Text)
parameters :: MaintenanceWindowAutomationParametersProperty -> Maybe Object
haddock_workaround_ :: ()
documentVersion :: Maybe (Value Text)
parameters :: Maybe Object
..}
= MaintenanceWindowAutomationParametersProperty
{parameters :: Maybe Object
parameters = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType
"Parameters" MaintenanceWindowAutomationParametersProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
documentVersion :: Maybe (Value Text)
haddock_workaround_ :: ()
documentVersion :: Maybe (Value Text)
..}