{-# 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.Component
-- 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.Component 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

-- | Detailed 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:/ 'newComponent' smart constructor.
data Component = Component'
  { -- | The message associated with the component deployment status.
    Component -> Maybe (Sensitive Text)
deploymentStatusMessage :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    -- | A description of the component.
    Component -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    -- | The time when a deployment of the component was last attempted.
    Component -> Maybe POSIX
lastDeploymentAttemptedAt :: Prelude.Maybe Data.POSIX,
    -- | The time when the component was last deployed successfully.
    Component -> 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.
    Component -> 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.
    Component -> Maybe Text
serviceName :: Prelude.Maybe Prelude.Text,
    -- | The service spec that the component uses to access service inputs.
    -- Provided when a component is attached to a service instance.
    Component -> Maybe (Sensitive Text)
serviceSpec :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    -- | The Amazon Resource Name (ARN) of the component.
    Component -> Text
arn :: Prelude.Text,
    -- | The time when the component was created.
    Component -> POSIX
createdAt :: Data.POSIX,
    -- | The component deployment status.
    Component -> DeploymentStatus
deploymentStatus :: DeploymentStatus,
    -- | The name of the Proton environment that this component is associated
    -- with.
    Component -> Text
environmentName :: Prelude.Text,
    -- | The time when the component was last modified.
    Component -> POSIX
lastModifiedAt :: Data.POSIX,
    -- | The name of the component.
    Component -> Text
name :: Prelude.Text
  }
  deriving (Component -> Component -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Component -> Component -> Bool
$c/= :: Component -> Component -> Bool
== :: Component -> Component -> Bool
$c== :: Component -> Component -> Bool
Prelude.Eq, Int -> Component -> ShowS
[Component] -> ShowS
Component -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Component] -> ShowS
$cshowList :: [Component] -> ShowS
show :: Component -> String
$cshow :: Component -> String
showsPrec :: Int -> Component -> ShowS
$cshowsPrec :: Int -> Component -> ShowS
Prelude.Show, forall x. Rep Component x -> Component
forall x. Component -> Rep Component x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Component x -> Component
$cfrom :: forall x. Component -> Rep Component x
Prelude.Generic)

-- |
-- Create a value of 'Component' 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', 'component_deploymentStatusMessage' - The message associated with the component deployment status.
--
-- 'description', 'component_description' - A description of the component.
--
-- 'lastDeploymentAttemptedAt', 'component_lastDeploymentAttemptedAt' - The time when a deployment of the component was last attempted.
--
-- 'lastDeploymentSucceededAt', 'component_lastDeploymentSucceededAt' - The time when the component was last deployed successfully.
--
-- 'serviceInstanceName', 'component_serviceInstanceName' - The name of the service instance that this component is attached to.
-- Provided when a component is attached to a service instance.
--
-- 'serviceName', 'component_serviceName' - The name of the service that @serviceInstanceName@ is associated with.
-- Provided when a component is attached to a service instance.
--
-- 'serviceSpec', 'component_serviceSpec' - The service spec that the component uses to access service inputs.
-- Provided when a component is attached to a service instance.
--
-- 'arn', 'component_arn' - The Amazon Resource Name (ARN) of the component.
--
-- 'createdAt', 'component_createdAt' - The time when the component was created.
--
-- 'deploymentStatus', 'component_deploymentStatus' - The component deployment status.
--
-- 'environmentName', 'component_environmentName' - The name of the Proton environment that this component is associated
-- with.
--
-- 'lastModifiedAt', 'component_lastModifiedAt' - The time when the component was last modified.
--
-- 'name', 'component_name' - The name of the component.
newComponent ::
  -- | 'arn'
  Prelude.Text ->
  -- | 'createdAt'
  Prelude.UTCTime ->
  -- | 'deploymentStatus'
  DeploymentStatus ->
  -- | 'environmentName'
  Prelude.Text ->
  -- | 'lastModifiedAt'
  Prelude.UTCTime ->
  -- | 'name'
  Prelude.Text ->
  Component
newComponent :: Text
-> UTCTime
-> DeploymentStatus
-> Text
-> UTCTime
-> Text
-> Component
newComponent
  Text
pArn_
  UTCTime
pCreatedAt_
  DeploymentStatus
pDeploymentStatus_
  Text
pEnvironmentName_
  UTCTime
pLastModifiedAt_
  Text
pName_ =
    Component'
      { $sel:deploymentStatusMessage:Component' :: Maybe (Sensitive Text)
deploymentStatusMessage =
          forall a. Maybe a
Prelude.Nothing,
        $sel:description:Component' :: Maybe (Sensitive Text)
description = forall a. Maybe a
Prelude.Nothing,
        $sel:lastDeploymentAttemptedAt:Component' :: Maybe POSIX
lastDeploymentAttemptedAt = forall a. Maybe a
Prelude.Nothing,
        $sel:lastDeploymentSucceededAt:Component' :: Maybe POSIX
lastDeploymentSucceededAt = forall a. Maybe a
Prelude.Nothing,
        $sel:serviceInstanceName:Component' :: Maybe Text
serviceInstanceName = forall a. Maybe a
Prelude.Nothing,
        $sel:serviceName:Component' :: Maybe Text
serviceName = forall a. Maybe a
Prelude.Nothing,
        $sel:serviceSpec:Component' :: Maybe (Sensitive Text)
serviceSpec = forall a. Maybe a
Prelude.Nothing,
        $sel:arn:Component' :: Text
arn = Text
pArn_,
        $sel:createdAt:Component' :: POSIX
createdAt = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreatedAt_,
        $sel:deploymentStatus:Component' :: DeploymentStatus
deploymentStatus = DeploymentStatus
pDeploymentStatus_,
        $sel:environmentName:Component' :: Text
environmentName = Text
pEnvironmentName_,
        $sel:lastModifiedAt:Component' :: POSIX
lastModifiedAt = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pLastModifiedAt_,
        $sel:name:Component' :: Text
name = Text
pName_
      }

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

-- | A description of the component.
component_description :: Lens.Lens' Component (Prelude.Maybe Prelude.Text)
component_description :: Lens' Component (Maybe Text)
component_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Component' {Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
$sel:description:Component' :: Component -> Maybe (Sensitive Text)
description} -> Maybe (Sensitive Text)
description) (\s :: Component
s@Component' {} Maybe (Sensitive Text)
a -> Component
s {$sel:description:Component' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
a} :: Component) 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.
component_lastDeploymentAttemptedAt :: Lens.Lens' Component (Prelude.Maybe Prelude.UTCTime)
component_lastDeploymentAttemptedAt :: Lens' Component (Maybe UTCTime)
component_lastDeploymentAttemptedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Component' {Maybe POSIX
lastDeploymentAttemptedAt :: Maybe POSIX
$sel:lastDeploymentAttemptedAt:Component' :: Component -> Maybe POSIX
lastDeploymentAttemptedAt} -> Maybe POSIX
lastDeploymentAttemptedAt) (\s :: Component
s@Component' {} Maybe POSIX
a -> Component
s {$sel:lastDeploymentAttemptedAt:Component' :: Maybe POSIX
lastDeploymentAttemptedAt = Maybe POSIX
a} :: Component) 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.
component_lastDeploymentSucceededAt :: Lens.Lens' Component (Prelude.Maybe Prelude.UTCTime)
component_lastDeploymentSucceededAt :: Lens' Component (Maybe UTCTime)
component_lastDeploymentSucceededAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Component' {Maybe POSIX
lastDeploymentSucceededAt :: Maybe POSIX
$sel:lastDeploymentSucceededAt:Component' :: Component -> Maybe POSIX
lastDeploymentSucceededAt} -> Maybe POSIX
lastDeploymentSucceededAt) (\s :: Component
s@Component' {} Maybe POSIX
a -> Component
s {$sel:lastDeploymentSucceededAt:Component' :: Maybe POSIX
lastDeploymentSucceededAt = Maybe POSIX
a} :: Component) 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.
component_serviceInstanceName :: Lens.Lens' Component (Prelude.Maybe Prelude.Text)
component_serviceInstanceName :: Lens' Component (Maybe Text)
component_serviceInstanceName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Component' {Maybe Text
serviceInstanceName :: Maybe Text
$sel:serviceInstanceName:Component' :: Component -> Maybe Text
serviceInstanceName} -> Maybe Text
serviceInstanceName) (\s :: Component
s@Component' {} Maybe Text
a -> Component
s {$sel:serviceInstanceName:Component' :: Maybe Text
serviceInstanceName = Maybe Text
a} :: Component)

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

-- | The service spec that the component uses to access service inputs.
-- Provided when a component is attached to a service instance.
component_serviceSpec :: Lens.Lens' Component (Prelude.Maybe Prelude.Text)
component_serviceSpec :: Lens' Component (Maybe Text)
component_serviceSpec = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Component' {Maybe (Sensitive Text)
serviceSpec :: Maybe (Sensitive Text)
$sel:serviceSpec:Component' :: Component -> Maybe (Sensitive Text)
serviceSpec} -> Maybe (Sensitive Text)
serviceSpec) (\s :: Component
s@Component' {} Maybe (Sensitive Text)
a -> Component
s {$sel:serviceSpec:Component' :: Maybe (Sensitive Text)
serviceSpec = Maybe (Sensitive Text)
a} :: Component) 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 Amazon Resource Name (ARN) of the component.
component_arn :: Lens.Lens' Component Prelude.Text
component_arn :: Lens' Component Text
component_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Component' {Text
arn :: Text
$sel:arn:Component' :: Component -> Text
arn} -> Text
arn) (\s :: Component
s@Component' {} Text
a -> Component
s {$sel:arn:Component' :: Text
arn = Text
a} :: Component)

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

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

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

-- | The time when the component was last modified.
component_lastModifiedAt :: Lens.Lens' Component Prelude.UTCTime
component_lastModifiedAt :: Lens' Component UTCTime
component_lastModifiedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Component' {POSIX
lastModifiedAt :: POSIX
$sel:lastModifiedAt:Component' :: Component -> POSIX
lastModifiedAt} -> POSIX
lastModifiedAt) (\s :: Component
s@Component' {} POSIX
a -> Component
s {$sel:lastModifiedAt:Component' :: POSIX
lastModifiedAt = POSIX
a} :: Component) 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.
component_name :: Lens.Lens' Component Prelude.Text
component_name :: Lens' Component Text
component_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Component' {Text
name :: Text
$sel:name:Component' :: Component -> Text
name} -> Text
name) (\s :: Component
s@Component' {} Text
a -> Component
s {$sel:name:Component' :: Text
name = Text
a} :: Component)

instance Data.FromJSON Component where
  parseJSON :: Value -> Parser Component
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"Component"
      ( \Object
x ->
          Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> DeploymentStatus
-> Text
-> POSIX
-> Text
-> Component
Component'
            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
"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
"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 (Maybe a)
Data..:? Key
"serviceSpec")
            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 Component where
  hashWithSalt :: Int -> Component -> Int
hashWithSalt Int
_salt Component' {Maybe Text
Maybe (Sensitive Text)
Maybe POSIX
Text
POSIX
DeploymentStatus
name :: Text
lastModifiedAt :: POSIX
environmentName :: Text
deploymentStatus :: DeploymentStatus
createdAt :: POSIX
arn :: Text
serviceSpec :: Maybe (Sensitive Text)
serviceName :: Maybe Text
serviceInstanceName :: Maybe Text
lastDeploymentSucceededAt :: Maybe POSIX
lastDeploymentAttemptedAt :: Maybe POSIX
description :: Maybe (Sensitive Text)
deploymentStatusMessage :: Maybe (Sensitive Text)
$sel:name:Component' :: Component -> Text
$sel:lastModifiedAt:Component' :: Component -> POSIX
$sel:environmentName:Component' :: Component -> Text
$sel:deploymentStatus:Component' :: Component -> DeploymentStatus
$sel:createdAt:Component' :: Component -> POSIX
$sel:arn:Component' :: Component -> Text
$sel:serviceSpec:Component' :: Component -> Maybe (Sensitive Text)
$sel:serviceName:Component' :: Component -> Maybe Text
$sel:serviceInstanceName:Component' :: Component -> Maybe Text
$sel:lastDeploymentSucceededAt:Component' :: Component -> Maybe POSIX
$sel:lastDeploymentAttemptedAt:Component' :: Component -> Maybe POSIX
$sel:description:Component' :: Component -> Maybe (Sensitive Text)
$sel:deploymentStatusMessage:Component' :: Component -> 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 (Sensitive Text)
description
      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` Maybe (Sensitive Text)
serviceSpec
      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 Component where
  rnf :: Component -> ()
rnf Component' {Maybe Text
Maybe (Sensitive Text)
Maybe POSIX
Text
POSIX
DeploymentStatus
name :: Text
lastModifiedAt :: POSIX
environmentName :: Text
deploymentStatus :: DeploymentStatus
createdAt :: POSIX
arn :: Text
serviceSpec :: Maybe (Sensitive Text)
serviceName :: Maybe Text
serviceInstanceName :: Maybe Text
lastDeploymentSucceededAt :: Maybe POSIX
lastDeploymentAttemptedAt :: Maybe POSIX
description :: Maybe (Sensitive Text)
deploymentStatusMessage :: Maybe (Sensitive Text)
$sel:name:Component' :: Component -> Text
$sel:lastModifiedAt:Component' :: Component -> POSIX
$sel:environmentName:Component' :: Component -> Text
$sel:deploymentStatus:Component' :: Component -> DeploymentStatus
$sel:createdAt:Component' :: Component -> POSIX
$sel:arn:Component' :: Component -> Text
$sel:serviceSpec:Component' :: Component -> Maybe (Sensitive Text)
$sel:serviceName:Component' :: Component -> Maybe Text
$sel:serviceInstanceName:Component' :: Component -> Maybe Text
$sel:lastDeploymentSucceededAt:Component' :: Component -> Maybe POSIX
$sel:lastDeploymentAttemptedAt:Component' :: Component -> Maybe POSIX
$sel:description:Component' :: Component -> Maybe (Sensitive Text)
$sel:deploymentStatusMessage:Component' :: Component -> 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 (Sensitive Text)
description
      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 Maybe (Sensitive Text)
serviceSpec
      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