{-# 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.ComputeOptimizer.Types.AutoScalingGroupRecommendationOption
-- 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.ComputeOptimizer.Types.AutoScalingGroupRecommendationOption where

import Amazonka.ComputeOptimizer.Types.AutoScalingGroupConfiguration
import Amazonka.ComputeOptimizer.Types.MigrationEffort
import Amazonka.ComputeOptimizer.Types.SavingsOpportunity
import Amazonka.ComputeOptimizer.Types.UtilizationMetric
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

-- | Describes a recommendation option for an Auto Scaling group.
--
-- /See:/ 'newAutoScalingGroupRecommendationOption' smart constructor.
data AutoScalingGroupRecommendationOption = AutoScalingGroupRecommendationOption'
  { -- | An array of objects that describe an Auto Scaling group configuration.
    AutoScalingGroupRecommendationOption
-> Maybe AutoScalingGroupConfiguration
configuration :: Prelude.Maybe AutoScalingGroupConfiguration,
    -- | The level of effort required to migrate from the current instance type
    -- to the recommended instance type.
    --
    -- For example, the migration effort is @Low@ if Amazon EMR is the inferred
    -- workload type and an Amazon Web Services Graviton instance type is
    -- recommended. The migration effort is @Medium@ if a workload type
    -- couldn\'t be inferred but an Amazon Web Services Graviton instance type
    -- is recommended. The migration effort is @VeryLow@ if both the current
    -- and recommended instance types are of the same CPU architecture.
    AutoScalingGroupRecommendationOption -> Maybe MigrationEffort
migrationEffort :: Prelude.Maybe MigrationEffort,
    -- | The performance risk of the Auto Scaling group configuration
    -- recommendation.
    --
    -- Performance risk indicates the likelihood of the recommended instance
    -- type not meeting the resource needs of your workload. Compute Optimizer
    -- calculates an individual performance risk score for each specification
    -- of the recommended instance, including CPU, memory, EBS throughput, EBS
    -- IOPS, disk throughput, disk IOPS, network throughput, and network PPS.
    -- The performance risk of the recommended instance is calculated as the
    -- maximum performance risk score across the analyzed resource
    -- specifications.
    --
    -- The value ranges from @0@ - @4@, with @0@ meaning that the recommended
    -- resource is predicted to always provide enough hardware capability. The
    -- higher the performance risk is, the more likely you should validate
    -- whether the recommendation will meet the performance requirements of
    -- your workload before migrating your resource.
    AutoScalingGroupRecommendationOption -> Maybe Double
performanceRisk :: Prelude.Maybe Prelude.Double,
    -- | An array of objects that describe the projected utilization metrics of
    -- the Auto Scaling group recommendation option.
    --
    -- The @Cpu@ and @Memory@ metrics are the only projected utilization
    -- metrics returned. Additionally, the @Memory@ metric is returned only for
    -- resources that have the unified CloudWatch agent installed on them. For
    -- more information, see
    -- <https://docs.aws.amazon.com/compute-optimizer/latest/ug/metrics.html#cw-agent Enabling Memory Utilization with the CloudWatch Agent>.
    AutoScalingGroupRecommendationOption -> Maybe [UtilizationMetric]
projectedUtilizationMetrics :: Prelude.Maybe [UtilizationMetric],
    -- | The rank of the Auto Scaling group recommendation option.
    --
    -- The top recommendation option is ranked as @1@.
    AutoScalingGroupRecommendationOption -> Maybe Int
rank :: Prelude.Maybe Prelude.Int,
    -- | An object that describes the savings opportunity for the Auto Scaling
    -- group recommendation option. Savings opportunity includes the estimated
    -- monthly savings amount and percentage.
    AutoScalingGroupRecommendationOption -> Maybe SavingsOpportunity
savingsOpportunity :: Prelude.Maybe SavingsOpportunity
  }
  deriving (AutoScalingGroupRecommendationOption
-> AutoScalingGroupRecommendationOption -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AutoScalingGroupRecommendationOption
-> AutoScalingGroupRecommendationOption -> Bool
$c/= :: AutoScalingGroupRecommendationOption
-> AutoScalingGroupRecommendationOption -> Bool
== :: AutoScalingGroupRecommendationOption
-> AutoScalingGroupRecommendationOption -> Bool
$c== :: AutoScalingGroupRecommendationOption
-> AutoScalingGroupRecommendationOption -> Bool
Prelude.Eq, ReadPrec [AutoScalingGroupRecommendationOption]
ReadPrec AutoScalingGroupRecommendationOption
Int -> ReadS AutoScalingGroupRecommendationOption
ReadS [AutoScalingGroupRecommendationOption]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AutoScalingGroupRecommendationOption]
$creadListPrec :: ReadPrec [AutoScalingGroupRecommendationOption]
readPrec :: ReadPrec AutoScalingGroupRecommendationOption
$creadPrec :: ReadPrec AutoScalingGroupRecommendationOption
readList :: ReadS [AutoScalingGroupRecommendationOption]
$creadList :: ReadS [AutoScalingGroupRecommendationOption]
readsPrec :: Int -> ReadS AutoScalingGroupRecommendationOption
$creadsPrec :: Int -> ReadS AutoScalingGroupRecommendationOption
Prelude.Read, Int -> AutoScalingGroupRecommendationOption -> ShowS
[AutoScalingGroupRecommendationOption] -> ShowS
AutoScalingGroupRecommendationOption -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AutoScalingGroupRecommendationOption] -> ShowS
$cshowList :: [AutoScalingGroupRecommendationOption] -> ShowS
show :: AutoScalingGroupRecommendationOption -> String
$cshow :: AutoScalingGroupRecommendationOption -> String
showsPrec :: Int -> AutoScalingGroupRecommendationOption -> ShowS
$cshowsPrec :: Int -> AutoScalingGroupRecommendationOption -> ShowS
Prelude.Show, forall x.
Rep AutoScalingGroupRecommendationOption x
-> AutoScalingGroupRecommendationOption
forall x.
AutoScalingGroupRecommendationOption
-> Rep AutoScalingGroupRecommendationOption x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AutoScalingGroupRecommendationOption x
-> AutoScalingGroupRecommendationOption
$cfrom :: forall x.
AutoScalingGroupRecommendationOption
-> Rep AutoScalingGroupRecommendationOption x
Prelude.Generic)

-- |
-- Create a value of 'AutoScalingGroupRecommendationOption' 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:
--
-- 'configuration', 'autoScalingGroupRecommendationOption_configuration' - An array of objects that describe an Auto Scaling group configuration.
--
-- 'migrationEffort', 'autoScalingGroupRecommendationOption_migrationEffort' - The level of effort required to migrate from the current instance type
-- to the recommended instance type.
--
-- For example, the migration effort is @Low@ if Amazon EMR is the inferred
-- workload type and an Amazon Web Services Graviton instance type is
-- recommended. The migration effort is @Medium@ if a workload type
-- couldn\'t be inferred but an Amazon Web Services Graviton instance type
-- is recommended. The migration effort is @VeryLow@ if both the current
-- and recommended instance types are of the same CPU architecture.
--
-- 'performanceRisk', 'autoScalingGroupRecommendationOption_performanceRisk' - The performance risk of the Auto Scaling group configuration
-- recommendation.
--
-- Performance risk indicates the likelihood of the recommended instance
-- type not meeting the resource needs of your workload. Compute Optimizer
-- calculates an individual performance risk score for each specification
-- of the recommended instance, including CPU, memory, EBS throughput, EBS
-- IOPS, disk throughput, disk IOPS, network throughput, and network PPS.
-- The performance risk of the recommended instance is calculated as the
-- maximum performance risk score across the analyzed resource
-- specifications.
--
-- The value ranges from @0@ - @4@, with @0@ meaning that the recommended
-- resource is predicted to always provide enough hardware capability. The
-- higher the performance risk is, the more likely you should validate
-- whether the recommendation will meet the performance requirements of
-- your workload before migrating your resource.
--
-- 'projectedUtilizationMetrics', 'autoScalingGroupRecommendationOption_projectedUtilizationMetrics' - An array of objects that describe the projected utilization metrics of
-- the Auto Scaling group recommendation option.
--
-- The @Cpu@ and @Memory@ metrics are the only projected utilization
-- metrics returned. Additionally, the @Memory@ metric is returned only for
-- resources that have the unified CloudWatch agent installed on them. For
-- more information, see
-- <https://docs.aws.amazon.com/compute-optimizer/latest/ug/metrics.html#cw-agent Enabling Memory Utilization with the CloudWatch Agent>.
--
-- 'rank', 'autoScalingGroupRecommendationOption_rank' - The rank of the Auto Scaling group recommendation option.
--
-- The top recommendation option is ranked as @1@.
--
-- 'savingsOpportunity', 'autoScalingGroupRecommendationOption_savingsOpportunity' - An object that describes the savings opportunity for the Auto Scaling
-- group recommendation option. Savings opportunity includes the estimated
-- monthly savings amount and percentage.
newAutoScalingGroupRecommendationOption ::
  AutoScalingGroupRecommendationOption
newAutoScalingGroupRecommendationOption :: AutoScalingGroupRecommendationOption
newAutoScalingGroupRecommendationOption =
  AutoScalingGroupRecommendationOption'
    { $sel:configuration:AutoScalingGroupRecommendationOption' :: Maybe AutoScalingGroupConfiguration
configuration =
        forall a. Maybe a
Prelude.Nothing,
      $sel:migrationEffort:AutoScalingGroupRecommendationOption' :: Maybe MigrationEffort
migrationEffort = forall a. Maybe a
Prelude.Nothing,
      $sel:performanceRisk:AutoScalingGroupRecommendationOption' :: Maybe Double
performanceRisk = forall a. Maybe a
Prelude.Nothing,
      $sel:projectedUtilizationMetrics:AutoScalingGroupRecommendationOption' :: Maybe [UtilizationMetric]
projectedUtilizationMetrics =
        forall a. Maybe a
Prelude.Nothing,
      $sel:rank:AutoScalingGroupRecommendationOption' :: Maybe Int
rank = forall a. Maybe a
Prelude.Nothing,
      $sel:savingsOpportunity:AutoScalingGroupRecommendationOption' :: Maybe SavingsOpportunity
savingsOpportunity = forall a. Maybe a
Prelude.Nothing
    }

-- | An array of objects that describe an Auto Scaling group configuration.
autoScalingGroupRecommendationOption_configuration :: Lens.Lens' AutoScalingGroupRecommendationOption (Prelude.Maybe AutoScalingGroupConfiguration)
autoScalingGroupRecommendationOption_configuration :: Lens'
  AutoScalingGroupRecommendationOption
  (Maybe AutoScalingGroupConfiguration)
autoScalingGroupRecommendationOption_configuration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoScalingGroupRecommendationOption' {Maybe AutoScalingGroupConfiguration
configuration :: Maybe AutoScalingGroupConfiguration
$sel:configuration:AutoScalingGroupRecommendationOption' :: AutoScalingGroupRecommendationOption
-> Maybe AutoScalingGroupConfiguration
configuration} -> Maybe AutoScalingGroupConfiguration
configuration) (\s :: AutoScalingGroupRecommendationOption
s@AutoScalingGroupRecommendationOption' {} Maybe AutoScalingGroupConfiguration
a -> AutoScalingGroupRecommendationOption
s {$sel:configuration:AutoScalingGroupRecommendationOption' :: Maybe AutoScalingGroupConfiguration
configuration = Maybe AutoScalingGroupConfiguration
a} :: AutoScalingGroupRecommendationOption)

-- | The level of effort required to migrate from the current instance type
-- to the recommended instance type.
--
-- For example, the migration effort is @Low@ if Amazon EMR is the inferred
-- workload type and an Amazon Web Services Graviton instance type is
-- recommended. The migration effort is @Medium@ if a workload type
-- couldn\'t be inferred but an Amazon Web Services Graviton instance type
-- is recommended. The migration effort is @VeryLow@ if both the current
-- and recommended instance types are of the same CPU architecture.
autoScalingGroupRecommendationOption_migrationEffort :: Lens.Lens' AutoScalingGroupRecommendationOption (Prelude.Maybe MigrationEffort)
autoScalingGroupRecommendationOption_migrationEffort :: Lens' AutoScalingGroupRecommendationOption (Maybe MigrationEffort)
autoScalingGroupRecommendationOption_migrationEffort = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoScalingGroupRecommendationOption' {Maybe MigrationEffort
migrationEffort :: Maybe MigrationEffort
$sel:migrationEffort:AutoScalingGroupRecommendationOption' :: AutoScalingGroupRecommendationOption -> Maybe MigrationEffort
migrationEffort} -> Maybe MigrationEffort
migrationEffort) (\s :: AutoScalingGroupRecommendationOption
s@AutoScalingGroupRecommendationOption' {} Maybe MigrationEffort
a -> AutoScalingGroupRecommendationOption
s {$sel:migrationEffort:AutoScalingGroupRecommendationOption' :: Maybe MigrationEffort
migrationEffort = Maybe MigrationEffort
a} :: AutoScalingGroupRecommendationOption)

-- | The performance risk of the Auto Scaling group configuration
-- recommendation.
--
-- Performance risk indicates the likelihood of the recommended instance
-- type not meeting the resource needs of your workload. Compute Optimizer
-- calculates an individual performance risk score for each specification
-- of the recommended instance, including CPU, memory, EBS throughput, EBS
-- IOPS, disk throughput, disk IOPS, network throughput, and network PPS.
-- The performance risk of the recommended instance is calculated as the
-- maximum performance risk score across the analyzed resource
-- specifications.
--
-- The value ranges from @0@ - @4@, with @0@ meaning that the recommended
-- resource is predicted to always provide enough hardware capability. The
-- higher the performance risk is, the more likely you should validate
-- whether the recommendation will meet the performance requirements of
-- your workload before migrating your resource.
autoScalingGroupRecommendationOption_performanceRisk :: Lens.Lens' AutoScalingGroupRecommendationOption (Prelude.Maybe Prelude.Double)
autoScalingGroupRecommendationOption_performanceRisk :: Lens' AutoScalingGroupRecommendationOption (Maybe Double)
autoScalingGroupRecommendationOption_performanceRisk = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoScalingGroupRecommendationOption' {Maybe Double
performanceRisk :: Maybe Double
$sel:performanceRisk:AutoScalingGroupRecommendationOption' :: AutoScalingGroupRecommendationOption -> Maybe Double
performanceRisk} -> Maybe Double
performanceRisk) (\s :: AutoScalingGroupRecommendationOption
s@AutoScalingGroupRecommendationOption' {} Maybe Double
a -> AutoScalingGroupRecommendationOption
s {$sel:performanceRisk:AutoScalingGroupRecommendationOption' :: Maybe Double
performanceRisk = Maybe Double
a} :: AutoScalingGroupRecommendationOption)

-- | An array of objects that describe the projected utilization metrics of
-- the Auto Scaling group recommendation option.
--
-- The @Cpu@ and @Memory@ metrics are the only projected utilization
-- metrics returned. Additionally, the @Memory@ metric is returned only for
-- resources that have the unified CloudWatch agent installed on them. For
-- more information, see
-- <https://docs.aws.amazon.com/compute-optimizer/latest/ug/metrics.html#cw-agent Enabling Memory Utilization with the CloudWatch Agent>.
autoScalingGroupRecommendationOption_projectedUtilizationMetrics :: Lens.Lens' AutoScalingGroupRecommendationOption (Prelude.Maybe [UtilizationMetric])
autoScalingGroupRecommendationOption_projectedUtilizationMetrics :: Lens'
  AutoScalingGroupRecommendationOption (Maybe [UtilizationMetric])
autoScalingGroupRecommendationOption_projectedUtilizationMetrics = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoScalingGroupRecommendationOption' {Maybe [UtilizationMetric]
projectedUtilizationMetrics :: Maybe [UtilizationMetric]
$sel:projectedUtilizationMetrics:AutoScalingGroupRecommendationOption' :: AutoScalingGroupRecommendationOption -> Maybe [UtilizationMetric]
projectedUtilizationMetrics} -> Maybe [UtilizationMetric]
projectedUtilizationMetrics) (\s :: AutoScalingGroupRecommendationOption
s@AutoScalingGroupRecommendationOption' {} Maybe [UtilizationMetric]
a -> AutoScalingGroupRecommendationOption
s {$sel:projectedUtilizationMetrics:AutoScalingGroupRecommendationOption' :: Maybe [UtilizationMetric]
projectedUtilizationMetrics = Maybe [UtilizationMetric]
a} :: AutoScalingGroupRecommendationOption) 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

-- | The rank of the Auto Scaling group recommendation option.
--
-- The top recommendation option is ranked as @1@.
autoScalingGroupRecommendationOption_rank :: Lens.Lens' AutoScalingGroupRecommendationOption (Prelude.Maybe Prelude.Int)
autoScalingGroupRecommendationOption_rank :: Lens' AutoScalingGroupRecommendationOption (Maybe Int)
autoScalingGroupRecommendationOption_rank = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoScalingGroupRecommendationOption' {Maybe Int
rank :: Maybe Int
$sel:rank:AutoScalingGroupRecommendationOption' :: AutoScalingGroupRecommendationOption -> Maybe Int
rank} -> Maybe Int
rank) (\s :: AutoScalingGroupRecommendationOption
s@AutoScalingGroupRecommendationOption' {} Maybe Int
a -> AutoScalingGroupRecommendationOption
s {$sel:rank:AutoScalingGroupRecommendationOption' :: Maybe Int
rank = Maybe Int
a} :: AutoScalingGroupRecommendationOption)

-- | An object that describes the savings opportunity for the Auto Scaling
-- group recommendation option. Savings opportunity includes the estimated
-- monthly savings amount and percentage.
autoScalingGroupRecommendationOption_savingsOpportunity :: Lens.Lens' AutoScalingGroupRecommendationOption (Prelude.Maybe SavingsOpportunity)
autoScalingGroupRecommendationOption_savingsOpportunity :: Lens'
  AutoScalingGroupRecommendationOption (Maybe SavingsOpportunity)
autoScalingGroupRecommendationOption_savingsOpportunity = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoScalingGroupRecommendationOption' {Maybe SavingsOpportunity
savingsOpportunity :: Maybe SavingsOpportunity
$sel:savingsOpportunity:AutoScalingGroupRecommendationOption' :: AutoScalingGroupRecommendationOption -> Maybe SavingsOpportunity
savingsOpportunity} -> Maybe SavingsOpportunity
savingsOpportunity) (\s :: AutoScalingGroupRecommendationOption
s@AutoScalingGroupRecommendationOption' {} Maybe SavingsOpportunity
a -> AutoScalingGroupRecommendationOption
s {$sel:savingsOpportunity:AutoScalingGroupRecommendationOption' :: Maybe SavingsOpportunity
savingsOpportunity = Maybe SavingsOpportunity
a} :: AutoScalingGroupRecommendationOption)

instance
  Data.FromJSON
    AutoScalingGroupRecommendationOption
  where
  parseJSON :: Value -> Parser AutoScalingGroupRecommendationOption
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"AutoScalingGroupRecommendationOption"
      ( \Object
x ->
          Maybe AutoScalingGroupConfiguration
-> Maybe MigrationEffort
-> Maybe Double
-> Maybe [UtilizationMetric]
-> Maybe Int
-> Maybe SavingsOpportunity
-> AutoScalingGroupRecommendationOption
AutoScalingGroupRecommendationOption'
            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
"configuration")
            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
"migrationEffort")
            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
"performanceRisk")
            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
"projectedUtilizationMetrics"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            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
"rank")
            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
"savingsOpportunity")
      )

instance
  Prelude.Hashable
    AutoScalingGroupRecommendationOption
  where
  hashWithSalt :: Int -> AutoScalingGroupRecommendationOption -> Int
hashWithSalt
    Int
_salt
    AutoScalingGroupRecommendationOption' {Maybe Double
Maybe Int
Maybe [UtilizationMetric]
Maybe AutoScalingGroupConfiguration
Maybe MigrationEffort
Maybe SavingsOpportunity
savingsOpportunity :: Maybe SavingsOpportunity
rank :: Maybe Int
projectedUtilizationMetrics :: Maybe [UtilizationMetric]
performanceRisk :: Maybe Double
migrationEffort :: Maybe MigrationEffort
configuration :: Maybe AutoScalingGroupConfiguration
$sel:savingsOpportunity:AutoScalingGroupRecommendationOption' :: AutoScalingGroupRecommendationOption -> Maybe SavingsOpportunity
$sel:rank:AutoScalingGroupRecommendationOption' :: AutoScalingGroupRecommendationOption -> Maybe Int
$sel:projectedUtilizationMetrics:AutoScalingGroupRecommendationOption' :: AutoScalingGroupRecommendationOption -> Maybe [UtilizationMetric]
$sel:performanceRisk:AutoScalingGroupRecommendationOption' :: AutoScalingGroupRecommendationOption -> Maybe Double
$sel:migrationEffort:AutoScalingGroupRecommendationOption' :: AutoScalingGroupRecommendationOption -> Maybe MigrationEffort
$sel:configuration:AutoScalingGroupRecommendationOption' :: AutoScalingGroupRecommendationOption
-> Maybe AutoScalingGroupConfiguration
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AutoScalingGroupConfiguration
configuration
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MigrationEffort
migrationEffort
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Double
performanceRisk
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [UtilizationMetric]
projectedUtilizationMetrics
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
rank
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SavingsOpportunity
savingsOpportunity

instance
  Prelude.NFData
    AutoScalingGroupRecommendationOption
  where
  rnf :: AutoScalingGroupRecommendationOption -> ()
rnf AutoScalingGroupRecommendationOption' {Maybe Double
Maybe Int
Maybe [UtilizationMetric]
Maybe AutoScalingGroupConfiguration
Maybe MigrationEffort
Maybe SavingsOpportunity
savingsOpportunity :: Maybe SavingsOpportunity
rank :: Maybe Int
projectedUtilizationMetrics :: Maybe [UtilizationMetric]
performanceRisk :: Maybe Double
migrationEffort :: Maybe MigrationEffort
configuration :: Maybe AutoScalingGroupConfiguration
$sel:savingsOpportunity:AutoScalingGroupRecommendationOption' :: AutoScalingGroupRecommendationOption -> Maybe SavingsOpportunity
$sel:rank:AutoScalingGroupRecommendationOption' :: AutoScalingGroupRecommendationOption -> Maybe Int
$sel:projectedUtilizationMetrics:AutoScalingGroupRecommendationOption' :: AutoScalingGroupRecommendationOption -> Maybe [UtilizationMetric]
$sel:performanceRisk:AutoScalingGroupRecommendationOption' :: AutoScalingGroupRecommendationOption -> Maybe Double
$sel:migrationEffort:AutoScalingGroupRecommendationOption' :: AutoScalingGroupRecommendationOption -> Maybe MigrationEffort
$sel:configuration:AutoScalingGroupRecommendationOption' :: AutoScalingGroupRecommendationOption
-> Maybe AutoScalingGroupConfiguration
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe AutoScalingGroupConfiguration
configuration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MigrationEffort
migrationEffort
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
performanceRisk
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [UtilizationMetric]
projectedUtilizationMetrics
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
rank
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SavingsOpportunity
savingsOpportunity