{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SSM.Types.MaintenanceWindowRunCommandParameters
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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

-- | The parameters for a @RUN_COMMAND@ task type.
--
-- For information about specifying and updating task parameters, see
-- RegisterTaskWithMaintenanceWindow and UpdateMaintenanceWindowTask.
--
-- @LoggingInfo@ has been deprecated. To specify an Amazon Simple Storage
-- Service (Amazon S3) bucket to contain logs, instead use the
-- @OutputS3BucketName@ and @OutputS3KeyPrefix@ options in the
-- @TaskInvocationParameters@ structure. For information about how Amazon
-- Web Services Systems Manager handles these options for the supported
-- maintenance window task types, see
-- MaintenanceWindowTaskInvocationParameters.
--
-- @TaskParameters@ has been deprecated. To specify parameters to pass to a
-- task when it runs, instead use the @Parameters@ option in the
-- @TaskInvocationParameters@ structure. For information about how Systems
-- Manager handles these options for the supported maintenance window task
-- types, see MaintenanceWindowTaskInvocationParameters.
--
-- For @RUN_COMMAND@ tasks, Systems Manager uses specified values for
-- @TaskParameters@ and @LoggingInfo@ only if no values are specified for
-- @TaskInvocationParameters@.
--
-- /See:/ 'newMaintenanceWindowRunCommandParameters' smart constructor.
data MaintenanceWindowRunCommandParameters = MaintenanceWindowRunCommandParameters'
  { -- | The Amazon Resource Name (ARN) of the Identity and Access Management
    -- (IAM) service role to use to publish Amazon Simple Notification Service
    -- (Amazon SNS) notifications for maintenance window Run Command tasks.
    MaintenanceWindowRunCommandParameters -> Maybe Text
serviceRoleArn :: Prelude.Maybe Prelude.Text,
    -- | Configurations for sending notifications about command status changes on
    -- a per-instance basis.
    MaintenanceWindowRunCommandParameters -> Maybe NotificationConfig
notificationConfig :: Prelude.Maybe NotificationConfig,
    -- | SHA-256 or SHA-1. SHA-1 hashes have been deprecated.
    MaintenanceWindowRunCommandParameters -> Maybe DocumentHashType
documentHashType :: Prelude.Maybe DocumentHashType,
    MaintenanceWindowRunCommandParameters
-> Maybe CloudWatchOutputConfig
cloudWatchOutputConfig :: Prelude.Maybe CloudWatchOutputConfig,
    -- | The S3 bucket subfolder.
    MaintenanceWindowRunCommandParameters -> Maybe Text
outputS3KeyPrefix :: Prelude.Maybe Prelude.Text,
    -- | The parameters for the @RUN_COMMAND@ task execution.
    MaintenanceWindowRunCommandParameters
-> Maybe (HashMap Text [Text])
parameters :: Prelude.Maybe (Prelude.HashMap Prelude.Text [Prelude.Text]),
    -- | The SHA-256 or SHA-1 hash created by the system when the document was
    -- created. SHA-1 hashes have been deprecated.
    MaintenanceWindowRunCommandParameters -> Maybe Text
documentHash :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Web Services Systems Manager document (SSM document) version
    -- to use in the request. You can specify @$DEFAULT@, @$LATEST@, or a
    -- specific version number. If you run commands by using the Amazon Web
    -- Services CLI, then you must escape the first two options by using a
    -- backslash. If you specify a version number, then you don\'t need to use
    -- the backslash. For example:
    --
    -- @--document-version \"\\$DEFAULT\"@
    --
    -- @--document-version \"\\$LATEST\"@
    --
    -- @--document-version \"3\"@
    MaintenanceWindowRunCommandParameters -> Maybe Text
documentVersion :: Prelude.Maybe Prelude.Text,
    -- | If this time is reached and the command hasn\'t already started running,
    -- it doesn\'t run.
    MaintenanceWindowRunCommandParameters -> Maybe Natural
timeoutSeconds :: Prelude.Maybe Prelude.Natural,
    -- | Information about the commands to run.
    MaintenanceWindowRunCommandParameters -> Maybe Text
comment :: Prelude.Maybe Prelude.Text,
    -- | The name of the Amazon Simple Storage Service (Amazon S3) bucket.
    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)

-- |
-- Create a value of 'MaintenanceWindowRunCommandParameters' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'serviceRoleArn', 'maintenanceWindowRunCommandParameters_serviceRoleArn' - The Amazon Resource Name (ARN) of the Identity and Access Management
-- (IAM) service role to use to publish Amazon Simple Notification Service
-- (Amazon SNS) notifications for maintenance window Run Command tasks.
--
-- 'notificationConfig', 'maintenanceWindowRunCommandParameters_notificationConfig' - Configurations for sending notifications about command status changes on
-- a per-instance basis.
--
-- 'documentHashType', 'maintenanceWindowRunCommandParameters_documentHashType' - SHA-256 or SHA-1. SHA-1 hashes have been deprecated.
--
-- 'cloudWatchOutputConfig', 'maintenanceWindowRunCommandParameters_cloudWatchOutputConfig' - Undocumented member.
--
-- 'outputS3KeyPrefix', 'maintenanceWindowRunCommandParameters_outputS3KeyPrefix' - The S3 bucket subfolder.
--
-- 'parameters', 'maintenanceWindowRunCommandParameters_parameters' - The parameters for the @RUN_COMMAND@ task execution.
--
-- 'documentHash', 'maintenanceWindowRunCommandParameters_documentHash' - The SHA-256 or SHA-1 hash created by the system when the document was
-- created. SHA-1 hashes have been deprecated.
--
-- 'documentVersion', 'maintenanceWindowRunCommandParameters_documentVersion' - The Amazon Web Services Systems Manager document (SSM document) version
-- to use in the request. You can specify @$DEFAULT@, @$LATEST@, or a
-- specific version number. If you run commands by using the Amazon Web
-- Services CLI, then you must escape the first two options by using a
-- backslash. If you specify a version number, then you don\'t need to use
-- the backslash. For example:
--
-- @--document-version \"\\$DEFAULT\"@
--
-- @--document-version \"\\$LATEST\"@
--
-- @--document-version \"3\"@
--
-- 'timeoutSeconds', 'maintenanceWindowRunCommandParameters_timeoutSeconds' - If this time is reached and the command hasn\'t already started running,
-- it doesn\'t run.
--
-- 'comment', 'maintenanceWindowRunCommandParameters_comment' - Information about the commands to run.
--
-- 'outputS3BucketName', 'maintenanceWindowRunCommandParameters_outputS3BucketName' - The name of the Amazon Simple Storage Service (Amazon S3) bucket.
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
    }

-- | The Amazon Resource Name (ARN) of the Identity and Access Management
-- (IAM) service role to use to publish Amazon Simple Notification Service
-- (Amazon SNS) notifications for maintenance window Run Command tasks.
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)

-- | Configurations for sending notifications about command status changes on
-- a per-instance basis.
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)

-- | SHA-256 or SHA-1. SHA-1 hashes have been deprecated.
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)

-- | Undocumented member.
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)

-- | The S3 bucket subfolder.
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)

-- | The parameters for the @RUN_COMMAND@ task execution.
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

-- | The SHA-256 or SHA-1 hash created by the system when the document was
-- created. SHA-1 hashes have been deprecated.
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)

-- | The Amazon Web Services Systems Manager document (SSM document) version
-- to use in the request. You can specify @$DEFAULT@, @$LATEST@, or a
-- specific version number. If you run commands by using the Amazon Web
-- Services CLI, then you must escape the first two options by using a
-- backslash. If you specify a version number, then you don\'t need to use
-- the backslash. For example:
--
-- @--document-version \"\\$DEFAULT\"@
--
-- @--document-version \"\\$LATEST\"@
--
-- @--document-version \"3\"@
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)

-- | If this time is reached and the command hasn\'t already started running,
-- it doesn\'t run.
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)

-- | Information about the commands to run.
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)

-- | The name of the Amazon Simple Storage Service (Amazon S3) bucket.
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
          ]
      )