module Stratosphere.SSM.MaintenanceWindowTask.MaintenanceWindowLambdaParametersProperty (
MaintenanceWindowLambdaParametersProperty(..),
mkMaintenanceWindowLambdaParametersProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MaintenanceWindowLambdaParametersProperty
=
MaintenanceWindowLambdaParametersProperty {MaintenanceWindowLambdaParametersProperty -> ()
haddock_workaround_ :: (),
MaintenanceWindowLambdaParametersProperty -> Maybe (Value Text)
clientContext :: (Prelude.Maybe (Value Prelude.Text)),
MaintenanceWindowLambdaParametersProperty -> Maybe (Value Text)
payload :: (Prelude.Maybe (Value Prelude.Text)),
MaintenanceWindowLambdaParametersProperty -> Maybe (Value Text)
qualifier :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (MaintenanceWindowLambdaParametersProperty
-> MaintenanceWindowLambdaParametersProperty -> Bool
(MaintenanceWindowLambdaParametersProperty
-> MaintenanceWindowLambdaParametersProperty -> Bool)
-> (MaintenanceWindowLambdaParametersProperty
-> MaintenanceWindowLambdaParametersProperty -> Bool)
-> Eq MaintenanceWindowLambdaParametersProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MaintenanceWindowLambdaParametersProperty
-> MaintenanceWindowLambdaParametersProperty -> Bool
== :: MaintenanceWindowLambdaParametersProperty
-> MaintenanceWindowLambdaParametersProperty -> Bool
$c/= :: MaintenanceWindowLambdaParametersProperty
-> MaintenanceWindowLambdaParametersProperty -> Bool
/= :: MaintenanceWindowLambdaParametersProperty
-> MaintenanceWindowLambdaParametersProperty -> Bool
Prelude.Eq, Int -> MaintenanceWindowLambdaParametersProperty -> ShowS
[MaintenanceWindowLambdaParametersProperty] -> ShowS
MaintenanceWindowLambdaParametersProperty -> String
(Int -> MaintenanceWindowLambdaParametersProperty -> ShowS)
-> (MaintenanceWindowLambdaParametersProperty -> String)
-> ([MaintenanceWindowLambdaParametersProperty] -> ShowS)
-> Show MaintenanceWindowLambdaParametersProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MaintenanceWindowLambdaParametersProperty -> ShowS
showsPrec :: Int -> MaintenanceWindowLambdaParametersProperty -> ShowS
$cshow :: MaintenanceWindowLambdaParametersProperty -> String
show :: MaintenanceWindowLambdaParametersProperty -> String
$cshowList :: [MaintenanceWindowLambdaParametersProperty] -> ShowS
showList :: [MaintenanceWindowLambdaParametersProperty] -> ShowS
Prelude.Show)
mkMaintenanceWindowLambdaParametersProperty ::
MaintenanceWindowLambdaParametersProperty
mkMaintenanceWindowLambdaParametersProperty :: MaintenanceWindowLambdaParametersProperty
mkMaintenanceWindowLambdaParametersProperty
= MaintenanceWindowLambdaParametersProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), clientContext :: Maybe (Value Text)
clientContext = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
payload :: Maybe (Value Text)
payload = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, qualifier :: Maybe (Value Text)
qualifier = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MaintenanceWindowLambdaParametersProperty where
toResourceProperties :: MaintenanceWindowLambdaParametersProperty -> ResourceProperties
toResourceProperties MaintenanceWindowLambdaParametersProperty {Maybe (Value Text)
()
haddock_workaround_ :: MaintenanceWindowLambdaParametersProperty -> ()
clientContext :: MaintenanceWindowLambdaParametersProperty -> Maybe (Value Text)
payload :: MaintenanceWindowLambdaParametersProperty -> Maybe (Value Text)
qualifier :: MaintenanceWindowLambdaParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
clientContext :: Maybe (Value Text)
payload :: Maybe (Value Text)
qualifier :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SSM::MaintenanceWindowTask.MaintenanceWindowLambdaParameters",
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
"ClientContext" (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)
clientContext,
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
"Payload" (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)
payload,
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
"Qualifier" (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)
qualifier])}
instance JSON.ToJSON MaintenanceWindowLambdaParametersProperty where
toJSON :: MaintenanceWindowLambdaParametersProperty -> Value
toJSON MaintenanceWindowLambdaParametersProperty {Maybe (Value Text)
()
haddock_workaround_ :: MaintenanceWindowLambdaParametersProperty -> ()
clientContext :: MaintenanceWindowLambdaParametersProperty -> Maybe (Value Text)
payload :: MaintenanceWindowLambdaParametersProperty -> Maybe (Value Text)
qualifier :: MaintenanceWindowLambdaParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
clientContext :: Maybe (Value Text)
payload :: Maybe (Value Text)
qualifier :: 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
"ClientContext" (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)
clientContext,
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
"Payload" (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)
payload,
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
"Qualifier" (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)
qualifier]))
instance Property "ClientContext" MaintenanceWindowLambdaParametersProperty where
type PropertyType "ClientContext" MaintenanceWindowLambdaParametersProperty = Value Prelude.Text
set :: PropertyType
"ClientContext" MaintenanceWindowLambdaParametersProperty
-> MaintenanceWindowLambdaParametersProperty
-> MaintenanceWindowLambdaParametersProperty
set PropertyType
"ClientContext" MaintenanceWindowLambdaParametersProperty
newValue MaintenanceWindowLambdaParametersProperty {Maybe (Value Text)
()
haddock_workaround_ :: MaintenanceWindowLambdaParametersProperty -> ()
clientContext :: MaintenanceWindowLambdaParametersProperty -> Maybe (Value Text)
payload :: MaintenanceWindowLambdaParametersProperty -> Maybe (Value Text)
qualifier :: MaintenanceWindowLambdaParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
clientContext :: Maybe (Value Text)
payload :: Maybe (Value Text)
qualifier :: Maybe (Value Text)
..}
= MaintenanceWindowLambdaParametersProperty
{clientContext :: Maybe (Value Text)
clientContext = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ClientContext" MaintenanceWindowLambdaParametersProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
payload :: Maybe (Value Text)
qualifier :: Maybe (Value Text)
haddock_workaround_ :: ()
payload :: Maybe (Value Text)
qualifier :: Maybe (Value Text)
..}
instance Property "Payload" MaintenanceWindowLambdaParametersProperty where
type PropertyType "Payload" MaintenanceWindowLambdaParametersProperty = Value Prelude.Text
set :: PropertyType "Payload" MaintenanceWindowLambdaParametersProperty
-> MaintenanceWindowLambdaParametersProperty
-> MaintenanceWindowLambdaParametersProperty
set PropertyType "Payload" MaintenanceWindowLambdaParametersProperty
newValue MaintenanceWindowLambdaParametersProperty {Maybe (Value Text)
()
haddock_workaround_ :: MaintenanceWindowLambdaParametersProperty -> ()
clientContext :: MaintenanceWindowLambdaParametersProperty -> Maybe (Value Text)
payload :: MaintenanceWindowLambdaParametersProperty -> Maybe (Value Text)
qualifier :: MaintenanceWindowLambdaParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
clientContext :: Maybe (Value Text)
payload :: Maybe (Value Text)
qualifier :: Maybe (Value Text)
..}
= MaintenanceWindowLambdaParametersProperty
{payload :: Maybe (Value Text)
payload = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Payload" MaintenanceWindowLambdaParametersProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
clientContext :: Maybe (Value Text)
qualifier :: Maybe (Value Text)
haddock_workaround_ :: ()
clientContext :: Maybe (Value Text)
qualifier :: Maybe (Value Text)
..}
instance Property "Qualifier" MaintenanceWindowLambdaParametersProperty where
type PropertyType "Qualifier" MaintenanceWindowLambdaParametersProperty = Value Prelude.Text
set :: PropertyType "Qualifier" MaintenanceWindowLambdaParametersProperty
-> MaintenanceWindowLambdaParametersProperty
-> MaintenanceWindowLambdaParametersProperty
set PropertyType "Qualifier" MaintenanceWindowLambdaParametersProperty
newValue MaintenanceWindowLambdaParametersProperty {Maybe (Value Text)
()
haddock_workaround_ :: MaintenanceWindowLambdaParametersProperty -> ()
clientContext :: MaintenanceWindowLambdaParametersProperty -> Maybe (Value Text)
payload :: MaintenanceWindowLambdaParametersProperty -> Maybe (Value Text)
qualifier :: MaintenanceWindowLambdaParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
clientContext :: Maybe (Value Text)
payload :: Maybe (Value Text)
qualifier :: Maybe (Value Text)
..}
= MaintenanceWindowLambdaParametersProperty
{qualifier :: Maybe (Value Text)
qualifier = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Qualifier" MaintenanceWindowLambdaParametersProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
clientContext :: Maybe (Value Text)
payload :: Maybe (Value Text)
haddock_workaround_ :: ()
clientContext :: Maybe (Value Text)
payload :: Maybe (Value Text)
..}