module Stratosphere.SSM.MaintenanceWindowTarget (
module Exports, MaintenanceWindowTarget(..),
mkMaintenanceWindowTarget
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SSM.MaintenanceWindowTarget.TargetsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MaintenanceWindowTarget
=
MaintenanceWindowTarget {MaintenanceWindowTarget -> ()
haddock_workaround_ :: (),
MaintenanceWindowTarget -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
MaintenanceWindowTarget -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
MaintenanceWindowTarget -> Maybe (Value Text)
ownerInformation :: (Prelude.Maybe (Value Prelude.Text)),
MaintenanceWindowTarget -> Value Text
resourceType :: (Value Prelude.Text),
MaintenanceWindowTarget -> [TargetsProperty]
targets :: [TargetsProperty],
MaintenanceWindowTarget -> Value Text
windowId :: (Value Prelude.Text)}
deriving stock (MaintenanceWindowTarget -> MaintenanceWindowTarget -> Bool
(MaintenanceWindowTarget -> MaintenanceWindowTarget -> Bool)
-> (MaintenanceWindowTarget -> MaintenanceWindowTarget -> Bool)
-> Eq MaintenanceWindowTarget
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MaintenanceWindowTarget -> MaintenanceWindowTarget -> Bool
== :: MaintenanceWindowTarget -> MaintenanceWindowTarget -> Bool
$c/= :: MaintenanceWindowTarget -> MaintenanceWindowTarget -> Bool
/= :: MaintenanceWindowTarget -> MaintenanceWindowTarget -> Bool
Prelude.Eq, Int -> MaintenanceWindowTarget -> ShowS
[MaintenanceWindowTarget] -> ShowS
MaintenanceWindowTarget -> String
(Int -> MaintenanceWindowTarget -> ShowS)
-> (MaintenanceWindowTarget -> String)
-> ([MaintenanceWindowTarget] -> ShowS)
-> Show MaintenanceWindowTarget
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MaintenanceWindowTarget -> ShowS
showsPrec :: Int -> MaintenanceWindowTarget -> ShowS
$cshow :: MaintenanceWindowTarget -> String
show :: MaintenanceWindowTarget -> String
$cshowList :: [MaintenanceWindowTarget] -> ShowS
showList :: [MaintenanceWindowTarget] -> ShowS
Prelude.Show)
mkMaintenanceWindowTarget ::
Value Prelude.Text
-> [TargetsProperty]
-> Value Prelude.Text -> MaintenanceWindowTarget
mkMaintenanceWindowTarget :: Value Text
-> [TargetsProperty] -> Value Text -> MaintenanceWindowTarget
mkMaintenanceWindowTarget Value Text
resourceType [TargetsProperty]
targets Value Text
windowId
= MaintenanceWindowTarget
{haddock_workaround_ :: ()
haddock_workaround_ = (), resourceType :: Value Text
resourceType = Value Text
resourceType,
targets :: [TargetsProperty]
targets = [TargetsProperty]
targets, windowId :: Value Text
windowId = Value Text
windowId,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
ownerInformation :: Maybe (Value Text)
ownerInformation = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MaintenanceWindowTarget where
toResourceProperties :: MaintenanceWindowTarget -> ResourceProperties
toResourceProperties MaintenanceWindowTarget {[TargetsProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MaintenanceWindowTarget -> ()
description :: MaintenanceWindowTarget -> Maybe (Value Text)
name :: MaintenanceWindowTarget -> Maybe (Value Text)
ownerInformation :: MaintenanceWindowTarget -> Maybe (Value Text)
resourceType :: MaintenanceWindowTarget -> Value Text
targets :: MaintenanceWindowTarget -> [TargetsProperty]
windowId :: MaintenanceWindowTarget -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
ownerInformation :: Maybe (Value Text)
resourceType :: Value Text
targets :: [TargetsProperty]
windowId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SSM::MaintenanceWindowTarget",
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
"ResourceType" 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
resourceType, Key
"Targets" Key -> [TargetsProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [TargetsProperty]
targets,
Key
"WindowId" 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
windowId]
([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 -> 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,
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
"OwnerInformation" (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)
ownerInformation]))}
instance JSON.ToJSON MaintenanceWindowTarget where
toJSON :: MaintenanceWindowTarget -> Value
toJSON MaintenanceWindowTarget {[TargetsProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MaintenanceWindowTarget -> ()
description :: MaintenanceWindowTarget -> Maybe (Value Text)
name :: MaintenanceWindowTarget -> Maybe (Value Text)
ownerInformation :: MaintenanceWindowTarget -> Maybe (Value Text)
resourceType :: MaintenanceWindowTarget -> Value Text
targets :: MaintenanceWindowTarget -> [TargetsProperty]
windowId :: MaintenanceWindowTarget -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
ownerInformation :: Maybe (Value Text)
resourceType :: Value Text
targets :: [TargetsProperty]
windowId :: 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
"ResourceType" 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
resourceType, Key
"Targets" Key -> [TargetsProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [TargetsProperty]
targets,
Key
"WindowId" 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
windowId]
([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 -> 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,
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
"OwnerInformation" (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)
ownerInformation])))
instance Property "Description" MaintenanceWindowTarget where
type PropertyType "Description" MaintenanceWindowTarget = Value Prelude.Text
set :: PropertyType "Description" MaintenanceWindowTarget
-> MaintenanceWindowTarget -> MaintenanceWindowTarget
set PropertyType "Description" MaintenanceWindowTarget
newValue MaintenanceWindowTarget {[TargetsProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MaintenanceWindowTarget -> ()
description :: MaintenanceWindowTarget -> Maybe (Value Text)
name :: MaintenanceWindowTarget -> Maybe (Value Text)
ownerInformation :: MaintenanceWindowTarget -> Maybe (Value Text)
resourceType :: MaintenanceWindowTarget -> Value Text
targets :: MaintenanceWindowTarget -> [TargetsProperty]
windowId :: MaintenanceWindowTarget -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
ownerInformation :: Maybe (Value Text)
resourceType :: Value Text
targets :: [TargetsProperty]
windowId :: Value Text
..}
= MaintenanceWindowTarget {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" MaintenanceWindowTarget
Value Text
newValue, [TargetsProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
name :: Maybe (Value Text)
ownerInformation :: Maybe (Value Text)
resourceType :: Value Text
targets :: [TargetsProperty]
windowId :: Value Text
haddock_workaround_ :: ()
name :: Maybe (Value Text)
ownerInformation :: Maybe (Value Text)
resourceType :: Value Text
targets :: [TargetsProperty]
windowId :: Value Text
..}
instance Property "Name" MaintenanceWindowTarget where
type PropertyType "Name" MaintenanceWindowTarget = Value Prelude.Text
set :: PropertyType "Name" MaintenanceWindowTarget
-> MaintenanceWindowTarget -> MaintenanceWindowTarget
set PropertyType "Name" MaintenanceWindowTarget
newValue MaintenanceWindowTarget {[TargetsProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MaintenanceWindowTarget -> ()
description :: MaintenanceWindowTarget -> Maybe (Value Text)
name :: MaintenanceWindowTarget -> Maybe (Value Text)
ownerInformation :: MaintenanceWindowTarget -> Maybe (Value Text)
resourceType :: MaintenanceWindowTarget -> Value Text
targets :: MaintenanceWindowTarget -> [TargetsProperty]
windowId :: MaintenanceWindowTarget -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
ownerInformation :: Maybe (Value Text)
resourceType :: Value Text
targets :: [TargetsProperty]
windowId :: Value Text
..}
= MaintenanceWindowTarget {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" MaintenanceWindowTarget
Value Text
newValue, [TargetsProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
ownerInformation :: Maybe (Value Text)
resourceType :: Value Text
targets :: [TargetsProperty]
windowId :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
ownerInformation :: Maybe (Value Text)
resourceType :: Value Text
targets :: [TargetsProperty]
windowId :: Value Text
..}
instance Property "OwnerInformation" MaintenanceWindowTarget where
type PropertyType "OwnerInformation" MaintenanceWindowTarget = Value Prelude.Text
set :: PropertyType "OwnerInformation" MaintenanceWindowTarget
-> MaintenanceWindowTarget -> MaintenanceWindowTarget
set PropertyType "OwnerInformation" MaintenanceWindowTarget
newValue MaintenanceWindowTarget {[TargetsProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MaintenanceWindowTarget -> ()
description :: MaintenanceWindowTarget -> Maybe (Value Text)
name :: MaintenanceWindowTarget -> Maybe (Value Text)
ownerInformation :: MaintenanceWindowTarget -> Maybe (Value Text)
resourceType :: MaintenanceWindowTarget -> Value Text
targets :: MaintenanceWindowTarget -> [TargetsProperty]
windowId :: MaintenanceWindowTarget -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
ownerInformation :: Maybe (Value Text)
resourceType :: Value Text
targets :: [TargetsProperty]
windowId :: Value Text
..}
= MaintenanceWindowTarget
{ownerInformation :: Maybe (Value Text)
ownerInformation = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OwnerInformation" MaintenanceWindowTarget
Value Text
newValue, [TargetsProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
resourceType :: Value Text
targets :: [TargetsProperty]
windowId :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
resourceType :: Value Text
targets :: [TargetsProperty]
windowId :: Value Text
..}
instance Property "ResourceType" MaintenanceWindowTarget where
type PropertyType "ResourceType" MaintenanceWindowTarget = Value Prelude.Text
set :: PropertyType "ResourceType" MaintenanceWindowTarget
-> MaintenanceWindowTarget -> MaintenanceWindowTarget
set PropertyType "ResourceType" MaintenanceWindowTarget
newValue MaintenanceWindowTarget {[TargetsProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MaintenanceWindowTarget -> ()
description :: MaintenanceWindowTarget -> Maybe (Value Text)
name :: MaintenanceWindowTarget -> Maybe (Value Text)
ownerInformation :: MaintenanceWindowTarget -> Maybe (Value Text)
resourceType :: MaintenanceWindowTarget -> Value Text
targets :: MaintenanceWindowTarget -> [TargetsProperty]
windowId :: MaintenanceWindowTarget -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
ownerInformation :: Maybe (Value Text)
resourceType :: Value Text
targets :: [TargetsProperty]
windowId :: Value Text
..}
= MaintenanceWindowTarget {resourceType :: Value Text
resourceType = PropertyType "ResourceType" MaintenanceWindowTarget
Value Text
newValue, [TargetsProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
ownerInformation :: Maybe (Value Text)
targets :: [TargetsProperty]
windowId :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
ownerInformation :: Maybe (Value Text)
targets :: [TargetsProperty]
windowId :: Value Text
..}
instance Property "Targets" MaintenanceWindowTarget where
type PropertyType "Targets" MaintenanceWindowTarget = [TargetsProperty]
set :: PropertyType "Targets" MaintenanceWindowTarget
-> MaintenanceWindowTarget -> MaintenanceWindowTarget
set PropertyType "Targets" MaintenanceWindowTarget
newValue MaintenanceWindowTarget {[TargetsProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MaintenanceWindowTarget -> ()
description :: MaintenanceWindowTarget -> Maybe (Value Text)
name :: MaintenanceWindowTarget -> Maybe (Value Text)
ownerInformation :: MaintenanceWindowTarget -> Maybe (Value Text)
resourceType :: MaintenanceWindowTarget -> Value Text
targets :: MaintenanceWindowTarget -> [TargetsProperty]
windowId :: MaintenanceWindowTarget -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
ownerInformation :: Maybe (Value Text)
resourceType :: Value Text
targets :: [TargetsProperty]
windowId :: Value Text
..}
= MaintenanceWindowTarget {targets :: [TargetsProperty]
targets = [TargetsProperty]
PropertyType "Targets" MaintenanceWindowTarget
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
ownerInformation :: Maybe (Value Text)
resourceType :: Value Text
windowId :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
ownerInformation :: Maybe (Value Text)
resourceType :: Value Text
windowId :: Value Text
..}
instance Property "WindowId" MaintenanceWindowTarget where
type PropertyType "WindowId" MaintenanceWindowTarget = Value Prelude.Text
set :: PropertyType "WindowId" MaintenanceWindowTarget
-> MaintenanceWindowTarget -> MaintenanceWindowTarget
set PropertyType "WindowId" MaintenanceWindowTarget
newValue MaintenanceWindowTarget {[TargetsProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MaintenanceWindowTarget -> ()
description :: MaintenanceWindowTarget -> Maybe (Value Text)
name :: MaintenanceWindowTarget -> Maybe (Value Text)
ownerInformation :: MaintenanceWindowTarget -> Maybe (Value Text)
resourceType :: MaintenanceWindowTarget -> Value Text
targets :: MaintenanceWindowTarget -> [TargetsProperty]
windowId :: MaintenanceWindowTarget -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
ownerInformation :: Maybe (Value Text)
resourceType :: Value Text
targets :: [TargetsProperty]
windowId :: Value Text
..}
= MaintenanceWindowTarget {windowId :: Value Text
windowId = PropertyType "WindowId" MaintenanceWindowTarget
Value Text
newValue, [TargetsProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
ownerInformation :: Maybe (Value Text)
resourceType :: Value Text
targets :: [TargetsProperty]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
ownerInformation :: Maybe (Value Text)
resourceType :: Value Text
targets :: [TargetsProperty]
..}