{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.SSM.Types.MaintenanceWindowTask where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.SSM.Types.AlarmConfiguration
import Amazonka.SSM.Types.LoggingInfo
import Amazonka.SSM.Types.MaintenanceWindowTaskCutoffBehavior
import Amazonka.SSM.Types.MaintenanceWindowTaskParameterValueExpression
import Amazonka.SSM.Types.MaintenanceWindowTaskType
import Amazonka.SSM.Types.Target
data MaintenanceWindowTask = MaintenanceWindowTask'
{
MaintenanceWindowTask -> Maybe AlarmConfiguration
alarmConfiguration :: Prelude.Maybe AlarmConfiguration,
MaintenanceWindowTask -> Maybe MaintenanceWindowTaskCutoffBehavior
cutoffBehavior :: Prelude.Maybe MaintenanceWindowTaskCutoffBehavior,
MaintenanceWindowTask -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Data.Sensitive Prelude.Text),
MaintenanceWindowTask -> Maybe LoggingInfo
loggingInfo :: Prelude.Maybe LoggingInfo,
MaintenanceWindowTask -> Maybe Text
maxConcurrency :: Prelude.Maybe Prelude.Text,
MaintenanceWindowTask -> Maybe Text
maxErrors :: Prelude.Maybe Prelude.Text,
MaintenanceWindowTask -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
MaintenanceWindowTask -> Maybe Natural
priority :: Prelude.Maybe Prelude.Natural,
MaintenanceWindowTask -> Maybe Text
serviceRoleArn :: Prelude.Maybe Prelude.Text,
MaintenanceWindowTask -> Maybe [Target]
targets :: Prelude.Maybe [Target],
MaintenanceWindowTask -> Maybe Text
taskArn :: Prelude.Maybe Prelude.Text,
MaintenanceWindowTask
-> Maybe
(Sensitive
(HashMap
Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))
taskParameters :: Prelude.Maybe (Data.Sensitive (Prelude.HashMap Prelude.Text (Data.Sensitive MaintenanceWindowTaskParameterValueExpression))),
MaintenanceWindowTask -> Maybe MaintenanceWindowTaskType
type' :: Prelude.Maybe MaintenanceWindowTaskType,
MaintenanceWindowTask -> Maybe Text
windowId :: Prelude.Maybe Prelude.Text,
MaintenanceWindowTask -> Maybe Text
windowTaskId :: Prelude.Maybe Prelude.Text
}
deriving (MaintenanceWindowTask -> MaintenanceWindowTask -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MaintenanceWindowTask -> MaintenanceWindowTask -> Bool
$c/= :: MaintenanceWindowTask -> MaintenanceWindowTask -> Bool
== :: MaintenanceWindowTask -> MaintenanceWindowTask -> Bool
$c== :: MaintenanceWindowTask -> MaintenanceWindowTask -> Bool
Prelude.Eq, Int -> MaintenanceWindowTask -> ShowS
[MaintenanceWindowTask] -> ShowS
MaintenanceWindowTask -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MaintenanceWindowTask] -> ShowS
$cshowList :: [MaintenanceWindowTask] -> ShowS
show :: MaintenanceWindowTask -> String
$cshow :: MaintenanceWindowTask -> String
showsPrec :: Int -> MaintenanceWindowTask -> ShowS
$cshowsPrec :: Int -> MaintenanceWindowTask -> ShowS
Prelude.Show, forall x. Rep MaintenanceWindowTask x -> MaintenanceWindowTask
forall x. MaintenanceWindowTask -> Rep MaintenanceWindowTask x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MaintenanceWindowTask x -> MaintenanceWindowTask
$cfrom :: forall x. MaintenanceWindowTask -> Rep MaintenanceWindowTask x
Prelude.Generic)
newMaintenanceWindowTask ::
MaintenanceWindowTask
newMaintenanceWindowTask :: MaintenanceWindowTask
newMaintenanceWindowTask =
MaintenanceWindowTask'
{ $sel:alarmConfiguration:MaintenanceWindowTask' :: Maybe AlarmConfiguration
alarmConfiguration =
forall a. Maybe a
Prelude.Nothing,
$sel:cutoffBehavior:MaintenanceWindowTask' :: Maybe MaintenanceWindowTaskCutoffBehavior
cutoffBehavior = forall a. Maybe a
Prelude.Nothing,
$sel:description:MaintenanceWindowTask' :: Maybe (Sensitive Text)
description = forall a. Maybe a
Prelude.Nothing,
$sel:loggingInfo:MaintenanceWindowTask' :: Maybe LoggingInfo
loggingInfo = forall a. Maybe a
Prelude.Nothing,
$sel:maxConcurrency:MaintenanceWindowTask' :: Maybe Text
maxConcurrency = forall a. Maybe a
Prelude.Nothing,
$sel:maxErrors:MaintenanceWindowTask' :: Maybe Text
maxErrors = forall a. Maybe a
Prelude.Nothing,
$sel:name:MaintenanceWindowTask' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:priority:MaintenanceWindowTask' :: Maybe Natural
priority = forall a. Maybe a
Prelude.Nothing,
$sel:serviceRoleArn:MaintenanceWindowTask' :: Maybe Text
serviceRoleArn = forall a. Maybe a
Prelude.Nothing,
$sel:targets:MaintenanceWindowTask' :: Maybe [Target]
targets = forall a. Maybe a
Prelude.Nothing,
$sel:taskArn:MaintenanceWindowTask' :: Maybe Text
taskArn = forall a. Maybe a
Prelude.Nothing,
$sel:taskParameters:MaintenanceWindowTask' :: Maybe
(Sensitive
(HashMap
Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))
taskParameters = forall a. Maybe a
Prelude.Nothing,
$sel:type':MaintenanceWindowTask' :: Maybe MaintenanceWindowTaskType
type' = forall a. Maybe a
Prelude.Nothing,
$sel:windowId:MaintenanceWindowTask' :: Maybe Text
windowId = forall a. Maybe a
Prelude.Nothing,
$sel:windowTaskId:MaintenanceWindowTask' :: Maybe Text
windowTaskId = forall a. Maybe a
Prelude.Nothing
}
maintenanceWindowTask_alarmConfiguration :: Lens.Lens' MaintenanceWindowTask (Prelude.Maybe AlarmConfiguration)
maintenanceWindowTask_alarmConfiguration :: Lens' MaintenanceWindowTask (Maybe AlarmConfiguration)
maintenanceWindowTask_alarmConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowTask' {Maybe AlarmConfiguration
alarmConfiguration :: Maybe AlarmConfiguration
$sel:alarmConfiguration:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe AlarmConfiguration
alarmConfiguration} -> Maybe AlarmConfiguration
alarmConfiguration) (\s :: MaintenanceWindowTask
s@MaintenanceWindowTask' {} Maybe AlarmConfiguration
a -> MaintenanceWindowTask
s {$sel:alarmConfiguration:MaintenanceWindowTask' :: Maybe AlarmConfiguration
alarmConfiguration = Maybe AlarmConfiguration
a} :: MaintenanceWindowTask)
maintenanceWindowTask_cutoffBehavior :: Lens.Lens' MaintenanceWindowTask (Prelude.Maybe MaintenanceWindowTaskCutoffBehavior)
maintenanceWindowTask_cutoffBehavior :: Lens'
MaintenanceWindowTask (Maybe MaintenanceWindowTaskCutoffBehavior)
maintenanceWindowTask_cutoffBehavior = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowTask' {Maybe MaintenanceWindowTaskCutoffBehavior
cutoffBehavior :: Maybe MaintenanceWindowTaskCutoffBehavior
$sel:cutoffBehavior:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe MaintenanceWindowTaskCutoffBehavior
cutoffBehavior} -> Maybe MaintenanceWindowTaskCutoffBehavior
cutoffBehavior) (\s :: MaintenanceWindowTask
s@MaintenanceWindowTask' {} Maybe MaintenanceWindowTaskCutoffBehavior
a -> MaintenanceWindowTask
s {$sel:cutoffBehavior:MaintenanceWindowTask' :: Maybe MaintenanceWindowTaskCutoffBehavior
cutoffBehavior = Maybe MaintenanceWindowTaskCutoffBehavior
a} :: MaintenanceWindowTask)
maintenanceWindowTask_description :: Lens.Lens' MaintenanceWindowTask (Prelude.Maybe Prelude.Text)
maintenanceWindowTask_description :: Lens' MaintenanceWindowTask (Maybe Text)
maintenanceWindowTask_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowTask' {Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
$sel:description:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe (Sensitive Text)
description} -> Maybe (Sensitive Text)
description) (\s :: MaintenanceWindowTask
s@MaintenanceWindowTask' {} Maybe (Sensitive Text)
a -> MaintenanceWindowTask
s {$sel:description:MaintenanceWindowTask' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
a} :: MaintenanceWindowTask) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall a. Iso' (Sensitive a) a
Data._Sensitive
maintenanceWindowTask_loggingInfo :: Lens.Lens' MaintenanceWindowTask (Prelude.Maybe LoggingInfo)
maintenanceWindowTask_loggingInfo :: Lens' MaintenanceWindowTask (Maybe LoggingInfo)
maintenanceWindowTask_loggingInfo = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowTask' {Maybe LoggingInfo
loggingInfo :: Maybe LoggingInfo
$sel:loggingInfo:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe LoggingInfo
loggingInfo} -> Maybe LoggingInfo
loggingInfo) (\s :: MaintenanceWindowTask
s@MaintenanceWindowTask' {} Maybe LoggingInfo
a -> MaintenanceWindowTask
s {$sel:loggingInfo:MaintenanceWindowTask' :: Maybe LoggingInfo
loggingInfo = Maybe LoggingInfo
a} :: MaintenanceWindowTask)
maintenanceWindowTask_maxConcurrency :: Lens.Lens' MaintenanceWindowTask (Prelude.Maybe Prelude.Text)
maintenanceWindowTask_maxConcurrency :: Lens' MaintenanceWindowTask (Maybe Text)
maintenanceWindowTask_maxConcurrency = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowTask' {Maybe Text
maxConcurrency :: Maybe Text
$sel:maxConcurrency:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
maxConcurrency} -> Maybe Text
maxConcurrency) (\s :: MaintenanceWindowTask
s@MaintenanceWindowTask' {} Maybe Text
a -> MaintenanceWindowTask
s {$sel:maxConcurrency:MaintenanceWindowTask' :: Maybe Text
maxConcurrency = Maybe Text
a} :: MaintenanceWindowTask)
maintenanceWindowTask_maxErrors :: Lens.Lens' MaintenanceWindowTask (Prelude.Maybe Prelude.Text)
maintenanceWindowTask_maxErrors :: Lens' MaintenanceWindowTask (Maybe Text)
maintenanceWindowTask_maxErrors = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowTask' {Maybe Text
maxErrors :: Maybe Text
$sel:maxErrors:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
maxErrors} -> Maybe Text
maxErrors) (\s :: MaintenanceWindowTask
s@MaintenanceWindowTask' {} Maybe Text
a -> MaintenanceWindowTask
s {$sel:maxErrors:MaintenanceWindowTask' :: Maybe Text
maxErrors = Maybe Text
a} :: MaintenanceWindowTask)
maintenanceWindowTask_name :: Lens.Lens' MaintenanceWindowTask (Prelude.Maybe Prelude.Text)
maintenanceWindowTask_name :: Lens' MaintenanceWindowTask (Maybe Text)
maintenanceWindowTask_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowTask' {Maybe Text
name :: Maybe Text
$sel:name:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
name} -> Maybe Text
name) (\s :: MaintenanceWindowTask
s@MaintenanceWindowTask' {} Maybe Text
a -> MaintenanceWindowTask
s {$sel:name:MaintenanceWindowTask' :: Maybe Text
name = Maybe Text
a} :: MaintenanceWindowTask)
maintenanceWindowTask_priority :: Lens.Lens' MaintenanceWindowTask (Prelude.Maybe Prelude.Natural)
maintenanceWindowTask_priority :: Lens' MaintenanceWindowTask (Maybe Natural)
maintenanceWindowTask_priority = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowTask' {Maybe Natural
priority :: Maybe Natural
$sel:priority:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Natural
priority} -> Maybe Natural
priority) (\s :: MaintenanceWindowTask
s@MaintenanceWindowTask' {} Maybe Natural
a -> MaintenanceWindowTask
s {$sel:priority:MaintenanceWindowTask' :: Maybe Natural
priority = Maybe Natural
a} :: MaintenanceWindowTask)
maintenanceWindowTask_serviceRoleArn :: Lens.Lens' MaintenanceWindowTask (Prelude.Maybe Prelude.Text)
maintenanceWindowTask_serviceRoleArn :: Lens' MaintenanceWindowTask (Maybe Text)
maintenanceWindowTask_serviceRoleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowTask' {Maybe Text
serviceRoleArn :: Maybe Text
$sel:serviceRoleArn:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
serviceRoleArn} -> Maybe Text
serviceRoleArn) (\s :: MaintenanceWindowTask
s@MaintenanceWindowTask' {} Maybe Text
a -> MaintenanceWindowTask
s {$sel:serviceRoleArn:MaintenanceWindowTask' :: Maybe Text
serviceRoleArn = Maybe Text
a} :: MaintenanceWindowTask)
maintenanceWindowTask_targets :: Lens.Lens' MaintenanceWindowTask (Prelude.Maybe [Target])
maintenanceWindowTask_targets :: Lens' MaintenanceWindowTask (Maybe [Target])
maintenanceWindowTask_targets = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowTask' {Maybe [Target]
targets :: Maybe [Target]
$sel:targets:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe [Target]
targets} -> Maybe [Target]
targets) (\s :: MaintenanceWindowTask
s@MaintenanceWindowTask' {} Maybe [Target]
a -> MaintenanceWindowTask
s {$sel:targets:MaintenanceWindowTask' :: Maybe [Target]
targets = Maybe [Target]
a} :: MaintenanceWindowTask) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
maintenanceWindowTask_taskArn :: Lens.Lens' MaintenanceWindowTask (Prelude.Maybe Prelude.Text)
maintenanceWindowTask_taskArn :: Lens' MaintenanceWindowTask (Maybe Text)
maintenanceWindowTask_taskArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowTask' {Maybe Text
taskArn :: Maybe Text
$sel:taskArn:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
taskArn} -> Maybe Text
taskArn) (\s :: MaintenanceWindowTask
s@MaintenanceWindowTask' {} Maybe Text
a -> MaintenanceWindowTask
s {$sel:taskArn:MaintenanceWindowTask' :: Maybe Text
taskArn = Maybe Text
a} :: MaintenanceWindowTask)
maintenanceWindowTask_taskParameters :: Lens.Lens' MaintenanceWindowTask (Prelude.Maybe (Prelude.HashMap Prelude.Text MaintenanceWindowTaskParameterValueExpression))
maintenanceWindowTask_taskParameters :: Lens'
MaintenanceWindowTask
(Maybe
(HashMap Text MaintenanceWindowTaskParameterValueExpression))
maintenanceWindowTask_taskParameters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowTask' {Maybe
(Sensitive
(HashMap
Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))
taskParameters :: Maybe
(Sensitive
(HashMap
Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))
$sel:taskParameters:MaintenanceWindowTask' :: MaintenanceWindowTask
-> Maybe
(Sensitive
(HashMap
Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))
taskParameters} -> Maybe
(Sensitive
(HashMap
Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))
taskParameters) (\s :: MaintenanceWindowTask
s@MaintenanceWindowTask' {} Maybe
(Sensitive
(HashMap
Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))
a -> MaintenanceWindowTask
s {$sel:taskParameters:MaintenanceWindowTask' :: Maybe
(Sensitive
(HashMap
Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))
taskParameters = Maybe
(Sensitive
(HashMap
Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))
a} :: MaintenanceWindowTask) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping (forall a. Iso' (Sensitive a) a
Data._Sensitive forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced)
maintenanceWindowTask_type :: Lens.Lens' MaintenanceWindowTask (Prelude.Maybe MaintenanceWindowTaskType)
maintenanceWindowTask_type :: Lens' MaintenanceWindowTask (Maybe MaintenanceWindowTaskType)
maintenanceWindowTask_type = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowTask' {Maybe MaintenanceWindowTaskType
type' :: Maybe MaintenanceWindowTaskType
$sel:type':MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe MaintenanceWindowTaskType
type'} -> Maybe MaintenanceWindowTaskType
type') (\s :: MaintenanceWindowTask
s@MaintenanceWindowTask' {} Maybe MaintenanceWindowTaskType
a -> MaintenanceWindowTask
s {$sel:type':MaintenanceWindowTask' :: Maybe MaintenanceWindowTaskType
type' = Maybe MaintenanceWindowTaskType
a} :: MaintenanceWindowTask)
maintenanceWindowTask_windowId :: Lens.Lens' MaintenanceWindowTask (Prelude.Maybe Prelude.Text)
maintenanceWindowTask_windowId :: Lens' MaintenanceWindowTask (Maybe Text)
maintenanceWindowTask_windowId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowTask' {Maybe Text
windowId :: Maybe Text
$sel:windowId:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
windowId} -> Maybe Text
windowId) (\s :: MaintenanceWindowTask
s@MaintenanceWindowTask' {} Maybe Text
a -> MaintenanceWindowTask
s {$sel:windowId:MaintenanceWindowTask' :: Maybe Text
windowId = Maybe Text
a} :: MaintenanceWindowTask)
maintenanceWindowTask_windowTaskId :: Lens.Lens' MaintenanceWindowTask (Prelude.Maybe Prelude.Text)
maintenanceWindowTask_windowTaskId :: Lens' MaintenanceWindowTask (Maybe Text)
maintenanceWindowTask_windowTaskId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowTask' {Maybe Text
windowTaskId :: Maybe Text
$sel:windowTaskId:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
windowTaskId} -> Maybe Text
windowTaskId) (\s :: MaintenanceWindowTask
s@MaintenanceWindowTask' {} Maybe Text
a -> MaintenanceWindowTask
s {$sel:windowTaskId:MaintenanceWindowTask' :: Maybe Text
windowTaskId = Maybe Text
a} :: MaintenanceWindowTask)
instance Data.FromJSON MaintenanceWindowTask where
parseJSON :: Value -> Parser MaintenanceWindowTask
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"MaintenanceWindowTask"
( \Object
x ->
Maybe AlarmConfiguration
-> Maybe MaintenanceWindowTaskCutoffBehavior
-> Maybe (Sensitive Text)
-> Maybe LoggingInfo
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe [Target]
-> Maybe Text
-> Maybe
(Sensitive
(HashMap
Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))
-> Maybe MaintenanceWindowTaskType
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowTask
MaintenanceWindowTask'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AlarmConfiguration")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CutoffBehavior")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Description")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LoggingInfo")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MaxConcurrency")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MaxErrors")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Name")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Priority")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ServiceRoleArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Targets" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"TaskArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"TaskParameters" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Type")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"WindowId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"WindowTaskId")
)
instance Prelude.Hashable MaintenanceWindowTask where
hashWithSalt :: Int -> MaintenanceWindowTask -> Int
hashWithSalt Int
_salt MaintenanceWindowTask' {Maybe Natural
Maybe [Target]
Maybe Text
Maybe (Sensitive Text)
Maybe
(Sensitive
(HashMap
Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))
Maybe AlarmConfiguration
Maybe LoggingInfo
Maybe MaintenanceWindowTaskCutoffBehavior
Maybe MaintenanceWindowTaskType
windowTaskId :: Maybe Text
windowId :: Maybe Text
type' :: Maybe MaintenanceWindowTaskType
taskParameters :: Maybe
(Sensitive
(HashMap
Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))
taskArn :: Maybe Text
targets :: Maybe [Target]
serviceRoleArn :: Maybe Text
priority :: Maybe Natural
name :: Maybe Text
maxErrors :: Maybe Text
maxConcurrency :: Maybe Text
loggingInfo :: Maybe LoggingInfo
description :: Maybe (Sensitive Text)
cutoffBehavior :: Maybe MaintenanceWindowTaskCutoffBehavior
alarmConfiguration :: Maybe AlarmConfiguration
$sel:windowTaskId:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
$sel:windowId:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
$sel:type':MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe MaintenanceWindowTaskType
$sel:taskParameters:MaintenanceWindowTask' :: MaintenanceWindowTask
-> Maybe
(Sensitive
(HashMap
Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))
$sel:taskArn:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
$sel:targets:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe [Target]
$sel:serviceRoleArn:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
$sel:priority:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Natural
$sel:name:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
$sel:maxErrors:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
$sel:maxConcurrency:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
$sel:loggingInfo:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe LoggingInfo
$sel:description:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe (Sensitive Text)
$sel:cutoffBehavior:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe MaintenanceWindowTaskCutoffBehavior
$sel:alarmConfiguration:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe AlarmConfiguration
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AlarmConfiguration
alarmConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MaintenanceWindowTaskCutoffBehavior
cutoffBehavior
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LoggingInfo
loggingInfo
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
maxConcurrency
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
maxErrors
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
priority
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
serviceRoleArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Target]
targets
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
taskArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe
(Sensitive
(HashMap
Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))
taskParameters
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MaintenanceWindowTaskType
type'
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
windowId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
windowTaskId
instance Prelude.NFData MaintenanceWindowTask where
rnf :: MaintenanceWindowTask -> ()
rnf MaintenanceWindowTask' {Maybe Natural
Maybe [Target]
Maybe Text
Maybe (Sensitive Text)
Maybe
(Sensitive
(HashMap
Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))
Maybe AlarmConfiguration
Maybe LoggingInfo
Maybe MaintenanceWindowTaskCutoffBehavior
Maybe MaintenanceWindowTaskType
windowTaskId :: Maybe Text
windowId :: Maybe Text
type' :: Maybe MaintenanceWindowTaskType
taskParameters :: Maybe
(Sensitive
(HashMap
Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))
taskArn :: Maybe Text
targets :: Maybe [Target]
serviceRoleArn :: Maybe Text
priority :: Maybe Natural
name :: Maybe Text
maxErrors :: Maybe Text
maxConcurrency :: Maybe Text
loggingInfo :: Maybe LoggingInfo
description :: Maybe (Sensitive Text)
cutoffBehavior :: Maybe MaintenanceWindowTaskCutoffBehavior
alarmConfiguration :: Maybe AlarmConfiguration
$sel:windowTaskId:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
$sel:windowId:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
$sel:type':MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe MaintenanceWindowTaskType
$sel:taskParameters:MaintenanceWindowTask' :: MaintenanceWindowTask
-> Maybe
(Sensitive
(HashMap
Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))
$sel:taskArn:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
$sel:targets:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe [Target]
$sel:serviceRoleArn:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
$sel:priority:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Natural
$sel:name:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
$sel:maxErrors:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
$sel:maxConcurrency:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe Text
$sel:loggingInfo:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe LoggingInfo
$sel:description:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe (Sensitive Text)
$sel:cutoffBehavior:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe MaintenanceWindowTaskCutoffBehavior
$sel:alarmConfiguration:MaintenanceWindowTask' :: MaintenanceWindowTask -> Maybe AlarmConfiguration
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe AlarmConfiguration
alarmConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MaintenanceWindowTaskCutoffBehavior
cutoffBehavior
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LoggingInfo
loggingInfo
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
maxConcurrency
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
maxErrors
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
priority
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
serviceRoleArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Target]
targets
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
taskArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe
(Sensitive
(HashMap
Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))
taskParameters
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MaintenanceWindowTaskType
type'
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
windowId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
windowTaskId