{-# 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.ServiceInstance
-- 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.ServiceInstance 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 service instance resource.
--
-- /See:/ 'newServiceInstance' smart constructor.
data ServiceInstance = ServiceInstance'
  { -- | The message associated with the service instance deployment status.
    ServiceInstance -> Maybe (Sensitive Text)
deploymentStatusMessage :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    -- | The service spec that was used to create the service instance.
    ServiceInstance -> Maybe (Sensitive Text)
spec :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    -- | The Amazon Resource Name (ARN) of the service instance.
    ServiceInstance -> Text
arn :: Prelude.Text,
    -- | The time when the service instance was created.
    ServiceInstance -> POSIX
createdAt :: Data.POSIX,
    -- | The service instance deployment status.
    ServiceInstance -> DeploymentStatus
deploymentStatus :: DeploymentStatus,
    -- | The name of the environment that the service instance was deployed into.
    ServiceInstance -> Text
environmentName :: Prelude.Text,
    -- | The time when a deployment of the service instance was last attempted.
    ServiceInstance -> POSIX
lastDeploymentAttemptedAt :: Data.POSIX,
    -- | The time when the service instance was last deployed successfully.
    ServiceInstance -> POSIX
lastDeploymentSucceededAt :: Data.POSIX,
    -- | The name of the service instance.
    ServiceInstance -> Text
name :: Prelude.Text,
    -- | The name of the service that the service instance belongs to.
    ServiceInstance -> Text
serviceName :: Prelude.Text,
    -- | The major version of the service template that was used to create the
    -- service instance.
    ServiceInstance -> Text
templateMajorVersion :: Prelude.Text,
    -- | The minor version of the service template that was used to create the
    -- service instance.
    ServiceInstance -> Text
templateMinorVersion :: Prelude.Text,
    -- | The name of the service template that was used to create the service
    -- instance.
    ServiceInstance -> Text
templateName :: Prelude.Text
  }
  deriving (ServiceInstance -> ServiceInstance -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ServiceInstance -> ServiceInstance -> Bool
$c/= :: ServiceInstance -> ServiceInstance -> Bool
== :: ServiceInstance -> ServiceInstance -> Bool
$c== :: ServiceInstance -> ServiceInstance -> Bool
Prelude.Eq, Int -> ServiceInstance -> ShowS
[ServiceInstance] -> ShowS
ServiceInstance -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ServiceInstance] -> ShowS
$cshowList :: [ServiceInstance] -> ShowS
show :: ServiceInstance -> String
$cshow :: ServiceInstance -> String
showsPrec :: Int -> ServiceInstance -> ShowS
$cshowsPrec :: Int -> ServiceInstance -> ShowS
Prelude.Show, forall x. Rep ServiceInstance x -> ServiceInstance
forall x. ServiceInstance -> Rep ServiceInstance x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ServiceInstance x -> ServiceInstance
$cfrom :: forall x. ServiceInstance -> Rep ServiceInstance x
Prelude.Generic)

-- |
-- Create a value of 'ServiceInstance' 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', 'serviceInstance_deploymentStatusMessage' - The message associated with the service instance deployment status.
--
-- 'spec', 'serviceInstance_spec' - The service spec that was used to create the service instance.
--
-- 'arn', 'serviceInstance_arn' - The Amazon Resource Name (ARN) of the service instance.
--
-- 'createdAt', 'serviceInstance_createdAt' - The time when the service instance was created.
--
-- 'deploymentStatus', 'serviceInstance_deploymentStatus' - The service instance deployment status.
--
-- 'environmentName', 'serviceInstance_environmentName' - The name of the environment that the service instance was deployed into.
--
-- 'lastDeploymentAttemptedAt', 'serviceInstance_lastDeploymentAttemptedAt' - The time when a deployment of the service instance was last attempted.
--
-- 'lastDeploymentSucceededAt', 'serviceInstance_lastDeploymentSucceededAt' - The time when the service instance was last deployed successfully.
--
-- 'name', 'serviceInstance_name' - The name of the service instance.
--
-- 'serviceName', 'serviceInstance_serviceName' - The name of the service that the service instance belongs to.
--
-- 'templateMajorVersion', 'serviceInstance_templateMajorVersion' - The major version of the service template that was used to create the
-- service instance.
--
-- 'templateMinorVersion', 'serviceInstance_templateMinorVersion' - The minor version of the service template that was used to create the
-- service instance.
--
-- 'templateName', 'serviceInstance_templateName' - The name of the service template that was used to create the service
-- instance.
newServiceInstance ::
  -- | 'arn'
  Prelude.Text ->
  -- | 'createdAt'
  Prelude.UTCTime ->
  -- | 'deploymentStatus'
  DeploymentStatus ->
  -- | 'environmentName'
  Prelude.Text ->
  -- | 'lastDeploymentAttemptedAt'
  Prelude.UTCTime ->
  -- | 'lastDeploymentSucceededAt'
  Prelude.UTCTime ->
  -- | 'name'
  Prelude.Text ->
  -- | 'serviceName'
  Prelude.Text ->
  -- | 'templateMajorVersion'
  Prelude.Text ->
  -- | 'templateMinorVersion'
  Prelude.Text ->
  -- | 'templateName'
  Prelude.Text ->
  ServiceInstance
newServiceInstance :: Text
-> UTCTime
-> DeploymentStatus
-> Text
-> UTCTime
-> UTCTime
-> Text
-> Text
-> Text
-> Text
-> Text
-> ServiceInstance
newServiceInstance
  Text
pArn_
  UTCTime
pCreatedAt_
  DeploymentStatus
pDeploymentStatus_
  Text
pEnvironmentName_
  UTCTime
pLastDeploymentAttemptedAt_
  UTCTime
pLastDeploymentSucceededAt_
  Text
pName_
  Text
pServiceName_
  Text
pTemplateMajorVersion_
  Text
pTemplateMinorVersion_
  Text
pTemplateName_ =
    ServiceInstance'
      { $sel:deploymentStatusMessage:ServiceInstance' :: Maybe (Sensitive Text)
deploymentStatusMessage =
          forall a. Maybe a
Prelude.Nothing,
        $sel:spec:ServiceInstance' :: Maybe (Sensitive Text)
spec = forall a. Maybe a
Prelude.Nothing,
        $sel:arn:ServiceInstance' :: Text
arn = Text
pArn_,
        $sel:createdAt:ServiceInstance' :: POSIX
createdAt = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreatedAt_,
        $sel:deploymentStatus:ServiceInstance' :: DeploymentStatus
deploymentStatus = DeploymentStatus
pDeploymentStatus_,
        $sel:environmentName:ServiceInstance' :: Text
environmentName = Text
pEnvironmentName_,
        $sel:lastDeploymentAttemptedAt:ServiceInstance' :: POSIX
lastDeploymentAttemptedAt =
          forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pLastDeploymentAttemptedAt_,
        $sel:lastDeploymentSucceededAt:ServiceInstance' :: POSIX
lastDeploymentSucceededAt =
          forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pLastDeploymentSucceededAt_,
        $sel:name:ServiceInstance' :: Text
name = Text
pName_,
        $sel:serviceName:ServiceInstance' :: Text
serviceName = Text
pServiceName_,
        $sel:templateMajorVersion:ServiceInstance' :: Text
templateMajorVersion = Text
pTemplateMajorVersion_,
        $sel:templateMinorVersion:ServiceInstance' :: Text
templateMinorVersion = Text
pTemplateMinorVersion_,
        $sel:templateName:ServiceInstance' :: Text
templateName = Text
pTemplateName_
      }

-- | The message associated with the service instance deployment status.
serviceInstance_deploymentStatusMessage :: Lens.Lens' ServiceInstance (Prelude.Maybe Prelude.Text)
serviceInstance_deploymentStatusMessage :: Lens' ServiceInstance (Maybe Text)
serviceInstance_deploymentStatusMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceInstance' {Maybe (Sensitive Text)
deploymentStatusMessage :: Maybe (Sensitive Text)
$sel:deploymentStatusMessage:ServiceInstance' :: ServiceInstance -> Maybe (Sensitive Text)
deploymentStatusMessage} -> Maybe (Sensitive Text)
deploymentStatusMessage) (\s :: ServiceInstance
s@ServiceInstance' {} Maybe (Sensitive Text)
a -> ServiceInstance
s {$sel:deploymentStatusMessage:ServiceInstance' :: Maybe (Sensitive Text)
deploymentStatusMessage = Maybe (Sensitive Text)
a} :: ServiceInstance) 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 service spec that was used to create the service instance.
serviceInstance_spec :: Lens.Lens' ServiceInstance (Prelude.Maybe Prelude.Text)
serviceInstance_spec :: Lens' ServiceInstance (Maybe Text)
serviceInstance_spec = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceInstance' {Maybe (Sensitive Text)
spec :: Maybe (Sensitive Text)
$sel:spec:ServiceInstance' :: ServiceInstance -> Maybe (Sensitive Text)
spec} -> Maybe (Sensitive Text)
spec) (\s :: ServiceInstance
s@ServiceInstance' {} Maybe (Sensitive Text)
a -> ServiceInstance
s {$sel:spec:ServiceInstance' :: Maybe (Sensitive Text)
spec = Maybe (Sensitive Text)
a} :: ServiceInstance) 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 service instance.
serviceInstance_arn :: Lens.Lens' ServiceInstance Prelude.Text
serviceInstance_arn :: Lens' ServiceInstance Text
serviceInstance_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceInstance' {Text
arn :: Text
$sel:arn:ServiceInstance' :: ServiceInstance -> Text
arn} -> Text
arn) (\s :: ServiceInstance
s@ServiceInstance' {} Text
a -> ServiceInstance
s {$sel:arn:ServiceInstance' :: Text
arn = Text
a} :: ServiceInstance)

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

-- | The service instance deployment status.
serviceInstance_deploymentStatus :: Lens.Lens' ServiceInstance DeploymentStatus
serviceInstance_deploymentStatus :: Lens' ServiceInstance DeploymentStatus
serviceInstance_deploymentStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceInstance' {DeploymentStatus
deploymentStatus :: DeploymentStatus
$sel:deploymentStatus:ServiceInstance' :: ServiceInstance -> DeploymentStatus
deploymentStatus} -> DeploymentStatus
deploymentStatus) (\s :: ServiceInstance
s@ServiceInstance' {} DeploymentStatus
a -> ServiceInstance
s {$sel:deploymentStatus:ServiceInstance' :: DeploymentStatus
deploymentStatus = DeploymentStatus
a} :: ServiceInstance)

-- | The name of the environment that the service instance was deployed into.
serviceInstance_environmentName :: Lens.Lens' ServiceInstance Prelude.Text
serviceInstance_environmentName :: Lens' ServiceInstance Text
serviceInstance_environmentName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceInstance' {Text
environmentName :: Text
$sel:environmentName:ServiceInstance' :: ServiceInstance -> Text
environmentName} -> Text
environmentName) (\s :: ServiceInstance
s@ServiceInstance' {} Text
a -> ServiceInstance
s {$sel:environmentName:ServiceInstance' :: Text
environmentName = Text
a} :: ServiceInstance)

-- | The time when a deployment of the service instance was last attempted.
serviceInstance_lastDeploymentAttemptedAt :: Lens.Lens' ServiceInstance Prelude.UTCTime
serviceInstance_lastDeploymentAttemptedAt :: Lens' ServiceInstance UTCTime
serviceInstance_lastDeploymentAttemptedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceInstance' {POSIX
lastDeploymentAttemptedAt :: POSIX
$sel:lastDeploymentAttemptedAt:ServiceInstance' :: ServiceInstance -> POSIX
lastDeploymentAttemptedAt} -> POSIX
lastDeploymentAttemptedAt) (\s :: ServiceInstance
s@ServiceInstance' {} POSIX
a -> ServiceInstance
s {$sel:lastDeploymentAttemptedAt:ServiceInstance' :: POSIX
lastDeploymentAttemptedAt = POSIX
a} :: ServiceInstance) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The time when the service instance was last deployed successfully.
serviceInstance_lastDeploymentSucceededAt :: Lens.Lens' ServiceInstance Prelude.UTCTime
serviceInstance_lastDeploymentSucceededAt :: Lens' ServiceInstance UTCTime
serviceInstance_lastDeploymentSucceededAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceInstance' {POSIX
lastDeploymentSucceededAt :: POSIX
$sel:lastDeploymentSucceededAt:ServiceInstance' :: ServiceInstance -> POSIX
lastDeploymentSucceededAt} -> POSIX
lastDeploymentSucceededAt) (\s :: ServiceInstance
s@ServiceInstance' {} POSIX
a -> ServiceInstance
s {$sel:lastDeploymentSucceededAt:ServiceInstance' :: POSIX
lastDeploymentSucceededAt = POSIX
a} :: ServiceInstance) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

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

-- | The name of the service that the service instance belongs to.
serviceInstance_serviceName :: Lens.Lens' ServiceInstance Prelude.Text
serviceInstance_serviceName :: Lens' ServiceInstance Text
serviceInstance_serviceName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceInstance' {Text
serviceName :: Text
$sel:serviceName:ServiceInstance' :: ServiceInstance -> Text
serviceName} -> Text
serviceName) (\s :: ServiceInstance
s@ServiceInstance' {} Text
a -> ServiceInstance
s {$sel:serviceName:ServiceInstance' :: Text
serviceName = Text
a} :: ServiceInstance)

-- | The major version of the service template that was used to create the
-- service instance.
serviceInstance_templateMajorVersion :: Lens.Lens' ServiceInstance Prelude.Text
serviceInstance_templateMajorVersion :: Lens' ServiceInstance Text
serviceInstance_templateMajorVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceInstance' {Text
templateMajorVersion :: Text
$sel:templateMajorVersion:ServiceInstance' :: ServiceInstance -> Text
templateMajorVersion} -> Text
templateMajorVersion) (\s :: ServiceInstance
s@ServiceInstance' {} Text
a -> ServiceInstance
s {$sel:templateMajorVersion:ServiceInstance' :: Text
templateMajorVersion = Text
a} :: ServiceInstance)

-- | The minor version of the service template that was used to create the
-- service instance.
serviceInstance_templateMinorVersion :: Lens.Lens' ServiceInstance Prelude.Text
serviceInstance_templateMinorVersion :: Lens' ServiceInstance Text
serviceInstance_templateMinorVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceInstance' {Text
templateMinorVersion :: Text
$sel:templateMinorVersion:ServiceInstance' :: ServiceInstance -> Text
templateMinorVersion} -> Text
templateMinorVersion) (\s :: ServiceInstance
s@ServiceInstance' {} Text
a -> ServiceInstance
s {$sel:templateMinorVersion:ServiceInstance' :: Text
templateMinorVersion = Text
a} :: ServiceInstance)

-- | The name of the service template that was used to create the service
-- instance.
serviceInstance_templateName :: Lens.Lens' ServiceInstance Prelude.Text
serviceInstance_templateName :: Lens' ServiceInstance Text
serviceInstance_templateName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceInstance' {Text
templateName :: Text
$sel:templateName:ServiceInstance' :: ServiceInstance -> Text
templateName} -> Text
templateName) (\s :: ServiceInstance
s@ServiceInstance' {} Text
a -> ServiceInstance
s {$sel:templateName:ServiceInstance' :: Text
templateName = Text
a} :: ServiceInstance)

instance Data.FromJSON ServiceInstance where
  parseJSON :: Value -> Parser ServiceInstance
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ServiceInstance"
      ( \Object
x ->
          Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> DeploymentStatus
-> Text
-> POSIX
-> POSIX
-> Text
-> Text
-> Text
-> Text
-> Text
-> ServiceInstance
ServiceInstance'
            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
"spec")
            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
"lastDeploymentAttemptedAt")
            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
"lastDeploymentSucceededAt")
            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")
            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
"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
"templateMajorVersion")
            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
"templateMinorVersion")
            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
"templateName")
      )

instance Prelude.Hashable ServiceInstance where
  hashWithSalt :: Int -> ServiceInstance -> Int
hashWithSalt Int
_salt ServiceInstance' {Maybe (Sensitive Text)
Text
POSIX
DeploymentStatus
templateName :: Text
templateMinorVersion :: Text
templateMajorVersion :: Text
serviceName :: Text
name :: Text
lastDeploymentSucceededAt :: POSIX
lastDeploymentAttemptedAt :: POSIX
environmentName :: Text
deploymentStatus :: DeploymentStatus
createdAt :: POSIX
arn :: Text
spec :: Maybe (Sensitive Text)
deploymentStatusMessage :: Maybe (Sensitive Text)
$sel:templateName:ServiceInstance' :: ServiceInstance -> Text
$sel:templateMinorVersion:ServiceInstance' :: ServiceInstance -> Text
$sel:templateMajorVersion:ServiceInstance' :: ServiceInstance -> Text
$sel:serviceName:ServiceInstance' :: ServiceInstance -> Text
$sel:name:ServiceInstance' :: ServiceInstance -> Text
$sel:lastDeploymentSucceededAt:ServiceInstance' :: ServiceInstance -> POSIX
$sel:lastDeploymentAttemptedAt:ServiceInstance' :: ServiceInstance -> POSIX
$sel:environmentName:ServiceInstance' :: ServiceInstance -> Text
$sel:deploymentStatus:ServiceInstance' :: ServiceInstance -> DeploymentStatus
$sel:createdAt:ServiceInstance' :: ServiceInstance -> POSIX
$sel:arn:ServiceInstance' :: ServiceInstance -> Text
$sel:spec:ServiceInstance' :: ServiceInstance -> Maybe (Sensitive Text)
$sel:deploymentStatusMessage:ServiceInstance' :: ServiceInstance -> 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)
spec
      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
lastDeploymentAttemptedAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
lastDeploymentSucceededAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
serviceName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
templateMajorVersion
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
templateMinorVersion
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
templateName

instance Prelude.NFData ServiceInstance where
  rnf :: ServiceInstance -> ()
rnf ServiceInstance' {Maybe (Sensitive Text)
Text
POSIX
DeploymentStatus
templateName :: Text
templateMinorVersion :: Text
templateMajorVersion :: Text
serviceName :: Text
name :: Text
lastDeploymentSucceededAt :: POSIX
lastDeploymentAttemptedAt :: POSIX
environmentName :: Text
deploymentStatus :: DeploymentStatus
createdAt :: POSIX
arn :: Text
spec :: Maybe (Sensitive Text)
deploymentStatusMessage :: Maybe (Sensitive Text)
$sel:templateName:ServiceInstance' :: ServiceInstance -> Text
$sel:templateMinorVersion:ServiceInstance' :: ServiceInstance -> Text
$sel:templateMajorVersion:ServiceInstance' :: ServiceInstance -> Text
$sel:serviceName:ServiceInstance' :: ServiceInstance -> Text
$sel:name:ServiceInstance' :: ServiceInstance -> Text
$sel:lastDeploymentSucceededAt:ServiceInstance' :: ServiceInstance -> POSIX
$sel:lastDeploymentAttemptedAt:ServiceInstance' :: ServiceInstance -> POSIX
$sel:environmentName:ServiceInstance' :: ServiceInstance -> Text
$sel:deploymentStatus:ServiceInstance' :: ServiceInstance -> DeploymentStatus
$sel:createdAt:ServiceInstance' :: ServiceInstance -> POSIX
$sel:arn:ServiceInstance' :: ServiceInstance -> Text
$sel:spec:ServiceInstance' :: ServiceInstance -> Maybe (Sensitive Text)
$sel:deploymentStatusMessage:ServiceInstance' :: ServiceInstance -> 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)
spec
      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
lastDeploymentAttemptedAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf POSIX
lastDeploymentSucceededAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
serviceName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
templateMajorVersion
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
templateMinorVersion
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
templateName