{-# 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.ElasticBeanstalk.Types.SingleInstanceHealth
-- 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.ElasticBeanstalk.Types.SingleInstanceHealth where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.ElasticBeanstalk.Types.ApplicationMetrics
import Amazonka.ElasticBeanstalk.Types.Deployment
import Amazonka.ElasticBeanstalk.Types.SystemStatus
import qualified Amazonka.Prelude as Prelude

-- | Detailed health information about an Amazon EC2 instance in your Elastic
-- Beanstalk environment.
--
-- /See:/ 'newSingleInstanceHealth' smart constructor.
data SingleInstanceHealth = SingleInstanceHealth'
  { -- | Request metrics from your application.
    SingleInstanceHealth -> Maybe ApplicationMetrics
applicationMetrics :: Prelude.Maybe ApplicationMetrics,
    -- | The availability zone in which the instance runs.
    SingleInstanceHealth -> Maybe Text
availabilityZone :: Prelude.Maybe Prelude.Text,
    -- | Represents the causes, which provide more information about the current
    -- health status.
    SingleInstanceHealth -> Maybe [Text]
causes :: Prelude.Maybe [Prelude.Text],
    -- | Represents the color indicator that gives you information about the
    -- health of the EC2 instance. For more information, see
    -- <https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html Health Colors and Statuses>.
    SingleInstanceHealth -> Maybe Text
color :: Prelude.Maybe Prelude.Text,
    -- | Information about the most recent deployment to an instance.
    SingleInstanceHealth -> Maybe Deployment
deployment :: Prelude.Maybe Deployment,
    -- | Returns the health status of the specified instance. For more
    -- information, see
    -- <https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html Health Colors and Statuses>.
    SingleInstanceHealth -> Maybe Text
healthStatus :: Prelude.Maybe Prelude.Text,
    -- | The ID of the Amazon EC2 instance.
    SingleInstanceHealth -> Maybe Text
instanceId :: Prelude.Maybe Prelude.Text,
    -- | The instance\'s type.
    SingleInstanceHealth -> Maybe Text
instanceType :: Prelude.Maybe Prelude.Text,
    -- | The time at which the EC2 instance was launched.
    SingleInstanceHealth -> Maybe ISO8601
launchedAt :: Prelude.Maybe Data.ISO8601,
    -- | Operating system metrics from the instance.
    SingleInstanceHealth -> Maybe SystemStatus
system :: Prelude.Maybe SystemStatus
  }
  deriving (SingleInstanceHealth -> SingleInstanceHealth -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SingleInstanceHealth -> SingleInstanceHealth -> Bool
$c/= :: SingleInstanceHealth -> SingleInstanceHealth -> Bool
== :: SingleInstanceHealth -> SingleInstanceHealth -> Bool
$c== :: SingleInstanceHealth -> SingleInstanceHealth -> Bool
Prelude.Eq, ReadPrec [SingleInstanceHealth]
ReadPrec SingleInstanceHealth
Int -> ReadS SingleInstanceHealth
ReadS [SingleInstanceHealth]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SingleInstanceHealth]
$creadListPrec :: ReadPrec [SingleInstanceHealth]
readPrec :: ReadPrec SingleInstanceHealth
$creadPrec :: ReadPrec SingleInstanceHealth
readList :: ReadS [SingleInstanceHealth]
$creadList :: ReadS [SingleInstanceHealth]
readsPrec :: Int -> ReadS SingleInstanceHealth
$creadsPrec :: Int -> ReadS SingleInstanceHealth
Prelude.Read, Int -> SingleInstanceHealth -> ShowS
[SingleInstanceHealth] -> ShowS
SingleInstanceHealth -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SingleInstanceHealth] -> ShowS
$cshowList :: [SingleInstanceHealth] -> ShowS
show :: SingleInstanceHealth -> String
$cshow :: SingleInstanceHealth -> String
showsPrec :: Int -> SingleInstanceHealth -> ShowS
$cshowsPrec :: Int -> SingleInstanceHealth -> ShowS
Prelude.Show, forall x. Rep SingleInstanceHealth x -> SingleInstanceHealth
forall x. SingleInstanceHealth -> Rep SingleInstanceHealth x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SingleInstanceHealth x -> SingleInstanceHealth
$cfrom :: forall x. SingleInstanceHealth -> Rep SingleInstanceHealth x
Prelude.Generic)

-- |
-- Create a value of 'SingleInstanceHealth' 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:
--
-- 'applicationMetrics', 'singleInstanceHealth_applicationMetrics' - Request metrics from your application.
--
-- 'availabilityZone', 'singleInstanceHealth_availabilityZone' - The availability zone in which the instance runs.
--
-- 'causes', 'singleInstanceHealth_causes' - Represents the causes, which provide more information about the current
-- health status.
--
-- 'color', 'singleInstanceHealth_color' - Represents the color indicator that gives you information about the
-- health of the EC2 instance. For more information, see
-- <https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html Health Colors and Statuses>.
--
-- 'deployment', 'singleInstanceHealth_deployment' - Information about the most recent deployment to an instance.
--
-- 'healthStatus', 'singleInstanceHealth_healthStatus' - Returns the health status of the specified instance. For more
-- information, see
-- <https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html Health Colors and Statuses>.
--
-- 'instanceId', 'singleInstanceHealth_instanceId' - The ID of the Amazon EC2 instance.
--
-- 'instanceType', 'singleInstanceHealth_instanceType' - The instance\'s type.
--
-- 'launchedAt', 'singleInstanceHealth_launchedAt' - The time at which the EC2 instance was launched.
--
-- 'system', 'singleInstanceHealth_system' - Operating system metrics from the instance.
newSingleInstanceHealth ::
  SingleInstanceHealth
newSingleInstanceHealth :: SingleInstanceHealth
newSingleInstanceHealth =
  SingleInstanceHealth'
    { $sel:applicationMetrics:SingleInstanceHealth' :: Maybe ApplicationMetrics
applicationMetrics =
        forall a. Maybe a
Prelude.Nothing,
      $sel:availabilityZone:SingleInstanceHealth' :: Maybe Text
availabilityZone = forall a. Maybe a
Prelude.Nothing,
      $sel:causes:SingleInstanceHealth' :: Maybe [Text]
causes = forall a. Maybe a
Prelude.Nothing,
      $sel:color:SingleInstanceHealth' :: Maybe Text
color = forall a. Maybe a
Prelude.Nothing,
      $sel:deployment:SingleInstanceHealth' :: Maybe Deployment
deployment = forall a. Maybe a
Prelude.Nothing,
      $sel:healthStatus:SingleInstanceHealth' :: Maybe Text
healthStatus = forall a. Maybe a
Prelude.Nothing,
      $sel:instanceId:SingleInstanceHealth' :: Maybe Text
instanceId = forall a. Maybe a
Prelude.Nothing,
      $sel:instanceType:SingleInstanceHealth' :: Maybe Text
instanceType = forall a. Maybe a
Prelude.Nothing,
      $sel:launchedAt:SingleInstanceHealth' :: Maybe ISO8601
launchedAt = forall a. Maybe a
Prelude.Nothing,
      $sel:system:SingleInstanceHealth' :: Maybe SystemStatus
system = forall a. Maybe a
Prelude.Nothing
    }

-- | Request metrics from your application.
singleInstanceHealth_applicationMetrics :: Lens.Lens' SingleInstanceHealth (Prelude.Maybe ApplicationMetrics)
singleInstanceHealth_applicationMetrics :: Lens' SingleInstanceHealth (Maybe ApplicationMetrics)
singleInstanceHealth_applicationMetrics = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SingleInstanceHealth' {Maybe ApplicationMetrics
applicationMetrics :: Maybe ApplicationMetrics
$sel:applicationMetrics:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe ApplicationMetrics
applicationMetrics} -> Maybe ApplicationMetrics
applicationMetrics) (\s :: SingleInstanceHealth
s@SingleInstanceHealth' {} Maybe ApplicationMetrics
a -> SingleInstanceHealth
s {$sel:applicationMetrics:SingleInstanceHealth' :: Maybe ApplicationMetrics
applicationMetrics = Maybe ApplicationMetrics
a} :: SingleInstanceHealth)

-- | The availability zone in which the instance runs.
singleInstanceHealth_availabilityZone :: Lens.Lens' SingleInstanceHealth (Prelude.Maybe Prelude.Text)
singleInstanceHealth_availabilityZone :: Lens' SingleInstanceHealth (Maybe Text)
singleInstanceHealth_availabilityZone = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SingleInstanceHealth' {Maybe Text
availabilityZone :: Maybe Text
$sel:availabilityZone:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe Text
availabilityZone} -> Maybe Text
availabilityZone) (\s :: SingleInstanceHealth
s@SingleInstanceHealth' {} Maybe Text
a -> SingleInstanceHealth
s {$sel:availabilityZone:SingleInstanceHealth' :: Maybe Text
availabilityZone = Maybe Text
a} :: SingleInstanceHealth)

-- | Represents the causes, which provide more information about the current
-- health status.
singleInstanceHealth_causes :: Lens.Lens' SingleInstanceHealth (Prelude.Maybe [Prelude.Text])
singleInstanceHealth_causes :: Lens' SingleInstanceHealth (Maybe [Text])
singleInstanceHealth_causes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SingleInstanceHealth' {Maybe [Text]
causes :: Maybe [Text]
$sel:causes:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe [Text]
causes} -> Maybe [Text]
causes) (\s :: SingleInstanceHealth
s@SingleInstanceHealth' {} Maybe [Text]
a -> SingleInstanceHealth
s {$sel:causes:SingleInstanceHealth' :: Maybe [Text]
causes = Maybe [Text]
a} :: SingleInstanceHealth) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Represents the color indicator that gives you information about the
-- health of the EC2 instance. For more information, see
-- <https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html Health Colors and Statuses>.
singleInstanceHealth_color :: Lens.Lens' SingleInstanceHealth (Prelude.Maybe Prelude.Text)
singleInstanceHealth_color :: Lens' SingleInstanceHealth (Maybe Text)
singleInstanceHealth_color = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SingleInstanceHealth' {Maybe Text
color :: Maybe Text
$sel:color:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe Text
color} -> Maybe Text
color) (\s :: SingleInstanceHealth
s@SingleInstanceHealth' {} Maybe Text
a -> SingleInstanceHealth
s {$sel:color:SingleInstanceHealth' :: Maybe Text
color = Maybe Text
a} :: SingleInstanceHealth)

-- | Information about the most recent deployment to an instance.
singleInstanceHealth_deployment :: Lens.Lens' SingleInstanceHealth (Prelude.Maybe Deployment)
singleInstanceHealth_deployment :: Lens' SingleInstanceHealth (Maybe Deployment)
singleInstanceHealth_deployment = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SingleInstanceHealth' {Maybe Deployment
deployment :: Maybe Deployment
$sel:deployment:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe Deployment
deployment} -> Maybe Deployment
deployment) (\s :: SingleInstanceHealth
s@SingleInstanceHealth' {} Maybe Deployment
a -> SingleInstanceHealth
s {$sel:deployment:SingleInstanceHealth' :: Maybe Deployment
deployment = Maybe Deployment
a} :: SingleInstanceHealth)

-- | Returns the health status of the specified instance. For more
-- information, see
-- <https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html Health Colors and Statuses>.
singleInstanceHealth_healthStatus :: Lens.Lens' SingleInstanceHealth (Prelude.Maybe Prelude.Text)
singleInstanceHealth_healthStatus :: Lens' SingleInstanceHealth (Maybe Text)
singleInstanceHealth_healthStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SingleInstanceHealth' {Maybe Text
healthStatus :: Maybe Text
$sel:healthStatus:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe Text
healthStatus} -> Maybe Text
healthStatus) (\s :: SingleInstanceHealth
s@SingleInstanceHealth' {} Maybe Text
a -> SingleInstanceHealth
s {$sel:healthStatus:SingleInstanceHealth' :: Maybe Text
healthStatus = Maybe Text
a} :: SingleInstanceHealth)

-- | The ID of the Amazon EC2 instance.
singleInstanceHealth_instanceId :: Lens.Lens' SingleInstanceHealth (Prelude.Maybe Prelude.Text)
singleInstanceHealth_instanceId :: Lens' SingleInstanceHealth (Maybe Text)
singleInstanceHealth_instanceId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SingleInstanceHealth' {Maybe Text
instanceId :: Maybe Text
$sel:instanceId:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe Text
instanceId} -> Maybe Text
instanceId) (\s :: SingleInstanceHealth
s@SingleInstanceHealth' {} Maybe Text
a -> SingleInstanceHealth
s {$sel:instanceId:SingleInstanceHealth' :: Maybe Text
instanceId = Maybe Text
a} :: SingleInstanceHealth)

-- | The instance\'s type.
singleInstanceHealth_instanceType :: Lens.Lens' SingleInstanceHealth (Prelude.Maybe Prelude.Text)
singleInstanceHealth_instanceType :: Lens' SingleInstanceHealth (Maybe Text)
singleInstanceHealth_instanceType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SingleInstanceHealth' {Maybe Text
instanceType :: Maybe Text
$sel:instanceType:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe Text
instanceType} -> Maybe Text
instanceType) (\s :: SingleInstanceHealth
s@SingleInstanceHealth' {} Maybe Text
a -> SingleInstanceHealth
s {$sel:instanceType:SingleInstanceHealth' :: Maybe Text
instanceType = Maybe Text
a} :: SingleInstanceHealth)

-- | The time at which the EC2 instance was launched.
singleInstanceHealth_launchedAt :: Lens.Lens' SingleInstanceHealth (Prelude.Maybe Prelude.UTCTime)
singleInstanceHealth_launchedAt :: Lens' SingleInstanceHealth (Maybe UTCTime)
singleInstanceHealth_launchedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SingleInstanceHealth' {Maybe ISO8601
launchedAt :: Maybe ISO8601
$sel:launchedAt:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe ISO8601
launchedAt} -> Maybe ISO8601
launchedAt) (\s :: SingleInstanceHealth
s@SingleInstanceHealth' {} Maybe ISO8601
a -> SingleInstanceHealth
s {$sel:launchedAt:SingleInstanceHealth' :: Maybe ISO8601
launchedAt = Maybe ISO8601
a} :: SingleInstanceHealth) 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

-- | Operating system metrics from the instance.
singleInstanceHealth_system :: Lens.Lens' SingleInstanceHealth (Prelude.Maybe SystemStatus)
singleInstanceHealth_system :: Lens' SingleInstanceHealth (Maybe SystemStatus)
singleInstanceHealth_system = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SingleInstanceHealth' {Maybe SystemStatus
system :: Maybe SystemStatus
$sel:system:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe SystemStatus
system} -> Maybe SystemStatus
system) (\s :: SingleInstanceHealth
s@SingleInstanceHealth' {} Maybe SystemStatus
a -> SingleInstanceHealth
s {$sel:system:SingleInstanceHealth' :: Maybe SystemStatus
system = Maybe SystemStatus
a} :: SingleInstanceHealth)

instance Data.FromXML SingleInstanceHealth where
  parseXML :: [Node] -> Either String SingleInstanceHealth
parseXML [Node]
x =
    Maybe ApplicationMetrics
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Deployment
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe SystemStatus
-> SingleInstanceHealth
SingleInstanceHealth'
      forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"ApplicationMetrics")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"AvailabilityZone")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x
                      forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Causes"
                      forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                      forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"member")
                  )
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Color")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Deployment")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"HealthStatus")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"InstanceId")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"InstanceType")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"LaunchedAt")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"System")

instance Prelude.Hashable SingleInstanceHealth where
  hashWithSalt :: Int -> SingleInstanceHealth -> Int
hashWithSalt Int
_salt SingleInstanceHealth' {Maybe [Text]
Maybe Text
Maybe ISO8601
Maybe Deployment
Maybe ApplicationMetrics
Maybe SystemStatus
system :: Maybe SystemStatus
launchedAt :: Maybe ISO8601
instanceType :: Maybe Text
instanceId :: Maybe Text
healthStatus :: Maybe Text
deployment :: Maybe Deployment
color :: Maybe Text
causes :: Maybe [Text]
availabilityZone :: Maybe Text
applicationMetrics :: Maybe ApplicationMetrics
$sel:system:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe SystemStatus
$sel:launchedAt:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe ISO8601
$sel:instanceType:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe Text
$sel:instanceId:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe Text
$sel:healthStatus:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe Text
$sel:deployment:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe Deployment
$sel:color:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe Text
$sel:causes:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe [Text]
$sel:availabilityZone:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe Text
$sel:applicationMetrics:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe ApplicationMetrics
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ApplicationMetrics
applicationMetrics
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
availabilityZone
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
causes
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
color
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Deployment
deployment
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
healthStatus
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
instanceId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
instanceType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
launchedAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SystemStatus
system

instance Prelude.NFData SingleInstanceHealth where
  rnf :: SingleInstanceHealth -> ()
rnf SingleInstanceHealth' {Maybe [Text]
Maybe Text
Maybe ISO8601
Maybe Deployment
Maybe ApplicationMetrics
Maybe SystemStatus
system :: Maybe SystemStatus
launchedAt :: Maybe ISO8601
instanceType :: Maybe Text
instanceId :: Maybe Text
healthStatus :: Maybe Text
deployment :: Maybe Deployment
color :: Maybe Text
causes :: Maybe [Text]
availabilityZone :: Maybe Text
applicationMetrics :: Maybe ApplicationMetrics
$sel:system:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe SystemStatus
$sel:launchedAt:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe ISO8601
$sel:instanceType:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe Text
$sel:instanceId:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe Text
$sel:healthStatus:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe Text
$sel:deployment:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe Deployment
$sel:color:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe Text
$sel:causes:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe [Text]
$sel:availabilityZone:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe Text
$sel:applicationMetrics:SingleInstanceHealth' :: SingleInstanceHealth -> Maybe ApplicationMetrics
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe ApplicationMetrics
applicationMetrics
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
availabilityZone
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
causes
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
color
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Deployment
deployment
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
healthStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
instanceId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
instanceType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
launchedAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SystemStatus
system