{-# 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.AppConfig.Types.Deployment where
import Amazonka.AppConfig.Types.DeploymentEvent
import Amazonka.AppConfig.Types.DeploymentState
import Amazonka.AppConfig.Types.GrowthType
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data Deployment = Deployment'
{
Deployment -> Maybe Double
growthFactor :: Prelude.Maybe Prelude.Double,
Deployment -> Maybe Text
configurationName :: Prelude.Maybe Prelude.Text,
Deployment -> Maybe DeploymentState
state :: Prelude.Maybe DeploymentState,
Deployment -> Maybe Text
deploymentStrategyId :: Prelude.Maybe Prelude.Text,
Deployment -> Maybe Int
deploymentNumber :: Prelude.Maybe Prelude.Int,
Deployment -> Maybe Text
configurationVersion :: Prelude.Maybe Prelude.Text,
Deployment -> Maybe [DeploymentEvent]
eventLog :: Prelude.Maybe [DeploymentEvent],
Deployment -> Maybe Double
percentageComplete :: Prelude.Maybe Prelude.Double,
Deployment -> Maybe POSIX
startedAt :: Prelude.Maybe Core.POSIX,
Deployment -> Maybe Text
applicationId :: Prelude.Maybe Prelude.Text,
Deployment -> Maybe Natural
deploymentDurationInMinutes :: Prelude.Maybe Prelude.Natural,
Deployment -> Maybe Text
environmentId :: Prelude.Maybe Prelude.Text,
Deployment -> Maybe POSIX
completedAt :: Prelude.Maybe Core.POSIX,
Deployment -> Maybe Text
configurationLocationUri :: Prelude.Maybe Prelude.Text,
Deployment -> Maybe Natural
finalBakeTimeInMinutes :: Prelude.Maybe Prelude.Natural,
Deployment -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
Deployment -> Maybe Text
configurationProfileId :: Prelude.Maybe Prelude.Text,
Deployment -> Maybe GrowthType
growthType :: Prelude.Maybe GrowthType
}
deriving (Deployment -> Deployment -> Bool
(Deployment -> Deployment -> Bool)
-> (Deployment -> Deployment -> Bool) -> Eq Deployment
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Deployment -> Deployment -> Bool
$c/= :: Deployment -> Deployment -> Bool
== :: Deployment -> Deployment -> Bool
$c== :: Deployment -> Deployment -> Bool
Prelude.Eq, ReadPrec [Deployment]
ReadPrec Deployment
Int -> ReadS Deployment
ReadS [Deployment]
(Int -> ReadS Deployment)
-> ReadS [Deployment]
-> ReadPrec Deployment
-> ReadPrec [Deployment]
-> Read Deployment
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Deployment]
$creadListPrec :: ReadPrec [Deployment]
readPrec :: ReadPrec Deployment
$creadPrec :: ReadPrec Deployment
readList :: ReadS [Deployment]
$creadList :: ReadS [Deployment]
readsPrec :: Int -> ReadS Deployment
$creadsPrec :: Int -> ReadS Deployment
Prelude.Read, Int -> Deployment -> ShowS
[Deployment] -> ShowS
Deployment -> String
(Int -> Deployment -> ShowS)
-> (Deployment -> String)
-> ([Deployment] -> ShowS)
-> Show Deployment
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Deployment] -> ShowS
$cshowList :: [Deployment] -> ShowS
show :: Deployment -> String
$cshow :: Deployment -> String
showsPrec :: Int -> Deployment -> ShowS
$cshowsPrec :: Int -> Deployment -> ShowS
Prelude.Show, (forall x. Deployment -> Rep Deployment x)
-> (forall x. Rep Deployment x -> Deployment) -> Generic Deployment
forall x. Rep Deployment x -> Deployment
forall x. Deployment -> Rep Deployment x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Deployment x -> Deployment
$cfrom :: forall x. Deployment -> Rep Deployment x
Prelude.Generic)
newDeployment ::
Deployment
newDeployment :: Deployment
newDeployment =
Deployment' :: Maybe Double
-> Maybe Text
-> Maybe DeploymentState
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [DeploymentEvent]
-> Maybe Double
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment
Deployment'
{ $sel:growthFactor:Deployment' :: Maybe Double
growthFactor = Maybe Double
forall a. Maybe a
Prelude.Nothing,
$sel:configurationName:Deployment' :: Maybe Text
configurationName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:state:Deployment' :: Maybe DeploymentState
state = Maybe DeploymentState
forall a. Maybe a
Prelude.Nothing,
$sel:deploymentStrategyId:Deployment' :: Maybe Text
deploymentStrategyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:deploymentNumber:Deployment' :: Maybe Int
deploymentNumber = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:configurationVersion:Deployment' :: Maybe Text
configurationVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:eventLog:Deployment' :: Maybe [DeploymentEvent]
eventLog = Maybe [DeploymentEvent]
forall a. Maybe a
Prelude.Nothing,
$sel:percentageComplete:Deployment' :: Maybe Double
percentageComplete = Maybe Double
forall a. Maybe a
Prelude.Nothing,
$sel:startedAt:Deployment' :: Maybe POSIX
startedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:applicationId:Deployment' :: Maybe Text
applicationId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:deploymentDurationInMinutes:Deployment' :: Maybe Natural
deploymentDurationInMinutes = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:environmentId:Deployment' :: Maybe Text
environmentId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:completedAt:Deployment' :: Maybe POSIX
completedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:configurationLocationUri:Deployment' :: Maybe Text
configurationLocationUri = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:finalBakeTimeInMinutes:Deployment' :: Maybe Natural
finalBakeTimeInMinutes = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:description:Deployment' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:configurationProfileId:Deployment' :: Maybe Text
configurationProfileId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:growthType:Deployment' :: Maybe GrowthType
growthType = Maybe GrowthType
forall a. Maybe a
Prelude.Nothing
}
deployment_growthFactor :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Double)
deployment_growthFactor :: (Maybe Double -> f (Maybe Double)) -> Deployment -> f Deployment
deployment_growthFactor = (Deployment -> Maybe Double)
-> (Deployment -> Maybe Double -> Deployment)
-> Lens Deployment Deployment (Maybe Double) (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Double
growthFactor :: Maybe Double
$sel:growthFactor:Deployment' :: Deployment -> Maybe Double
growthFactor} -> Maybe Double
growthFactor) (\s :: Deployment
s@Deployment' {} Maybe Double
a -> Deployment
s {$sel:growthFactor:Deployment' :: Maybe Double
growthFactor = Maybe Double
a} :: Deployment)
deployment_configurationName :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Text)
deployment_configurationName :: (Maybe Text -> f (Maybe Text)) -> Deployment -> f Deployment
deployment_configurationName = (Deployment -> Maybe Text)
-> (Deployment -> Maybe Text -> Deployment)
-> Lens Deployment Deployment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Text
configurationName :: Maybe Text
$sel:configurationName:Deployment' :: Deployment -> Maybe Text
configurationName} -> Maybe Text
configurationName) (\s :: Deployment
s@Deployment' {} Maybe Text
a -> Deployment
s {$sel:configurationName:Deployment' :: Maybe Text
configurationName = Maybe Text
a} :: Deployment)
deployment_state :: Lens.Lens' Deployment (Prelude.Maybe DeploymentState)
deployment_state :: (Maybe DeploymentState -> f (Maybe DeploymentState))
-> Deployment -> f Deployment
deployment_state = (Deployment -> Maybe DeploymentState)
-> (Deployment -> Maybe DeploymentState -> Deployment)
-> Lens
Deployment
Deployment
(Maybe DeploymentState)
(Maybe DeploymentState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe DeploymentState
state :: Maybe DeploymentState
$sel:state:Deployment' :: Deployment -> Maybe DeploymentState
state} -> Maybe DeploymentState
state) (\s :: Deployment
s@Deployment' {} Maybe DeploymentState
a -> Deployment
s {$sel:state:Deployment' :: Maybe DeploymentState
state = Maybe DeploymentState
a} :: Deployment)
deployment_deploymentStrategyId :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Text)
deployment_deploymentStrategyId :: (Maybe Text -> f (Maybe Text)) -> Deployment -> f Deployment
deployment_deploymentStrategyId = (Deployment -> Maybe Text)
-> (Deployment -> Maybe Text -> Deployment)
-> Lens Deployment Deployment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Text
deploymentStrategyId :: Maybe Text
$sel:deploymentStrategyId:Deployment' :: Deployment -> Maybe Text
deploymentStrategyId} -> Maybe Text
deploymentStrategyId) (\s :: Deployment
s@Deployment' {} Maybe Text
a -> Deployment
s {$sel:deploymentStrategyId:Deployment' :: Maybe Text
deploymentStrategyId = Maybe Text
a} :: Deployment)
deployment_deploymentNumber :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Int)
deployment_deploymentNumber :: (Maybe Int -> f (Maybe Int)) -> Deployment -> f Deployment
deployment_deploymentNumber = (Deployment -> Maybe Int)
-> (Deployment -> Maybe Int -> Deployment)
-> Lens Deployment Deployment (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Int
deploymentNumber :: Maybe Int
$sel:deploymentNumber:Deployment' :: Deployment -> Maybe Int
deploymentNumber} -> Maybe Int
deploymentNumber) (\s :: Deployment
s@Deployment' {} Maybe Int
a -> Deployment
s {$sel:deploymentNumber:Deployment' :: Maybe Int
deploymentNumber = Maybe Int
a} :: Deployment)
deployment_configurationVersion :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Text)
deployment_configurationVersion :: (Maybe Text -> f (Maybe Text)) -> Deployment -> f Deployment
deployment_configurationVersion = (Deployment -> Maybe Text)
-> (Deployment -> Maybe Text -> Deployment)
-> Lens Deployment Deployment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Text
configurationVersion :: Maybe Text
$sel:configurationVersion:Deployment' :: Deployment -> Maybe Text
configurationVersion} -> Maybe Text
configurationVersion) (\s :: Deployment
s@Deployment' {} Maybe Text
a -> Deployment
s {$sel:configurationVersion:Deployment' :: Maybe Text
configurationVersion = Maybe Text
a} :: Deployment)
deployment_eventLog :: Lens.Lens' Deployment (Prelude.Maybe [DeploymentEvent])
deployment_eventLog :: (Maybe [DeploymentEvent] -> f (Maybe [DeploymentEvent]))
-> Deployment -> f Deployment
deployment_eventLog = (Deployment -> Maybe [DeploymentEvent])
-> (Deployment -> Maybe [DeploymentEvent] -> Deployment)
-> Lens
Deployment
Deployment
(Maybe [DeploymentEvent])
(Maybe [DeploymentEvent])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe [DeploymentEvent]
eventLog :: Maybe [DeploymentEvent]
$sel:eventLog:Deployment' :: Deployment -> Maybe [DeploymentEvent]
eventLog} -> Maybe [DeploymentEvent]
eventLog) (\s :: Deployment
s@Deployment' {} Maybe [DeploymentEvent]
a -> Deployment
s {$sel:eventLog:Deployment' :: Maybe [DeploymentEvent]
eventLog = Maybe [DeploymentEvent]
a} :: Deployment) ((Maybe [DeploymentEvent] -> f (Maybe [DeploymentEvent]))
-> Deployment -> f Deployment)
-> ((Maybe [DeploymentEvent] -> f (Maybe [DeploymentEvent]))
-> Maybe [DeploymentEvent] -> f (Maybe [DeploymentEvent]))
-> (Maybe [DeploymentEvent] -> f (Maybe [DeploymentEvent]))
-> Deployment
-> f Deployment
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[DeploymentEvent]
[DeploymentEvent]
[DeploymentEvent]
[DeploymentEvent]
-> Iso
(Maybe [DeploymentEvent])
(Maybe [DeploymentEvent])
(Maybe [DeploymentEvent])
(Maybe [DeploymentEvent])
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
[DeploymentEvent]
[DeploymentEvent]
[DeploymentEvent]
[DeploymentEvent]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
deployment_percentageComplete :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Double)
deployment_percentageComplete :: (Maybe Double -> f (Maybe Double)) -> Deployment -> f Deployment
deployment_percentageComplete = (Deployment -> Maybe Double)
-> (Deployment -> Maybe Double -> Deployment)
-> Lens Deployment Deployment (Maybe Double) (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Double
percentageComplete :: Maybe Double
$sel:percentageComplete:Deployment' :: Deployment -> Maybe Double
percentageComplete} -> Maybe Double
percentageComplete) (\s :: Deployment
s@Deployment' {} Maybe Double
a -> Deployment
s {$sel:percentageComplete:Deployment' :: Maybe Double
percentageComplete = Maybe Double
a} :: Deployment)
deployment_startedAt :: Lens.Lens' Deployment (Prelude.Maybe Prelude.UTCTime)
deployment_startedAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Deployment -> f Deployment
deployment_startedAt = (Deployment -> Maybe POSIX)
-> (Deployment -> Maybe POSIX -> Deployment)
-> Lens Deployment Deployment (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe POSIX
startedAt :: Maybe POSIX
$sel:startedAt:Deployment' :: Deployment -> Maybe POSIX
startedAt} -> Maybe POSIX
startedAt) (\s :: Deployment
s@Deployment' {} Maybe POSIX
a -> Deployment
s {$sel:startedAt:Deployment' :: Maybe POSIX
startedAt = Maybe POSIX
a} :: Deployment) ((Maybe POSIX -> f (Maybe POSIX)) -> Deployment -> f Deployment)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Deployment
-> f Deployment
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
deployment_applicationId :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Text)
deployment_applicationId :: (Maybe Text -> f (Maybe Text)) -> Deployment -> f Deployment
deployment_applicationId = (Deployment -> Maybe Text)
-> (Deployment -> Maybe Text -> Deployment)
-> Lens Deployment Deployment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Text
applicationId :: Maybe Text
$sel:applicationId:Deployment' :: Deployment -> Maybe Text
applicationId} -> Maybe Text
applicationId) (\s :: Deployment
s@Deployment' {} Maybe Text
a -> Deployment
s {$sel:applicationId:Deployment' :: Maybe Text
applicationId = Maybe Text
a} :: Deployment)
deployment_deploymentDurationInMinutes :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Natural)
deployment_deploymentDurationInMinutes :: (Maybe Natural -> f (Maybe Natural)) -> Deployment -> f Deployment
deployment_deploymentDurationInMinutes = (Deployment -> Maybe Natural)
-> (Deployment -> Maybe Natural -> Deployment)
-> Lens Deployment Deployment (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Natural
deploymentDurationInMinutes :: Maybe Natural
$sel:deploymentDurationInMinutes:Deployment' :: Deployment -> Maybe Natural
deploymentDurationInMinutes} -> Maybe Natural
deploymentDurationInMinutes) (\s :: Deployment
s@Deployment' {} Maybe Natural
a -> Deployment
s {$sel:deploymentDurationInMinutes:Deployment' :: Maybe Natural
deploymentDurationInMinutes = Maybe Natural
a} :: Deployment)
deployment_environmentId :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Text)
deployment_environmentId :: (Maybe Text -> f (Maybe Text)) -> Deployment -> f Deployment
deployment_environmentId = (Deployment -> Maybe Text)
-> (Deployment -> Maybe Text -> Deployment)
-> Lens Deployment Deployment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Text
environmentId :: Maybe Text
$sel:environmentId:Deployment' :: Deployment -> Maybe Text
environmentId} -> Maybe Text
environmentId) (\s :: Deployment
s@Deployment' {} Maybe Text
a -> Deployment
s {$sel:environmentId:Deployment' :: Maybe Text
environmentId = Maybe Text
a} :: Deployment)
deployment_completedAt :: Lens.Lens' Deployment (Prelude.Maybe Prelude.UTCTime)
deployment_completedAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Deployment -> f Deployment
deployment_completedAt = (Deployment -> Maybe POSIX)
-> (Deployment -> Maybe POSIX -> Deployment)
-> Lens Deployment Deployment (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe POSIX
completedAt :: Maybe POSIX
$sel:completedAt:Deployment' :: Deployment -> Maybe POSIX
completedAt} -> Maybe POSIX
completedAt) (\s :: Deployment
s@Deployment' {} Maybe POSIX
a -> Deployment
s {$sel:completedAt:Deployment' :: Maybe POSIX
completedAt = Maybe POSIX
a} :: Deployment) ((Maybe POSIX -> f (Maybe POSIX)) -> Deployment -> f Deployment)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Deployment
-> f Deployment
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
deployment_configurationLocationUri :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Text)
deployment_configurationLocationUri :: (Maybe Text -> f (Maybe Text)) -> Deployment -> f Deployment
deployment_configurationLocationUri = (Deployment -> Maybe Text)
-> (Deployment -> Maybe Text -> Deployment)
-> Lens Deployment Deployment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Text
configurationLocationUri :: Maybe Text
$sel:configurationLocationUri:Deployment' :: Deployment -> Maybe Text
configurationLocationUri} -> Maybe Text
configurationLocationUri) (\s :: Deployment
s@Deployment' {} Maybe Text
a -> Deployment
s {$sel:configurationLocationUri:Deployment' :: Maybe Text
configurationLocationUri = Maybe Text
a} :: Deployment)
deployment_finalBakeTimeInMinutes :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Natural)
deployment_finalBakeTimeInMinutes :: (Maybe Natural -> f (Maybe Natural)) -> Deployment -> f Deployment
deployment_finalBakeTimeInMinutes = (Deployment -> Maybe Natural)
-> (Deployment -> Maybe Natural -> Deployment)
-> Lens Deployment Deployment (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Natural
finalBakeTimeInMinutes :: Maybe Natural
$sel:finalBakeTimeInMinutes:Deployment' :: Deployment -> Maybe Natural
finalBakeTimeInMinutes} -> Maybe Natural
finalBakeTimeInMinutes) (\s :: Deployment
s@Deployment' {} Maybe Natural
a -> Deployment
s {$sel:finalBakeTimeInMinutes:Deployment' :: Maybe Natural
finalBakeTimeInMinutes = Maybe Natural
a} :: Deployment)
deployment_description :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Text)
deployment_description :: (Maybe Text -> f (Maybe Text)) -> Deployment -> f Deployment
deployment_description = (Deployment -> Maybe Text)
-> (Deployment -> Maybe Text -> Deployment)
-> Lens Deployment Deployment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Text
description :: Maybe Text
$sel:description:Deployment' :: Deployment -> Maybe Text
description} -> Maybe Text
description) (\s :: Deployment
s@Deployment' {} Maybe Text
a -> Deployment
s {$sel:description:Deployment' :: Maybe Text
description = Maybe Text
a} :: Deployment)
deployment_configurationProfileId :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Text)
deployment_configurationProfileId :: (Maybe Text -> f (Maybe Text)) -> Deployment -> f Deployment
deployment_configurationProfileId = (Deployment -> Maybe Text)
-> (Deployment -> Maybe Text -> Deployment)
-> Lens Deployment Deployment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Text
configurationProfileId :: Maybe Text
$sel:configurationProfileId:Deployment' :: Deployment -> Maybe Text
configurationProfileId} -> Maybe Text
configurationProfileId) (\s :: Deployment
s@Deployment' {} Maybe Text
a -> Deployment
s {$sel:configurationProfileId:Deployment' :: Maybe Text
configurationProfileId = Maybe Text
a} :: Deployment)
deployment_growthType :: Lens.Lens' Deployment (Prelude.Maybe GrowthType)
deployment_growthType :: (Maybe GrowthType -> f (Maybe GrowthType))
-> Deployment -> f Deployment
deployment_growthType = (Deployment -> Maybe GrowthType)
-> (Deployment -> Maybe GrowthType -> Deployment)
-> Lens Deployment Deployment (Maybe GrowthType) (Maybe GrowthType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe GrowthType
growthType :: Maybe GrowthType
$sel:growthType:Deployment' :: Deployment -> Maybe GrowthType
growthType} -> Maybe GrowthType
growthType) (\s :: Deployment
s@Deployment' {} Maybe GrowthType
a -> Deployment
s {$sel:growthType:Deployment' :: Maybe GrowthType
growthType = Maybe GrowthType
a} :: Deployment)
instance Core.FromJSON Deployment where
parseJSON :: Value -> Parser Deployment
parseJSON =
String
-> (Object -> Parser Deployment) -> Value -> Parser Deployment
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"Deployment"
( \Object
x ->
Maybe Double
-> Maybe Text
-> Maybe DeploymentState
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [DeploymentEvent]
-> Maybe Double
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment
Deployment'
(Maybe Double
-> Maybe Text
-> Maybe DeploymentState
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [DeploymentEvent]
-> Maybe Double
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
-> Parser (Maybe Double)
-> Parser
(Maybe Text
-> Maybe DeploymentState
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [DeploymentEvent]
-> Maybe Double
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Double)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"GrowthFactor")
Parser
(Maybe Text
-> Maybe DeploymentState
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [DeploymentEvent]
-> Maybe Double
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
-> Parser (Maybe Text)
-> Parser
(Maybe DeploymentState
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [DeploymentEvent]
-> Maybe Double
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
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
"ConfigurationName")
Parser
(Maybe DeploymentState
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [DeploymentEvent]
-> Maybe Double
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
-> Parser (Maybe DeploymentState)
-> Parser
(Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [DeploymentEvent]
-> Maybe Double
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DeploymentState)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"State")
Parser
(Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [DeploymentEvent]
-> Maybe Double
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
-> Parser (Maybe Text)
-> Parser
(Maybe Int
-> Maybe Text
-> Maybe [DeploymentEvent]
-> Maybe Double
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
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
"DeploymentStrategyId")
Parser
(Maybe Int
-> Maybe Text
-> Maybe [DeploymentEvent]
-> Maybe Double
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
-> Parser (Maybe Int)
-> Parser
(Maybe Text
-> Maybe [DeploymentEvent]
-> Maybe Double
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DeploymentNumber")
Parser
(Maybe Text
-> Maybe [DeploymentEvent]
-> Maybe Double
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
-> Parser (Maybe Text)
-> Parser
(Maybe [DeploymentEvent]
-> Maybe Double
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
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
"ConfigurationVersion")
Parser
(Maybe [DeploymentEvent]
-> Maybe Double
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
-> Parser (Maybe [DeploymentEvent])
-> Parser
(Maybe Double
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [DeploymentEvent]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EventLog" Parser (Maybe (Maybe [DeploymentEvent]))
-> Maybe [DeploymentEvent] -> Parser (Maybe [DeploymentEvent])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [DeploymentEvent]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe Double
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
-> Parser (Maybe Double)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Double)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PercentageComplete")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"StartedAt")
Parser
(Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
-> Parser (Maybe Text)
-> Parser
(Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
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
"ApplicationId")
Parser
(Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
-> Parser (Maybe Natural)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
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
"DeploymentDurationInMinutes")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
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
"EnvironmentId")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CompletedAt")
Parser
(Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe GrowthType
-> Deployment)
-> Parser (Maybe Text)
-> Parser
(Maybe Natural
-> Maybe Text -> Maybe Text -> Maybe GrowthType -> Deployment)
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
"ConfigurationLocationUri")
Parser
(Maybe Natural
-> Maybe Text -> Maybe Text -> Maybe GrowthType -> Deployment)
-> Parser (Maybe Natural)
-> Parser
(Maybe Text -> Maybe Text -> Maybe GrowthType -> Deployment)
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
"FinalBakeTimeInMinutes")
Parser (Maybe Text -> Maybe Text -> Maybe GrowthType -> Deployment)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe GrowthType -> Deployment)
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
"Description")
Parser (Maybe Text -> Maybe GrowthType -> Deployment)
-> Parser (Maybe Text) -> Parser (Maybe GrowthType -> Deployment)
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
"ConfigurationProfileId")
Parser (Maybe GrowthType -> Deployment)
-> Parser (Maybe GrowthType) -> Parser Deployment
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe GrowthType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"GrowthType")
)
instance Prelude.Hashable Deployment
instance Prelude.NFData Deployment