{-# 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.Proton.Types.ComponentSummary
-- 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.Proton.Types.ComponentSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.Proton.Types.DeploymentStatus

-- | Summary data of an Proton component resource.
--
-- For more information about components, see
-- <https://docs.aws.amazon.com/proton/latest/userguide/ag-components.html Proton components>
-- in the /Proton User Guide/.
--
-- /See:/ 'newComponentSummary' smart constructor.
data ComponentSummary = ComponentSummary'
  { -- | The message associated with the component deployment status.
    ComponentSummary -> Maybe (Sensitive Text)
deploymentStatusMessage :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    -- | The time when a deployment of the component was last attempted.
    ComponentSummary -> Maybe POSIX
lastDeploymentAttemptedAt :: Prelude.Maybe Data.POSIX,
    -- | The time when the component was last deployed successfully.
    ComponentSummary -> Maybe POSIX
lastDeploymentSucceededAt :: Prelude.Maybe Data.POSIX,
    -- | The name of the service instance that this component is attached to.
    -- Provided when a component is attached to a service instance.
    ComponentSummary -> Maybe Text
serviceInstanceName :: Prelude.Maybe Prelude.Text,
    -- | The name of the service that @serviceInstanceName@ is associated with.
    -- Provided when a component is attached to a service instance.
    ComponentSummary -> Maybe Text
serviceName :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the component.
    ComponentSummary -> Text
arn :: Prelude.Text,
    -- | The time when the component was created.
    ComponentSummary -> POSIX
createdAt :: Data.POSIX,
    -- | The component deployment status.
    ComponentSummary -> DeploymentStatus
deploymentStatus :: DeploymentStatus,
    -- | The name of the Proton environment that this component is associated
    -- with.
    ComponentSummary -> Text
environmentName :: Prelude.Text,
    -- | The time when the component was last modified.
    ComponentSummary -> POSIX
lastModifiedAt :: Data.POSIX,
    -- | The name of the component.
    ComponentSummary -> Text
name :: Prelude.Text
  }
  deriving (ComponentSummary -> ComponentSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ComponentSummary -> ComponentSummary -> Bool
$c/= :: ComponentSummary -> ComponentSummary -> Bool
== :: ComponentSummary -> ComponentSummary -> Bool
$c== :: ComponentSummary -> ComponentSummary -> Bool
Prelude.Eq, Int -> ComponentSummary -> ShowS
[ComponentSummary] -> ShowS
ComponentSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ComponentSummary] -> ShowS
$cshowList :: [ComponentSummary] -> ShowS
show :: ComponentSummary -> String
$cshow :: ComponentSummary -> String
showsPrec :: Int -> ComponentSummary -> ShowS
$cshowsPrec :: Int -> ComponentSummary -> ShowS
Prelude.Show, forall x. Rep ComponentSummary x -> ComponentSummary
forall x. ComponentSummary -> Rep ComponentSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ComponentSummary x -> ComponentSummary
$cfrom :: forall x. ComponentSummary -> Rep ComponentSummary x
Prelude.Generic)

-- |
-- Create a value of 'ComponentSummary' 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:
--
-- 'deploymentStatusMessage', 'componentSummary_deploymentStatusMessage' - The message associated with the component deployment status.
--
-- 'lastDeploymentAttemptedAt', 'componentSummary_lastDeploymentAttemptedAt' - The time when a deployment of the component was last attempted.
--
-- 'lastDeploymentSucceededAt', 'componentSummary_lastDeploymentSucceededAt' - The time when the component was last deployed successfully.
--
-- 'serviceInstanceName', 'componentSummary_serviceInstanceName' - The name of the service instance that this component is attached to.
-- Provided when a component is attached to a service instance.
--
-- 'serviceName', 'componentSummary_serviceName' - The name of the service that @serviceInstanceName@ is associated with.
-- Provided when a component is attached to a service instance.
--
-- 'arn', 'componentSummary_arn' - The Amazon Resource Name (ARN) of the component.
--
-- 'createdAt', 'componentSummary_createdAt' - The time when the component was created.
--
-- 'deploymentStatus', 'componentSummary_deploymentStatus' - The component deployment status.
--
-- 'environmentName', 'componentSummary_environmentName' - The name of the Proton environment that this component is associated
-- with.
--
-- 'lastModifiedAt', 'componentSummary_lastModifiedAt' - The time when the component was last modified.
--
-- 'name', 'componentSummary_name' - The name of the component.
newComponentSummary ::
  -- | 'arn'
  Prelude.Text ->
  -- | 'createdAt'
  Prelude.UTCTime ->
  -- | 'deploymentStatus'
  DeploymentStatus ->
  -- | 'environmentName'
  Prelude.Text ->
  -- | 'lastModifiedAt'
  Prelude.UTCTime ->
  -- | 'name'
  Prelude.Text ->
  ComponentSummary
newComponentSummary :: Text
-> UTCTime
-> DeploymentStatus
-> Text
-> UTCTime
-> Text
-> ComponentSummary
newComponentSummary
  Text
pArn_
  UTCTime
pCreatedAt_
  DeploymentStatus
pDeploymentStatus_
  Text
pEnvironmentName_
  UTCTime
pLastModifiedAt_
  Text
pName_ =
    ComponentSummary'
      { $sel:deploymentStatusMessage:ComponentSummary' :: Maybe (Sensitive Text)
deploymentStatusMessage =
          forall a. Maybe a
Prelude.Nothing,
        $sel:lastDeploymentAttemptedAt:ComponentSummary' :: Maybe POSIX
lastDeploymentAttemptedAt = forall a. Maybe a
Prelude.Nothing,
        $sel:lastDeploymentSucceededAt:ComponentSummary' :: Maybe POSIX
lastDeploymentSucceededAt = forall a. Maybe a
Prelude.Nothing,
        $sel:serviceInstanceName:ComponentSummary' :: Maybe Text
serviceInstanceName = forall a. Maybe a
Prelude.Nothing,
        $sel:serviceName:ComponentSummary' :: Maybe Text
serviceName = forall a. Maybe a
Prelude.Nothing,
        $sel:arn:ComponentSummary' :: Text
arn = Text
pArn_,
        $sel:createdAt:ComponentSummary' :: POSIX
createdAt = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreatedAt_,
        $sel:deploymentStatus:ComponentSummary' :: DeploymentStatus
deploymentStatus = DeploymentStatus
pDeploymentStatus_,
        $sel:environmentName:ComponentSummary' :: Text
environmentName = Text
pEnvironmentName_,
        $sel:lastModifiedAt:ComponentSummary' :: POSIX
lastModifiedAt = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pLastModifiedAt_,
        $sel:name:ComponentSummary' :: Text
name = Text
pName_
      }

-- | The message associated with the component deployment status.
componentSummary_deploymentStatusMessage :: Lens.Lens' ComponentSummary (Prelude.Maybe Prelude.Text)
componentSummary_deploymentStatusMessage :: Lens' ComponentSummary (Maybe Text)
componentSummary_deploymentStatusMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ComponentSummary' {Maybe (Sensitive Text)
deploymentStatusMessage :: Maybe (Sensitive Text)
$sel:deploymentStatusMessage:ComponentSummary' :: ComponentSummary -> Maybe (Sensitive Text)
deploymentStatusMessage} -> Maybe (Sensitive Text)
deploymentStatusMessage) (\s :: ComponentSummary
s@ComponentSummary' {} Maybe (Sensitive Text)
a -> ComponentSummary
s {$sel:deploymentStatusMessage:ComponentSummary' :: Maybe (Sensitive Text)
deploymentStatusMessage = Maybe (Sensitive Text)
a} :: ComponentSummary) 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

-- | The time when a deployment of the component was last attempted.
componentSummary_lastDeploymentAttemptedAt :: Lens.Lens' ComponentSummary (Prelude.Maybe Prelude.UTCTime)
componentSummary_lastDeploymentAttemptedAt :: Lens' ComponentSummary (Maybe UTCTime)
componentSummary_lastDeploymentAttemptedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ComponentSummary' {Maybe POSIX
lastDeploymentAttemptedAt :: Maybe POSIX
$sel:lastDeploymentAttemptedAt:ComponentSummary' :: ComponentSummary -> Maybe POSIX
lastDeploymentAttemptedAt} -> Maybe POSIX
lastDeploymentAttemptedAt) (\s :: ComponentSummary
s@ComponentSummary' {} Maybe POSIX
a -> ComponentSummary
s {$sel:lastDeploymentAttemptedAt:ComponentSummary' :: Maybe POSIX
lastDeploymentAttemptedAt = Maybe POSIX
a} :: ComponentSummary) 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 :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The time when the component was last deployed successfully.
componentSummary_lastDeploymentSucceededAt :: Lens.Lens' ComponentSummary (Prelude.Maybe Prelude.UTCTime)
componentSummary_lastDeploymentSucceededAt :: Lens' ComponentSummary (Maybe UTCTime)
componentSummary_lastDeploymentSucceededAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ComponentSummary' {Maybe POSIX
lastDeploymentSucceededAt :: Maybe POSIX
$sel:lastDeploymentSucceededAt:ComponentSummary' :: ComponentSummary -> Maybe POSIX
lastDeploymentSucceededAt} -> Maybe POSIX
lastDeploymentSucceededAt) (\s :: ComponentSummary
s@ComponentSummary' {} Maybe POSIX
a -> ComponentSummary
s {$sel:lastDeploymentSucceededAt:ComponentSummary' :: Maybe POSIX
lastDeploymentSucceededAt = Maybe POSIX
a} :: ComponentSummary) 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 :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The name of the service instance that this component is attached to.
-- Provided when a component is attached to a service instance.
componentSummary_serviceInstanceName :: Lens.Lens' ComponentSummary (Prelude.Maybe Prelude.Text)
componentSummary_serviceInstanceName :: Lens' ComponentSummary (Maybe Text)
componentSummary_serviceInstanceName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ComponentSummary' {Maybe Text
serviceInstanceName :: Maybe Text
$sel:serviceInstanceName:ComponentSummary' :: ComponentSummary -> Maybe Text
serviceInstanceName} -> Maybe Text
serviceInstanceName) (\s :: ComponentSummary
s@ComponentSummary' {} Maybe Text
a -> ComponentSummary
s {$sel:serviceInstanceName:ComponentSummary' :: Maybe Text
serviceInstanceName = Maybe Text
a} :: ComponentSummary)

-- | The name of the service that @serviceInstanceName@ is associated with.
-- Provided when a component is attached to a service instance.
componentSummary_serviceName :: Lens.Lens' ComponentSummary (Prelude.Maybe Prelude.Text)
componentSummary_serviceName :: Lens' ComponentSummary (Maybe Text)
componentSummary_serviceName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ComponentSummary' {Maybe Text
serviceName :: Maybe Text
$sel:serviceName:ComponentSummary' :: ComponentSummary -> Maybe Text
serviceName} -> Maybe Text
serviceName) (\s :: ComponentSummary
s@ComponentSummary' {} Maybe Text
a -> ComponentSummary
s {$sel:serviceName:ComponentSummary' :: Maybe Text
serviceName = Maybe Text
a} :: ComponentSummary)

-- | The Amazon Resource Name (ARN) of the component.
componentSummary_arn :: Lens.Lens' ComponentSummary Prelude.Text
componentSummary_arn :: Lens' ComponentSummary Text
componentSummary_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ComponentSummary' {Text
arn :: Text
$sel:arn:ComponentSummary' :: ComponentSummary -> Text
arn} -> Text
arn) (\s :: ComponentSummary
s@ComponentSummary' {} Text
a -> ComponentSummary
s {$sel:arn:ComponentSummary' :: Text
arn = Text
a} :: ComponentSummary)

-- | The time when the component was created.
componentSummary_createdAt :: Lens.Lens' ComponentSummary Prelude.UTCTime
componentSummary_createdAt :: Lens' ComponentSummary UTCTime
componentSummary_createdAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ComponentSummary' {POSIX
createdAt :: POSIX
$sel:createdAt:ComponentSummary' :: ComponentSummary -> POSIX
createdAt} -> POSIX
createdAt) (\s :: ComponentSummary
s@ComponentSummary' {} POSIX
a -> ComponentSummary
s {$sel:createdAt:ComponentSummary' :: POSIX
createdAt = POSIX
a} :: ComponentSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The component deployment status.
componentSummary_deploymentStatus :: Lens.Lens' ComponentSummary DeploymentStatus
componentSummary_deploymentStatus :: Lens' ComponentSummary DeploymentStatus
componentSummary_deploymentStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ComponentSummary' {DeploymentStatus
deploymentStatus :: DeploymentStatus
$sel:deploymentStatus:ComponentSummary' :: ComponentSummary -> DeploymentStatus
deploymentStatus} -> DeploymentStatus
deploymentStatus) (\s :: ComponentSummary
s@ComponentSummary' {} DeploymentStatus
a -> ComponentSummary
s {$sel:deploymentStatus:ComponentSummary' :: DeploymentStatus
deploymentStatus = DeploymentStatus
a} :: ComponentSummary)

-- | The name of the Proton environment that this component is associated
-- with.
componentSummary_environmentName :: Lens.Lens' ComponentSummary Prelude.Text
componentSummary_environmentName :: Lens' ComponentSummary Text
componentSummary_environmentName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ComponentSummary' {Text
environmentName :: Text
$sel:environmentName:ComponentSummary' :: ComponentSummary -> Text
environmentName} -> Text
environmentName) (\s :: ComponentSummary
s@ComponentSummary' {} Text
a -> ComponentSummary
s {$sel:environmentName:ComponentSummary' :: Text
environmentName = Text
a} :: ComponentSummary)

-- | The time when the component was last modified.
componentSummary_lastModifiedAt :: Lens.Lens' ComponentSummary Prelude.UTCTime
componentSummary_lastModifiedAt :: Lens' ComponentSummary UTCTime
componentSummary_lastModifiedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ComponentSummary' {POSIX
lastModifiedAt :: POSIX
$sel:lastModifiedAt:ComponentSummary' :: ComponentSummary -> POSIX
lastModifiedAt} -> POSIX
lastModifiedAt) (\s :: ComponentSummary
s@ComponentSummary' {} POSIX
a -> ComponentSummary
s {$sel:lastModifiedAt:ComponentSummary' :: POSIX
lastModifiedAt = POSIX
a} :: ComponentSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

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

instance Data.FromJSON ComponentSummary where
  parseJSON :: Value -> Parser ComponentSummary
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ComponentSummary"
      ( \Object
x ->
          Maybe (Sensitive Text)
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Text
-> POSIX
-> DeploymentStatus
-> Text
-> POSIX
-> Text
-> ComponentSummary
ComponentSummary'
            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
"deploymentStatusMessage")
            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
"lastDeploymentAttemptedAt")
            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
"lastDeploymentSucceededAt")
            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
"serviceInstanceName")
            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
"serviceName")
            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
"arn")
            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
"createdAt")
            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
"deploymentStatus")
            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
"environmentName")
            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
"lastModifiedAt")
            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
"name")
      )

instance Prelude.Hashable ComponentSummary where
  hashWithSalt :: Int -> ComponentSummary -> Int
hashWithSalt Int
_salt ComponentSummary' {Maybe Text
Maybe (Sensitive Text)
Maybe POSIX
Text
POSIX
DeploymentStatus
name :: Text
lastModifiedAt :: POSIX
environmentName :: Text
deploymentStatus :: DeploymentStatus
createdAt :: POSIX
arn :: Text
serviceName :: Maybe Text
serviceInstanceName :: Maybe Text
lastDeploymentSucceededAt :: Maybe POSIX
lastDeploymentAttemptedAt :: Maybe POSIX
deploymentStatusMessage :: Maybe (Sensitive Text)
$sel:name:ComponentSummary' :: ComponentSummary -> Text
$sel:lastModifiedAt:ComponentSummary' :: ComponentSummary -> POSIX
$sel:environmentName:ComponentSummary' :: ComponentSummary -> Text
$sel:deploymentStatus:ComponentSummary' :: ComponentSummary -> DeploymentStatus
$sel:createdAt:ComponentSummary' :: ComponentSummary -> POSIX
$sel:arn:ComponentSummary' :: ComponentSummary -> Text
$sel:serviceName:ComponentSummary' :: ComponentSummary -> Maybe Text
$sel:serviceInstanceName:ComponentSummary' :: ComponentSummary -> Maybe Text
$sel:lastDeploymentSucceededAt:ComponentSummary' :: ComponentSummary -> Maybe POSIX
$sel:lastDeploymentAttemptedAt:ComponentSummary' :: ComponentSummary -> Maybe POSIX
$sel:deploymentStatusMessage:ComponentSummary' :: ComponentSummary -> Maybe (Sensitive Text)
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
deploymentStatusMessage
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastDeploymentAttemptedAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastDeploymentSucceededAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
serviceInstanceName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
serviceName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
arn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
createdAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` DeploymentStatus
deploymentStatus
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
environmentName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
lastModifiedAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
name

instance Prelude.NFData ComponentSummary where
  rnf :: ComponentSummary -> ()
rnf ComponentSummary' {Maybe Text
Maybe (Sensitive Text)
Maybe POSIX
Text
POSIX
DeploymentStatus
name :: Text
lastModifiedAt :: POSIX
environmentName :: Text
deploymentStatus :: DeploymentStatus
createdAt :: POSIX
arn :: Text
serviceName :: Maybe Text
serviceInstanceName :: Maybe Text
lastDeploymentSucceededAt :: Maybe POSIX
lastDeploymentAttemptedAt :: Maybe POSIX
deploymentStatusMessage :: Maybe (Sensitive Text)
$sel:name:ComponentSummary' :: ComponentSummary -> Text
$sel:lastModifiedAt:ComponentSummary' :: ComponentSummary -> POSIX
$sel:environmentName:ComponentSummary' :: ComponentSummary -> Text
$sel:deploymentStatus:ComponentSummary' :: ComponentSummary -> DeploymentStatus
$sel:createdAt:ComponentSummary' :: ComponentSummary -> POSIX
$sel:arn:ComponentSummary' :: ComponentSummary -> Text
$sel:serviceName:ComponentSummary' :: ComponentSummary -> Maybe Text
$sel:serviceInstanceName:ComponentSummary' :: ComponentSummary -> Maybe Text
$sel:lastDeploymentSucceededAt:ComponentSummary' :: ComponentSummary -> Maybe POSIX
$sel:lastDeploymentAttemptedAt:ComponentSummary' :: ComponentSummary -> Maybe POSIX
$sel:deploymentStatusMessage:ComponentSummary' :: ComponentSummary -> Maybe (Sensitive Text)
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
deploymentStatusMessage
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastDeploymentAttemptedAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastDeploymentSucceededAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
serviceInstanceName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
serviceName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
arn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf POSIX
createdAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf DeploymentStatus
deploymentStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
environmentName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf POSIX
lastModifiedAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
name