{-# 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.Glue.Types.JobUpdate where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Glue.Types.CodeGenConfigurationNode
import Amazonka.Glue.Types.ConnectionsList
import Amazonka.Glue.Types.ExecutionClass
import Amazonka.Glue.Types.ExecutionProperty
import Amazonka.Glue.Types.JobCommand
import Amazonka.Glue.Types.NotificationProperty
import Amazonka.Glue.Types.SourceControlDetails
import Amazonka.Glue.Types.WorkerType
import qualified Amazonka.Prelude as Prelude
data JobUpdate = JobUpdate'
{
JobUpdate -> Maybe Int
allocatedCapacity :: Prelude.Maybe Prelude.Int,
JobUpdate
-> Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
codeGenConfigurationNodes :: Prelude.Maybe (Data.Sensitive (Prelude.HashMap Prelude.Text CodeGenConfigurationNode)),
JobUpdate -> Maybe JobCommand
command :: Prelude.Maybe JobCommand,
JobUpdate -> Maybe ConnectionsList
connections :: Prelude.Maybe ConnectionsList,
JobUpdate -> Maybe (HashMap Text Text)
defaultArguments :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
JobUpdate -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
JobUpdate -> Maybe ExecutionClass
executionClass :: Prelude.Maybe ExecutionClass,
JobUpdate -> Maybe ExecutionProperty
executionProperty :: Prelude.Maybe ExecutionProperty,
JobUpdate -> Maybe Text
glueVersion :: Prelude.Maybe Prelude.Text,
JobUpdate -> Maybe Text
logUri :: Prelude.Maybe Prelude.Text,
JobUpdate -> Maybe Double
maxCapacity :: Prelude.Maybe Prelude.Double,
JobUpdate -> Maybe Int
maxRetries :: Prelude.Maybe Prelude.Int,
JobUpdate -> Maybe (HashMap Text Text)
nonOverridableArguments :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
JobUpdate -> Maybe NotificationProperty
notificationProperty :: Prelude.Maybe NotificationProperty,
JobUpdate -> Maybe Int
numberOfWorkers :: Prelude.Maybe Prelude.Int,
JobUpdate -> Maybe Text
role' :: Prelude.Maybe Prelude.Text,
JobUpdate -> Maybe Text
securityConfiguration :: Prelude.Maybe Prelude.Text,
JobUpdate -> Maybe SourceControlDetails
sourceControlDetails :: Prelude.Maybe SourceControlDetails,
JobUpdate -> Maybe Natural
timeout :: Prelude.Maybe Prelude.Natural,
JobUpdate -> Maybe WorkerType
workerType :: Prelude.Maybe WorkerType
}
deriving (JobUpdate -> JobUpdate -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: JobUpdate -> JobUpdate -> Bool
$c/= :: JobUpdate -> JobUpdate -> Bool
== :: JobUpdate -> JobUpdate -> Bool
$c== :: JobUpdate -> JobUpdate -> Bool
Prelude.Eq, Int -> JobUpdate -> ShowS
[JobUpdate] -> ShowS
JobUpdate -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [JobUpdate] -> ShowS
$cshowList :: [JobUpdate] -> ShowS
show :: JobUpdate -> String
$cshow :: JobUpdate -> String
showsPrec :: Int -> JobUpdate -> ShowS
$cshowsPrec :: Int -> JobUpdate -> ShowS
Prelude.Show, forall x. Rep JobUpdate x -> JobUpdate
forall x. JobUpdate -> Rep JobUpdate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep JobUpdate x -> JobUpdate
$cfrom :: forall x. JobUpdate -> Rep JobUpdate x
Prelude.Generic)
newJobUpdate ::
JobUpdate
newJobUpdate :: JobUpdate
newJobUpdate =
JobUpdate'
{ $sel:allocatedCapacity:JobUpdate' :: Maybe Int
allocatedCapacity = forall a. Maybe a
Prelude.Nothing,
$sel:codeGenConfigurationNodes:JobUpdate' :: Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
codeGenConfigurationNodes = forall a. Maybe a
Prelude.Nothing,
$sel:command:JobUpdate' :: Maybe JobCommand
command = forall a. Maybe a
Prelude.Nothing,
$sel:connections:JobUpdate' :: Maybe ConnectionsList
connections = forall a. Maybe a
Prelude.Nothing,
$sel:defaultArguments:JobUpdate' :: Maybe (HashMap Text Text)
defaultArguments = forall a. Maybe a
Prelude.Nothing,
$sel:description:JobUpdate' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
$sel:executionClass:JobUpdate' :: Maybe ExecutionClass
executionClass = forall a. Maybe a
Prelude.Nothing,
$sel:executionProperty:JobUpdate' :: Maybe ExecutionProperty
executionProperty = forall a. Maybe a
Prelude.Nothing,
$sel:glueVersion:JobUpdate' :: Maybe Text
glueVersion = forall a. Maybe a
Prelude.Nothing,
$sel:logUri:JobUpdate' :: Maybe Text
logUri = forall a. Maybe a
Prelude.Nothing,
$sel:maxCapacity:JobUpdate' :: Maybe Double
maxCapacity = forall a. Maybe a
Prelude.Nothing,
$sel:maxRetries:JobUpdate' :: Maybe Int
maxRetries = forall a. Maybe a
Prelude.Nothing,
$sel:nonOverridableArguments:JobUpdate' :: Maybe (HashMap Text Text)
nonOverridableArguments = forall a. Maybe a
Prelude.Nothing,
$sel:notificationProperty:JobUpdate' :: Maybe NotificationProperty
notificationProperty = forall a. Maybe a
Prelude.Nothing,
$sel:numberOfWorkers:JobUpdate' :: Maybe Int
numberOfWorkers = forall a. Maybe a
Prelude.Nothing,
$sel:role':JobUpdate' :: Maybe Text
role' = forall a. Maybe a
Prelude.Nothing,
$sel:securityConfiguration:JobUpdate' :: Maybe Text
securityConfiguration = forall a. Maybe a
Prelude.Nothing,
$sel:sourceControlDetails:JobUpdate' :: Maybe SourceControlDetails
sourceControlDetails = forall a. Maybe a
Prelude.Nothing,
$sel:timeout:JobUpdate' :: Maybe Natural
timeout = forall a. Maybe a
Prelude.Nothing,
$sel:workerType:JobUpdate' :: Maybe WorkerType
workerType = forall a. Maybe a
Prelude.Nothing
}
jobUpdate_allocatedCapacity :: Lens.Lens' JobUpdate (Prelude.Maybe Prelude.Int)
jobUpdate_allocatedCapacity :: Lens' JobUpdate (Maybe Int)
jobUpdate_allocatedCapacity = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe Int
allocatedCapacity :: Maybe Int
$sel:allocatedCapacity:JobUpdate' :: JobUpdate -> Maybe Int
allocatedCapacity} -> Maybe Int
allocatedCapacity) (\s :: JobUpdate
s@JobUpdate' {} Maybe Int
a -> JobUpdate
s {$sel:allocatedCapacity:JobUpdate' :: Maybe Int
allocatedCapacity = Maybe Int
a} :: JobUpdate)
jobUpdate_codeGenConfigurationNodes :: Lens.Lens' JobUpdate (Prelude.Maybe (Prelude.HashMap Prelude.Text CodeGenConfigurationNode))
jobUpdate_codeGenConfigurationNodes :: Lens' JobUpdate (Maybe (HashMap Text CodeGenConfigurationNode))
jobUpdate_codeGenConfigurationNodes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
codeGenConfigurationNodes :: Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
$sel:codeGenConfigurationNodes:JobUpdate' :: JobUpdate
-> Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
codeGenConfigurationNodes} -> Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
codeGenConfigurationNodes) (\s :: JobUpdate
s@JobUpdate' {} Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
a -> JobUpdate
s {$sel:codeGenConfigurationNodes:JobUpdate' :: Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
codeGenConfigurationNodes = Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
a} :: JobUpdate) 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)
jobUpdate_command :: Lens.Lens' JobUpdate (Prelude.Maybe JobCommand)
jobUpdate_command :: Lens' JobUpdate (Maybe JobCommand)
jobUpdate_command = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe JobCommand
command :: Maybe JobCommand
$sel:command:JobUpdate' :: JobUpdate -> Maybe JobCommand
command} -> Maybe JobCommand
command) (\s :: JobUpdate
s@JobUpdate' {} Maybe JobCommand
a -> JobUpdate
s {$sel:command:JobUpdate' :: Maybe JobCommand
command = Maybe JobCommand
a} :: JobUpdate)
jobUpdate_connections :: Lens.Lens' JobUpdate (Prelude.Maybe ConnectionsList)
jobUpdate_connections :: Lens' JobUpdate (Maybe ConnectionsList)
jobUpdate_connections = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe ConnectionsList
connections :: Maybe ConnectionsList
$sel:connections:JobUpdate' :: JobUpdate -> Maybe ConnectionsList
connections} -> Maybe ConnectionsList
connections) (\s :: JobUpdate
s@JobUpdate' {} Maybe ConnectionsList
a -> JobUpdate
s {$sel:connections:JobUpdate' :: Maybe ConnectionsList
connections = Maybe ConnectionsList
a} :: JobUpdate)
jobUpdate_defaultArguments :: Lens.Lens' JobUpdate (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
jobUpdate_defaultArguments :: Lens' JobUpdate (Maybe (HashMap Text Text))
jobUpdate_defaultArguments = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe (HashMap Text Text)
defaultArguments :: Maybe (HashMap Text Text)
$sel:defaultArguments:JobUpdate' :: JobUpdate -> Maybe (HashMap Text Text)
defaultArguments} -> Maybe (HashMap Text Text)
defaultArguments) (\s :: JobUpdate
s@JobUpdate' {} Maybe (HashMap Text Text)
a -> JobUpdate
s {$sel:defaultArguments:JobUpdate' :: Maybe (HashMap Text Text)
defaultArguments = Maybe (HashMap Text Text)
a} :: JobUpdate) 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
jobUpdate_description :: Lens.Lens' JobUpdate (Prelude.Maybe Prelude.Text)
jobUpdate_description :: Lens' JobUpdate (Maybe Text)
jobUpdate_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe Text
description :: Maybe Text
$sel:description:JobUpdate' :: JobUpdate -> Maybe Text
description} -> Maybe Text
description) (\s :: JobUpdate
s@JobUpdate' {} Maybe Text
a -> JobUpdate
s {$sel:description:JobUpdate' :: Maybe Text
description = Maybe Text
a} :: JobUpdate)
jobUpdate_executionClass :: Lens.Lens' JobUpdate (Prelude.Maybe ExecutionClass)
jobUpdate_executionClass :: Lens' JobUpdate (Maybe ExecutionClass)
jobUpdate_executionClass = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe ExecutionClass
executionClass :: Maybe ExecutionClass
$sel:executionClass:JobUpdate' :: JobUpdate -> Maybe ExecutionClass
executionClass} -> Maybe ExecutionClass
executionClass) (\s :: JobUpdate
s@JobUpdate' {} Maybe ExecutionClass
a -> JobUpdate
s {$sel:executionClass:JobUpdate' :: Maybe ExecutionClass
executionClass = Maybe ExecutionClass
a} :: JobUpdate)
jobUpdate_executionProperty :: Lens.Lens' JobUpdate (Prelude.Maybe ExecutionProperty)
jobUpdate_executionProperty :: Lens' JobUpdate (Maybe ExecutionProperty)
jobUpdate_executionProperty = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe ExecutionProperty
executionProperty :: Maybe ExecutionProperty
$sel:executionProperty:JobUpdate' :: JobUpdate -> Maybe ExecutionProperty
executionProperty} -> Maybe ExecutionProperty
executionProperty) (\s :: JobUpdate
s@JobUpdate' {} Maybe ExecutionProperty
a -> JobUpdate
s {$sel:executionProperty:JobUpdate' :: Maybe ExecutionProperty
executionProperty = Maybe ExecutionProperty
a} :: JobUpdate)
jobUpdate_glueVersion :: Lens.Lens' JobUpdate (Prelude.Maybe Prelude.Text)
jobUpdate_glueVersion :: Lens' JobUpdate (Maybe Text)
jobUpdate_glueVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe Text
glueVersion :: Maybe Text
$sel:glueVersion:JobUpdate' :: JobUpdate -> Maybe Text
glueVersion} -> Maybe Text
glueVersion) (\s :: JobUpdate
s@JobUpdate' {} Maybe Text
a -> JobUpdate
s {$sel:glueVersion:JobUpdate' :: Maybe Text
glueVersion = Maybe Text
a} :: JobUpdate)
jobUpdate_logUri :: Lens.Lens' JobUpdate (Prelude.Maybe Prelude.Text)
jobUpdate_logUri :: Lens' JobUpdate (Maybe Text)
jobUpdate_logUri = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe Text
logUri :: Maybe Text
$sel:logUri:JobUpdate' :: JobUpdate -> Maybe Text
logUri} -> Maybe Text
logUri) (\s :: JobUpdate
s@JobUpdate' {} Maybe Text
a -> JobUpdate
s {$sel:logUri:JobUpdate' :: Maybe Text
logUri = Maybe Text
a} :: JobUpdate)
jobUpdate_maxCapacity :: Lens.Lens' JobUpdate (Prelude.Maybe Prelude.Double)
jobUpdate_maxCapacity :: Lens' JobUpdate (Maybe Double)
jobUpdate_maxCapacity = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe Double
maxCapacity :: Maybe Double
$sel:maxCapacity:JobUpdate' :: JobUpdate -> Maybe Double
maxCapacity} -> Maybe Double
maxCapacity) (\s :: JobUpdate
s@JobUpdate' {} Maybe Double
a -> JobUpdate
s {$sel:maxCapacity:JobUpdate' :: Maybe Double
maxCapacity = Maybe Double
a} :: JobUpdate)
jobUpdate_maxRetries :: Lens.Lens' JobUpdate (Prelude.Maybe Prelude.Int)
jobUpdate_maxRetries :: Lens' JobUpdate (Maybe Int)
jobUpdate_maxRetries = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe Int
maxRetries :: Maybe Int
$sel:maxRetries:JobUpdate' :: JobUpdate -> Maybe Int
maxRetries} -> Maybe Int
maxRetries) (\s :: JobUpdate
s@JobUpdate' {} Maybe Int
a -> JobUpdate
s {$sel:maxRetries:JobUpdate' :: Maybe Int
maxRetries = Maybe Int
a} :: JobUpdate)
jobUpdate_nonOverridableArguments :: Lens.Lens' JobUpdate (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
jobUpdate_nonOverridableArguments :: Lens' JobUpdate (Maybe (HashMap Text Text))
jobUpdate_nonOverridableArguments = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe (HashMap Text Text)
nonOverridableArguments :: Maybe (HashMap Text Text)
$sel:nonOverridableArguments:JobUpdate' :: JobUpdate -> Maybe (HashMap Text Text)
nonOverridableArguments} -> Maybe (HashMap Text Text)
nonOverridableArguments) (\s :: JobUpdate
s@JobUpdate' {} Maybe (HashMap Text Text)
a -> JobUpdate
s {$sel:nonOverridableArguments:JobUpdate' :: Maybe (HashMap Text Text)
nonOverridableArguments = Maybe (HashMap Text Text)
a} :: JobUpdate) 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
jobUpdate_notificationProperty :: Lens.Lens' JobUpdate (Prelude.Maybe NotificationProperty)
jobUpdate_notificationProperty :: Lens' JobUpdate (Maybe NotificationProperty)
jobUpdate_notificationProperty = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe NotificationProperty
notificationProperty :: Maybe NotificationProperty
$sel:notificationProperty:JobUpdate' :: JobUpdate -> Maybe NotificationProperty
notificationProperty} -> Maybe NotificationProperty
notificationProperty) (\s :: JobUpdate
s@JobUpdate' {} Maybe NotificationProperty
a -> JobUpdate
s {$sel:notificationProperty:JobUpdate' :: Maybe NotificationProperty
notificationProperty = Maybe NotificationProperty
a} :: JobUpdate)
jobUpdate_numberOfWorkers :: Lens.Lens' JobUpdate (Prelude.Maybe Prelude.Int)
jobUpdate_numberOfWorkers :: Lens' JobUpdate (Maybe Int)
jobUpdate_numberOfWorkers = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe Int
numberOfWorkers :: Maybe Int
$sel:numberOfWorkers:JobUpdate' :: JobUpdate -> Maybe Int
numberOfWorkers} -> Maybe Int
numberOfWorkers) (\s :: JobUpdate
s@JobUpdate' {} Maybe Int
a -> JobUpdate
s {$sel:numberOfWorkers:JobUpdate' :: Maybe Int
numberOfWorkers = Maybe Int
a} :: JobUpdate)
jobUpdate_role :: Lens.Lens' JobUpdate (Prelude.Maybe Prelude.Text)
jobUpdate_role :: Lens' JobUpdate (Maybe Text)
jobUpdate_role = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe Text
role' :: Maybe Text
$sel:role':JobUpdate' :: JobUpdate -> Maybe Text
role'} -> Maybe Text
role') (\s :: JobUpdate
s@JobUpdate' {} Maybe Text
a -> JobUpdate
s {$sel:role':JobUpdate' :: Maybe Text
role' = Maybe Text
a} :: JobUpdate)
jobUpdate_securityConfiguration :: Lens.Lens' JobUpdate (Prelude.Maybe Prelude.Text)
jobUpdate_securityConfiguration :: Lens' JobUpdate (Maybe Text)
jobUpdate_securityConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe Text
securityConfiguration :: Maybe Text
$sel:securityConfiguration:JobUpdate' :: JobUpdate -> Maybe Text
securityConfiguration} -> Maybe Text
securityConfiguration) (\s :: JobUpdate
s@JobUpdate' {} Maybe Text
a -> JobUpdate
s {$sel:securityConfiguration:JobUpdate' :: Maybe Text
securityConfiguration = Maybe Text
a} :: JobUpdate)
jobUpdate_sourceControlDetails :: Lens.Lens' JobUpdate (Prelude.Maybe SourceControlDetails)
jobUpdate_sourceControlDetails :: Lens' JobUpdate (Maybe SourceControlDetails)
jobUpdate_sourceControlDetails = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe SourceControlDetails
sourceControlDetails :: Maybe SourceControlDetails
$sel:sourceControlDetails:JobUpdate' :: JobUpdate -> Maybe SourceControlDetails
sourceControlDetails} -> Maybe SourceControlDetails
sourceControlDetails) (\s :: JobUpdate
s@JobUpdate' {} Maybe SourceControlDetails
a -> JobUpdate
s {$sel:sourceControlDetails:JobUpdate' :: Maybe SourceControlDetails
sourceControlDetails = Maybe SourceControlDetails
a} :: JobUpdate)
jobUpdate_timeout :: Lens.Lens' JobUpdate (Prelude.Maybe Prelude.Natural)
jobUpdate_timeout :: Lens' JobUpdate (Maybe Natural)
jobUpdate_timeout = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe Natural
timeout :: Maybe Natural
$sel:timeout:JobUpdate' :: JobUpdate -> Maybe Natural
timeout} -> Maybe Natural
timeout) (\s :: JobUpdate
s@JobUpdate' {} Maybe Natural
a -> JobUpdate
s {$sel:timeout:JobUpdate' :: Maybe Natural
timeout = Maybe Natural
a} :: JobUpdate)
jobUpdate_workerType :: Lens.Lens' JobUpdate (Prelude.Maybe WorkerType)
jobUpdate_workerType :: Lens' JobUpdate (Maybe WorkerType)
jobUpdate_workerType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobUpdate' {Maybe WorkerType
workerType :: Maybe WorkerType
$sel:workerType:JobUpdate' :: JobUpdate -> Maybe WorkerType
workerType} -> Maybe WorkerType
workerType) (\s :: JobUpdate
s@JobUpdate' {} Maybe WorkerType
a -> JobUpdate
s {$sel:workerType:JobUpdate' :: Maybe WorkerType
workerType = Maybe WorkerType
a} :: JobUpdate)
instance Prelude.Hashable JobUpdate where
hashWithSalt :: Int -> JobUpdate -> Int
hashWithSalt Int
_salt JobUpdate' {Maybe Double
Maybe Int
Maybe Natural
Maybe Text
Maybe (HashMap Text Text)
Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
Maybe ConnectionsList
Maybe ExecutionClass
Maybe ExecutionProperty
Maybe JobCommand
Maybe NotificationProperty
Maybe SourceControlDetails
Maybe WorkerType
workerType :: Maybe WorkerType
timeout :: Maybe Natural
sourceControlDetails :: Maybe SourceControlDetails
securityConfiguration :: Maybe Text
role' :: Maybe Text
numberOfWorkers :: Maybe Int
notificationProperty :: Maybe NotificationProperty
nonOverridableArguments :: Maybe (HashMap Text Text)
maxRetries :: Maybe Int
maxCapacity :: Maybe Double
logUri :: Maybe Text
glueVersion :: Maybe Text
executionProperty :: Maybe ExecutionProperty
executionClass :: Maybe ExecutionClass
description :: Maybe Text
defaultArguments :: Maybe (HashMap Text Text)
connections :: Maybe ConnectionsList
command :: Maybe JobCommand
codeGenConfigurationNodes :: Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
allocatedCapacity :: Maybe Int
$sel:workerType:JobUpdate' :: JobUpdate -> Maybe WorkerType
$sel:timeout:JobUpdate' :: JobUpdate -> Maybe Natural
$sel:sourceControlDetails:JobUpdate' :: JobUpdate -> Maybe SourceControlDetails
$sel:securityConfiguration:JobUpdate' :: JobUpdate -> Maybe Text
$sel:role':JobUpdate' :: JobUpdate -> Maybe Text
$sel:numberOfWorkers:JobUpdate' :: JobUpdate -> Maybe Int
$sel:notificationProperty:JobUpdate' :: JobUpdate -> Maybe NotificationProperty
$sel:nonOverridableArguments:JobUpdate' :: JobUpdate -> Maybe (HashMap Text Text)
$sel:maxRetries:JobUpdate' :: JobUpdate -> Maybe Int
$sel:maxCapacity:JobUpdate' :: JobUpdate -> Maybe Double
$sel:logUri:JobUpdate' :: JobUpdate -> Maybe Text
$sel:glueVersion:JobUpdate' :: JobUpdate -> Maybe Text
$sel:executionProperty:JobUpdate' :: JobUpdate -> Maybe ExecutionProperty
$sel:executionClass:JobUpdate' :: JobUpdate -> Maybe ExecutionClass
$sel:description:JobUpdate' :: JobUpdate -> Maybe Text
$sel:defaultArguments:JobUpdate' :: JobUpdate -> Maybe (HashMap Text Text)
$sel:connections:JobUpdate' :: JobUpdate -> Maybe ConnectionsList
$sel:command:JobUpdate' :: JobUpdate -> Maybe JobCommand
$sel:codeGenConfigurationNodes:JobUpdate' :: JobUpdate
-> Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
$sel:allocatedCapacity:JobUpdate' :: JobUpdate -> Maybe Int
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
allocatedCapacity
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
codeGenConfigurationNodes
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe JobCommand
command
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ConnectionsList
connections
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
defaultArguments
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ExecutionClass
executionClass
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ExecutionProperty
executionProperty
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
glueVersion
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
logUri
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Double
maxCapacity
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
maxRetries
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
nonOverridableArguments
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe NotificationProperty
notificationProperty
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
numberOfWorkers
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
role'
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
securityConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SourceControlDetails
sourceControlDetails
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
timeout
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe WorkerType
workerType
instance Prelude.NFData JobUpdate where
rnf :: JobUpdate -> ()
rnf JobUpdate' {Maybe Double
Maybe Int
Maybe Natural
Maybe Text
Maybe (HashMap Text Text)
Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
Maybe ConnectionsList
Maybe ExecutionClass
Maybe ExecutionProperty
Maybe JobCommand
Maybe NotificationProperty
Maybe SourceControlDetails
Maybe WorkerType
workerType :: Maybe WorkerType
timeout :: Maybe Natural
sourceControlDetails :: Maybe SourceControlDetails
securityConfiguration :: Maybe Text
role' :: Maybe Text
numberOfWorkers :: Maybe Int
notificationProperty :: Maybe NotificationProperty
nonOverridableArguments :: Maybe (HashMap Text Text)
maxRetries :: Maybe Int
maxCapacity :: Maybe Double
logUri :: Maybe Text
glueVersion :: Maybe Text
executionProperty :: Maybe ExecutionProperty
executionClass :: Maybe ExecutionClass
description :: Maybe Text
defaultArguments :: Maybe (HashMap Text Text)
connections :: Maybe ConnectionsList
command :: Maybe JobCommand
codeGenConfigurationNodes :: Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
allocatedCapacity :: Maybe Int
$sel:workerType:JobUpdate' :: JobUpdate -> Maybe WorkerType
$sel:timeout:JobUpdate' :: JobUpdate -> Maybe Natural
$sel:sourceControlDetails:JobUpdate' :: JobUpdate -> Maybe SourceControlDetails
$sel:securityConfiguration:JobUpdate' :: JobUpdate -> Maybe Text
$sel:role':JobUpdate' :: JobUpdate -> Maybe Text
$sel:numberOfWorkers:JobUpdate' :: JobUpdate -> Maybe Int
$sel:notificationProperty:JobUpdate' :: JobUpdate -> Maybe NotificationProperty
$sel:nonOverridableArguments:JobUpdate' :: JobUpdate -> Maybe (HashMap Text Text)
$sel:maxRetries:JobUpdate' :: JobUpdate -> Maybe Int
$sel:maxCapacity:JobUpdate' :: JobUpdate -> Maybe Double
$sel:logUri:JobUpdate' :: JobUpdate -> Maybe Text
$sel:glueVersion:JobUpdate' :: JobUpdate -> Maybe Text
$sel:executionProperty:JobUpdate' :: JobUpdate -> Maybe ExecutionProperty
$sel:executionClass:JobUpdate' :: JobUpdate -> Maybe ExecutionClass
$sel:description:JobUpdate' :: JobUpdate -> Maybe Text
$sel:defaultArguments:JobUpdate' :: JobUpdate -> Maybe (HashMap Text Text)
$sel:connections:JobUpdate' :: JobUpdate -> Maybe ConnectionsList
$sel:command:JobUpdate' :: JobUpdate -> Maybe JobCommand
$sel:codeGenConfigurationNodes:JobUpdate' :: JobUpdate
-> Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
$sel:allocatedCapacity:JobUpdate' :: JobUpdate -> Maybe Int
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
allocatedCapacity
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
codeGenConfigurationNodes
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe JobCommand
command
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ConnectionsList
connections
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
defaultArguments
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ExecutionClass
executionClass
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ExecutionProperty
executionProperty
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
glueVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
logUri
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
maxCapacity
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
maxRetries
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
nonOverridableArguments
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe NotificationProperty
notificationProperty
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
numberOfWorkers
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
role'
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
securityConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SourceControlDetails
sourceControlDetails
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
timeout
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe WorkerType
workerType
instance Data.ToJSON JobUpdate where
toJSON :: JobUpdate -> Value
toJSON JobUpdate' {Maybe Double
Maybe Int
Maybe Natural
Maybe Text
Maybe (HashMap Text Text)
Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
Maybe ConnectionsList
Maybe ExecutionClass
Maybe ExecutionProperty
Maybe JobCommand
Maybe NotificationProperty
Maybe SourceControlDetails
Maybe WorkerType
workerType :: Maybe WorkerType
timeout :: Maybe Natural
sourceControlDetails :: Maybe SourceControlDetails
securityConfiguration :: Maybe Text
role' :: Maybe Text
numberOfWorkers :: Maybe Int
notificationProperty :: Maybe NotificationProperty
nonOverridableArguments :: Maybe (HashMap Text Text)
maxRetries :: Maybe Int
maxCapacity :: Maybe Double
logUri :: Maybe Text
glueVersion :: Maybe Text
executionProperty :: Maybe ExecutionProperty
executionClass :: Maybe ExecutionClass
description :: Maybe Text
defaultArguments :: Maybe (HashMap Text Text)
connections :: Maybe ConnectionsList
command :: Maybe JobCommand
codeGenConfigurationNodes :: Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
allocatedCapacity :: Maybe Int
$sel:workerType:JobUpdate' :: JobUpdate -> Maybe WorkerType
$sel:timeout:JobUpdate' :: JobUpdate -> Maybe Natural
$sel:sourceControlDetails:JobUpdate' :: JobUpdate -> Maybe SourceControlDetails
$sel:securityConfiguration:JobUpdate' :: JobUpdate -> Maybe Text
$sel:role':JobUpdate' :: JobUpdate -> Maybe Text
$sel:numberOfWorkers:JobUpdate' :: JobUpdate -> Maybe Int
$sel:notificationProperty:JobUpdate' :: JobUpdate -> Maybe NotificationProperty
$sel:nonOverridableArguments:JobUpdate' :: JobUpdate -> Maybe (HashMap Text Text)
$sel:maxRetries:JobUpdate' :: JobUpdate -> Maybe Int
$sel:maxCapacity:JobUpdate' :: JobUpdate -> Maybe Double
$sel:logUri:JobUpdate' :: JobUpdate -> Maybe Text
$sel:glueVersion:JobUpdate' :: JobUpdate -> Maybe Text
$sel:executionProperty:JobUpdate' :: JobUpdate -> Maybe ExecutionProperty
$sel:executionClass:JobUpdate' :: JobUpdate -> Maybe ExecutionClass
$sel:description:JobUpdate' :: JobUpdate -> Maybe Text
$sel:defaultArguments:JobUpdate' :: JobUpdate -> Maybe (HashMap Text Text)
$sel:connections:JobUpdate' :: JobUpdate -> Maybe ConnectionsList
$sel:command:JobUpdate' :: JobUpdate -> Maybe JobCommand
$sel:codeGenConfigurationNodes:JobUpdate' :: JobUpdate
-> Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
$sel:allocatedCapacity:JobUpdate' :: JobUpdate -> Maybe Int
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"AllocatedCapacity" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
allocatedCapacity,
(Key
"CodeGenConfigurationNodes" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive (HashMap Text CodeGenConfigurationNode))
codeGenConfigurationNodes,
(Key
"Command" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe JobCommand
command,
(Key
"Connections" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConnectionsList
connections,
(Key
"DefaultArguments" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
defaultArguments,
(Key
"Description" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
description,
(Key
"ExecutionClass" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ExecutionClass
executionClass,
(Key
"ExecutionProperty" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ExecutionProperty
executionProperty,
(Key
"GlueVersion" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
glueVersion,
(Key
"LogUri" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
logUri,
(Key
"MaxCapacity" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Double
maxCapacity,
(Key
"MaxRetries" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxRetries,
(Key
"NonOverridableArguments" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
nonOverridableArguments,
(Key
"NotificationProperty" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NotificationProperty
notificationProperty,
(Key
"NumberOfWorkers" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
numberOfWorkers,
(Key
"Role" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
role',
(Key
"SecurityConfiguration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
securityConfiguration,
(Key
"SourceControlDetails" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SourceControlDetails
sourceControlDetails,
(Key
"Timeout" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
timeout,
(Key
"WorkerType" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe WorkerType
workerType
]
)