{-# 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.GreengrassV2.Types.EffectiveDeployment
-- 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.GreengrassV2.Types.EffectiveDeployment where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.GreengrassV2.Types.EffectiveDeploymentExecutionStatus
import Amazonka.GreengrassV2.Types.EffectiveDeploymentStatusDetails
import qualified Amazonka.Prelude as Prelude

-- | Contains information about a deployment job that IoT Greengrass sends to
-- a Greengrass core device.
--
-- /See:/ 'newEffectiveDeployment' smart constructor.
data EffectiveDeployment = EffectiveDeployment'
  { -- | The description of the deployment job.
    EffectiveDeployment -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The
    -- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html ARN>
    -- of the IoT job that applies the deployment to target devices.
    EffectiveDeployment -> Maybe Text
iotJobArn :: Prelude.Maybe Prelude.Text,
    -- | The ID of the IoT job that applies the deployment to target devices.
    EffectiveDeployment -> Maybe Text
iotJobId :: Prelude.Maybe Prelude.Text,
    -- | The reason code for the update, if the job was updated.
    EffectiveDeployment -> Maybe Text
reason :: Prelude.Maybe Prelude.Text,
    -- | The status details that explain why a deployment has an error. This
    -- response will be null if the deployment is in a success state.
    EffectiveDeployment -> Maybe EffectiveDeploymentStatusDetails
statusDetails :: Prelude.Maybe EffectiveDeploymentStatusDetails,
    -- | The ID of the deployment.
    EffectiveDeployment -> Text
deploymentId :: Prelude.Text,
    -- | The name of the deployment.
    EffectiveDeployment -> Text
deploymentName :: Prelude.Text,
    -- | The
    -- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html ARN>
    -- of the target IoT thing or thing group.
    EffectiveDeployment -> Text
targetArn :: Prelude.Text,
    -- | The status of the deployment job on the Greengrass core device.
    EffectiveDeployment -> EffectiveDeploymentExecutionStatus
coreDeviceExecutionStatus :: EffectiveDeploymentExecutionStatus,
    -- | The time at which the deployment was created, expressed in ISO 8601
    -- format.
    EffectiveDeployment -> POSIX
creationTimestamp :: Data.POSIX,
    -- | The time at which the deployment job was last modified, expressed in ISO
    -- 8601 format.
    EffectiveDeployment -> POSIX
modifiedTimestamp :: Data.POSIX
  }
  deriving (EffectiveDeployment -> EffectiveDeployment -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EffectiveDeployment -> EffectiveDeployment -> Bool
$c/= :: EffectiveDeployment -> EffectiveDeployment -> Bool
== :: EffectiveDeployment -> EffectiveDeployment -> Bool
$c== :: EffectiveDeployment -> EffectiveDeployment -> Bool
Prelude.Eq, ReadPrec [EffectiveDeployment]
ReadPrec EffectiveDeployment
Int -> ReadS EffectiveDeployment
ReadS [EffectiveDeployment]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EffectiveDeployment]
$creadListPrec :: ReadPrec [EffectiveDeployment]
readPrec :: ReadPrec EffectiveDeployment
$creadPrec :: ReadPrec EffectiveDeployment
readList :: ReadS [EffectiveDeployment]
$creadList :: ReadS [EffectiveDeployment]
readsPrec :: Int -> ReadS EffectiveDeployment
$creadsPrec :: Int -> ReadS EffectiveDeployment
Prelude.Read, Int -> EffectiveDeployment -> ShowS
[EffectiveDeployment] -> ShowS
EffectiveDeployment -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EffectiveDeployment] -> ShowS
$cshowList :: [EffectiveDeployment] -> ShowS
show :: EffectiveDeployment -> String
$cshow :: EffectiveDeployment -> String
showsPrec :: Int -> EffectiveDeployment -> ShowS
$cshowsPrec :: Int -> EffectiveDeployment -> ShowS
Prelude.Show, forall x. Rep EffectiveDeployment x -> EffectiveDeployment
forall x. EffectiveDeployment -> Rep EffectiveDeployment x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EffectiveDeployment x -> EffectiveDeployment
$cfrom :: forall x. EffectiveDeployment -> Rep EffectiveDeployment x
Prelude.Generic)

-- |
-- Create a value of 'EffectiveDeployment' 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:
--
-- 'description', 'effectiveDeployment_description' - The description of the deployment job.
--
-- 'iotJobArn', 'effectiveDeployment_iotJobArn' - The
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html ARN>
-- of the IoT job that applies the deployment to target devices.
--
-- 'iotJobId', 'effectiveDeployment_iotJobId' - The ID of the IoT job that applies the deployment to target devices.
--
-- 'reason', 'effectiveDeployment_reason' - The reason code for the update, if the job was updated.
--
-- 'statusDetails', 'effectiveDeployment_statusDetails' - The status details that explain why a deployment has an error. This
-- response will be null if the deployment is in a success state.
--
-- 'deploymentId', 'effectiveDeployment_deploymentId' - The ID of the deployment.
--
-- 'deploymentName', 'effectiveDeployment_deploymentName' - The name of the deployment.
--
-- 'targetArn', 'effectiveDeployment_targetArn' - The
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html ARN>
-- of the target IoT thing or thing group.
--
-- 'coreDeviceExecutionStatus', 'effectiveDeployment_coreDeviceExecutionStatus' - The status of the deployment job on the Greengrass core device.
--
-- 'creationTimestamp', 'effectiveDeployment_creationTimestamp' - The time at which the deployment was created, expressed in ISO 8601
-- format.
--
-- 'modifiedTimestamp', 'effectiveDeployment_modifiedTimestamp' - The time at which the deployment job was last modified, expressed in ISO
-- 8601 format.
newEffectiveDeployment ::
  -- | 'deploymentId'
  Prelude.Text ->
  -- | 'deploymentName'
  Prelude.Text ->
  -- | 'targetArn'
  Prelude.Text ->
  -- | 'coreDeviceExecutionStatus'
  EffectiveDeploymentExecutionStatus ->
  -- | 'creationTimestamp'
  Prelude.UTCTime ->
  -- | 'modifiedTimestamp'
  Prelude.UTCTime ->
  EffectiveDeployment
newEffectiveDeployment :: Text
-> Text
-> Text
-> EffectiveDeploymentExecutionStatus
-> UTCTime
-> UTCTime
-> EffectiveDeployment
newEffectiveDeployment
  Text
pDeploymentId_
  Text
pDeploymentName_
  Text
pTargetArn_
  EffectiveDeploymentExecutionStatus
pCoreDeviceExecutionStatus_
  UTCTime
pCreationTimestamp_
  UTCTime
pModifiedTimestamp_ =
    EffectiveDeployment'
      { $sel:description:EffectiveDeployment' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
        $sel:iotJobArn:EffectiveDeployment' :: Maybe Text
iotJobArn = forall a. Maybe a
Prelude.Nothing,
        $sel:iotJobId:EffectiveDeployment' :: Maybe Text
iotJobId = forall a. Maybe a
Prelude.Nothing,
        $sel:reason:EffectiveDeployment' :: Maybe Text
reason = forall a. Maybe a
Prelude.Nothing,
        $sel:statusDetails:EffectiveDeployment' :: Maybe EffectiveDeploymentStatusDetails
statusDetails = forall a. Maybe a
Prelude.Nothing,
        $sel:deploymentId:EffectiveDeployment' :: Text
deploymentId = Text
pDeploymentId_,
        $sel:deploymentName:EffectiveDeployment' :: Text
deploymentName = Text
pDeploymentName_,
        $sel:targetArn:EffectiveDeployment' :: Text
targetArn = Text
pTargetArn_,
        $sel:coreDeviceExecutionStatus:EffectiveDeployment' :: EffectiveDeploymentExecutionStatus
coreDeviceExecutionStatus =
          EffectiveDeploymentExecutionStatus
pCoreDeviceExecutionStatus_,
        $sel:creationTimestamp:EffectiveDeployment' :: POSIX
creationTimestamp =
          forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreationTimestamp_,
        $sel:modifiedTimestamp:EffectiveDeployment' :: POSIX
modifiedTimestamp =
          forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pModifiedTimestamp_
      }

-- | The description of the deployment job.
effectiveDeployment_description :: Lens.Lens' EffectiveDeployment (Prelude.Maybe Prelude.Text)
effectiveDeployment_description :: Lens' EffectiveDeployment (Maybe Text)
effectiveDeployment_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EffectiveDeployment' {Maybe Text
description :: Maybe Text
$sel:description:EffectiveDeployment' :: EffectiveDeployment -> Maybe Text
description} -> Maybe Text
description) (\s :: EffectiveDeployment
s@EffectiveDeployment' {} Maybe Text
a -> EffectiveDeployment
s {$sel:description:EffectiveDeployment' :: Maybe Text
description = Maybe Text
a} :: EffectiveDeployment)

-- | The
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html ARN>
-- of the IoT job that applies the deployment to target devices.
effectiveDeployment_iotJobArn :: Lens.Lens' EffectiveDeployment (Prelude.Maybe Prelude.Text)
effectiveDeployment_iotJobArn :: Lens' EffectiveDeployment (Maybe Text)
effectiveDeployment_iotJobArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EffectiveDeployment' {Maybe Text
iotJobArn :: Maybe Text
$sel:iotJobArn:EffectiveDeployment' :: EffectiveDeployment -> Maybe Text
iotJobArn} -> Maybe Text
iotJobArn) (\s :: EffectiveDeployment
s@EffectiveDeployment' {} Maybe Text
a -> EffectiveDeployment
s {$sel:iotJobArn:EffectiveDeployment' :: Maybe Text
iotJobArn = Maybe Text
a} :: EffectiveDeployment)

-- | The ID of the IoT job that applies the deployment to target devices.
effectiveDeployment_iotJobId :: Lens.Lens' EffectiveDeployment (Prelude.Maybe Prelude.Text)
effectiveDeployment_iotJobId :: Lens' EffectiveDeployment (Maybe Text)
effectiveDeployment_iotJobId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EffectiveDeployment' {Maybe Text
iotJobId :: Maybe Text
$sel:iotJobId:EffectiveDeployment' :: EffectiveDeployment -> Maybe Text
iotJobId} -> Maybe Text
iotJobId) (\s :: EffectiveDeployment
s@EffectiveDeployment' {} Maybe Text
a -> EffectiveDeployment
s {$sel:iotJobId:EffectiveDeployment' :: Maybe Text
iotJobId = Maybe Text
a} :: EffectiveDeployment)

-- | The reason code for the update, if the job was updated.
effectiveDeployment_reason :: Lens.Lens' EffectiveDeployment (Prelude.Maybe Prelude.Text)
effectiveDeployment_reason :: Lens' EffectiveDeployment (Maybe Text)
effectiveDeployment_reason = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EffectiveDeployment' {Maybe Text
reason :: Maybe Text
$sel:reason:EffectiveDeployment' :: EffectiveDeployment -> Maybe Text
reason} -> Maybe Text
reason) (\s :: EffectiveDeployment
s@EffectiveDeployment' {} Maybe Text
a -> EffectiveDeployment
s {$sel:reason:EffectiveDeployment' :: Maybe Text
reason = Maybe Text
a} :: EffectiveDeployment)

-- | The status details that explain why a deployment has an error. This
-- response will be null if the deployment is in a success state.
effectiveDeployment_statusDetails :: Lens.Lens' EffectiveDeployment (Prelude.Maybe EffectiveDeploymentStatusDetails)
effectiveDeployment_statusDetails :: Lens' EffectiveDeployment (Maybe EffectiveDeploymentStatusDetails)
effectiveDeployment_statusDetails = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EffectiveDeployment' {Maybe EffectiveDeploymentStatusDetails
statusDetails :: Maybe EffectiveDeploymentStatusDetails
$sel:statusDetails:EffectiveDeployment' :: EffectiveDeployment -> Maybe EffectiveDeploymentStatusDetails
statusDetails} -> Maybe EffectiveDeploymentStatusDetails
statusDetails) (\s :: EffectiveDeployment
s@EffectiveDeployment' {} Maybe EffectiveDeploymentStatusDetails
a -> EffectiveDeployment
s {$sel:statusDetails:EffectiveDeployment' :: Maybe EffectiveDeploymentStatusDetails
statusDetails = Maybe EffectiveDeploymentStatusDetails
a} :: EffectiveDeployment)

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

-- | The name of the deployment.
effectiveDeployment_deploymentName :: Lens.Lens' EffectiveDeployment Prelude.Text
effectiveDeployment_deploymentName :: Lens' EffectiveDeployment Text
effectiveDeployment_deploymentName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EffectiveDeployment' {Text
deploymentName :: Text
$sel:deploymentName:EffectiveDeployment' :: EffectiveDeployment -> Text
deploymentName} -> Text
deploymentName) (\s :: EffectiveDeployment
s@EffectiveDeployment' {} Text
a -> EffectiveDeployment
s {$sel:deploymentName:EffectiveDeployment' :: Text
deploymentName = Text
a} :: EffectiveDeployment)

-- | The
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html ARN>
-- of the target IoT thing or thing group.
effectiveDeployment_targetArn :: Lens.Lens' EffectiveDeployment Prelude.Text
effectiveDeployment_targetArn :: Lens' EffectiveDeployment Text
effectiveDeployment_targetArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EffectiveDeployment' {Text
targetArn :: Text
$sel:targetArn:EffectiveDeployment' :: EffectiveDeployment -> Text
targetArn} -> Text
targetArn) (\s :: EffectiveDeployment
s@EffectiveDeployment' {} Text
a -> EffectiveDeployment
s {$sel:targetArn:EffectiveDeployment' :: Text
targetArn = Text
a} :: EffectiveDeployment)

-- | The status of the deployment job on the Greengrass core device.
effectiveDeployment_coreDeviceExecutionStatus :: Lens.Lens' EffectiveDeployment EffectiveDeploymentExecutionStatus
effectiveDeployment_coreDeviceExecutionStatus :: Lens' EffectiveDeployment EffectiveDeploymentExecutionStatus
effectiveDeployment_coreDeviceExecutionStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EffectiveDeployment' {EffectiveDeploymentExecutionStatus
coreDeviceExecutionStatus :: EffectiveDeploymentExecutionStatus
$sel:coreDeviceExecutionStatus:EffectiveDeployment' :: EffectiveDeployment -> EffectiveDeploymentExecutionStatus
coreDeviceExecutionStatus} -> EffectiveDeploymentExecutionStatus
coreDeviceExecutionStatus) (\s :: EffectiveDeployment
s@EffectiveDeployment' {} EffectiveDeploymentExecutionStatus
a -> EffectiveDeployment
s {$sel:coreDeviceExecutionStatus:EffectiveDeployment' :: EffectiveDeploymentExecutionStatus
coreDeviceExecutionStatus = EffectiveDeploymentExecutionStatus
a} :: EffectiveDeployment)

-- | The time at which the deployment was created, expressed in ISO 8601
-- format.
effectiveDeployment_creationTimestamp :: Lens.Lens' EffectiveDeployment Prelude.UTCTime
effectiveDeployment_creationTimestamp :: Lens' EffectiveDeployment UTCTime
effectiveDeployment_creationTimestamp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EffectiveDeployment' {POSIX
creationTimestamp :: POSIX
$sel:creationTimestamp:EffectiveDeployment' :: EffectiveDeployment -> POSIX
creationTimestamp} -> POSIX
creationTimestamp) (\s :: EffectiveDeployment
s@EffectiveDeployment' {} POSIX
a -> EffectiveDeployment
s {$sel:creationTimestamp:EffectiveDeployment' :: POSIX
creationTimestamp = POSIX
a} :: EffectiveDeployment) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The time at which the deployment job was last modified, expressed in ISO
-- 8601 format.
effectiveDeployment_modifiedTimestamp :: Lens.Lens' EffectiveDeployment Prelude.UTCTime
effectiveDeployment_modifiedTimestamp :: Lens' EffectiveDeployment UTCTime
effectiveDeployment_modifiedTimestamp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EffectiveDeployment' {POSIX
modifiedTimestamp :: POSIX
$sel:modifiedTimestamp:EffectiveDeployment' :: EffectiveDeployment -> POSIX
modifiedTimestamp} -> POSIX
modifiedTimestamp) (\s :: EffectiveDeployment
s@EffectiveDeployment' {} POSIX
a -> EffectiveDeployment
s {$sel:modifiedTimestamp:EffectiveDeployment' :: POSIX
modifiedTimestamp = POSIX
a} :: EffectiveDeployment) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

instance Data.FromJSON EffectiveDeployment where
  parseJSON :: Value -> Parser EffectiveDeployment
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"EffectiveDeployment"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EffectiveDeploymentStatusDetails
-> Text
-> Text
-> Text
-> EffectiveDeploymentExecutionStatus
-> POSIX
-> POSIX
-> EffectiveDeployment
EffectiveDeployment'
            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
"description")
            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
"iotJobArn")
            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
"iotJobId")
            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
"reason")
            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
"statusDetails")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser 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 a
Data..: Key
"deploymentName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"targetArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"coreDeviceExecutionStatus")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"creationTimestamp")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"modifiedTimestamp")
      )

instance Prelude.Hashable EffectiveDeployment where
  hashWithSalt :: Int -> EffectiveDeployment -> Int
hashWithSalt Int
_salt EffectiveDeployment' {Maybe Text
Maybe EffectiveDeploymentStatusDetails
Text
POSIX
EffectiveDeploymentExecutionStatus
modifiedTimestamp :: POSIX
creationTimestamp :: POSIX
coreDeviceExecutionStatus :: EffectiveDeploymentExecutionStatus
targetArn :: Text
deploymentName :: Text
deploymentId :: Text
statusDetails :: Maybe EffectiveDeploymentStatusDetails
reason :: Maybe Text
iotJobId :: Maybe Text
iotJobArn :: Maybe Text
description :: Maybe Text
$sel:modifiedTimestamp:EffectiveDeployment' :: EffectiveDeployment -> POSIX
$sel:creationTimestamp:EffectiveDeployment' :: EffectiveDeployment -> POSIX
$sel:coreDeviceExecutionStatus:EffectiveDeployment' :: EffectiveDeployment -> EffectiveDeploymentExecutionStatus
$sel:targetArn:EffectiveDeployment' :: EffectiveDeployment -> Text
$sel:deploymentName:EffectiveDeployment' :: EffectiveDeployment -> Text
$sel:deploymentId:EffectiveDeployment' :: EffectiveDeployment -> Text
$sel:statusDetails:EffectiveDeployment' :: EffectiveDeployment -> Maybe EffectiveDeploymentStatusDetails
$sel:reason:EffectiveDeployment' :: EffectiveDeployment -> Maybe Text
$sel:iotJobId:EffectiveDeployment' :: EffectiveDeployment -> Maybe Text
$sel:iotJobArn:EffectiveDeployment' :: EffectiveDeployment -> Maybe Text
$sel:description:EffectiveDeployment' :: EffectiveDeployment -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
iotJobArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
iotJobId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
reason
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe EffectiveDeploymentStatusDetails
statusDetails
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
deploymentId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
deploymentName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
targetArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` EffectiveDeploymentExecutionStatus
coreDeviceExecutionStatus
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
creationTimestamp
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
modifiedTimestamp

instance Prelude.NFData EffectiveDeployment where
  rnf :: EffectiveDeployment -> ()
rnf EffectiveDeployment' {Maybe Text
Maybe EffectiveDeploymentStatusDetails
Text
POSIX
EffectiveDeploymentExecutionStatus
modifiedTimestamp :: POSIX
creationTimestamp :: POSIX
coreDeviceExecutionStatus :: EffectiveDeploymentExecutionStatus
targetArn :: Text
deploymentName :: Text
deploymentId :: Text
statusDetails :: Maybe EffectiveDeploymentStatusDetails
reason :: Maybe Text
iotJobId :: Maybe Text
iotJobArn :: Maybe Text
description :: Maybe Text
$sel:modifiedTimestamp:EffectiveDeployment' :: EffectiveDeployment -> POSIX
$sel:creationTimestamp:EffectiveDeployment' :: EffectiveDeployment -> POSIX
$sel:coreDeviceExecutionStatus:EffectiveDeployment' :: EffectiveDeployment -> EffectiveDeploymentExecutionStatus
$sel:targetArn:EffectiveDeployment' :: EffectiveDeployment -> Text
$sel:deploymentName:EffectiveDeployment' :: EffectiveDeployment -> Text
$sel:deploymentId:EffectiveDeployment' :: EffectiveDeployment -> Text
$sel:statusDetails:EffectiveDeployment' :: EffectiveDeployment -> Maybe EffectiveDeploymentStatusDetails
$sel:reason:EffectiveDeployment' :: EffectiveDeployment -> Maybe Text
$sel:iotJobId:EffectiveDeployment' :: EffectiveDeployment -> Maybe Text
$sel:iotJobArn:EffectiveDeployment' :: EffectiveDeployment -> Maybe Text
$sel:description:EffectiveDeployment' :: EffectiveDeployment -> Maybe Text
..} =
    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 Text
iotJobArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
iotJobId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
reason
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe EffectiveDeploymentStatusDetails
statusDetails
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
deploymentId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
deploymentName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
targetArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf EffectiveDeploymentExecutionStatus
coreDeviceExecutionStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf POSIX
creationTimestamp
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf POSIX
modifiedTimestamp