{-# 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.MaintenanceWindowRunCommandParameters where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SSM.Types.CloudWatchOutputConfig
import Amazonka.SSM.Types.DocumentHashType
import Amazonka.SSM.Types.NotificationConfig
data MaintenanceWindowRunCommandParameters = MaintenanceWindowRunCommandParameters'
{
MaintenanceWindowRunCommandParameters -> Maybe Text
serviceRoleArn :: Prelude.Maybe Prelude.Text,
MaintenanceWindowRunCommandParameters -> Maybe NotificationConfig
notificationConfig :: Prelude.Maybe NotificationConfig,
MaintenanceWindowRunCommandParameters -> Maybe DocumentHashType
documentHashType :: Prelude.Maybe DocumentHashType,
MaintenanceWindowRunCommandParameters
-> Maybe CloudWatchOutputConfig
cloudWatchOutputConfig :: Prelude.Maybe CloudWatchOutputConfig,
MaintenanceWindowRunCommandParameters -> Maybe Text
outputS3KeyPrefix :: Prelude.Maybe Prelude.Text,
MaintenanceWindowRunCommandParameters
-> Maybe (HashMap Text [Text])
parameters :: Prelude.Maybe (Prelude.HashMap Prelude.Text [Prelude.Text]),
MaintenanceWindowRunCommandParameters -> Maybe Text
documentHash :: Prelude.Maybe Prelude.Text,
MaintenanceWindowRunCommandParameters -> Maybe Text
documentVersion :: Prelude.Maybe Prelude.Text,
MaintenanceWindowRunCommandParameters -> Maybe Natural
timeoutSeconds :: Prelude.Maybe Prelude.Natural,
MaintenanceWindowRunCommandParameters -> Maybe Text
comment :: Prelude.Maybe Prelude.Text,
MaintenanceWindowRunCommandParameters -> Maybe Text
outputS3BucketName :: Prelude.Maybe Prelude.Text
}
deriving (MaintenanceWindowRunCommandParameters
-> MaintenanceWindowRunCommandParameters -> Bool
(MaintenanceWindowRunCommandParameters
-> MaintenanceWindowRunCommandParameters -> Bool)
-> (MaintenanceWindowRunCommandParameters
-> MaintenanceWindowRunCommandParameters -> Bool)
-> Eq MaintenanceWindowRunCommandParameters
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MaintenanceWindowRunCommandParameters
-> MaintenanceWindowRunCommandParameters -> Bool
$c/= :: MaintenanceWindowRunCommandParameters
-> MaintenanceWindowRunCommandParameters -> Bool
== :: MaintenanceWindowRunCommandParameters
-> MaintenanceWindowRunCommandParameters -> Bool
$c== :: MaintenanceWindowRunCommandParameters
-> MaintenanceWindowRunCommandParameters -> Bool
Prelude.Eq, ReadPrec [MaintenanceWindowRunCommandParameters]
ReadPrec MaintenanceWindowRunCommandParameters
Int -> ReadS MaintenanceWindowRunCommandParameters
ReadS [MaintenanceWindowRunCommandParameters]
(Int -> ReadS MaintenanceWindowRunCommandParameters)
-> ReadS [MaintenanceWindowRunCommandParameters]
-> ReadPrec MaintenanceWindowRunCommandParameters
-> ReadPrec [MaintenanceWindowRunCommandParameters]
-> Read MaintenanceWindowRunCommandParameters
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MaintenanceWindowRunCommandParameters]
$creadListPrec :: ReadPrec [MaintenanceWindowRunCommandParameters]
readPrec :: ReadPrec MaintenanceWindowRunCommandParameters
$creadPrec :: ReadPrec MaintenanceWindowRunCommandParameters
readList :: ReadS [MaintenanceWindowRunCommandParameters]
$creadList :: ReadS [MaintenanceWindowRunCommandParameters]
readsPrec :: Int -> ReadS MaintenanceWindowRunCommandParameters
$creadsPrec :: Int -> ReadS MaintenanceWindowRunCommandParameters
Prelude.Read, Int -> MaintenanceWindowRunCommandParameters -> ShowS
[MaintenanceWindowRunCommandParameters] -> ShowS
MaintenanceWindowRunCommandParameters -> String
(Int -> MaintenanceWindowRunCommandParameters -> ShowS)
-> (MaintenanceWindowRunCommandParameters -> String)
-> ([MaintenanceWindowRunCommandParameters] -> ShowS)
-> Show MaintenanceWindowRunCommandParameters
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MaintenanceWindowRunCommandParameters] -> ShowS
$cshowList :: [MaintenanceWindowRunCommandParameters] -> ShowS
show :: MaintenanceWindowRunCommandParameters -> String
$cshow :: MaintenanceWindowRunCommandParameters -> String
showsPrec :: Int -> MaintenanceWindowRunCommandParameters -> ShowS
$cshowsPrec :: Int -> MaintenanceWindowRunCommandParameters -> ShowS
Prelude.Show, (forall x.
MaintenanceWindowRunCommandParameters
-> Rep MaintenanceWindowRunCommandParameters x)
-> (forall x.
Rep MaintenanceWindowRunCommandParameters x
-> MaintenanceWindowRunCommandParameters)
-> Generic MaintenanceWindowRunCommandParameters
forall x.
Rep MaintenanceWindowRunCommandParameters x
-> MaintenanceWindowRunCommandParameters
forall x.
MaintenanceWindowRunCommandParameters
-> Rep MaintenanceWindowRunCommandParameters x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep MaintenanceWindowRunCommandParameters x
-> MaintenanceWindowRunCommandParameters
$cfrom :: forall x.
MaintenanceWindowRunCommandParameters
-> Rep MaintenanceWindowRunCommandParameters x
Prelude.Generic)
newMaintenanceWindowRunCommandParameters ::
MaintenanceWindowRunCommandParameters
newMaintenanceWindowRunCommandParameters :: MaintenanceWindowRunCommandParameters
newMaintenanceWindowRunCommandParameters =
MaintenanceWindowRunCommandParameters' :: Maybe Text
-> Maybe NotificationConfig
-> Maybe DocumentHashType
-> Maybe CloudWatchOutputConfig
-> Maybe Text
-> Maybe (HashMap Text [Text])
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowRunCommandParameters
MaintenanceWindowRunCommandParameters'
{ $sel:serviceRoleArn:MaintenanceWindowRunCommandParameters' :: Maybe Text
serviceRoleArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:notificationConfig:MaintenanceWindowRunCommandParameters' :: Maybe NotificationConfig
notificationConfig = Maybe NotificationConfig
forall a. Maybe a
Prelude.Nothing,
$sel:documentHashType:MaintenanceWindowRunCommandParameters' :: Maybe DocumentHashType
documentHashType = Maybe DocumentHashType
forall a. Maybe a
Prelude.Nothing,
$sel:cloudWatchOutputConfig:MaintenanceWindowRunCommandParameters' :: Maybe CloudWatchOutputConfig
cloudWatchOutputConfig =
Maybe CloudWatchOutputConfig
forall a. Maybe a
Prelude.Nothing,
$sel:outputS3KeyPrefix:MaintenanceWindowRunCommandParameters' :: Maybe Text
outputS3KeyPrefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:parameters:MaintenanceWindowRunCommandParameters' :: Maybe (HashMap Text [Text])
parameters = Maybe (HashMap Text [Text])
forall a. Maybe a
Prelude.Nothing,
$sel:documentHash:MaintenanceWindowRunCommandParameters' :: Maybe Text
documentHash = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:documentVersion:MaintenanceWindowRunCommandParameters' :: Maybe Text
documentVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:timeoutSeconds:MaintenanceWindowRunCommandParameters' :: Maybe Natural
timeoutSeconds = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:comment:MaintenanceWindowRunCommandParameters' :: Maybe Text
comment = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:outputS3BucketName:MaintenanceWindowRunCommandParameters' :: Maybe Text
outputS3BucketName = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
maintenanceWindowRunCommandParameters_serviceRoleArn :: Lens.Lens' MaintenanceWindowRunCommandParameters (Prelude.Maybe Prelude.Text)
maintenanceWindowRunCommandParameters_serviceRoleArn :: (Maybe Text -> f (Maybe Text))
-> MaintenanceWindowRunCommandParameters
-> f MaintenanceWindowRunCommandParameters
maintenanceWindowRunCommandParameters_serviceRoleArn = (MaintenanceWindowRunCommandParameters -> Maybe Text)
-> (MaintenanceWindowRunCommandParameters
-> Maybe Text -> MaintenanceWindowRunCommandParameters)
-> Lens
MaintenanceWindowRunCommandParameters
MaintenanceWindowRunCommandParameters
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowRunCommandParameters' {Maybe Text
serviceRoleArn :: Maybe Text
$sel:serviceRoleArn:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters -> Maybe Text
serviceRoleArn} -> Maybe Text
serviceRoleArn) (\s :: MaintenanceWindowRunCommandParameters
s@MaintenanceWindowRunCommandParameters' {} Maybe Text
a -> MaintenanceWindowRunCommandParameters
s {$sel:serviceRoleArn:MaintenanceWindowRunCommandParameters' :: Maybe Text
serviceRoleArn = Maybe Text
a} :: MaintenanceWindowRunCommandParameters)
maintenanceWindowRunCommandParameters_notificationConfig :: Lens.Lens' MaintenanceWindowRunCommandParameters (Prelude.Maybe NotificationConfig)
maintenanceWindowRunCommandParameters_notificationConfig :: (Maybe NotificationConfig -> f (Maybe NotificationConfig))
-> MaintenanceWindowRunCommandParameters
-> f MaintenanceWindowRunCommandParameters
maintenanceWindowRunCommandParameters_notificationConfig = (MaintenanceWindowRunCommandParameters -> Maybe NotificationConfig)
-> (MaintenanceWindowRunCommandParameters
-> Maybe NotificationConfig
-> MaintenanceWindowRunCommandParameters)
-> Lens
MaintenanceWindowRunCommandParameters
MaintenanceWindowRunCommandParameters
(Maybe NotificationConfig)
(Maybe NotificationConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowRunCommandParameters' {Maybe NotificationConfig
notificationConfig :: Maybe NotificationConfig
$sel:notificationConfig:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters -> Maybe NotificationConfig
notificationConfig} -> Maybe NotificationConfig
notificationConfig) (\s :: MaintenanceWindowRunCommandParameters
s@MaintenanceWindowRunCommandParameters' {} Maybe NotificationConfig
a -> MaintenanceWindowRunCommandParameters
s {$sel:notificationConfig:MaintenanceWindowRunCommandParameters' :: Maybe NotificationConfig
notificationConfig = Maybe NotificationConfig
a} :: MaintenanceWindowRunCommandParameters)
maintenanceWindowRunCommandParameters_documentHashType :: Lens.Lens' MaintenanceWindowRunCommandParameters (Prelude.Maybe DocumentHashType)
maintenanceWindowRunCommandParameters_documentHashType :: (Maybe DocumentHashType -> f (Maybe DocumentHashType))
-> MaintenanceWindowRunCommandParameters
-> f MaintenanceWindowRunCommandParameters
maintenanceWindowRunCommandParameters_documentHashType = (MaintenanceWindowRunCommandParameters -> Maybe DocumentHashType)
-> (MaintenanceWindowRunCommandParameters
-> Maybe DocumentHashType -> MaintenanceWindowRunCommandParameters)
-> Lens
MaintenanceWindowRunCommandParameters
MaintenanceWindowRunCommandParameters
(Maybe DocumentHashType)
(Maybe DocumentHashType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowRunCommandParameters' {Maybe DocumentHashType
documentHashType :: Maybe DocumentHashType
$sel:documentHashType:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters -> Maybe DocumentHashType
documentHashType} -> Maybe DocumentHashType
documentHashType) (\s :: MaintenanceWindowRunCommandParameters
s@MaintenanceWindowRunCommandParameters' {} Maybe DocumentHashType
a -> MaintenanceWindowRunCommandParameters
s {$sel:documentHashType:MaintenanceWindowRunCommandParameters' :: Maybe DocumentHashType
documentHashType = Maybe DocumentHashType
a} :: MaintenanceWindowRunCommandParameters)
maintenanceWindowRunCommandParameters_cloudWatchOutputConfig :: Lens.Lens' MaintenanceWindowRunCommandParameters (Prelude.Maybe CloudWatchOutputConfig)
maintenanceWindowRunCommandParameters_cloudWatchOutputConfig :: (Maybe CloudWatchOutputConfig -> f (Maybe CloudWatchOutputConfig))
-> MaintenanceWindowRunCommandParameters
-> f MaintenanceWindowRunCommandParameters
maintenanceWindowRunCommandParameters_cloudWatchOutputConfig = (MaintenanceWindowRunCommandParameters
-> Maybe CloudWatchOutputConfig)
-> (MaintenanceWindowRunCommandParameters
-> Maybe CloudWatchOutputConfig
-> MaintenanceWindowRunCommandParameters)
-> Lens
MaintenanceWindowRunCommandParameters
MaintenanceWindowRunCommandParameters
(Maybe CloudWatchOutputConfig)
(Maybe CloudWatchOutputConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowRunCommandParameters' {Maybe CloudWatchOutputConfig
cloudWatchOutputConfig :: Maybe CloudWatchOutputConfig
$sel:cloudWatchOutputConfig:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters
-> Maybe CloudWatchOutputConfig
cloudWatchOutputConfig} -> Maybe CloudWatchOutputConfig
cloudWatchOutputConfig) (\s :: MaintenanceWindowRunCommandParameters
s@MaintenanceWindowRunCommandParameters' {} Maybe CloudWatchOutputConfig
a -> MaintenanceWindowRunCommandParameters
s {$sel:cloudWatchOutputConfig:MaintenanceWindowRunCommandParameters' :: Maybe CloudWatchOutputConfig
cloudWatchOutputConfig = Maybe CloudWatchOutputConfig
a} :: MaintenanceWindowRunCommandParameters)
maintenanceWindowRunCommandParameters_outputS3KeyPrefix :: Lens.Lens' MaintenanceWindowRunCommandParameters (Prelude.Maybe Prelude.Text)
maintenanceWindowRunCommandParameters_outputS3KeyPrefix :: (Maybe Text -> f (Maybe Text))
-> MaintenanceWindowRunCommandParameters
-> f MaintenanceWindowRunCommandParameters
maintenanceWindowRunCommandParameters_outputS3KeyPrefix = (MaintenanceWindowRunCommandParameters -> Maybe Text)
-> (MaintenanceWindowRunCommandParameters
-> Maybe Text -> MaintenanceWindowRunCommandParameters)
-> Lens
MaintenanceWindowRunCommandParameters
MaintenanceWindowRunCommandParameters
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowRunCommandParameters' {Maybe Text
outputS3KeyPrefix :: Maybe Text
$sel:outputS3KeyPrefix:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters -> Maybe Text
outputS3KeyPrefix} -> Maybe Text
outputS3KeyPrefix) (\s :: MaintenanceWindowRunCommandParameters
s@MaintenanceWindowRunCommandParameters' {} Maybe Text
a -> MaintenanceWindowRunCommandParameters
s {$sel:outputS3KeyPrefix:MaintenanceWindowRunCommandParameters' :: Maybe Text
outputS3KeyPrefix = Maybe Text
a} :: MaintenanceWindowRunCommandParameters)
maintenanceWindowRunCommandParameters_parameters :: Lens.Lens' MaintenanceWindowRunCommandParameters (Prelude.Maybe (Prelude.HashMap Prelude.Text [Prelude.Text]))
maintenanceWindowRunCommandParameters_parameters :: (Maybe (HashMap Text [Text]) -> f (Maybe (HashMap Text [Text])))
-> MaintenanceWindowRunCommandParameters
-> f MaintenanceWindowRunCommandParameters
maintenanceWindowRunCommandParameters_parameters = (MaintenanceWindowRunCommandParameters
-> Maybe (HashMap Text [Text]))
-> (MaintenanceWindowRunCommandParameters
-> Maybe (HashMap Text [Text])
-> MaintenanceWindowRunCommandParameters)
-> Lens
MaintenanceWindowRunCommandParameters
MaintenanceWindowRunCommandParameters
(Maybe (HashMap Text [Text]))
(Maybe (HashMap Text [Text]))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowRunCommandParameters' {Maybe (HashMap Text [Text])
parameters :: Maybe (HashMap Text [Text])
$sel:parameters:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters
-> Maybe (HashMap Text [Text])
parameters} -> Maybe (HashMap Text [Text])
parameters) (\s :: MaintenanceWindowRunCommandParameters
s@MaintenanceWindowRunCommandParameters' {} Maybe (HashMap Text [Text])
a -> MaintenanceWindowRunCommandParameters
s {$sel:parameters:MaintenanceWindowRunCommandParameters' :: Maybe (HashMap Text [Text])
parameters = Maybe (HashMap Text [Text])
a} :: MaintenanceWindowRunCommandParameters) ((Maybe (HashMap Text [Text]) -> f (Maybe (HashMap Text [Text])))
-> MaintenanceWindowRunCommandParameters
-> f MaintenanceWindowRunCommandParameters)
-> ((Maybe (HashMap Text [Text])
-> f (Maybe (HashMap Text [Text])))
-> Maybe (HashMap Text [Text]) -> f (Maybe (HashMap Text [Text])))
-> (Maybe (HashMap Text [Text]) -> f (Maybe (HashMap Text [Text])))
-> MaintenanceWindowRunCommandParameters
-> f MaintenanceWindowRunCommandParameters
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text [Text])
(HashMap Text [Text])
(HashMap Text [Text])
(HashMap Text [Text])
-> Iso
(Maybe (HashMap Text [Text]))
(Maybe (HashMap Text [Text]))
(Maybe (HashMap Text [Text]))
(Maybe (HashMap Text [Text]))
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 AnIso
(HashMap Text [Text])
(HashMap Text [Text])
(HashMap Text [Text])
(HashMap Text [Text])
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
maintenanceWindowRunCommandParameters_documentHash :: Lens.Lens' MaintenanceWindowRunCommandParameters (Prelude.Maybe Prelude.Text)
maintenanceWindowRunCommandParameters_documentHash :: (Maybe Text -> f (Maybe Text))
-> MaintenanceWindowRunCommandParameters
-> f MaintenanceWindowRunCommandParameters
maintenanceWindowRunCommandParameters_documentHash = (MaintenanceWindowRunCommandParameters -> Maybe Text)
-> (MaintenanceWindowRunCommandParameters
-> Maybe Text -> MaintenanceWindowRunCommandParameters)
-> Lens
MaintenanceWindowRunCommandParameters
MaintenanceWindowRunCommandParameters
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowRunCommandParameters' {Maybe Text
documentHash :: Maybe Text
$sel:documentHash:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters -> Maybe Text
documentHash} -> Maybe Text
documentHash) (\s :: MaintenanceWindowRunCommandParameters
s@MaintenanceWindowRunCommandParameters' {} Maybe Text
a -> MaintenanceWindowRunCommandParameters
s {$sel:documentHash:MaintenanceWindowRunCommandParameters' :: Maybe Text
documentHash = Maybe Text
a} :: MaintenanceWindowRunCommandParameters)
maintenanceWindowRunCommandParameters_documentVersion :: Lens.Lens' MaintenanceWindowRunCommandParameters (Prelude.Maybe Prelude.Text)
maintenanceWindowRunCommandParameters_documentVersion :: (Maybe Text -> f (Maybe Text))
-> MaintenanceWindowRunCommandParameters
-> f MaintenanceWindowRunCommandParameters
maintenanceWindowRunCommandParameters_documentVersion = (MaintenanceWindowRunCommandParameters -> Maybe Text)
-> (MaintenanceWindowRunCommandParameters
-> Maybe Text -> MaintenanceWindowRunCommandParameters)
-> Lens
MaintenanceWindowRunCommandParameters
MaintenanceWindowRunCommandParameters
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowRunCommandParameters' {Maybe Text
documentVersion :: Maybe Text
$sel:documentVersion:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters -> Maybe Text
documentVersion} -> Maybe Text
documentVersion) (\s :: MaintenanceWindowRunCommandParameters
s@MaintenanceWindowRunCommandParameters' {} Maybe Text
a -> MaintenanceWindowRunCommandParameters
s {$sel:documentVersion:MaintenanceWindowRunCommandParameters' :: Maybe Text
documentVersion = Maybe Text
a} :: MaintenanceWindowRunCommandParameters)
maintenanceWindowRunCommandParameters_timeoutSeconds :: Lens.Lens' MaintenanceWindowRunCommandParameters (Prelude.Maybe Prelude.Natural)
maintenanceWindowRunCommandParameters_timeoutSeconds :: (Maybe Natural -> f (Maybe Natural))
-> MaintenanceWindowRunCommandParameters
-> f MaintenanceWindowRunCommandParameters
maintenanceWindowRunCommandParameters_timeoutSeconds = (MaintenanceWindowRunCommandParameters -> Maybe Natural)
-> (MaintenanceWindowRunCommandParameters
-> Maybe Natural -> MaintenanceWindowRunCommandParameters)
-> Lens
MaintenanceWindowRunCommandParameters
MaintenanceWindowRunCommandParameters
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowRunCommandParameters' {Maybe Natural
timeoutSeconds :: Maybe Natural
$sel:timeoutSeconds:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters -> Maybe Natural
timeoutSeconds} -> Maybe Natural
timeoutSeconds) (\s :: MaintenanceWindowRunCommandParameters
s@MaintenanceWindowRunCommandParameters' {} Maybe Natural
a -> MaintenanceWindowRunCommandParameters
s {$sel:timeoutSeconds:MaintenanceWindowRunCommandParameters' :: Maybe Natural
timeoutSeconds = Maybe Natural
a} :: MaintenanceWindowRunCommandParameters)
maintenanceWindowRunCommandParameters_comment :: Lens.Lens' MaintenanceWindowRunCommandParameters (Prelude.Maybe Prelude.Text)
maintenanceWindowRunCommandParameters_comment :: (Maybe Text -> f (Maybe Text))
-> MaintenanceWindowRunCommandParameters
-> f MaintenanceWindowRunCommandParameters
maintenanceWindowRunCommandParameters_comment = (MaintenanceWindowRunCommandParameters -> Maybe Text)
-> (MaintenanceWindowRunCommandParameters
-> Maybe Text -> MaintenanceWindowRunCommandParameters)
-> Lens
MaintenanceWindowRunCommandParameters
MaintenanceWindowRunCommandParameters
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowRunCommandParameters' {Maybe Text
comment :: Maybe Text
$sel:comment:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters -> Maybe Text
comment} -> Maybe Text
comment) (\s :: MaintenanceWindowRunCommandParameters
s@MaintenanceWindowRunCommandParameters' {} Maybe Text
a -> MaintenanceWindowRunCommandParameters
s {$sel:comment:MaintenanceWindowRunCommandParameters' :: Maybe Text
comment = Maybe Text
a} :: MaintenanceWindowRunCommandParameters)
maintenanceWindowRunCommandParameters_outputS3BucketName :: Lens.Lens' MaintenanceWindowRunCommandParameters (Prelude.Maybe Prelude.Text)
maintenanceWindowRunCommandParameters_outputS3BucketName :: (Maybe Text -> f (Maybe Text))
-> MaintenanceWindowRunCommandParameters
-> f MaintenanceWindowRunCommandParameters
maintenanceWindowRunCommandParameters_outputS3BucketName = (MaintenanceWindowRunCommandParameters -> Maybe Text)
-> (MaintenanceWindowRunCommandParameters
-> Maybe Text -> MaintenanceWindowRunCommandParameters)
-> Lens
MaintenanceWindowRunCommandParameters
MaintenanceWindowRunCommandParameters
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowRunCommandParameters' {Maybe Text
outputS3BucketName :: Maybe Text
$sel:outputS3BucketName:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters -> Maybe Text
outputS3BucketName} -> Maybe Text
outputS3BucketName) (\s :: MaintenanceWindowRunCommandParameters
s@MaintenanceWindowRunCommandParameters' {} Maybe Text
a -> MaintenanceWindowRunCommandParameters
s {$sel:outputS3BucketName:MaintenanceWindowRunCommandParameters' :: Maybe Text
outputS3BucketName = Maybe Text
a} :: MaintenanceWindowRunCommandParameters)
instance
Core.FromJSON
MaintenanceWindowRunCommandParameters
where
parseJSON :: Value -> Parser MaintenanceWindowRunCommandParameters
parseJSON =
String
-> (Object -> Parser MaintenanceWindowRunCommandParameters)
-> Value
-> Parser MaintenanceWindowRunCommandParameters
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"MaintenanceWindowRunCommandParameters"
( \Object
x ->
Maybe Text
-> Maybe NotificationConfig
-> Maybe DocumentHashType
-> Maybe CloudWatchOutputConfig
-> Maybe Text
-> Maybe (HashMap Text [Text])
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowRunCommandParameters
MaintenanceWindowRunCommandParameters'
(Maybe Text
-> Maybe NotificationConfig
-> Maybe DocumentHashType
-> Maybe CloudWatchOutputConfig
-> Maybe Text
-> Maybe (HashMap Text [Text])
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowRunCommandParameters)
-> Parser (Maybe Text)
-> Parser
(Maybe NotificationConfig
-> Maybe DocumentHashType
-> Maybe CloudWatchOutputConfig
-> Maybe Text
-> Maybe (HashMap Text [Text])
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowRunCommandParameters)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ServiceRoleArn")
Parser
(Maybe NotificationConfig
-> Maybe DocumentHashType
-> Maybe CloudWatchOutputConfig
-> Maybe Text
-> Maybe (HashMap Text [Text])
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowRunCommandParameters)
-> Parser (Maybe NotificationConfig)
-> Parser
(Maybe DocumentHashType
-> Maybe CloudWatchOutputConfig
-> Maybe Text
-> Maybe (HashMap Text [Text])
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowRunCommandParameters)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe NotificationConfig)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"NotificationConfig")
Parser
(Maybe DocumentHashType
-> Maybe CloudWatchOutputConfig
-> Maybe Text
-> Maybe (HashMap Text [Text])
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowRunCommandParameters)
-> Parser (Maybe DocumentHashType)
-> Parser
(Maybe CloudWatchOutputConfig
-> Maybe Text
-> Maybe (HashMap Text [Text])
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowRunCommandParameters)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DocumentHashType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DocumentHashType")
Parser
(Maybe CloudWatchOutputConfig
-> Maybe Text
-> Maybe (HashMap Text [Text])
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowRunCommandParameters)
-> Parser (Maybe CloudWatchOutputConfig)
-> Parser
(Maybe Text
-> Maybe (HashMap Text [Text])
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowRunCommandParameters)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe CloudWatchOutputConfig)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CloudWatchOutputConfig")
Parser
(Maybe Text
-> Maybe (HashMap Text [Text])
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowRunCommandParameters)
-> Parser (Maybe Text)
-> Parser
(Maybe (HashMap Text [Text])
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowRunCommandParameters)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"OutputS3KeyPrefix")
Parser
(Maybe (HashMap Text [Text])
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowRunCommandParameters)
-> Parser (Maybe (HashMap Text [Text]))
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowRunCommandParameters)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Text [Text])))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Parameters" Parser (Maybe (Maybe (HashMap Text [Text])))
-> Maybe (HashMap Text [Text])
-> Parser (Maybe (HashMap Text [Text]))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text [Text])
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowRunCommandParameters)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowRunCommandParameters)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DocumentHash")
Parser
(Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowRunCommandParameters)
-> Parser (Maybe Text)
-> Parser
(Maybe Natural
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowRunCommandParameters)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DocumentVersion")
Parser
(Maybe Natural
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowRunCommandParameters)
-> Parser (Maybe Natural)
-> Parser
(Maybe Text -> Maybe Text -> MaintenanceWindowRunCommandParameters)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TimeoutSeconds")
Parser
(Maybe Text -> Maybe Text -> MaintenanceWindowRunCommandParameters)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> MaintenanceWindowRunCommandParameters)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Comment")
Parser (Maybe Text -> MaintenanceWindowRunCommandParameters)
-> Parser (Maybe Text)
-> Parser MaintenanceWindowRunCommandParameters
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"OutputS3BucketName")
)
instance
Prelude.Hashable
MaintenanceWindowRunCommandParameters
instance
Prelude.NFData
MaintenanceWindowRunCommandParameters
instance
Core.ToJSON
MaintenanceWindowRunCommandParameters
where
toJSON :: MaintenanceWindowRunCommandParameters -> Value
toJSON MaintenanceWindowRunCommandParameters' {Maybe Natural
Maybe Text
Maybe (HashMap Text [Text])
Maybe CloudWatchOutputConfig
Maybe DocumentHashType
Maybe NotificationConfig
outputS3BucketName :: Maybe Text
comment :: Maybe Text
timeoutSeconds :: Maybe Natural
documentVersion :: Maybe Text
documentHash :: Maybe Text
parameters :: Maybe (HashMap Text [Text])
outputS3KeyPrefix :: Maybe Text
cloudWatchOutputConfig :: Maybe CloudWatchOutputConfig
documentHashType :: Maybe DocumentHashType
notificationConfig :: Maybe NotificationConfig
serviceRoleArn :: Maybe Text
$sel:outputS3BucketName:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters -> Maybe Text
$sel:comment:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters -> Maybe Text
$sel:timeoutSeconds:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters -> Maybe Natural
$sel:documentVersion:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters -> Maybe Text
$sel:documentHash:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters -> Maybe Text
$sel:parameters:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters
-> Maybe (HashMap Text [Text])
$sel:outputS3KeyPrefix:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters -> Maybe Text
$sel:cloudWatchOutputConfig:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters
-> Maybe CloudWatchOutputConfig
$sel:documentHashType:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters -> Maybe DocumentHashType
$sel:notificationConfig:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters -> Maybe NotificationConfig
$sel:serviceRoleArn:MaintenanceWindowRunCommandParameters' :: MaintenanceWindowRunCommandParameters -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"ServiceRoleArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
serviceRoleArn,
(Text
"NotificationConfig" Text -> NotificationConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(NotificationConfig -> Pair)
-> Maybe NotificationConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NotificationConfig
notificationConfig,
(Text
"DocumentHashType" Text -> DocumentHashType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(DocumentHashType -> Pair) -> Maybe DocumentHashType -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DocumentHashType
documentHashType,
(Text
"CloudWatchOutputConfig" Text -> CloudWatchOutputConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(CloudWatchOutputConfig -> Pair)
-> Maybe CloudWatchOutputConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CloudWatchOutputConfig
cloudWatchOutputConfig,
(Text
"OutputS3KeyPrefix" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
outputS3KeyPrefix,
(Text
"Parameters" Text -> HashMap Text [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text [Text] -> Pair)
-> Maybe (HashMap Text [Text]) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text [Text])
parameters,
(Text
"DocumentHash" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
documentHash,
(Text
"DocumentVersion" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
documentVersion,
(Text
"TimeoutSeconds" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
timeoutSeconds,
(Text
"Comment" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
comment,
(Text
"OutputS3BucketName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
outputS3BucketName
]
)