{-# 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.OpsWorks.Types.Deployment
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.OpsWorks.Types.Deployment where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.OpsWorks.Types.DeploymentCommand
import qualified Amazonka.Prelude as Prelude

-- | Describes a deployment of a stack or app.
--
-- /See:/ 'newDeployment' smart constructor.
data Deployment = Deployment'
  { -- | The app ID.
    Deployment -> Maybe Text
appId :: Prelude.Maybe Prelude.Text,
    -- | Used to specify a stack or deployment command.
    Deployment -> Maybe DeploymentCommand
command :: Prelude.Maybe DeploymentCommand,
    -- | A user-defined comment.
    Deployment -> Maybe Text
comment :: Prelude.Maybe Prelude.Text,
    -- | Date when the deployment completed.
    Deployment -> Maybe Text
completedAt :: Prelude.Maybe Prelude.Text,
    -- | Date when the deployment was created.
    Deployment -> Maybe Text
createdAt :: Prelude.Maybe Prelude.Text,
    -- | A string that contains user-defined custom JSON. It can be used to
    -- override the corresponding default stack configuration attribute values
    -- for stack or to pass data to recipes. The string should be in the
    -- following format:
    --
    -- @\"{\\\"key1\\\": \\\"value1\\\", \\\"key2\\\": \\\"value2\\\",...}\"@
    --
    -- For more information on custom JSON, see
    -- <https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html Use Custom JSON to Modify the Stack Configuration Attributes>.
    Deployment -> Maybe Text
customJson :: Prelude.Maybe Prelude.Text,
    -- | The deployment ID.
    Deployment -> Maybe Text
deploymentId :: Prelude.Maybe Prelude.Text,
    -- | The deployment duration.
    Deployment -> Maybe Int
duration :: Prelude.Maybe Prelude.Int,
    -- | The user\'s IAM ARN.
    Deployment -> Maybe Text
iamUserArn :: Prelude.Maybe Prelude.Text,
    -- | The IDs of the target instances.
    Deployment -> Maybe [Text]
instanceIds :: Prelude.Maybe [Prelude.Text],
    -- | The stack ID.
    Deployment -> Maybe Text
stackId :: Prelude.Maybe Prelude.Text,
    -- | The deployment status:
    --
    -- -   running
    --
    -- -   successful
    --
    -- -   failed
    Deployment -> Maybe Text
status :: Prelude.Maybe Prelude.Text
  }
  deriving (Deployment -> Deployment -> Bool
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]
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
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. 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)

-- |
-- Create a value of 'Deployment' 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:
--
-- 'appId', 'deployment_appId' - The app ID.
--
-- 'command', 'deployment_command' - Used to specify a stack or deployment command.
--
-- 'comment', 'deployment_comment' - A user-defined comment.
--
-- 'completedAt', 'deployment_completedAt' - Date when the deployment completed.
--
-- 'createdAt', 'deployment_createdAt' - Date when the deployment was created.
--
-- 'customJson', 'deployment_customJson' - A string that contains user-defined custom JSON. It can be used to
-- override the corresponding default stack configuration attribute values
-- for stack or to pass data to recipes. The string should be in the
-- following format:
--
-- @\"{\\\"key1\\\": \\\"value1\\\", \\\"key2\\\": \\\"value2\\\",...}\"@
--
-- For more information on custom JSON, see
-- <https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html Use Custom JSON to Modify the Stack Configuration Attributes>.
--
-- 'deploymentId', 'deployment_deploymentId' - The deployment ID.
--
-- 'duration', 'deployment_duration' - The deployment duration.
--
-- 'iamUserArn', 'deployment_iamUserArn' - The user\'s IAM ARN.
--
-- 'instanceIds', 'deployment_instanceIds' - The IDs of the target instances.
--
-- 'stackId', 'deployment_stackId' - The stack ID.
--
-- 'status', 'deployment_status' - The deployment status:
--
-- -   running
--
-- -   successful
--
-- -   failed
newDeployment ::
  Deployment
newDeployment :: Deployment
newDeployment =
  Deployment'
    { $sel:appId:Deployment' :: Maybe Text
appId = forall a. Maybe a
Prelude.Nothing,
      $sel:command:Deployment' :: Maybe DeploymentCommand
command = forall a. Maybe a
Prelude.Nothing,
      $sel:comment:Deployment' :: Maybe Text
comment = forall a. Maybe a
Prelude.Nothing,
      $sel:completedAt:Deployment' :: Maybe Text
completedAt = forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:Deployment' :: Maybe Text
createdAt = forall a. Maybe a
Prelude.Nothing,
      $sel:customJson:Deployment' :: Maybe Text
customJson = forall a. Maybe a
Prelude.Nothing,
      $sel:deploymentId:Deployment' :: Maybe Text
deploymentId = forall a. Maybe a
Prelude.Nothing,
      $sel:duration:Deployment' :: Maybe Int
duration = forall a. Maybe a
Prelude.Nothing,
      $sel:iamUserArn:Deployment' :: Maybe Text
iamUserArn = forall a. Maybe a
Prelude.Nothing,
      $sel:instanceIds:Deployment' :: Maybe [Text]
instanceIds = forall a. Maybe a
Prelude.Nothing,
      $sel:stackId:Deployment' :: Maybe Text
stackId = forall a. Maybe a
Prelude.Nothing,
      $sel:status:Deployment' :: Maybe Text
status = forall a. Maybe a
Prelude.Nothing
    }

-- | The app ID.
deployment_appId :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Text)
deployment_appId :: Lens' Deployment (Maybe Text)
deployment_appId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Text
appId :: Maybe Text
$sel:appId:Deployment' :: Deployment -> Maybe Text
appId} -> Maybe Text
appId) (\s :: Deployment
s@Deployment' {} Maybe Text
a -> Deployment
s {$sel:appId:Deployment' :: Maybe Text
appId = Maybe Text
a} :: Deployment)

-- | Used to specify a stack or deployment command.
deployment_command :: Lens.Lens' Deployment (Prelude.Maybe DeploymentCommand)
deployment_command :: Lens' Deployment (Maybe DeploymentCommand)
deployment_command = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe DeploymentCommand
command :: Maybe DeploymentCommand
$sel:command:Deployment' :: Deployment -> Maybe DeploymentCommand
command} -> Maybe DeploymentCommand
command) (\s :: Deployment
s@Deployment' {} Maybe DeploymentCommand
a -> Deployment
s {$sel:command:Deployment' :: Maybe DeploymentCommand
command = Maybe DeploymentCommand
a} :: Deployment)

-- | A user-defined comment.
deployment_comment :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Text)
deployment_comment :: Lens' Deployment (Maybe Text)
deployment_comment = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Text
comment :: Maybe Text
$sel:comment:Deployment' :: Deployment -> Maybe Text
comment} -> Maybe Text
comment) (\s :: Deployment
s@Deployment' {} Maybe Text
a -> Deployment
s {$sel:comment:Deployment' :: Maybe Text
comment = Maybe Text
a} :: Deployment)

-- | Date when the deployment completed.
deployment_completedAt :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Text)
deployment_completedAt :: Lens' Deployment (Maybe Text)
deployment_completedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Text
completedAt :: Maybe Text
$sel:completedAt:Deployment' :: Deployment -> Maybe Text
completedAt} -> Maybe Text
completedAt) (\s :: Deployment
s@Deployment' {} Maybe Text
a -> Deployment
s {$sel:completedAt:Deployment' :: Maybe Text
completedAt = Maybe Text
a} :: Deployment)

-- | Date when the deployment was created.
deployment_createdAt :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Text)
deployment_createdAt :: Lens' Deployment (Maybe Text)
deployment_createdAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Text
createdAt :: Maybe Text
$sel:createdAt:Deployment' :: Deployment -> Maybe Text
createdAt} -> Maybe Text
createdAt) (\s :: Deployment
s@Deployment' {} Maybe Text
a -> Deployment
s {$sel:createdAt:Deployment' :: Maybe Text
createdAt = Maybe Text
a} :: Deployment)

-- | A string that contains user-defined custom JSON. It can be used to
-- override the corresponding default stack configuration attribute values
-- for stack or to pass data to recipes. The string should be in the
-- following format:
--
-- @\"{\\\"key1\\\": \\\"value1\\\", \\\"key2\\\": \\\"value2\\\",...}\"@
--
-- For more information on custom JSON, see
-- <https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html Use Custom JSON to Modify the Stack Configuration Attributes>.
deployment_customJson :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Text)
deployment_customJson :: Lens' Deployment (Maybe Text)
deployment_customJson = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Text
customJson :: Maybe Text
$sel:customJson:Deployment' :: Deployment -> Maybe Text
customJson} -> Maybe Text
customJson) (\s :: Deployment
s@Deployment' {} Maybe Text
a -> Deployment
s {$sel:customJson:Deployment' :: Maybe Text
customJson = Maybe Text
a} :: Deployment)

-- | The deployment ID.
deployment_deploymentId :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Text)
deployment_deploymentId :: Lens' Deployment (Maybe Text)
deployment_deploymentId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Text
deploymentId :: Maybe Text
$sel:deploymentId:Deployment' :: Deployment -> Maybe Text
deploymentId} -> Maybe Text
deploymentId) (\s :: Deployment
s@Deployment' {} Maybe Text
a -> Deployment
s {$sel:deploymentId:Deployment' :: Maybe Text
deploymentId = Maybe Text
a} :: Deployment)

-- | The deployment duration.
deployment_duration :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Int)
deployment_duration :: Lens' Deployment (Maybe Int)
deployment_duration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Int
duration :: Maybe Int
$sel:duration:Deployment' :: Deployment -> Maybe Int
duration} -> Maybe Int
duration) (\s :: Deployment
s@Deployment' {} Maybe Int
a -> Deployment
s {$sel:duration:Deployment' :: Maybe Int
duration = Maybe Int
a} :: Deployment)

-- | The user\'s IAM ARN.
deployment_iamUserArn :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Text)
deployment_iamUserArn :: Lens' Deployment (Maybe Text)
deployment_iamUserArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Text
iamUserArn :: Maybe Text
$sel:iamUserArn:Deployment' :: Deployment -> Maybe Text
iamUserArn} -> Maybe Text
iamUserArn) (\s :: Deployment
s@Deployment' {} Maybe Text
a -> Deployment
s {$sel:iamUserArn:Deployment' :: Maybe Text
iamUserArn = Maybe Text
a} :: Deployment)

-- | The IDs of the target instances.
deployment_instanceIds :: Lens.Lens' Deployment (Prelude.Maybe [Prelude.Text])
deployment_instanceIds :: Lens' Deployment (Maybe [Text])
deployment_instanceIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe [Text]
instanceIds :: Maybe [Text]
$sel:instanceIds:Deployment' :: Deployment -> Maybe [Text]
instanceIds} -> Maybe [Text]
instanceIds) (\s :: Deployment
s@Deployment' {} Maybe [Text]
a -> Deployment
s {$sel:instanceIds:Deployment' :: Maybe [Text]
instanceIds = Maybe [Text]
a} :: Deployment) 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

-- | The stack ID.
deployment_stackId :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Text)
deployment_stackId :: Lens' Deployment (Maybe Text)
deployment_stackId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Text
stackId :: Maybe Text
$sel:stackId:Deployment' :: Deployment -> Maybe Text
stackId} -> Maybe Text
stackId) (\s :: Deployment
s@Deployment' {} Maybe Text
a -> Deployment
s {$sel:stackId:Deployment' :: Maybe Text
stackId = Maybe Text
a} :: Deployment)

-- | The deployment status:
--
-- -   running
--
-- -   successful
--
-- -   failed
deployment_status :: Lens.Lens' Deployment (Prelude.Maybe Prelude.Text)
deployment_status :: Lens' Deployment (Maybe Text)
deployment_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Deployment' {Maybe Text
status :: Maybe Text
$sel:status:Deployment' :: Deployment -> Maybe Text
status} -> Maybe Text
status) (\s :: Deployment
s@Deployment' {} Maybe Text
a -> Deployment
s {$sel:status:Deployment' :: Maybe Text
status = Maybe Text
a} :: Deployment)

instance Data.FromJSON Deployment where
  parseJSON :: Value -> Parser Deployment
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"Deployment"
      ( \Object
x ->
          Maybe Text
-> Maybe DeploymentCommand
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Deployment
Deployment'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AppId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Command")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Comment")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CompletedAt")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CreatedAt")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CustomJson")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DeploymentId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Duration")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"IamUserArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"InstanceIds" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"StackId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Status")
      )

instance Prelude.Hashable Deployment where
  hashWithSalt :: Int -> Deployment -> Int
hashWithSalt Int
_salt Deployment' {Maybe Int
Maybe [Text]
Maybe Text
Maybe DeploymentCommand
status :: Maybe Text
stackId :: Maybe Text
instanceIds :: Maybe [Text]
iamUserArn :: Maybe Text
duration :: Maybe Int
deploymentId :: Maybe Text
customJson :: Maybe Text
createdAt :: Maybe Text
completedAt :: Maybe Text
comment :: Maybe Text
command :: Maybe DeploymentCommand
appId :: Maybe Text
$sel:status:Deployment' :: Deployment -> Maybe Text
$sel:stackId:Deployment' :: Deployment -> Maybe Text
$sel:instanceIds:Deployment' :: Deployment -> Maybe [Text]
$sel:iamUserArn:Deployment' :: Deployment -> Maybe Text
$sel:duration:Deployment' :: Deployment -> Maybe Int
$sel:deploymentId:Deployment' :: Deployment -> Maybe Text
$sel:customJson:Deployment' :: Deployment -> Maybe Text
$sel:createdAt:Deployment' :: Deployment -> Maybe Text
$sel:completedAt:Deployment' :: Deployment -> Maybe Text
$sel:comment:Deployment' :: Deployment -> Maybe Text
$sel:command:Deployment' :: Deployment -> Maybe DeploymentCommand
$sel:appId:Deployment' :: Deployment -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
appId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DeploymentCommand
command
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
comment
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
completedAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
createdAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
customJson
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
deploymentId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
duration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
iamUserArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
instanceIds
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
stackId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
status

instance Prelude.NFData Deployment where
  rnf :: Deployment -> ()
rnf Deployment' {Maybe Int
Maybe [Text]
Maybe Text
Maybe DeploymentCommand
status :: Maybe Text
stackId :: Maybe Text
instanceIds :: Maybe [Text]
iamUserArn :: Maybe Text
duration :: Maybe Int
deploymentId :: Maybe Text
customJson :: Maybe Text
createdAt :: Maybe Text
completedAt :: Maybe Text
comment :: Maybe Text
command :: Maybe DeploymentCommand
appId :: Maybe Text
$sel:status:Deployment' :: Deployment -> Maybe Text
$sel:stackId:Deployment' :: Deployment -> Maybe Text
$sel:instanceIds:Deployment' :: Deployment -> Maybe [Text]
$sel:iamUserArn:Deployment' :: Deployment -> Maybe Text
$sel:duration:Deployment' :: Deployment -> Maybe Int
$sel:deploymentId:Deployment' :: Deployment -> Maybe Text
$sel:customJson:Deployment' :: Deployment -> Maybe Text
$sel:createdAt:Deployment' :: Deployment -> Maybe Text
$sel:completedAt:Deployment' :: Deployment -> Maybe Text
$sel:comment:Deployment' :: Deployment -> Maybe Text
$sel:command:Deployment' :: Deployment -> Maybe DeploymentCommand
$sel:appId:Deployment' :: Deployment -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
appId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DeploymentCommand
command
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
comment
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
completedAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
createdAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
customJson
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
deploymentId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
duration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
iamUserArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
instanceIds
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
stackId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
status