-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Amazon Compute Optimizer SDK.
--
-- Derived from API version 2019-11-01 of the AWS service
-- descriptions, licensed under Apache 2.0.
--
-- The types from this library are intended to be used with
-- amazonka, which provides mechanisms for specifying AuthN/AuthZ
-- information, sending requests, and receiving responses.
--
-- It is recommended to use generic lenses or optics from packages such
-- as generic-lens or optics to modify optional fields and
-- deconstruct responses.
--
-- Generated lenses can be found in Amazonka.ComputeOptimizer.Lens
-- and are suitable for use with a lens package such as lens or
-- lens-family-core.
--
-- See Amazonka.ComputeOptimizer and the AWS documentation
-- to get started.
@package amazonka-compute-optimizer
@version 2.0
module Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration
newtype AutoScalingConfiguration
AutoScalingConfiguration' :: Text -> AutoScalingConfiguration
[fromAutoScalingConfiguration] :: AutoScalingConfiguration -> Text
pattern AutoScalingConfiguration_TargetTrackingScalingCpu :: AutoScalingConfiguration
pattern AutoScalingConfiguration_TargetTrackingScalingMemory :: AutoScalingConfiguration
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration.AutoScalingConfiguration
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration.AutoScalingConfiguration
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration.AutoScalingConfiguration
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration.AutoScalingConfiguration
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration.AutoScalingConfiguration
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration.AutoScalingConfiguration
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration.AutoScalingConfiguration
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration.AutoScalingConfiguration
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration.AutoScalingConfiguration
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration.AutoScalingConfiguration
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration.AutoScalingConfiguration
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration.AutoScalingConfiguration
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration.AutoScalingConfiguration
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration.AutoScalingConfiguration
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration.AutoScalingConfiguration
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration.AutoScalingConfiguration
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration.AutoScalingConfiguration
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration.AutoScalingConfiguration
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.AutoScalingConfiguration.AutoScalingConfiguration
module Amazonka.ComputeOptimizer.Types.AutoScalingGroupConfiguration
-- | Describes the configuration of an Auto Scaling group.
--
-- See: newAutoScalingGroupConfiguration smart constructor.
data AutoScalingGroupConfiguration
AutoScalingGroupConfiguration' :: Maybe Int -> Maybe Text -> Maybe Int -> Maybe Int -> AutoScalingGroupConfiguration
-- | The desired capacity, or number of instances, for the Auto Scaling
-- group.
[$sel:desiredCapacity:AutoScalingGroupConfiguration'] :: AutoScalingGroupConfiguration -> Maybe Int
-- | The instance type for the Auto Scaling group.
[$sel:instanceType:AutoScalingGroupConfiguration'] :: AutoScalingGroupConfiguration -> Maybe Text
-- | The maximum size, or maximum number of instances, for the Auto Scaling
-- group.
[$sel:maxSize:AutoScalingGroupConfiguration'] :: AutoScalingGroupConfiguration -> Maybe Int
-- | The minimum size, or minimum number of instances, for the Auto Scaling
-- group.
[$sel:minSize:AutoScalingGroupConfiguration'] :: AutoScalingGroupConfiguration -> Maybe Int
-- | Create a value of AutoScalingGroupConfiguration with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:desiredCapacity:AutoScalingGroupConfiguration',
-- autoScalingGroupConfiguration_desiredCapacity - The desired
-- capacity, or number of instances, for the Auto Scaling group.
--
-- $sel:instanceType:AutoScalingGroupConfiguration',
-- autoScalingGroupConfiguration_instanceType - The instance type
-- for the Auto Scaling group.
--
-- $sel:maxSize:AutoScalingGroupConfiguration',
-- autoScalingGroupConfiguration_maxSize - The maximum size, or
-- maximum number of instances, for the Auto Scaling group.
--
-- $sel:minSize:AutoScalingGroupConfiguration',
-- autoScalingGroupConfiguration_minSize - The minimum size, or
-- minimum number of instances, for the Auto Scaling group.
newAutoScalingGroupConfiguration :: AutoScalingGroupConfiguration
-- | The desired capacity, or number of instances, for the Auto Scaling
-- group.
autoScalingGroupConfiguration_desiredCapacity :: Lens' AutoScalingGroupConfiguration (Maybe Int)
-- | The instance type for the Auto Scaling group.
autoScalingGroupConfiguration_instanceType :: Lens' AutoScalingGroupConfiguration (Maybe Text)
-- | The maximum size, or maximum number of instances, for the Auto Scaling
-- group.
autoScalingGroupConfiguration_maxSize :: Lens' AutoScalingGroupConfiguration (Maybe Int)
-- | The minimum size, or minimum number of instances, for the Auto Scaling
-- group.
autoScalingGroupConfiguration_minSize :: Lens' AutoScalingGroupConfiguration (Maybe Int)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.AutoScalingGroupConfiguration.AutoScalingGroupConfiguration
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.AutoScalingGroupConfiguration.AutoScalingGroupConfiguration
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.AutoScalingGroupConfiguration.AutoScalingGroupConfiguration
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.AutoScalingGroupConfiguration.AutoScalingGroupConfiguration
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.AutoScalingGroupConfiguration.AutoScalingGroupConfiguration
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.AutoScalingGroupConfiguration.AutoScalingGroupConfiguration
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.AutoScalingGroupConfiguration.AutoScalingGroupConfiguration
module Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture
newtype CpuVendorArchitecture
CpuVendorArchitecture' :: Text -> CpuVendorArchitecture
[fromCpuVendorArchitecture] :: CpuVendorArchitecture -> Text
pattern CpuVendorArchitecture_AWS_ARM64 :: CpuVendorArchitecture
pattern CpuVendorArchitecture_CURRENT :: CpuVendorArchitecture
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture.CpuVendorArchitecture
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture.CpuVendorArchitecture
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture.CpuVendorArchitecture
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture.CpuVendorArchitecture
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture.CpuVendorArchitecture
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture.CpuVendorArchitecture
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture.CpuVendorArchitecture
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture.CpuVendorArchitecture
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture.CpuVendorArchitecture
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture.CpuVendorArchitecture
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture.CpuVendorArchitecture
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture.CpuVendorArchitecture
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture.CpuVendorArchitecture
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture.CpuVendorArchitecture
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture.CpuVendorArchitecture
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture.CpuVendorArchitecture
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture.CpuVendorArchitecture
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture.CpuVendorArchitecture
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.CpuVendorArchitecture.CpuVendorArchitecture
module Amazonka.ComputeOptimizer.Types.Currency
newtype Currency
Currency' :: Text -> Currency
[fromCurrency] :: Currency -> Text
pattern Currency_CNY :: Currency
pattern Currency_USD :: Currency
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.Currency.Currency
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.Currency.Currency
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.Currency.Currency
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.Currency.Currency
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.Currency.Currency
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.Currency.Currency
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.Currency.Currency
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.Currency.Currency
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.Currency.Currency
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.Currency.Currency
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.Currency.Currency
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.Currency.Currency
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.Currency.Currency
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.Currency.Currency
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.Currency.Currency
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.Currency.Currency
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.Currency.Currency
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.Currency.Currency
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.Currency.Currency
module Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk
newtype CurrentPerformanceRisk
CurrentPerformanceRisk' :: Text -> CurrentPerformanceRisk
[fromCurrentPerformanceRisk] :: CurrentPerformanceRisk -> Text
pattern CurrentPerformanceRisk_High :: CurrentPerformanceRisk
pattern CurrentPerformanceRisk_Low :: CurrentPerformanceRisk
pattern CurrentPerformanceRisk_Medium :: CurrentPerformanceRisk
pattern CurrentPerformanceRisk_VeryLow :: CurrentPerformanceRisk
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk.CurrentPerformanceRisk
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk.CurrentPerformanceRisk
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk.CurrentPerformanceRisk
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk.CurrentPerformanceRisk
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk.CurrentPerformanceRisk
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk.CurrentPerformanceRisk
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk.CurrentPerformanceRisk
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk.CurrentPerformanceRisk
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk.CurrentPerformanceRisk
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk.CurrentPerformanceRisk
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk.CurrentPerformanceRisk
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk.CurrentPerformanceRisk
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk.CurrentPerformanceRisk
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk.CurrentPerformanceRisk
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk.CurrentPerformanceRisk
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk.CurrentPerformanceRisk
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk.CurrentPerformanceRisk
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk.CurrentPerformanceRisk
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.CurrentPerformanceRisk.CurrentPerformanceRisk
module Amazonka.ComputeOptimizer.Types.CurrentPerformanceRiskRatings
-- | Describes the performance risk ratings for a given resource type.
--
-- Resources with a high or medium rating are at risk
-- of not meeting the performance needs of their workloads, while
-- resources with a low rating are performing well in their
-- workloads.
--
-- See: newCurrentPerformanceRiskRatings smart constructor.
data CurrentPerformanceRiskRatings
CurrentPerformanceRiskRatings' :: Maybe Integer -> Maybe Integer -> Maybe Integer -> Maybe Integer -> CurrentPerformanceRiskRatings
-- | A count of the applicable resource types with a high performance risk
-- rating.
[$sel:high:CurrentPerformanceRiskRatings'] :: CurrentPerformanceRiskRatings -> Maybe Integer
-- | A count of the applicable resource types with a low performance risk
-- rating.
[$sel:low:CurrentPerformanceRiskRatings'] :: CurrentPerformanceRiskRatings -> Maybe Integer
-- | A count of the applicable resource types with a medium performance
-- risk rating.
[$sel:medium:CurrentPerformanceRiskRatings'] :: CurrentPerformanceRiskRatings -> Maybe Integer
-- | A count of the applicable resource types with a very low performance
-- risk rating.
[$sel:veryLow:CurrentPerformanceRiskRatings'] :: CurrentPerformanceRiskRatings -> Maybe Integer
-- | Create a value of CurrentPerformanceRiskRatings with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:high:CurrentPerformanceRiskRatings',
-- currentPerformanceRiskRatings_high - A count of the applicable
-- resource types with a high performance risk rating.
--
-- $sel:low:CurrentPerformanceRiskRatings',
-- currentPerformanceRiskRatings_low - A count of the applicable
-- resource types with a low performance risk rating.
--
-- $sel:medium:CurrentPerformanceRiskRatings',
-- currentPerformanceRiskRatings_medium - A count of the
-- applicable resource types with a medium performance risk rating.
--
-- $sel:veryLow:CurrentPerformanceRiskRatings',
-- currentPerformanceRiskRatings_veryLow - A count of the
-- applicable resource types with a very low performance risk rating.
newCurrentPerformanceRiskRatings :: CurrentPerformanceRiskRatings
-- | A count of the applicable resource types with a high performance risk
-- rating.
currentPerformanceRiskRatings_high :: Lens' CurrentPerformanceRiskRatings (Maybe Integer)
-- | A count of the applicable resource types with a low performance risk
-- rating.
currentPerformanceRiskRatings_low :: Lens' CurrentPerformanceRiskRatings (Maybe Integer)
-- | A count of the applicable resource types with a medium performance
-- risk rating.
currentPerformanceRiskRatings_medium :: Lens' CurrentPerformanceRiskRatings (Maybe Integer)
-- | A count of the applicable resource types with a very low performance
-- risk rating.
currentPerformanceRiskRatings_veryLow :: Lens' CurrentPerformanceRiskRatings (Maybe Integer)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.CurrentPerformanceRiskRatings.CurrentPerformanceRiskRatings
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.CurrentPerformanceRiskRatings.CurrentPerformanceRiskRatings
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.CurrentPerformanceRiskRatings.CurrentPerformanceRiskRatings
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.CurrentPerformanceRiskRatings.CurrentPerformanceRiskRatings
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.CurrentPerformanceRiskRatings.CurrentPerformanceRiskRatings
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.CurrentPerformanceRiskRatings.CurrentPerformanceRiskRatings
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.CurrentPerformanceRiskRatings.CurrentPerformanceRiskRatings
module Amazonka.ComputeOptimizer.Types.EBSFilterName
newtype EBSFilterName
EBSFilterName' :: Text -> EBSFilterName
[fromEBSFilterName] :: EBSFilterName -> Text
pattern EBSFilterName_Finding :: EBSFilterName
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.EBSFilterName.EBSFilterName
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.EBSFilterName.EBSFilterName
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.EBSFilterName.EBSFilterName
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.EBSFilterName.EBSFilterName
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.EBSFilterName.EBSFilterName
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.EBSFilterName.EBSFilterName
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.EBSFilterName.EBSFilterName
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.EBSFilterName.EBSFilterName
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.EBSFilterName.EBSFilterName
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.EBSFilterName.EBSFilterName
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.EBSFilterName.EBSFilterName
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.EBSFilterName.EBSFilterName
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.EBSFilterName.EBSFilterName
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.EBSFilterName.EBSFilterName
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.EBSFilterName.EBSFilterName
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.EBSFilterName.EBSFilterName
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.EBSFilterName.EBSFilterName
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.EBSFilterName.EBSFilterName
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.EBSFilterName.EBSFilterName
module Amazonka.ComputeOptimizer.Types.EBSFilter
-- | Describes a filter that returns a more specific list of Amazon Elastic
-- Block Store (Amazon EBS) volume recommendations. Use this filter with
-- the GetEBSVolumeRecommendations action.
--
-- You can use LambdaFunctionRecommendationFilter with the
-- GetLambdaFunctionRecommendations action, JobFilter with the
-- DescribeRecommendationExportJobs action, and Filter with the
-- GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations
-- actions.
--
-- See: newEBSFilter smart constructor.
data EBSFilter
EBSFilter' :: Maybe EBSFilterName -> Maybe [Text] -> EBSFilter
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, NotOptimized).
[$sel:name:EBSFilter'] :: EBSFilter -> Maybe EBSFilterName
-- | The value of the filter.
--
-- The valid values are Optimized, or NotOptimized.
[$sel:values:EBSFilter'] :: EBSFilter -> Maybe [Text]
-- | Create a value of EBSFilter with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:EBSFilter', eBSFilter_name - The name of the
-- filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, NotOptimized).
--
-- $sel:values:EBSFilter', eBSFilter_values - The value of
-- the filter.
--
-- The valid values are Optimized, or NotOptimized.
newEBSFilter :: EBSFilter
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, NotOptimized).
eBSFilter_name :: Lens' EBSFilter (Maybe EBSFilterName)
-- | The value of the filter.
--
-- The valid values are Optimized, or NotOptimized.
eBSFilter_values :: Lens' EBSFilter (Maybe [Text])
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.EBSFilter.EBSFilter
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.EBSFilter.EBSFilter
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.EBSFilter.EBSFilter
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.EBSFilter.EBSFilter
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.EBSFilter.EBSFilter
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.EBSFilter.EBSFilter
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.EBSFilter.EBSFilter
module Amazonka.ComputeOptimizer.Types.EBSFinding
newtype EBSFinding
EBSFinding' :: Text -> EBSFinding
[fromEBSFinding] :: EBSFinding -> Text
pattern EBSFinding_NotOptimized :: EBSFinding
pattern EBSFinding_Optimized :: EBSFinding
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.EBSFinding.EBSFinding
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.EBSFinding.EBSFinding
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.EBSFinding.EBSFinding
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.EBSFinding.EBSFinding
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.EBSFinding.EBSFinding
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.EBSFinding.EBSFinding
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.EBSFinding.EBSFinding
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.EBSFinding.EBSFinding
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.EBSFinding.EBSFinding
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.EBSFinding.EBSFinding
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.EBSFinding.EBSFinding
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.EBSFinding.EBSFinding
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.EBSFinding.EBSFinding
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.EBSFinding.EBSFinding
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.EBSFinding.EBSFinding
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.EBSFinding.EBSFinding
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.EBSFinding.EBSFinding
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.EBSFinding.EBSFinding
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.EBSFinding.EBSFinding
module Amazonka.ComputeOptimizer.Types.EBSMetricName
newtype EBSMetricName
EBSMetricName' :: Text -> EBSMetricName
[fromEBSMetricName] :: EBSMetricName -> Text
pattern EBSMetricName_VolumeReadBytesPerSecond :: EBSMetricName
pattern EBSMetricName_VolumeReadOpsPerSecond :: EBSMetricName
pattern EBSMetricName_VolumeWriteBytesPerSecond :: EBSMetricName
pattern EBSMetricName_VolumeWriteOpsPerSecond :: EBSMetricName
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.EBSMetricName.EBSMetricName
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.EBSMetricName.EBSMetricName
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.EBSMetricName.EBSMetricName
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.EBSMetricName.EBSMetricName
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.EBSMetricName.EBSMetricName
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.EBSMetricName.EBSMetricName
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.EBSMetricName.EBSMetricName
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.EBSMetricName.EBSMetricName
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.EBSMetricName.EBSMetricName
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.EBSMetricName.EBSMetricName
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.EBSMetricName.EBSMetricName
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.EBSMetricName.EBSMetricName
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.EBSMetricName.EBSMetricName
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.EBSMetricName.EBSMetricName
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.EBSMetricName.EBSMetricName
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.EBSMetricName.EBSMetricName
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.EBSMetricName.EBSMetricName
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.EBSMetricName.EBSMetricName
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.EBSMetricName.EBSMetricName
module Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType
newtype ECSServiceLaunchType
ECSServiceLaunchType' :: Text -> ECSServiceLaunchType
[fromECSServiceLaunchType] :: ECSServiceLaunchType -> Text
pattern ECSServiceLaunchType_EC2 :: ECSServiceLaunchType
pattern ECSServiceLaunchType_Fargate :: ECSServiceLaunchType
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType.ECSServiceLaunchType
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType.ECSServiceLaunchType
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType.ECSServiceLaunchType
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType.ECSServiceLaunchType
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType.ECSServiceLaunchType
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType.ECSServiceLaunchType
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType.ECSServiceLaunchType
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType.ECSServiceLaunchType
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType.ECSServiceLaunchType
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType.ECSServiceLaunchType
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType.ECSServiceLaunchType
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType.ECSServiceLaunchType
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType.ECSServiceLaunchType
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType.ECSServiceLaunchType
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType.ECSServiceLaunchType
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType.ECSServiceLaunchType
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType.ECSServiceLaunchType
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType.ECSServiceLaunchType
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ECSServiceLaunchType.ECSServiceLaunchType
module Amazonka.ComputeOptimizer.Types.ECSServiceMetricName
newtype ECSServiceMetricName
ECSServiceMetricName' :: Text -> ECSServiceMetricName
[fromECSServiceMetricName] :: ECSServiceMetricName -> Text
pattern ECSServiceMetricName_Cpu :: ECSServiceMetricName
pattern ECSServiceMetricName_Memory :: ECSServiceMetricName
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.ECSServiceMetricName.ECSServiceMetricName
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.ECSServiceMetricName.ECSServiceMetricName
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.ECSServiceMetricName.ECSServiceMetricName
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.ECSServiceMetricName.ECSServiceMetricName
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.ECSServiceMetricName.ECSServiceMetricName
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ECSServiceMetricName.ECSServiceMetricName
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.ECSServiceMetricName.ECSServiceMetricName
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.ECSServiceMetricName.ECSServiceMetricName
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.ECSServiceMetricName.ECSServiceMetricName
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.ECSServiceMetricName.ECSServiceMetricName
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.ECSServiceMetricName.ECSServiceMetricName
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.ECSServiceMetricName.ECSServiceMetricName
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ECSServiceMetricName.ECSServiceMetricName
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ECSServiceMetricName.ECSServiceMetricName
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ECSServiceMetricName.ECSServiceMetricName
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.ECSServiceMetricName.ECSServiceMetricName
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ECSServiceMetricName.ECSServiceMetricName
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ECSServiceMetricName.ECSServiceMetricName
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ECSServiceMetricName.ECSServiceMetricName
module Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic
newtype ECSServiceMetricStatistic
ECSServiceMetricStatistic' :: Text -> ECSServiceMetricStatistic
[fromECSServiceMetricStatistic] :: ECSServiceMetricStatistic -> Text
pattern ECSServiceMetricStatistic_Average :: ECSServiceMetricStatistic
pattern ECSServiceMetricStatistic_Maximum :: ECSServiceMetricStatistic
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic.ECSServiceMetricStatistic
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic.ECSServiceMetricStatistic
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic.ECSServiceMetricStatistic
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic.ECSServiceMetricStatistic
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic.ECSServiceMetricStatistic
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic.ECSServiceMetricStatistic
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic.ECSServiceMetricStatistic
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic.ECSServiceMetricStatistic
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic.ECSServiceMetricStatistic
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic.ECSServiceMetricStatistic
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic.ECSServiceMetricStatistic
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic.ECSServiceMetricStatistic
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic.ECSServiceMetricStatistic
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic.ECSServiceMetricStatistic
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic.ECSServiceMetricStatistic
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic.ECSServiceMetricStatistic
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic.ECSServiceMetricStatistic
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic.ECSServiceMetricStatistic
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ECSServiceMetricStatistic.ECSServiceMetricStatistic
module Amazonka.ComputeOptimizer.Types.ECSServiceProjectedMetric
-- | Describes the projected metrics of an Amazon ECS service
-- recommendation option.
--
-- To determine the performance difference between your current ECS
-- service and the recommended option, compare the metric data of your
-- service against its projected metric data.
--
-- See: newECSServiceProjectedMetric smart constructor.
data ECSServiceProjectedMetric
ECSServiceProjectedMetric' :: Maybe [Double] -> Maybe ECSServiceMetricName -> Maybe [POSIX] -> Maybe [Double] -> ECSServiceProjectedMetric
-- | The lower bound values for the projected metric.
[$sel:lowerBoundValues:ECSServiceProjectedMetric'] :: ECSServiceProjectedMetric -> Maybe [Double]
-- | The name of the projected metric.
--
-- The following metrics are available:
--
--
-- - CPU — The percentage of allocated compute units that are
-- currently in use on the ECS service tasks.
-- - Memory — The percentage of memory that is currently in
-- use on the ECS service tasks.
--
[$sel:name:ECSServiceProjectedMetric'] :: ECSServiceProjectedMetric -> Maybe ECSServiceMetricName
-- | The timestamps of the projected metric.
[$sel:timestamps:ECSServiceProjectedMetric'] :: ECSServiceProjectedMetric -> Maybe [POSIX]
-- | The upper bound values for the projected metric.
[$sel:upperBoundValues:ECSServiceProjectedMetric'] :: ECSServiceProjectedMetric -> Maybe [Double]
-- | Create a value of ECSServiceProjectedMetric with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:lowerBoundValues:ECSServiceProjectedMetric',
-- eCSServiceProjectedMetric_lowerBoundValues - The lower bound
-- values for the projected metric.
--
-- $sel:name:ECSServiceProjectedMetric',
-- eCSServiceProjectedMetric_name - The name of the projected
-- metric.
--
-- The following metrics are available:
--
--
-- - CPU — The percentage of allocated compute units that are
-- currently in use on the ECS service tasks.
-- - Memory — The percentage of memory that is currently in
-- use on the ECS service tasks.
--
--
-- $sel:timestamps:ECSServiceProjectedMetric',
-- eCSServiceProjectedMetric_timestamps - The timestamps of the
-- projected metric.
--
-- $sel:upperBoundValues:ECSServiceProjectedMetric',
-- eCSServiceProjectedMetric_upperBoundValues - The upper bound
-- values for the projected metric.
newECSServiceProjectedMetric :: ECSServiceProjectedMetric
-- | The lower bound values for the projected metric.
eCSServiceProjectedMetric_lowerBoundValues :: Lens' ECSServiceProjectedMetric (Maybe [Double])
-- | The name of the projected metric.
--
-- The following metrics are available:
--
--
-- - CPU — The percentage of allocated compute units that are
-- currently in use on the ECS service tasks.
-- - Memory — The percentage of memory that is currently in
-- use on the ECS service tasks.
--
eCSServiceProjectedMetric_name :: Lens' ECSServiceProjectedMetric (Maybe ECSServiceMetricName)
-- | The timestamps of the projected metric.
eCSServiceProjectedMetric_timestamps :: Lens' ECSServiceProjectedMetric (Maybe [UTCTime])
-- | The upper bound values for the projected metric.
eCSServiceProjectedMetric_upperBoundValues :: Lens' ECSServiceProjectedMetric (Maybe [Double])
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ECSServiceProjectedMetric.ECSServiceProjectedMetric
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ECSServiceProjectedMetric.ECSServiceProjectedMetric
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ECSServiceProjectedMetric.ECSServiceProjectedMetric
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ECSServiceProjectedMetric.ECSServiceProjectedMetric
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ECSServiceProjectedMetric.ECSServiceProjectedMetric
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ECSServiceProjectedMetric.ECSServiceProjectedMetric
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ECSServiceProjectedMetric.ECSServiceProjectedMetric
module Amazonka.ComputeOptimizer.Types.ECSServiceProjectedUtilizationMetric
-- | Describes the projected utilization metrics of an Amazon ECS service
-- recommendation option.
--
-- To determine the performance difference between your current ECS
-- service and the recommended option, compare the utilization metric
-- data of your service against its projected utilization metric data.
--
-- See: newECSServiceProjectedUtilizationMetric smart
-- constructor.
data ECSServiceProjectedUtilizationMetric
ECSServiceProjectedUtilizationMetric' :: Maybe Double -> Maybe ECSServiceMetricName -> Maybe ECSServiceMetricStatistic -> Maybe Double -> ECSServiceProjectedUtilizationMetric
-- | The lower bound values for the projected utilization metrics.
[$sel:lowerBoundValue:ECSServiceProjectedUtilizationMetric'] :: ECSServiceProjectedUtilizationMetric -> Maybe Double
-- | The name of the projected utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - CPU — The percentage of allocated compute units that are
-- currently in use on the ECS service tasks.
-- - Memory — The percentage of memory that is currently in
-- use on the ECS service tasks.
--
[$sel:name:ECSServiceProjectedUtilizationMetric'] :: ECSServiceProjectedUtilizationMetric -> Maybe ECSServiceMetricName
-- | The statistic of the projected utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
[$sel:statistic:ECSServiceProjectedUtilizationMetric'] :: ECSServiceProjectedUtilizationMetric -> Maybe ECSServiceMetricStatistic
-- | The upper bound values for the projected utilization metrics.
[$sel:upperBoundValue:ECSServiceProjectedUtilizationMetric'] :: ECSServiceProjectedUtilizationMetric -> Maybe Double
-- | Create a value of ECSServiceProjectedUtilizationMetric with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:lowerBoundValue:ECSServiceProjectedUtilizationMetric',
-- eCSServiceProjectedUtilizationMetric_lowerBoundValue - The
-- lower bound values for the projected utilization metrics.
--
-- $sel:name:ECSServiceProjectedUtilizationMetric',
-- eCSServiceProjectedUtilizationMetric_name - The name of the
-- projected utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - CPU — The percentage of allocated compute units that are
-- currently in use on the ECS service tasks.
-- - Memory — The percentage of memory that is currently in
-- use on the ECS service tasks.
--
--
-- $sel:statistic:ECSServiceProjectedUtilizationMetric',
-- eCSServiceProjectedUtilizationMetric_statistic - The statistic
-- of the projected utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
--
-- $sel:upperBoundValue:ECSServiceProjectedUtilizationMetric',
-- eCSServiceProjectedUtilizationMetric_upperBoundValue - The
-- upper bound values for the projected utilization metrics.
newECSServiceProjectedUtilizationMetric :: ECSServiceProjectedUtilizationMetric
-- | The lower bound values for the projected utilization metrics.
eCSServiceProjectedUtilizationMetric_lowerBoundValue :: Lens' ECSServiceProjectedUtilizationMetric (Maybe Double)
-- | The name of the projected utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - CPU — The percentage of allocated compute units that are
-- currently in use on the ECS service tasks.
-- - Memory — The percentage of memory that is currently in
-- use on the ECS service tasks.
--
eCSServiceProjectedUtilizationMetric_name :: Lens' ECSServiceProjectedUtilizationMetric (Maybe ECSServiceMetricName)
-- | The statistic of the projected utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
eCSServiceProjectedUtilizationMetric_statistic :: Lens' ECSServiceProjectedUtilizationMetric (Maybe ECSServiceMetricStatistic)
-- | The upper bound values for the projected utilization metrics.
eCSServiceProjectedUtilizationMetric_upperBoundValue :: Lens' ECSServiceProjectedUtilizationMetric (Maybe Double)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ECSServiceProjectedUtilizationMetric.ECSServiceProjectedUtilizationMetric
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ECSServiceProjectedUtilizationMetric.ECSServiceProjectedUtilizationMetric
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ECSServiceProjectedUtilizationMetric.ECSServiceProjectedUtilizationMetric
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ECSServiceProjectedUtilizationMetric.ECSServiceProjectedUtilizationMetric
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ECSServiceProjectedUtilizationMetric.ECSServiceProjectedUtilizationMetric
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ECSServiceProjectedUtilizationMetric.ECSServiceProjectedUtilizationMetric
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ECSServiceProjectedUtilizationMetric.ECSServiceProjectedUtilizationMetric
module Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName
newtype ECSServiceRecommendationFilterName
ECSServiceRecommendationFilterName' :: Text -> ECSServiceRecommendationFilterName
[fromECSServiceRecommendationFilterName] :: ECSServiceRecommendationFilterName -> Text
pattern ECSServiceRecommendationFilterName_Finding :: ECSServiceRecommendationFilterName
pattern ECSServiceRecommendationFilterName_FindingReasonCode :: ECSServiceRecommendationFilterName
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName.ECSServiceRecommendationFilterName
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName.ECSServiceRecommendationFilterName
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName.ECSServiceRecommendationFilterName
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName.ECSServiceRecommendationFilterName
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName.ECSServiceRecommendationFilterName
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName.ECSServiceRecommendationFilterName
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName.ECSServiceRecommendationFilterName
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName.ECSServiceRecommendationFilterName
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName.ECSServiceRecommendationFilterName
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName.ECSServiceRecommendationFilterName
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName.ECSServiceRecommendationFilterName
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName.ECSServiceRecommendationFilterName
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName.ECSServiceRecommendationFilterName
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName.ECSServiceRecommendationFilterName
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName.ECSServiceRecommendationFilterName
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName.ECSServiceRecommendationFilterName
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName.ECSServiceRecommendationFilterName
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName.ECSServiceRecommendationFilterName
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilterName.ECSServiceRecommendationFilterName
module Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilter
-- | Describes a filter that returns a more specific list of Amazon ECS
-- service recommendations. Use this filter with the
-- GetECSServiceRecommendations action.
--
-- See: newECSServiceRecommendationFilter smart
-- constructor.
data ECSServiceRecommendationFilter
ECSServiceRecommendationFilter' :: Maybe ECSServiceRecommendationFilterName -> Maybe [Text] -> ECSServiceRecommendationFilter
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification.
--
-- Specify FindingReasonCode to return recommendations with a
-- specific finding reason code.
[$sel:name:ECSServiceRecommendationFilter'] :: ECSServiceRecommendationFilter -> Maybe ECSServiceRecommendationFilterName
-- | The value of the filter.
--
-- The valid values for this parameter are as follows:
--
--
-- - If you specify the name parameter as Finding,
-- specify Optimized, NotOptimized, or
-- Unavailable.
-- - If you specify the name parameter as
-- FindingReasonCode, specify CPUUnderprovisioned,
-- CPUOverprovisioned, MemoryUnderprovisioned, or
-- MemoryOverprovisioned.
--
[$sel:values:ECSServiceRecommendationFilter'] :: ECSServiceRecommendationFilter -> Maybe [Text]
-- | Create a value of ECSServiceRecommendationFilter with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:ECSServiceRecommendationFilter',
-- eCSServiceRecommendationFilter_name - The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification.
--
-- Specify FindingReasonCode to return recommendations with a
-- specific finding reason code.
--
-- $sel:values:ECSServiceRecommendationFilter',
-- eCSServiceRecommendationFilter_values - The value of the
-- filter.
--
-- The valid values for this parameter are as follows:
--
--
-- - If you specify the name parameter as Finding,
-- specify Optimized, NotOptimized, or
-- Unavailable.
-- - If you specify the name parameter as
-- FindingReasonCode, specify CPUUnderprovisioned,
-- CPUOverprovisioned, MemoryUnderprovisioned, or
-- MemoryOverprovisioned.
--
newECSServiceRecommendationFilter :: ECSServiceRecommendationFilter
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification.
--
-- Specify FindingReasonCode to return recommendations with a
-- specific finding reason code.
eCSServiceRecommendationFilter_name :: Lens' ECSServiceRecommendationFilter (Maybe ECSServiceRecommendationFilterName)
-- | The value of the filter.
--
-- The valid values for this parameter are as follows:
--
--
-- - If you specify the name parameter as Finding,
-- specify Optimized, NotOptimized, or
-- Unavailable.
-- - If you specify the name parameter as
-- FindingReasonCode, specify CPUUnderprovisioned,
-- CPUOverprovisioned, MemoryUnderprovisioned, or
-- MemoryOverprovisioned.
--
eCSServiceRecommendationFilter_values :: Lens' ECSServiceRecommendationFilter (Maybe [Text])
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilter.ECSServiceRecommendationFilter
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilter.ECSServiceRecommendationFilter
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilter.ECSServiceRecommendationFilter
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilter.ECSServiceRecommendationFilter
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilter.ECSServiceRecommendationFilter
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilter.ECSServiceRecommendationFilter
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFilter.ECSServiceRecommendationFilter
module Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding
newtype ECSServiceRecommendationFinding
ECSServiceRecommendationFinding' :: Text -> ECSServiceRecommendationFinding
[fromECSServiceRecommendationFinding] :: ECSServiceRecommendationFinding -> Text
pattern ECSServiceRecommendationFinding_Optimized :: ECSServiceRecommendationFinding
pattern ECSServiceRecommendationFinding_Overprovisioned :: ECSServiceRecommendationFinding
pattern ECSServiceRecommendationFinding_Underprovisioned :: ECSServiceRecommendationFinding
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding.ECSServiceRecommendationFinding
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding.ECSServiceRecommendationFinding
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding.ECSServiceRecommendationFinding
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding.ECSServiceRecommendationFinding
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding.ECSServiceRecommendationFinding
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding.ECSServiceRecommendationFinding
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding.ECSServiceRecommendationFinding
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding.ECSServiceRecommendationFinding
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding.ECSServiceRecommendationFinding
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding.ECSServiceRecommendationFinding
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding.ECSServiceRecommendationFinding
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding.ECSServiceRecommendationFinding
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding.ECSServiceRecommendationFinding
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding.ECSServiceRecommendationFinding
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding.ECSServiceRecommendationFinding
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding.ECSServiceRecommendationFinding
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding.ECSServiceRecommendationFinding
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding.ECSServiceRecommendationFinding
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFinding.ECSServiceRecommendationFinding
module Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode
newtype ECSServiceRecommendationFindingReasonCode
ECSServiceRecommendationFindingReasonCode' :: Text -> ECSServiceRecommendationFindingReasonCode
[fromECSServiceRecommendationFindingReasonCode] :: ECSServiceRecommendationFindingReasonCode -> Text
pattern ECSServiceRecommendationFindingReasonCode_CPUOverprovisioned :: ECSServiceRecommendationFindingReasonCode
pattern ECSServiceRecommendationFindingReasonCode_CPUUnderprovisioned :: ECSServiceRecommendationFindingReasonCode
pattern ECSServiceRecommendationFindingReasonCode_MemoryOverprovisioned :: ECSServiceRecommendationFindingReasonCode
pattern ECSServiceRecommendationFindingReasonCode_MemoryUnderprovisioned :: ECSServiceRecommendationFindingReasonCode
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode.ECSServiceRecommendationFindingReasonCode
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode.ECSServiceRecommendationFindingReasonCode
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode.ECSServiceRecommendationFindingReasonCode
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode.ECSServiceRecommendationFindingReasonCode
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode.ECSServiceRecommendationFindingReasonCode
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode.ECSServiceRecommendationFindingReasonCode
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode.ECSServiceRecommendationFindingReasonCode
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode.ECSServiceRecommendationFindingReasonCode
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode.ECSServiceRecommendationFindingReasonCode
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode.ECSServiceRecommendationFindingReasonCode
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode.ECSServiceRecommendationFindingReasonCode
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode.ECSServiceRecommendationFindingReasonCode
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode.ECSServiceRecommendationFindingReasonCode
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode.ECSServiceRecommendationFindingReasonCode
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode.ECSServiceRecommendationFindingReasonCode
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode.ECSServiceRecommendationFindingReasonCode
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode.ECSServiceRecommendationFindingReasonCode
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode.ECSServiceRecommendationFindingReasonCode
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationFindingReasonCode.ECSServiceRecommendationFindingReasonCode
module Amazonka.ComputeOptimizer.Types.ECSServiceRecommendedOptionProjectedMetric
-- | Describes the projected metrics of an Amazon ECS service
-- recommendation option.
--
-- To determine the performance difference between your current ECS
-- service and the recommended option, compare the metric data of your
-- service against its projected metric data.
--
-- See: newECSServiceRecommendedOptionProjectedMetric smart
-- constructor.
data ECSServiceRecommendedOptionProjectedMetric
ECSServiceRecommendedOptionProjectedMetric' :: Maybe [ECSServiceProjectedMetric] -> Maybe Int -> Maybe Int -> ECSServiceRecommendedOptionProjectedMetric
-- | An array of objects that describe the projected metric.
[$sel:projectedMetrics:ECSServiceRecommendedOptionProjectedMetric'] :: ECSServiceRecommendedOptionProjectedMetric -> Maybe [ECSServiceProjectedMetric]
-- | The recommended CPU size for the ECS service.
[$sel:recommendedCpuUnits:ECSServiceRecommendedOptionProjectedMetric'] :: ECSServiceRecommendedOptionProjectedMetric -> Maybe Int
-- | The recommended memory size for the ECS service.
[$sel:recommendedMemorySize:ECSServiceRecommendedOptionProjectedMetric'] :: ECSServiceRecommendedOptionProjectedMetric -> Maybe Int
-- | Create a value of ECSServiceRecommendedOptionProjectedMetric
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:projectedMetrics:ECSServiceRecommendedOptionProjectedMetric',
-- eCSServiceRecommendedOptionProjectedMetric_projectedMetrics -
-- An array of objects that describe the projected metric.
--
--
-- $sel:recommendedCpuUnits:ECSServiceRecommendedOptionProjectedMetric',
-- eCSServiceRecommendedOptionProjectedMetric_recommendedCpuUnits
-- - The recommended CPU size for the ECS service.
--
--
-- $sel:recommendedMemorySize:ECSServiceRecommendedOptionProjectedMetric',
-- eCSServiceRecommendedOptionProjectedMetric_recommendedMemorySize
-- - The recommended memory size for the ECS service.
newECSServiceRecommendedOptionProjectedMetric :: ECSServiceRecommendedOptionProjectedMetric
-- | An array of objects that describe the projected metric.
eCSServiceRecommendedOptionProjectedMetric_projectedMetrics :: Lens' ECSServiceRecommendedOptionProjectedMetric (Maybe [ECSServiceProjectedMetric])
-- | The recommended CPU size for the ECS service.
eCSServiceRecommendedOptionProjectedMetric_recommendedCpuUnits :: Lens' ECSServiceRecommendedOptionProjectedMetric (Maybe Int)
-- | The recommended memory size for the ECS service.
eCSServiceRecommendedOptionProjectedMetric_recommendedMemorySize :: Lens' ECSServiceRecommendedOptionProjectedMetric (Maybe Int)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ECSServiceRecommendedOptionProjectedMetric.ECSServiceRecommendedOptionProjectedMetric
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ECSServiceRecommendedOptionProjectedMetric.ECSServiceRecommendedOptionProjectedMetric
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ECSServiceRecommendedOptionProjectedMetric.ECSServiceRecommendedOptionProjectedMetric
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ECSServiceRecommendedOptionProjectedMetric.ECSServiceRecommendedOptionProjectedMetric
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ECSServiceRecommendedOptionProjectedMetric.ECSServiceRecommendedOptionProjectedMetric
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ECSServiceRecommendedOptionProjectedMetric.ECSServiceRecommendedOptionProjectedMetric
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ECSServiceRecommendedOptionProjectedMetric.ECSServiceRecommendedOptionProjectedMetric
module Amazonka.ComputeOptimizer.Types.ECSServiceUtilizationMetric
-- | Describes the utilization metric of an Amazon ECS service.
--
-- To determine the performance difference between your current ECS
-- service and the recommended option, compare the utilization metric
-- data of your service against its projected utilization metric data.
--
-- See: newECSServiceUtilizationMetric smart constructor.
data ECSServiceUtilizationMetric
ECSServiceUtilizationMetric' :: Maybe ECSServiceMetricName -> Maybe ECSServiceMetricStatistic -> Maybe Double -> ECSServiceUtilizationMetric
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Cpu — The amount of CPU units that are used in the
-- service.
-- - Memory — The amount of memory that is used in the
-- service.
--
[$sel:name:ECSServiceUtilizationMetric'] :: ECSServiceUtilizationMetric -> Maybe ECSServiceMetricName
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
[$sel:statistic:ECSServiceUtilizationMetric'] :: ECSServiceUtilizationMetric -> Maybe ECSServiceMetricStatistic
-- | The value of the utilization metric.
[$sel:value:ECSServiceUtilizationMetric'] :: ECSServiceUtilizationMetric -> Maybe Double
-- | Create a value of ECSServiceUtilizationMetric with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:ECSServiceUtilizationMetric',
-- eCSServiceUtilizationMetric_name - The name of the utilization
-- metric.
--
-- The following utilization metrics are available:
--
--
-- - Cpu — The amount of CPU units that are used in the
-- service.
-- - Memory — The amount of memory that is used in the
-- service.
--
--
-- $sel:statistic:ECSServiceUtilizationMetric',
-- eCSServiceUtilizationMetric_statistic - The statistic of the
-- utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
--
-- $sel:value:ECSServiceUtilizationMetric',
-- eCSServiceUtilizationMetric_value - The value of the
-- utilization metric.
newECSServiceUtilizationMetric :: ECSServiceUtilizationMetric
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Cpu — The amount of CPU units that are used in the
-- service.
-- - Memory — The amount of memory that is used in the
-- service.
--
eCSServiceUtilizationMetric_name :: Lens' ECSServiceUtilizationMetric (Maybe ECSServiceMetricName)
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
eCSServiceUtilizationMetric_statistic :: Lens' ECSServiceUtilizationMetric (Maybe ECSServiceMetricStatistic)
-- | The value of the utilization metric.
eCSServiceUtilizationMetric_value :: Lens' ECSServiceUtilizationMetric (Maybe Double)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ECSServiceUtilizationMetric.ECSServiceUtilizationMetric
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ECSServiceUtilizationMetric.ECSServiceUtilizationMetric
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ECSServiceUtilizationMetric.ECSServiceUtilizationMetric
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ECSServiceUtilizationMetric.ECSServiceUtilizationMetric
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ECSServiceUtilizationMetric.ECSServiceUtilizationMetric
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ECSServiceUtilizationMetric.ECSServiceUtilizationMetric
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ECSServiceUtilizationMetric.ECSServiceUtilizationMetric
module Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics
newtype EnhancedInfrastructureMetrics
EnhancedInfrastructureMetrics' :: Text -> EnhancedInfrastructureMetrics
[fromEnhancedInfrastructureMetrics] :: EnhancedInfrastructureMetrics -> Text
pattern EnhancedInfrastructureMetrics_Active :: EnhancedInfrastructureMetrics
pattern EnhancedInfrastructureMetrics_Inactive :: EnhancedInfrastructureMetrics
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics.EnhancedInfrastructureMetrics
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics.EnhancedInfrastructureMetrics
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics.EnhancedInfrastructureMetrics
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics.EnhancedInfrastructureMetrics
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics.EnhancedInfrastructureMetrics
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics.EnhancedInfrastructureMetrics
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics.EnhancedInfrastructureMetrics
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics.EnhancedInfrastructureMetrics
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics.EnhancedInfrastructureMetrics
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics.EnhancedInfrastructureMetrics
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics.EnhancedInfrastructureMetrics
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics.EnhancedInfrastructureMetrics
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics.EnhancedInfrastructureMetrics
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics.EnhancedInfrastructureMetrics
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics.EnhancedInfrastructureMetrics
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics.EnhancedInfrastructureMetrics
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics.EnhancedInfrastructureMetrics
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics.EnhancedInfrastructureMetrics
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.EnhancedInfrastructureMetrics.EnhancedInfrastructureMetrics
module Amazonka.ComputeOptimizer.Types.EnrollmentFilterName
newtype EnrollmentFilterName
EnrollmentFilterName' :: Text -> EnrollmentFilterName
[fromEnrollmentFilterName] :: EnrollmentFilterName -> Text
pattern EnrollmentFilterName_Status :: EnrollmentFilterName
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.EnrollmentFilterName.EnrollmentFilterName
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.EnrollmentFilterName.EnrollmentFilterName
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.EnrollmentFilterName.EnrollmentFilterName
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.EnrollmentFilterName.EnrollmentFilterName
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.EnrollmentFilterName.EnrollmentFilterName
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.EnrollmentFilterName.EnrollmentFilterName
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.EnrollmentFilterName.EnrollmentFilterName
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.EnrollmentFilterName.EnrollmentFilterName
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.EnrollmentFilterName.EnrollmentFilterName
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.EnrollmentFilterName.EnrollmentFilterName
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.EnrollmentFilterName.EnrollmentFilterName
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.EnrollmentFilterName.EnrollmentFilterName
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.EnrollmentFilterName.EnrollmentFilterName
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.EnrollmentFilterName.EnrollmentFilterName
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.EnrollmentFilterName.EnrollmentFilterName
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.EnrollmentFilterName.EnrollmentFilterName
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.EnrollmentFilterName.EnrollmentFilterName
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.EnrollmentFilterName.EnrollmentFilterName
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.EnrollmentFilterName.EnrollmentFilterName
module Amazonka.ComputeOptimizer.Types.EnrollmentFilter
-- | Describes a filter that returns a more specific list of account
-- enrollment statuses. Use this filter with the
-- GetEnrollmentStatusesForOrganization action.
--
-- See: newEnrollmentFilter smart constructor.
data EnrollmentFilter
EnrollmentFilter' :: Maybe EnrollmentFilterName -> Maybe [Text] -> EnrollmentFilter
-- | The name of the filter.
--
-- Specify Status to return accounts with a specific enrollment
-- status (for example, Active).
[$sel:name:EnrollmentFilter'] :: EnrollmentFilter -> Maybe EnrollmentFilterName
-- | The value of the filter.
--
-- The valid values are Active, Inactive,
-- Pending, and Failed.
[$sel:values:EnrollmentFilter'] :: EnrollmentFilter -> Maybe [Text]
-- | Create a value of EnrollmentFilter with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:EnrollmentFilter', enrollmentFilter_name - The
-- name of the filter.
--
-- Specify Status to return accounts with a specific enrollment
-- status (for example, Active).
--
-- $sel:values:EnrollmentFilter', enrollmentFilter_values -
-- The value of the filter.
--
-- The valid values are Active, Inactive,
-- Pending, and Failed.
newEnrollmentFilter :: EnrollmentFilter
-- | The name of the filter.
--
-- Specify Status to return accounts with a specific enrollment
-- status (for example, Active).
enrollmentFilter_name :: Lens' EnrollmentFilter (Maybe EnrollmentFilterName)
-- | The value of the filter.
--
-- The valid values are Active, Inactive,
-- Pending, and Failed.
enrollmentFilter_values :: Lens' EnrollmentFilter (Maybe [Text])
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.EnrollmentFilter.EnrollmentFilter
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.EnrollmentFilter.EnrollmentFilter
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.EnrollmentFilter.EnrollmentFilter
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.EnrollmentFilter.EnrollmentFilter
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.EnrollmentFilter.EnrollmentFilter
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.EnrollmentFilter.EnrollmentFilter
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.EnrollmentFilter.EnrollmentFilter
module Amazonka.ComputeOptimizer.Types.EstimatedMonthlySavings
-- | Describes the estimated monthly savings amount possible, based on
-- On-Demand instance pricing, by adopting Compute Optimizer
-- recommendations for a given resource.
--
-- For more information, see Estimated monthly savings and savings
-- opportunities in the Compute Optimizer User Guide.
--
-- See: newEstimatedMonthlySavings smart constructor.
data EstimatedMonthlySavings
EstimatedMonthlySavings' :: Maybe Currency -> Maybe Double -> EstimatedMonthlySavings
-- | The currency of the estimated monthly savings.
[$sel:currency:EstimatedMonthlySavings'] :: EstimatedMonthlySavings -> Maybe Currency
-- | The value of the estimated monthly savings.
[$sel:value:EstimatedMonthlySavings'] :: EstimatedMonthlySavings -> Maybe Double
-- | Create a value of EstimatedMonthlySavings with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:currency:EstimatedMonthlySavings',
-- estimatedMonthlySavings_currency - The currency of the
-- estimated monthly savings.
--
-- $sel:value:EstimatedMonthlySavings',
-- estimatedMonthlySavings_value - The value of the estimated
-- monthly savings.
newEstimatedMonthlySavings :: EstimatedMonthlySavings
-- | The currency of the estimated monthly savings.
estimatedMonthlySavings_currency :: Lens' EstimatedMonthlySavings (Maybe Currency)
-- | The value of the estimated monthly savings.
estimatedMonthlySavings_value :: Lens' EstimatedMonthlySavings (Maybe Double)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.EstimatedMonthlySavings.EstimatedMonthlySavings
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.EstimatedMonthlySavings.EstimatedMonthlySavings
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.EstimatedMonthlySavings.EstimatedMonthlySavings
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.EstimatedMonthlySavings.EstimatedMonthlySavings
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.EstimatedMonthlySavings.EstimatedMonthlySavings
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.EstimatedMonthlySavings.EstimatedMonthlySavings
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.EstimatedMonthlySavings.EstimatedMonthlySavings
module Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField
newtype ExportableAutoScalingGroupField
ExportableAutoScalingGroupField' :: Text -> ExportableAutoScalingGroupField
[fromExportableAutoScalingGroupField] :: ExportableAutoScalingGroupField -> Text
pattern ExportableAutoScalingGroupField_AccountId :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_AutoScalingGroupArn :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_AutoScalingGroupName :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentConfigurationDesiredCapacity :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentConfigurationInstanceType :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentConfigurationMaxSize :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentConfigurationMinSize :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentMemory :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentNetwork :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentOnDemandPrice :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentPerformanceRisk :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentStandardOneYearNoUpfrontReservedPrice :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentStandardThreeYearNoUpfrontReservedPrice :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentStorage :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentVCpus :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_EffectiveRecommendationPreferencesCpuVendorArchitectures :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_EffectiveRecommendationPreferencesInferredWorkloadTypes :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_Finding :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_InferredWorkloadTypes :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_LastRefreshTimestamp :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_LookbackPeriodInDays :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsConfigurationDesiredCapacity :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsConfigurationInstanceType :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsConfigurationMaxSize :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsConfigurationMinSize :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsEstimatedMonthlySavingsCurrency :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsEstimatedMonthlySavingsValue :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsMemory :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsMigrationEffort :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsNetwork :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsOnDemandPrice :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsPerformanceRisk :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsProjectedUtilizationMetricsCpuMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsSavingsOpportunityPercentage :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsStandardOneYearNoUpfrontReservedPrice :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsStorage :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsVcpus :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsCpuMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsDiskReadBytesPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsDiskReadOpsPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsDiskWriteBytesPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsDiskWriteOpsPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsEbsReadBytesPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsEbsReadOpsPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsEbsWriteBytesPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsEbsWriteOpsPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsMemoryMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsNetworkInBytesPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsNetworkOutBytesPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsNetworkPacketsInPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsNetworkPacketsOutPerSecondMaximum :: ExportableAutoScalingGroupField
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField.ExportableAutoScalingGroupField
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField.ExportableAutoScalingGroupField
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField.ExportableAutoScalingGroupField
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField.ExportableAutoScalingGroupField
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField.ExportableAutoScalingGroupField
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField.ExportableAutoScalingGroupField
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField.ExportableAutoScalingGroupField
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField.ExportableAutoScalingGroupField
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField.ExportableAutoScalingGroupField
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField.ExportableAutoScalingGroupField
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField.ExportableAutoScalingGroupField
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField.ExportableAutoScalingGroupField
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField.ExportableAutoScalingGroupField
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField.ExportableAutoScalingGroupField
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField.ExportableAutoScalingGroupField
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField.ExportableAutoScalingGroupField
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField.ExportableAutoScalingGroupField
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField.ExportableAutoScalingGroupField
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ExportableAutoScalingGroupField.ExportableAutoScalingGroupField
module Amazonka.ComputeOptimizer.Types.ExportableECSServiceField
newtype ExportableECSServiceField
ExportableECSServiceField' :: Text -> ExportableECSServiceField
[fromExportableECSServiceField] :: ExportableECSServiceField -> Text
pattern ExportableECSServiceField_AccountId :: ExportableECSServiceField
pattern ExportableECSServiceField_CurrentPerformanceRisk :: ExportableECSServiceField
pattern ExportableECSServiceField_CurrentServiceConfigurationAutoScalingConfiguration :: ExportableECSServiceField
pattern ExportableECSServiceField_CurrentServiceConfigurationCpu :: ExportableECSServiceField
pattern ExportableECSServiceField_CurrentServiceConfigurationMemory :: ExportableECSServiceField
pattern ExportableECSServiceField_CurrentServiceConfigurationTaskDefinitionArn :: ExportableECSServiceField
pattern ExportableECSServiceField_CurrentServiceContainerConfigurations :: ExportableECSServiceField
pattern ExportableECSServiceField_Finding :: ExportableECSServiceField
pattern ExportableECSServiceField_FindingReasonCodes :: ExportableECSServiceField
pattern ExportableECSServiceField_LastRefreshTimestamp :: ExportableECSServiceField
pattern ExportableECSServiceField_LaunchType :: ExportableECSServiceField
pattern ExportableECSServiceField_LookbackPeriodInDays :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsContainerRecommendations :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsCpu :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsEstimatedMonthlySavingsCurrency :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsEstimatedMonthlySavingsValue :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsMemory :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsProjectedUtilizationMetricsCpuMaximum :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsSavingsOpportunityPercentage :: ExportableECSServiceField
pattern ExportableECSServiceField_ServiceArn :: ExportableECSServiceField
pattern ExportableECSServiceField_UtilizationMetricsCpuMaximum :: ExportableECSServiceField
pattern ExportableECSServiceField_UtilizationMetricsMemoryMaximum :: ExportableECSServiceField
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.ExportableECSServiceField.ExportableECSServiceField
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.ExportableECSServiceField.ExportableECSServiceField
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.ExportableECSServiceField.ExportableECSServiceField
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.ExportableECSServiceField.ExportableECSServiceField
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.ExportableECSServiceField.ExportableECSServiceField
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ExportableECSServiceField.ExportableECSServiceField
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.ExportableECSServiceField.ExportableECSServiceField
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.ExportableECSServiceField.ExportableECSServiceField
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.ExportableECSServiceField.ExportableECSServiceField
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.ExportableECSServiceField.ExportableECSServiceField
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.ExportableECSServiceField.ExportableECSServiceField
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.ExportableECSServiceField.ExportableECSServiceField
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ExportableECSServiceField.ExportableECSServiceField
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ExportableECSServiceField.ExportableECSServiceField
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ExportableECSServiceField.ExportableECSServiceField
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.ExportableECSServiceField.ExportableECSServiceField
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ExportableECSServiceField.ExportableECSServiceField
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ExportableECSServiceField.ExportableECSServiceField
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ExportableECSServiceField.ExportableECSServiceField
module Amazonka.ComputeOptimizer.Types.ExportableInstanceField
newtype ExportableInstanceField
ExportableInstanceField' :: Text -> ExportableInstanceField
[fromExportableInstanceField] :: ExportableInstanceField -> Text
pattern ExportableInstanceField_AccountId :: ExportableInstanceField
pattern ExportableInstanceField_CurrentInstanceType :: ExportableInstanceField
pattern ExportableInstanceField_CurrentMemory :: ExportableInstanceField
pattern ExportableInstanceField_CurrentNetwork :: ExportableInstanceField
pattern ExportableInstanceField_CurrentOnDemandPrice :: ExportableInstanceField
pattern ExportableInstanceField_CurrentPerformanceRisk :: ExportableInstanceField
pattern ExportableInstanceField_CurrentStandardOneYearNoUpfrontReservedPrice :: ExportableInstanceField
pattern ExportableInstanceField_CurrentStandardThreeYearNoUpfrontReservedPrice :: ExportableInstanceField
pattern ExportableInstanceField_CurrentStorage :: ExportableInstanceField
pattern ExportableInstanceField_CurrentVCpus :: ExportableInstanceField
pattern ExportableInstanceField_EffectiveRecommendationPreferencesCpuVendorArchitectures :: ExportableInstanceField
pattern ExportableInstanceField_EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics :: ExportableInstanceField
pattern ExportableInstanceField_EffectiveRecommendationPreferencesExternalMetricsSource :: ExportableInstanceField
pattern ExportableInstanceField_EffectiveRecommendationPreferencesInferredWorkloadTypes :: ExportableInstanceField
pattern ExportableInstanceField_Finding :: ExportableInstanceField
pattern ExportableInstanceField_FindingReasonCodes :: ExportableInstanceField
pattern ExportableInstanceField_InferredWorkloadTypes :: ExportableInstanceField
pattern ExportableInstanceField_InstanceArn :: ExportableInstanceField
pattern ExportableInstanceField_InstanceName :: ExportableInstanceField
pattern ExportableInstanceField_LastRefreshTimestamp :: ExportableInstanceField
pattern ExportableInstanceField_LookbackPeriodInDays :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsEstimatedMonthlySavingsCurrency :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsEstimatedMonthlySavingsValue :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsInstanceType :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsMemory :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsMigrationEffort :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsNetwork :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsOnDemandPrice :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsPerformanceRisk :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsPlatformDifferences :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsProjectedUtilizationMetricsCpuMaximum :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsSavingsOpportunityPercentage :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsStandardOneYearNoUpfrontReservedPrice :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsStorage :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsVcpus :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationsSourcesRecommendationSourceArn :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationsSourcesRecommendationSourceType :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsCpuMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsDiskReadBytesPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsDiskReadOpsPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsDiskWriteBytesPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsDiskWriteOpsPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsEbsReadBytesPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsEbsReadOpsPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsEbsWriteBytesPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsEbsWriteOpsPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsMemoryMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsNetworkInBytesPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsNetworkOutBytesPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsNetworkPacketsInPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsNetworkPacketsOutPerSecondMaximum :: ExportableInstanceField
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.ExportableInstanceField.ExportableInstanceField
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.ExportableInstanceField.ExportableInstanceField
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.ExportableInstanceField.ExportableInstanceField
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.ExportableInstanceField.ExportableInstanceField
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.ExportableInstanceField.ExportableInstanceField
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ExportableInstanceField.ExportableInstanceField
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.ExportableInstanceField.ExportableInstanceField
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.ExportableInstanceField.ExportableInstanceField
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.ExportableInstanceField.ExportableInstanceField
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.ExportableInstanceField.ExportableInstanceField
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.ExportableInstanceField.ExportableInstanceField
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.ExportableInstanceField.ExportableInstanceField
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ExportableInstanceField.ExportableInstanceField
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ExportableInstanceField.ExportableInstanceField
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ExportableInstanceField.ExportableInstanceField
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.ExportableInstanceField.ExportableInstanceField
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ExportableInstanceField.ExportableInstanceField
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ExportableInstanceField.ExportableInstanceField
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ExportableInstanceField.ExportableInstanceField
module Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField
newtype ExportableLambdaFunctionField
ExportableLambdaFunctionField' :: Text -> ExportableLambdaFunctionField
[fromExportableLambdaFunctionField] :: ExportableLambdaFunctionField -> Text
pattern ExportableLambdaFunctionField_AccountId :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_CurrentConfigurationMemorySize :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_CurrentConfigurationTimeout :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_CurrentCostAverage :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_CurrentCostTotal :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_CurrentPerformanceRisk :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_Finding :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_FindingReasonCodes :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_FunctionArn :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_FunctionVersion :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_LastRefreshTimestamp :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_LookbackPeriodInDays :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_NumberOfInvocations :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsConfigurationMemorySize :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsCostHigh :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsCostLow :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsEstimatedMonthlySavingsCurrency :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsEstimatedMonthlySavingsValue :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsProjectedUtilizationMetricsDurationExpected :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsProjectedUtilizationMetricsDurationLowerBound :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsProjectedUtilizationMetricsDurationUpperBound :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsSavingsOpportunityPercentage :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_UtilizationMetricsDurationAverage :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_UtilizationMetricsDurationMaximum :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_UtilizationMetricsMemoryAverage :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_UtilizationMetricsMemoryMaximum :: ExportableLambdaFunctionField
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField.ExportableLambdaFunctionField
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField.ExportableLambdaFunctionField
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField.ExportableLambdaFunctionField
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField.ExportableLambdaFunctionField
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField.ExportableLambdaFunctionField
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField.ExportableLambdaFunctionField
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField.ExportableLambdaFunctionField
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField.ExportableLambdaFunctionField
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField.ExportableLambdaFunctionField
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField.ExportableLambdaFunctionField
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField.ExportableLambdaFunctionField
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField.ExportableLambdaFunctionField
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField.ExportableLambdaFunctionField
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField.ExportableLambdaFunctionField
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField.ExportableLambdaFunctionField
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField.ExportableLambdaFunctionField
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField.ExportableLambdaFunctionField
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField.ExportableLambdaFunctionField
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ExportableLambdaFunctionField.ExportableLambdaFunctionField
module Amazonka.ComputeOptimizer.Types.ExportableVolumeField
newtype ExportableVolumeField
ExportableVolumeField' :: Text -> ExportableVolumeField
[fromExportableVolumeField] :: ExportableVolumeField -> Text
pattern ExportableVolumeField_AccountId :: ExportableVolumeField
pattern ExportableVolumeField_CurrentConfigurationVolumeBaselineIOPS :: ExportableVolumeField
pattern ExportableVolumeField_CurrentConfigurationVolumeBaselineThroughput :: ExportableVolumeField
pattern ExportableVolumeField_CurrentConfigurationVolumeBurstIOPS :: ExportableVolumeField
pattern ExportableVolumeField_CurrentConfigurationVolumeBurstThroughput :: ExportableVolumeField
pattern ExportableVolumeField_CurrentConfigurationVolumeSize :: ExportableVolumeField
pattern ExportableVolumeField_CurrentConfigurationVolumeType :: ExportableVolumeField
pattern ExportableVolumeField_CurrentMonthlyPrice :: ExportableVolumeField
pattern ExportableVolumeField_CurrentPerformanceRisk :: ExportableVolumeField
pattern ExportableVolumeField_Finding :: ExportableVolumeField
pattern ExportableVolumeField_LastRefreshTimestamp :: ExportableVolumeField
pattern ExportableVolumeField_LookbackPeriodInDays :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsConfigurationVolumeBaselineIOPS :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsConfigurationVolumeBaselineThroughput :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsConfigurationVolumeBurstIOPS :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsConfigurationVolumeBurstThroughput :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsConfigurationVolumeSize :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsConfigurationVolumeType :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsEstimatedMonthlySavingsCurrency :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsEstimatedMonthlySavingsValue :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsMonthlyPrice :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsPerformanceRisk :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsSavingsOpportunityPercentage :: ExportableVolumeField
pattern ExportableVolumeField_UtilizationMetricsVolumeReadBytesPerSecondMaximum :: ExportableVolumeField
pattern ExportableVolumeField_UtilizationMetricsVolumeReadOpsPerSecondMaximum :: ExportableVolumeField
pattern ExportableVolumeField_UtilizationMetricsVolumeWriteBytesPerSecondMaximum :: ExportableVolumeField
pattern ExportableVolumeField_UtilizationMetricsVolumeWriteOpsPerSecondMaximum :: ExportableVolumeField
pattern ExportableVolumeField_VolumeArn :: ExportableVolumeField
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.ExportableVolumeField.ExportableVolumeField
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.ExportableVolumeField.ExportableVolumeField
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.ExportableVolumeField.ExportableVolumeField
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.ExportableVolumeField.ExportableVolumeField
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.ExportableVolumeField.ExportableVolumeField
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ExportableVolumeField.ExportableVolumeField
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.ExportableVolumeField.ExportableVolumeField
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.ExportableVolumeField.ExportableVolumeField
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.ExportableVolumeField.ExportableVolumeField
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.ExportableVolumeField.ExportableVolumeField
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.ExportableVolumeField.ExportableVolumeField
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.ExportableVolumeField.ExportableVolumeField
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ExportableVolumeField.ExportableVolumeField
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ExportableVolumeField.ExportableVolumeField
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ExportableVolumeField.ExportableVolumeField
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.ExportableVolumeField.ExportableVolumeField
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ExportableVolumeField.ExportableVolumeField
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ExportableVolumeField.ExportableVolumeField
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ExportableVolumeField.ExportableVolumeField
module Amazonka.ComputeOptimizer.Types.ExternalMetricsSource
newtype ExternalMetricsSource
ExternalMetricsSource' :: Text -> ExternalMetricsSource
[fromExternalMetricsSource] :: ExternalMetricsSource -> Text
pattern ExternalMetricsSource_Datadog :: ExternalMetricsSource
pattern ExternalMetricsSource_Dynatrace :: ExternalMetricsSource
pattern ExternalMetricsSource_Instana :: ExternalMetricsSource
pattern ExternalMetricsSource_NewRelic :: ExternalMetricsSource
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.ExternalMetricsSource.ExternalMetricsSource
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.ExternalMetricsSource.ExternalMetricsSource
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.ExternalMetricsSource.ExternalMetricsSource
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.ExternalMetricsSource.ExternalMetricsSource
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.ExternalMetricsSource.ExternalMetricsSource
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ExternalMetricsSource.ExternalMetricsSource
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.ExternalMetricsSource.ExternalMetricsSource
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.ExternalMetricsSource.ExternalMetricsSource
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.ExternalMetricsSource.ExternalMetricsSource
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.ExternalMetricsSource.ExternalMetricsSource
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.ExternalMetricsSource.ExternalMetricsSource
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.ExternalMetricsSource.ExternalMetricsSource
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ExternalMetricsSource.ExternalMetricsSource
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ExternalMetricsSource.ExternalMetricsSource
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ExternalMetricsSource.ExternalMetricsSource
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.ExternalMetricsSource.ExternalMetricsSource
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ExternalMetricsSource.ExternalMetricsSource
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ExternalMetricsSource.ExternalMetricsSource
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ExternalMetricsSource.ExternalMetricsSource
module Amazonka.ComputeOptimizer.Types.ExternalMetricsPreference
-- | Describes the external metrics preferences for EC2 rightsizing
-- recommendations.
--
-- See: newExternalMetricsPreference smart constructor.
data ExternalMetricsPreference
ExternalMetricsPreference' :: Maybe ExternalMetricsSource -> ExternalMetricsPreference
-- | Contains the source options for external metrics preferences.
[$sel:source:ExternalMetricsPreference'] :: ExternalMetricsPreference -> Maybe ExternalMetricsSource
-- | Create a value of ExternalMetricsPreference with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:source:ExternalMetricsPreference',
-- externalMetricsPreference_source - Contains the source options
-- for external metrics preferences.
newExternalMetricsPreference :: ExternalMetricsPreference
-- | Contains the source options for external metrics preferences.
externalMetricsPreference_source :: Lens' ExternalMetricsPreference (Maybe ExternalMetricsSource)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ExternalMetricsPreference.ExternalMetricsPreference
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ExternalMetricsPreference.ExternalMetricsPreference
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ExternalMetricsPreference.ExternalMetricsPreference
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ExternalMetricsPreference.ExternalMetricsPreference
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ExternalMetricsPreference.ExternalMetricsPreference
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ExternalMetricsPreference.ExternalMetricsPreference
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ExternalMetricsPreference.ExternalMetricsPreference
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.ExternalMetricsPreference.ExternalMetricsPreference
module Amazonka.ComputeOptimizer.Types.FileFormat
newtype FileFormat
FileFormat' :: Text -> FileFormat
[fromFileFormat] :: FileFormat -> Text
pattern FileFormat_Csv :: FileFormat
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.FileFormat.FileFormat
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.FileFormat.FileFormat
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.FileFormat.FileFormat
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.FileFormat.FileFormat
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.FileFormat.FileFormat
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.FileFormat.FileFormat
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.FileFormat.FileFormat
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.FileFormat.FileFormat
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.FileFormat.FileFormat
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.FileFormat.FileFormat
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.FileFormat.FileFormat
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.FileFormat.FileFormat
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.FileFormat.FileFormat
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.FileFormat.FileFormat
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.FileFormat.FileFormat
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.FileFormat.FileFormat
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.FileFormat.FileFormat
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.FileFormat.FileFormat
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.FileFormat.FileFormat
module Amazonka.ComputeOptimizer.Types.FilterName
newtype FilterName
FilterName' :: Text -> FilterName
[fromFilterName] :: FilterName -> Text
pattern FilterName_Finding :: FilterName
pattern FilterName_FindingReasonCodes :: FilterName
pattern FilterName_RecommendationSourceType :: FilterName
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.FilterName.FilterName
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.FilterName.FilterName
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.FilterName.FilterName
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.FilterName.FilterName
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.FilterName.FilterName
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.FilterName.FilterName
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.FilterName.FilterName
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.FilterName.FilterName
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.FilterName.FilterName
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.FilterName.FilterName
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.FilterName.FilterName
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.FilterName.FilterName
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.FilterName.FilterName
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.FilterName.FilterName
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.FilterName.FilterName
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.FilterName.FilterName
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.FilterName.FilterName
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.FilterName.FilterName
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.FilterName.FilterName
module Amazonka.ComputeOptimizer.Types.Filter
-- | Describes a filter that returns a more specific list of
-- recommendations. Use this filter with the
-- GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations
-- actions.
--
-- You can use EBSFilter with the GetEBSVolumeRecommendations
-- action, LambdaFunctionRecommendationFilter with the
-- GetLambdaFunctionRecommendations action, and JobFilter with
-- the DescribeRecommendationExportJobs action.
--
-- See: newFilter smart constructor.
data Filter
Filter' :: Maybe FilterName -> Maybe [Text] -> Filter
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, Underprovisioned).
--
-- Specify RecommendationSourceType to return recommendations of
-- a specific resource type (for example, Ec2Instance).
--
-- Specify FindingReasonCodes to return recommendations with a
-- specific finding reason code (for example,
-- CPUUnderprovisioned).
[$sel:name:Filter'] :: Filter -> Maybe FilterName
-- | The value of the filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter and the resource type that
-- you wish to filter results for:
--
--
-- - Specify Optimized or NotOptimized if you specify
-- the name parameter as Finding and you want to filter
-- results for Auto Scaling groups.
-- - Specify Underprovisioned, Overprovisioned, or
-- Optimized if you specify the name parameter as
-- Finding and you want to filter results for EC2
-- instances.
-- - Specify Ec2Instance or AutoScalingGroup if you
-- specify the name parameter as
-- RecommendationSourceType.
-- - Specify one of the following options if you specify the
-- name parameter as
-- FindingReasonCodes:
- CPUOverprovisioned
-- — The instance’s CPU configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- CPUUnderprovisioned — The instance’s
-- CPU configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better CPU performance.
- MemoryOverprovisioned
-- — The instance’s memory configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- MemoryUnderprovisioned — The
-- instance’s memory configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better memory
-- performance.
- EBSThroughputOverprovisioned —
-- The instance’s EBS throughput configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- EBSThroughputUnderprovisioned — The
-- instance’s EBS throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better EBS throughput
-- performance.
- EBSIOPSOverprovisioned — The
-- instance’s EBS IOPS configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- EBSIOPSUnderprovisioned — The
-- instance’s EBS IOPS configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better EBS IOPS
-- performance.
- NetworkBandwidthOverprovisioned —
-- The instance’s network bandwidth configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- NetworkBandwidthUnderprovisioned —
-- The instance’s network bandwidth configuration doesn't meet the
-- performance requirements of your workload and there is an alternative
-- instance type that provides better network bandwidth performance. This
-- finding reason happens when the NetworkIn or
-- NetworkOut performance of an instance is
-- impacted.
- NetworkPPSOverprovisioned — The
-- instance’s network PPS (packets per second) configuration can be sized
-- down while still meeting the performance requirements of your
-- workload.
- NetworkPPSUnderprovisioned — The
-- instance’s network PPS (packets per second) configuration doesn't meet
-- the performance requirements of your workload and there is an
-- alternative instance type that provides better network PPS
-- performance.
- DiskIOPSOverprovisioned — The
-- instance’s disk IOPS configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- DiskIOPSUnderprovisioned — The
-- instance’s disk IOPS configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk IOPS
-- performance.
- DiskThroughputOverprovisioned —
-- The instance’s disk throughput configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- DiskThroughputUnderprovisioned — The
-- instance’s disk throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk throughput performance.
--
[$sel:values:Filter'] :: Filter -> Maybe [Text]
-- | Create a value of Filter with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:Filter', filter_name - The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, Underprovisioned).
--
-- Specify RecommendationSourceType to return recommendations of
-- a specific resource type (for example, Ec2Instance).
--
-- Specify FindingReasonCodes to return recommendations with a
-- specific finding reason code (for example,
-- CPUUnderprovisioned).
--
-- $sel:values:Filter', filter_values - The value of the
-- filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter and the resource type that
-- you wish to filter results for:
--
--
-- - Specify Optimized or NotOptimized if you specify
-- the name parameter as Finding and you want to filter
-- results for Auto Scaling groups.
-- - Specify Underprovisioned, Overprovisioned, or
-- Optimized if you specify the name parameter as
-- Finding and you want to filter results for EC2
-- instances.
-- - Specify Ec2Instance or AutoScalingGroup if you
-- specify the name parameter as
-- RecommendationSourceType.
-- - Specify one of the following options if you specify the
-- name parameter as
-- FindingReasonCodes:
- CPUOverprovisioned
-- — The instance’s CPU configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- CPUUnderprovisioned — The instance’s
-- CPU configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better CPU performance.
- MemoryOverprovisioned
-- — The instance’s memory configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- MemoryUnderprovisioned — The
-- instance’s memory configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better memory
-- performance.
- EBSThroughputOverprovisioned —
-- The instance’s EBS throughput configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- EBSThroughputUnderprovisioned — The
-- instance’s EBS throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better EBS throughput
-- performance.
- EBSIOPSOverprovisioned — The
-- instance’s EBS IOPS configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- EBSIOPSUnderprovisioned — The
-- instance’s EBS IOPS configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better EBS IOPS
-- performance.
- NetworkBandwidthOverprovisioned —
-- The instance’s network bandwidth configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- NetworkBandwidthUnderprovisioned —
-- The instance’s network bandwidth configuration doesn't meet the
-- performance requirements of your workload and there is an alternative
-- instance type that provides better network bandwidth performance. This
-- finding reason happens when the NetworkIn or
-- NetworkOut performance of an instance is
-- impacted.
- NetworkPPSOverprovisioned — The
-- instance’s network PPS (packets per second) configuration can be sized
-- down while still meeting the performance requirements of your
-- workload.
- NetworkPPSUnderprovisioned — The
-- instance’s network PPS (packets per second) configuration doesn't meet
-- the performance requirements of your workload and there is an
-- alternative instance type that provides better network PPS
-- performance.
- DiskIOPSOverprovisioned — The
-- instance’s disk IOPS configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- DiskIOPSUnderprovisioned — The
-- instance’s disk IOPS configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk IOPS
-- performance.
- DiskThroughputOverprovisioned —
-- The instance’s disk throughput configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- DiskThroughputUnderprovisioned — The
-- instance’s disk throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk throughput performance.
--
newFilter :: Filter
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, Underprovisioned).
--
-- Specify RecommendationSourceType to return recommendations of
-- a specific resource type (for example, Ec2Instance).
--
-- Specify FindingReasonCodes to return recommendations with a
-- specific finding reason code (for example,
-- CPUUnderprovisioned).
filter_name :: Lens' Filter (Maybe FilterName)
-- | The value of the filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter and the resource type that
-- you wish to filter results for:
--
--
-- - Specify Optimized or NotOptimized if you specify
-- the name parameter as Finding and you want to filter
-- results for Auto Scaling groups.
-- - Specify Underprovisioned, Overprovisioned, or
-- Optimized if you specify the name parameter as
-- Finding and you want to filter results for EC2
-- instances.
-- - Specify Ec2Instance or AutoScalingGroup if you
-- specify the name parameter as
-- RecommendationSourceType.
-- - Specify one of the following options if you specify the
-- name parameter as
-- FindingReasonCodes:
- CPUOverprovisioned
-- — The instance’s CPU configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- CPUUnderprovisioned — The instance’s
-- CPU configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better CPU performance.
- MemoryOverprovisioned
-- — The instance’s memory configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- MemoryUnderprovisioned — The
-- instance’s memory configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better memory
-- performance.
- EBSThroughputOverprovisioned —
-- The instance’s EBS throughput configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- EBSThroughputUnderprovisioned — The
-- instance’s EBS throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better EBS throughput
-- performance.
- EBSIOPSOverprovisioned — The
-- instance’s EBS IOPS configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- EBSIOPSUnderprovisioned — The
-- instance’s EBS IOPS configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better EBS IOPS
-- performance.
- NetworkBandwidthOverprovisioned —
-- The instance’s network bandwidth configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- NetworkBandwidthUnderprovisioned —
-- The instance’s network bandwidth configuration doesn't meet the
-- performance requirements of your workload and there is an alternative
-- instance type that provides better network bandwidth performance. This
-- finding reason happens when the NetworkIn or
-- NetworkOut performance of an instance is
-- impacted.
- NetworkPPSOverprovisioned — The
-- instance’s network PPS (packets per second) configuration can be sized
-- down while still meeting the performance requirements of your
-- workload.
- NetworkPPSUnderprovisioned — The
-- instance’s network PPS (packets per second) configuration doesn't meet
-- the performance requirements of your workload and there is an
-- alternative instance type that provides better network PPS
-- performance.
- DiskIOPSOverprovisioned — The
-- instance’s disk IOPS configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- DiskIOPSUnderprovisioned — The
-- instance’s disk IOPS configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk IOPS
-- performance.
- DiskThroughputOverprovisioned —
-- The instance’s disk throughput configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- DiskThroughputUnderprovisioned — The
-- instance’s disk throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk throughput performance.
--
filter_values :: Lens' Filter (Maybe [Text])
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.Filter.Filter
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.Filter.Filter
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.Filter.Filter
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.Filter.Filter
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.Filter.Filter
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.Filter.Filter
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.Filter.Filter
module Amazonka.ComputeOptimizer.Types.Finding
newtype Finding
Finding' :: Text -> Finding
[fromFinding] :: Finding -> Text
pattern Finding_NotOptimized :: Finding
pattern Finding_Optimized :: Finding
pattern Finding_Overprovisioned :: Finding
pattern Finding_Underprovisioned :: Finding
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.Finding.Finding
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.Finding.Finding
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.Finding.Finding
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.Finding.Finding
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.Finding.Finding
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.Finding.Finding
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.Finding.Finding
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.Finding.Finding
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.Finding.Finding
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.Finding.Finding
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.Finding.Finding
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.Finding.Finding
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.Finding.Finding
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.Finding.Finding
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.Finding.Finding
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.Finding.Finding
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.Finding.Finding
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.Finding.Finding
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.Finding.Finding
module Amazonka.ComputeOptimizer.Types.FindingReasonCode
newtype FindingReasonCode
FindingReasonCode' :: Text -> FindingReasonCode
[fromFindingReasonCode] :: FindingReasonCode -> Text
pattern FindingReasonCode_MemoryOverprovisioned :: FindingReasonCode
pattern FindingReasonCode_MemoryUnderprovisioned :: FindingReasonCode
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.FindingReasonCode.FindingReasonCode
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.FindingReasonCode.FindingReasonCode
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.FindingReasonCode.FindingReasonCode
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.FindingReasonCode.FindingReasonCode
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.FindingReasonCode.FindingReasonCode
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.FindingReasonCode.FindingReasonCode
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.FindingReasonCode.FindingReasonCode
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.FindingReasonCode.FindingReasonCode
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.FindingReasonCode.FindingReasonCode
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.FindingReasonCode.FindingReasonCode
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.FindingReasonCode.FindingReasonCode
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.FindingReasonCode.FindingReasonCode
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.FindingReasonCode.FindingReasonCode
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.FindingReasonCode.FindingReasonCode
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.FindingReasonCode.FindingReasonCode
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.FindingReasonCode.FindingReasonCode
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.FindingReasonCode.FindingReasonCode
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.FindingReasonCode.FindingReasonCode
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.FindingReasonCode.FindingReasonCode
module Amazonka.ComputeOptimizer.Types.GetRecommendationError
-- | Describes an error experienced when getting recommendations.
--
-- For example, an error is returned if you request recommendations for
-- an unsupported Auto Scaling group, or if you request recommendations
-- for an instance of an unsupported instance family.
--
-- See: newGetRecommendationError smart constructor.
data GetRecommendationError
GetRecommendationError' :: Maybe Text -> Maybe Text -> Maybe Text -> GetRecommendationError
-- | The error code.
[$sel:code:GetRecommendationError'] :: GetRecommendationError -> Maybe Text
-- | The ID of the error.
[$sel:identifier:GetRecommendationError'] :: GetRecommendationError -> Maybe Text
-- | The message, or reason, for the error.
[$sel:message:GetRecommendationError'] :: GetRecommendationError -> Maybe Text
-- | Create a value of GetRecommendationError with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:code:GetRecommendationError',
-- getRecommendationError_code - The error code.
--
-- $sel:identifier:GetRecommendationError',
-- getRecommendationError_identifier - The ID of the error.
--
-- $sel:message:GetRecommendationError',
-- getRecommendationError_message - The message, or reason, for
-- the error.
newGetRecommendationError :: GetRecommendationError
-- | The error code.
getRecommendationError_code :: Lens' GetRecommendationError (Maybe Text)
-- | The ID of the error.
getRecommendationError_identifier :: Lens' GetRecommendationError (Maybe Text)
-- | The message, or reason, for the error.
getRecommendationError_message :: Lens' GetRecommendationError (Maybe Text)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.GetRecommendationError.GetRecommendationError
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.GetRecommendationError.GetRecommendationError
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.GetRecommendationError.GetRecommendationError
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.GetRecommendationError.GetRecommendationError
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.GetRecommendationError.GetRecommendationError
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.GetRecommendationError.GetRecommendationError
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.GetRecommendationError.GetRecommendationError
module Amazonka.ComputeOptimizer.Types.InferredWorkloadType
newtype InferredWorkloadType
InferredWorkloadType' :: Text -> InferredWorkloadType
[fromInferredWorkloadType] :: InferredWorkloadType -> Text
pattern InferredWorkloadType_AmazonEmr :: InferredWorkloadType
pattern InferredWorkloadType_ApacheCassandra :: InferredWorkloadType
pattern InferredWorkloadType_ApacheHadoop :: InferredWorkloadType
pattern InferredWorkloadType_Memcached :: InferredWorkloadType
pattern InferredWorkloadType_Nginx :: InferredWorkloadType
pattern InferredWorkloadType_PostgreSql :: InferredWorkloadType
pattern InferredWorkloadType_Redis :: InferredWorkloadType
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.InferredWorkloadType.InferredWorkloadType
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.InferredWorkloadType.InferredWorkloadType
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.InferredWorkloadType.InferredWorkloadType
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.InferredWorkloadType.InferredWorkloadType
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.InferredWorkloadType.InferredWorkloadType
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.InferredWorkloadType.InferredWorkloadType
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.InferredWorkloadType.InferredWorkloadType
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.InferredWorkloadType.InferredWorkloadType
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.InferredWorkloadType.InferredWorkloadType
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.InferredWorkloadType.InferredWorkloadType
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.InferredWorkloadType.InferredWorkloadType
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.InferredWorkloadType.InferredWorkloadType
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.InferredWorkloadType.InferredWorkloadType
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.InferredWorkloadType.InferredWorkloadType
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.InferredWorkloadType.InferredWorkloadType
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.InferredWorkloadType.InferredWorkloadType
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.InferredWorkloadType.InferredWorkloadType
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.InferredWorkloadType.InferredWorkloadType
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.InferredWorkloadType.InferredWorkloadType
module Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference
newtype InferredWorkloadTypesPreference
InferredWorkloadTypesPreference' :: Text -> InferredWorkloadTypesPreference
[fromInferredWorkloadTypesPreference] :: InferredWorkloadTypesPreference -> Text
pattern InferredWorkloadTypesPreference_Active :: InferredWorkloadTypesPreference
pattern InferredWorkloadTypesPreference_Inactive :: InferredWorkloadTypesPreference
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference.InferredWorkloadTypesPreference
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference.InferredWorkloadTypesPreference
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference.InferredWorkloadTypesPreference
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference.InferredWorkloadTypesPreference
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference.InferredWorkloadTypesPreference
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference.InferredWorkloadTypesPreference
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference.InferredWorkloadTypesPreference
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference.InferredWorkloadTypesPreference
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference.InferredWorkloadTypesPreference
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference.InferredWorkloadTypesPreference
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference.InferredWorkloadTypesPreference
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference.InferredWorkloadTypesPreference
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference.InferredWorkloadTypesPreference
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference.InferredWorkloadTypesPreference
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference.InferredWorkloadTypesPreference
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference.InferredWorkloadTypesPreference
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference.InferredWorkloadTypesPreference
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference.InferredWorkloadTypesPreference
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.InferredWorkloadTypesPreference.InferredWorkloadTypesPreference
module Amazonka.ComputeOptimizer.Types.EffectiveRecommendationPreferences
-- | Describes the effective recommendation preferences for a resource.
--
-- See: newEffectiveRecommendationPreferences smart
-- constructor.
data EffectiveRecommendationPreferences
EffectiveRecommendationPreferences' :: Maybe [CpuVendorArchitecture] -> Maybe EnhancedInfrastructureMetrics -> Maybe ExternalMetricsPreference -> Maybe InferredWorkloadTypesPreference -> EffectiveRecommendationPreferences
-- | Describes the CPU vendor and architecture for an instance or Auto
-- Scaling group recommendations.
--
-- For example, when you specify AWS_ARM64 with:
--
--
-- - A GetEC2InstanceRecommendations or
-- GetAutoScalingGroupRecommendations request, Compute Optimizer returns
-- recommendations that consist of Graviton2 instance types only.
-- - A GetEC2RecommendationProjectedMetrics request, Compute Optimizer
-- returns projected utilization metrics for Graviton2 instance type
-- recommendations only.
-- - A ExportEC2InstanceRecommendations or
-- ExportAutoScalingGroupRecommendations request, Compute Optimizer
-- exports recommendations that consist of Graviton2 instance types
-- only.
--
[$sel:cpuVendorArchitectures:EffectiveRecommendationPreferences'] :: EffectiveRecommendationPreferences -> Maybe [CpuVendorArchitecture]
-- | Describes the activation status of the enhanced infrastructure metrics
-- preference.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh, and a status of Inactive
-- confirms that it's not yet applied to recommendations.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
[$sel:enhancedInfrastructureMetrics:EffectiveRecommendationPreferences'] :: EffectiveRecommendationPreferences -> Maybe EnhancedInfrastructureMetrics
-- | An object that describes the external metrics recommendation
-- preference.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
[$sel:externalMetricsPreference:EffectiveRecommendationPreferences'] :: EffectiveRecommendationPreferences -> Maybe ExternalMetricsPreference
-- | Describes the activation status of the inferred workload types
-- preference.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh. A status of Inactive
-- confirms that it's not yet applied to recommendations.
[$sel:inferredWorkloadTypes:EffectiveRecommendationPreferences'] :: EffectiveRecommendationPreferences -> Maybe InferredWorkloadTypesPreference
-- | Create a value of EffectiveRecommendationPreferences with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:cpuVendorArchitectures:EffectiveRecommendationPreferences',
-- effectiveRecommendationPreferences_cpuVendorArchitectures -
-- Describes the CPU vendor and architecture for an instance or Auto
-- Scaling group recommendations.
--
-- For example, when you specify AWS_ARM64 with:
--
--
-- - A GetEC2InstanceRecommendations or
-- GetAutoScalingGroupRecommendations request, Compute Optimizer returns
-- recommendations that consist of Graviton2 instance types only.
-- - A GetEC2RecommendationProjectedMetrics request, Compute Optimizer
-- returns projected utilization metrics for Graviton2 instance type
-- recommendations only.
-- - A ExportEC2InstanceRecommendations or
-- ExportAutoScalingGroupRecommendations request, Compute Optimizer
-- exports recommendations that consist of Graviton2 instance types
-- only.
--
--
--
-- $sel:enhancedInfrastructureMetrics:EffectiveRecommendationPreferences',
-- effectiveRecommendationPreferences_enhancedInfrastructureMetrics
-- - Describes the activation status of the enhanced infrastructure
-- metrics preference.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh, and a status of Inactive
-- confirms that it's not yet applied to recommendations.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
--
--
-- $sel:externalMetricsPreference:EffectiveRecommendationPreferences',
-- effectiveRecommendationPreferences_externalMetricsPreference -
-- An object that describes the external metrics recommendation
-- preference.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
--
-- $sel:inferredWorkloadTypes:EffectiveRecommendationPreferences',
-- effectiveRecommendationPreferences_inferredWorkloadTypes -
-- Describes the activation status of the inferred workload types
-- preference.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh. A status of Inactive
-- confirms that it's not yet applied to recommendations.
newEffectiveRecommendationPreferences :: EffectiveRecommendationPreferences
-- | Describes the CPU vendor and architecture for an instance or Auto
-- Scaling group recommendations.
--
-- For example, when you specify AWS_ARM64 with:
--
--
-- - A GetEC2InstanceRecommendations or
-- GetAutoScalingGroupRecommendations request, Compute Optimizer returns
-- recommendations that consist of Graviton2 instance types only.
-- - A GetEC2RecommendationProjectedMetrics request, Compute Optimizer
-- returns projected utilization metrics for Graviton2 instance type
-- recommendations only.
-- - A ExportEC2InstanceRecommendations or
-- ExportAutoScalingGroupRecommendations request, Compute Optimizer
-- exports recommendations that consist of Graviton2 instance types
-- only.
--
effectiveRecommendationPreferences_cpuVendorArchitectures :: Lens' EffectiveRecommendationPreferences (Maybe [CpuVendorArchitecture])
-- | Describes the activation status of the enhanced infrastructure metrics
-- preference.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh, and a status of Inactive
-- confirms that it's not yet applied to recommendations.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
effectiveRecommendationPreferences_enhancedInfrastructureMetrics :: Lens' EffectiveRecommendationPreferences (Maybe EnhancedInfrastructureMetrics)
-- | An object that describes the external metrics recommendation
-- preference.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
effectiveRecommendationPreferences_externalMetricsPreference :: Lens' EffectiveRecommendationPreferences (Maybe ExternalMetricsPreference)
-- | Describes the activation status of the inferred workload types
-- preference.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh. A status of Inactive
-- confirms that it's not yet applied to recommendations.
effectiveRecommendationPreferences_inferredWorkloadTypes :: Lens' EffectiveRecommendationPreferences (Maybe InferredWorkloadTypesPreference)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.EffectiveRecommendationPreferences.EffectiveRecommendationPreferences
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.EffectiveRecommendationPreferences.EffectiveRecommendationPreferences
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.EffectiveRecommendationPreferences.EffectiveRecommendationPreferences
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.EffectiveRecommendationPreferences.EffectiveRecommendationPreferences
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.EffectiveRecommendationPreferences.EffectiveRecommendationPreferences
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.EffectiveRecommendationPreferences.EffectiveRecommendationPreferences
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.EffectiveRecommendationPreferences.EffectiveRecommendationPreferences
module Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode
newtype InstanceRecommendationFindingReasonCode
InstanceRecommendationFindingReasonCode' :: Text -> InstanceRecommendationFindingReasonCode
[fromInstanceRecommendationFindingReasonCode] :: InstanceRecommendationFindingReasonCode -> Text
pattern InstanceRecommendationFindingReasonCode_CPUOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_CPUUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_DiskIOPSOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_DiskIOPSUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_DiskThroughputOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_DiskThroughputUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_EBSIOPSOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_EBSIOPSUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_EBSThroughputOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_EBSThroughputUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_MemoryOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_MemoryUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_NetworkBandwidthOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_NetworkBandwidthUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_NetworkPPSOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_NetworkPPSUnderprovisioned :: InstanceRecommendationFindingReasonCode
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode.InstanceRecommendationFindingReasonCode
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode.InstanceRecommendationFindingReasonCode
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode.InstanceRecommendationFindingReasonCode
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode.InstanceRecommendationFindingReasonCode
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode.InstanceRecommendationFindingReasonCode
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode.InstanceRecommendationFindingReasonCode
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode.InstanceRecommendationFindingReasonCode
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode.InstanceRecommendationFindingReasonCode
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode.InstanceRecommendationFindingReasonCode
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode.InstanceRecommendationFindingReasonCode
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode.InstanceRecommendationFindingReasonCode
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode.InstanceRecommendationFindingReasonCode
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode.InstanceRecommendationFindingReasonCode
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode.InstanceRecommendationFindingReasonCode
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode.InstanceRecommendationFindingReasonCode
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode.InstanceRecommendationFindingReasonCode
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode.InstanceRecommendationFindingReasonCode
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode.InstanceRecommendationFindingReasonCode
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.InstanceRecommendationFindingReasonCode.InstanceRecommendationFindingReasonCode
module Amazonka.ComputeOptimizer.Types.JobFilterName
newtype JobFilterName
JobFilterName' :: Text -> JobFilterName
[fromJobFilterName] :: JobFilterName -> Text
pattern JobFilterName_JobStatus :: JobFilterName
pattern JobFilterName_ResourceType :: JobFilterName
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.JobFilterName.JobFilterName
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.JobFilterName.JobFilterName
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.JobFilterName.JobFilterName
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.JobFilterName.JobFilterName
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.JobFilterName.JobFilterName
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.JobFilterName.JobFilterName
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.JobFilterName.JobFilterName
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.JobFilterName.JobFilterName
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.JobFilterName.JobFilterName
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.JobFilterName.JobFilterName
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.JobFilterName.JobFilterName
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.JobFilterName.JobFilterName
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.JobFilterName.JobFilterName
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.JobFilterName.JobFilterName
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.JobFilterName.JobFilterName
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.JobFilterName.JobFilterName
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.JobFilterName.JobFilterName
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.JobFilterName.JobFilterName
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.JobFilterName.JobFilterName
module Amazonka.ComputeOptimizer.Types.JobFilter
-- | Describes a filter that returns a more specific list of recommendation
-- export jobs. Use this filter with the DescribeRecommendationExportJobs
-- action.
--
-- You can use EBSFilter with the GetEBSVolumeRecommendations
-- action, LambdaFunctionRecommendationFilter with the
-- GetLambdaFunctionRecommendations action, and Filter with the
-- GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations
-- actions.
--
-- See: newJobFilter smart constructor.
data JobFilter
JobFilter' :: Maybe JobFilterName -> Maybe [Text] -> JobFilter
-- | The name of the filter.
--
-- Specify ResourceType to return export jobs of a specific
-- resource type (for example, Ec2Instance).
--
-- Specify JobStatus to return export jobs with a specific
-- status (e.g, Complete).
[$sel:name:JobFilter'] :: JobFilter -> Maybe JobFilterName
-- | The value of the filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter:
--
--
-- - Specify Ec2Instance or AutoScalingGroup if you
-- specify the name parameter as ResourceType. There is
-- no filter for EBS volumes because volume recommendations cannot be
-- exported at this time.
-- - Specify Queued, InProgress, Complete,
-- or Failed if you specify the name parameter as
-- JobStatus.
--
[$sel:values:JobFilter'] :: JobFilter -> Maybe [Text]
-- | Create a value of JobFilter with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:JobFilter', jobFilter_name - The name of the
-- filter.
--
-- Specify ResourceType to return export jobs of a specific
-- resource type (for example, Ec2Instance).
--
-- Specify JobStatus to return export jobs with a specific
-- status (e.g, Complete).
--
-- $sel:values:JobFilter', jobFilter_values - The value of
-- the filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter:
--
--
-- - Specify Ec2Instance or AutoScalingGroup if you
-- specify the name parameter as ResourceType. There is
-- no filter for EBS volumes because volume recommendations cannot be
-- exported at this time.
-- - Specify Queued, InProgress, Complete,
-- or Failed if you specify the name parameter as
-- JobStatus.
--
newJobFilter :: JobFilter
-- | The name of the filter.
--
-- Specify ResourceType to return export jobs of a specific
-- resource type (for example, Ec2Instance).
--
-- Specify JobStatus to return export jobs with a specific
-- status (e.g, Complete).
jobFilter_name :: Lens' JobFilter (Maybe JobFilterName)
-- | The value of the filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter:
--
--
-- - Specify Ec2Instance or AutoScalingGroup if you
-- specify the name parameter as ResourceType. There is
-- no filter for EBS volumes because volume recommendations cannot be
-- exported at this time.
-- - Specify Queued, InProgress, Complete,
-- or Failed if you specify the name parameter as
-- JobStatus.
--
jobFilter_values :: Lens' JobFilter (Maybe [Text])
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.JobFilter.JobFilter
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.JobFilter.JobFilter
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.JobFilter.JobFilter
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.JobFilter.JobFilter
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.JobFilter.JobFilter
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.JobFilter.JobFilter
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.JobFilter.JobFilter
module Amazonka.ComputeOptimizer.Types.JobStatus
newtype JobStatus
JobStatus' :: Text -> JobStatus
[fromJobStatus] :: JobStatus -> Text
pattern JobStatus_Complete :: JobStatus
pattern JobStatus_Failed :: JobStatus
pattern JobStatus_InProgress :: JobStatus
pattern JobStatus_Queued :: JobStatus
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.JobStatus.JobStatus
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.JobStatus.JobStatus
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.JobStatus.JobStatus
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.JobStatus.JobStatus
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.JobStatus.JobStatus
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.JobStatus.JobStatus
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.JobStatus.JobStatus
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.JobStatus.JobStatus
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.JobStatus.JobStatus
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.JobStatus.JobStatus
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.JobStatus.JobStatus
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.JobStatus.JobStatus
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.JobStatus.JobStatus
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.JobStatus.JobStatus
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.JobStatus.JobStatus
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.JobStatus.JobStatus
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.JobStatus.JobStatus
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.JobStatus.JobStatus
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.JobStatus.JobStatus
module Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName
newtype LambdaFunctionMemoryMetricName
LambdaFunctionMemoryMetricName' :: Text -> LambdaFunctionMemoryMetricName
[fromLambdaFunctionMemoryMetricName] :: LambdaFunctionMemoryMetricName -> Text
pattern LambdaFunctionMemoryMetricName_Duration :: LambdaFunctionMemoryMetricName
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName.LambdaFunctionMemoryMetricName
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName.LambdaFunctionMemoryMetricName
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName.LambdaFunctionMemoryMetricName
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName.LambdaFunctionMemoryMetricName
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName.LambdaFunctionMemoryMetricName
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName.LambdaFunctionMemoryMetricName
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName.LambdaFunctionMemoryMetricName
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName.LambdaFunctionMemoryMetricName
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName.LambdaFunctionMemoryMetricName
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName.LambdaFunctionMemoryMetricName
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName.LambdaFunctionMemoryMetricName
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName.LambdaFunctionMemoryMetricName
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName.LambdaFunctionMemoryMetricName
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName.LambdaFunctionMemoryMetricName
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName.LambdaFunctionMemoryMetricName
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName.LambdaFunctionMemoryMetricName
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName.LambdaFunctionMemoryMetricName
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName.LambdaFunctionMemoryMetricName
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricName.LambdaFunctionMemoryMetricName
module Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic
newtype LambdaFunctionMemoryMetricStatistic
LambdaFunctionMemoryMetricStatistic' :: Text -> LambdaFunctionMemoryMetricStatistic
[fromLambdaFunctionMemoryMetricStatistic] :: LambdaFunctionMemoryMetricStatistic -> Text
pattern LambdaFunctionMemoryMetricStatistic_Expected :: LambdaFunctionMemoryMetricStatistic
pattern LambdaFunctionMemoryMetricStatistic_LowerBound :: LambdaFunctionMemoryMetricStatistic
pattern LambdaFunctionMemoryMetricStatistic_UpperBound :: LambdaFunctionMemoryMetricStatistic
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic.LambdaFunctionMemoryMetricStatistic
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic.LambdaFunctionMemoryMetricStatistic
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic.LambdaFunctionMemoryMetricStatistic
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic.LambdaFunctionMemoryMetricStatistic
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic.LambdaFunctionMemoryMetricStatistic
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic.LambdaFunctionMemoryMetricStatistic
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic.LambdaFunctionMemoryMetricStatistic
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic.LambdaFunctionMemoryMetricStatistic
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic.LambdaFunctionMemoryMetricStatistic
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic.LambdaFunctionMemoryMetricStatistic
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic.LambdaFunctionMemoryMetricStatistic
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic.LambdaFunctionMemoryMetricStatistic
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic.LambdaFunctionMemoryMetricStatistic
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic.LambdaFunctionMemoryMetricStatistic
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic.LambdaFunctionMemoryMetricStatistic
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic.LambdaFunctionMemoryMetricStatistic
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic.LambdaFunctionMemoryMetricStatistic
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic.LambdaFunctionMemoryMetricStatistic
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryMetricStatistic.LambdaFunctionMemoryMetricStatistic
module Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryProjectedMetric
-- | Describes a projected utilization metric of an Lambda function
-- recommendation option.
--
-- See: newLambdaFunctionMemoryProjectedMetric smart
-- constructor.
data LambdaFunctionMemoryProjectedMetric
LambdaFunctionMemoryProjectedMetric' :: Maybe LambdaFunctionMemoryMetricName -> Maybe LambdaFunctionMemoryMetricStatistic -> Maybe Double -> LambdaFunctionMemoryProjectedMetric
-- | The name of the projected utilization metric.
[$sel:name:LambdaFunctionMemoryProjectedMetric'] :: LambdaFunctionMemoryProjectedMetric -> Maybe LambdaFunctionMemoryMetricName
-- | The statistic of the projected utilization metric.
[$sel:statistic:LambdaFunctionMemoryProjectedMetric'] :: LambdaFunctionMemoryProjectedMetric -> Maybe LambdaFunctionMemoryMetricStatistic
-- | The values of the projected utilization metrics.
[$sel:value:LambdaFunctionMemoryProjectedMetric'] :: LambdaFunctionMemoryProjectedMetric -> Maybe Double
-- | Create a value of LambdaFunctionMemoryProjectedMetric with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:LambdaFunctionMemoryProjectedMetric',
-- lambdaFunctionMemoryProjectedMetric_name - The name of the
-- projected utilization metric.
--
-- $sel:statistic:LambdaFunctionMemoryProjectedMetric',
-- lambdaFunctionMemoryProjectedMetric_statistic - The statistic
-- of the projected utilization metric.
--
-- $sel:value:LambdaFunctionMemoryProjectedMetric',
-- lambdaFunctionMemoryProjectedMetric_value - The values of the
-- projected utilization metrics.
newLambdaFunctionMemoryProjectedMetric :: LambdaFunctionMemoryProjectedMetric
-- | The name of the projected utilization metric.
lambdaFunctionMemoryProjectedMetric_name :: Lens' LambdaFunctionMemoryProjectedMetric (Maybe LambdaFunctionMemoryMetricName)
-- | The statistic of the projected utilization metric.
lambdaFunctionMemoryProjectedMetric_statistic :: Lens' LambdaFunctionMemoryProjectedMetric (Maybe LambdaFunctionMemoryMetricStatistic)
-- | The values of the projected utilization metrics.
lambdaFunctionMemoryProjectedMetric_value :: Lens' LambdaFunctionMemoryProjectedMetric (Maybe Double)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryProjectedMetric.LambdaFunctionMemoryProjectedMetric
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryProjectedMetric.LambdaFunctionMemoryProjectedMetric
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryProjectedMetric.LambdaFunctionMemoryProjectedMetric
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryProjectedMetric.LambdaFunctionMemoryProjectedMetric
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryProjectedMetric.LambdaFunctionMemoryProjectedMetric
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryProjectedMetric.LambdaFunctionMemoryProjectedMetric
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryProjectedMetric.LambdaFunctionMemoryProjectedMetric
module Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName
newtype LambdaFunctionMetricName
LambdaFunctionMetricName' :: Text -> LambdaFunctionMetricName
[fromLambdaFunctionMetricName] :: LambdaFunctionMetricName -> Text
pattern LambdaFunctionMetricName_Duration :: LambdaFunctionMetricName
pattern LambdaFunctionMetricName_Memory :: LambdaFunctionMetricName
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName.LambdaFunctionMetricName
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName.LambdaFunctionMetricName
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName.LambdaFunctionMetricName
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName.LambdaFunctionMetricName
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName.LambdaFunctionMetricName
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName.LambdaFunctionMetricName
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName.LambdaFunctionMetricName
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName.LambdaFunctionMetricName
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName.LambdaFunctionMetricName
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName.LambdaFunctionMetricName
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName.LambdaFunctionMetricName
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName.LambdaFunctionMetricName
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName.LambdaFunctionMetricName
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName.LambdaFunctionMetricName
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName.LambdaFunctionMetricName
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName.LambdaFunctionMetricName
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName.LambdaFunctionMetricName
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName.LambdaFunctionMetricName
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricName.LambdaFunctionMetricName
module Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic
newtype LambdaFunctionMetricStatistic
LambdaFunctionMetricStatistic' :: Text -> LambdaFunctionMetricStatistic
[fromLambdaFunctionMetricStatistic] :: LambdaFunctionMetricStatistic -> Text
pattern LambdaFunctionMetricStatistic_Average :: LambdaFunctionMetricStatistic
pattern LambdaFunctionMetricStatistic_Maximum :: LambdaFunctionMetricStatistic
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic.LambdaFunctionMetricStatistic
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic.LambdaFunctionMetricStatistic
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic.LambdaFunctionMetricStatistic
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic.LambdaFunctionMetricStatistic
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic.LambdaFunctionMetricStatistic
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic.LambdaFunctionMetricStatistic
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic.LambdaFunctionMetricStatistic
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic.LambdaFunctionMetricStatistic
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic.LambdaFunctionMetricStatistic
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic.LambdaFunctionMetricStatistic
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic.LambdaFunctionMetricStatistic
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic.LambdaFunctionMetricStatistic
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic.LambdaFunctionMetricStatistic
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic.LambdaFunctionMetricStatistic
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic.LambdaFunctionMetricStatistic
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic.LambdaFunctionMetricStatistic
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic.LambdaFunctionMetricStatistic
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic.LambdaFunctionMetricStatistic
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.LambdaFunctionMetricStatistic.LambdaFunctionMetricStatistic
module Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName
newtype LambdaFunctionRecommendationFilterName
LambdaFunctionRecommendationFilterName' :: Text -> LambdaFunctionRecommendationFilterName
[fromLambdaFunctionRecommendationFilterName] :: LambdaFunctionRecommendationFilterName -> Text
pattern LambdaFunctionRecommendationFilterName_Finding :: LambdaFunctionRecommendationFilterName
pattern LambdaFunctionRecommendationFilterName_FindingReasonCode :: LambdaFunctionRecommendationFilterName
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName.LambdaFunctionRecommendationFilterName
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName.LambdaFunctionRecommendationFilterName
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName.LambdaFunctionRecommendationFilterName
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName.LambdaFunctionRecommendationFilterName
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName.LambdaFunctionRecommendationFilterName
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName.LambdaFunctionRecommendationFilterName
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName.LambdaFunctionRecommendationFilterName
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName.LambdaFunctionRecommendationFilterName
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName.LambdaFunctionRecommendationFilterName
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName.LambdaFunctionRecommendationFilterName
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName.LambdaFunctionRecommendationFilterName
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName.LambdaFunctionRecommendationFilterName
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName.LambdaFunctionRecommendationFilterName
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName.LambdaFunctionRecommendationFilterName
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName.LambdaFunctionRecommendationFilterName
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName.LambdaFunctionRecommendationFilterName
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName.LambdaFunctionRecommendationFilterName
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName.LambdaFunctionRecommendationFilterName
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilterName.LambdaFunctionRecommendationFilterName
module Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilter
-- | Describes a filter that returns a more specific list of Lambda
-- function recommendations. Use this filter with the
-- GetLambdaFunctionRecommendations action.
--
-- You can use EBSFilter with the GetEBSVolumeRecommendations
-- action, JobFilter with the DescribeRecommendationExportJobs
-- action, and Filter with the
-- GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations
-- actions.
--
-- See: newLambdaFunctionRecommendationFilter smart
-- constructor.
data LambdaFunctionRecommendationFilter
LambdaFunctionRecommendationFilter' :: Maybe LambdaFunctionRecommendationFilterName -> Maybe [Text] -> LambdaFunctionRecommendationFilter
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, NotOptimized).
--
-- Specify FindingReasonCode to return recommendations with a
-- specific finding reason code (for example,
-- MemoryUnderprovisioned).
[$sel:name:LambdaFunctionRecommendationFilter'] :: LambdaFunctionRecommendationFilter -> Maybe LambdaFunctionRecommendationFilterName
-- | The value of the filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter:
--
--
-- - Specify Optimized, NotOptimized, or
-- Unavailable if you specify the name parameter as
-- Finding.
-- - Specify MemoryOverprovisioned,
-- MemoryUnderprovisioned, InsufficientData, or
-- Inconclusive if you specify the name parameter as
-- FindingReasonCode.
--
[$sel:values:LambdaFunctionRecommendationFilter'] :: LambdaFunctionRecommendationFilter -> Maybe [Text]
-- | Create a value of LambdaFunctionRecommendationFilter with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:LambdaFunctionRecommendationFilter',
-- lambdaFunctionRecommendationFilter_name - The name of the
-- filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, NotOptimized).
--
-- Specify FindingReasonCode to return recommendations with a
-- specific finding reason code (for example,
-- MemoryUnderprovisioned).
--
-- $sel:values:LambdaFunctionRecommendationFilter',
-- lambdaFunctionRecommendationFilter_values - The value of the
-- filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter:
--
--
-- - Specify Optimized, NotOptimized, or
-- Unavailable if you specify the name parameter as
-- Finding.
-- - Specify MemoryOverprovisioned,
-- MemoryUnderprovisioned, InsufficientData, or
-- Inconclusive if you specify the name parameter as
-- FindingReasonCode.
--
newLambdaFunctionRecommendationFilter :: LambdaFunctionRecommendationFilter
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, NotOptimized).
--
-- Specify FindingReasonCode to return recommendations with a
-- specific finding reason code (for example,
-- MemoryUnderprovisioned).
lambdaFunctionRecommendationFilter_name :: Lens' LambdaFunctionRecommendationFilter (Maybe LambdaFunctionRecommendationFilterName)
-- | The value of the filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter:
--
--
-- - Specify Optimized, NotOptimized, or
-- Unavailable if you specify the name parameter as
-- Finding.
-- - Specify MemoryOverprovisioned,
-- MemoryUnderprovisioned, InsufficientData, or
-- Inconclusive if you specify the name parameter as
-- FindingReasonCode.
--
lambdaFunctionRecommendationFilter_values :: Lens' LambdaFunctionRecommendationFilter (Maybe [Text])
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilter.LambdaFunctionRecommendationFilter
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilter.LambdaFunctionRecommendationFilter
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilter.LambdaFunctionRecommendationFilter
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilter.LambdaFunctionRecommendationFilter
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilter.LambdaFunctionRecommendationFilter
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilter.LambdaFunctionRecommendationFilter
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFilter.LambdaFunctionRecommendationFilter
module Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding
newtype LambdaFunctionRecommendationFinding
LambdaFunctionRecommendationFinding' :: Text -> LambdaFunctionRecommendationFinding
[fromLambdaFunctionRecommendationFinding] :: LambdaFunctionRecommendationFinding -> Text
pattern LambdaFunctionRecommendationFinding_NotOptimized :: LambdaFunctionRecommendationFinding
pattern LambdaFunctionRecommendationFinding_Optimized :: LambdaFunctionRecommendationFinding
pattern LambdaFunctionRecommendationFinding_Unavailable :: LambdaFunctionRecommendationFinding
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding.LambdaFunctionRecommendationFinding
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding.LambdaFunctionRecommendationFinding
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding.LambdaFunctionRecommendationFinding
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding.LambdaFunctionRecommendationFinding
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding.LambdaFunctionRecommendationFinding
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding.LambdaFunctionRecommendationFinding
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding.LambdaFunctionRecommendationFinding
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding.LambdaFunctionRecommendationFinding
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding.LambdaFunctionRecommendationFinding
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding.LambdaFunctionRecommendationFinding
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding.LambdaFunctionRecommendationFinding
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding.LambdaFunctionRecommendationFinding
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding.LambdaFunctionRecommendationFinding
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding.LambdaFunctionRecommendationFinding
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding.LambdaFunctionRecommendationFinding
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding.LambdaFunctionRecommendationFinding
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding.LambdaFunctionRecommendationFinding
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding.LambdaFunctionRecommendationFinding
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFinding.LambdaFunctionRecommendationFinding
module Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode
newtype LambdaFunctionRecommendationFindingReasonCode
LambdaFunctionRecommendationFindingReasonCode' :: Text -> LambdaFunctionRecommendationFindingReasonCode
[fromLambdaFunctionRecommendationFindingReasonCode] :: LambdaFunctionRecommendationFindingReasonCode -> Text
pattern LambdaFunctionRecommendationFindingReasonCode_Inconclusive :: LambdaFunctionRecommendationFindingReasonCode
pattern LambdaFunctionRecommendationFindingReasonCode_InsufficientData :: LambdaFunctionRecommendationFindingReasonCode
pattern LambdaFunctionRecommendationFindingReasonCode_MemoryOverprovisioned :: LambdaFunctionRecommendationFindingReasonCode
pattern LambdaFunctionRecommendationFindingReasonCode_MemoryUnderprovisioned :: LambdaFunctionRecommendationFindingReasonCode
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode.LambdaFunctionRecommendationFindingReasonCode
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode.LambdaFunctionRecommendationFindingReasonCode
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode.LambdaFunctionRecommendationFindingReasonCode
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode.LambdaFunctionRecommendationFindingReasonCode
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode.LambdaFunctionRecommendationFindingReasonCode
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode.LambdaFunctionRecommendationFindingReasonCode
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode.LambdaFunctionRecommendationFindingReasonCode
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode.LambdaFunctionRecommendationFindingReasonCode
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode.LambdaFunctionRecommendationFindingReasonCode
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode.LambdaFunctionRecommendationFindingReasonCode
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode.LambdaFunctionRecommendationFindingReasonCode
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode.LambdaFunctionRecommendationFindingReasonCode
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode.LambdaFunctionRecommendationFindingReasonCode
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode.LambdaFunctionRecommendationFindingReasonCode
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode.LambdaFunctionRecommendationFindingReasonCode
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode.LambdaFunctionRecommendationFindingReasonCode
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode.LambdaFunctionRecommendationFindingReasonCode
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode.LambdaFunctionRecommendationFindingReasonCode
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendationFindingReasonCode.LambdaFunctionRecommendationFindingReasonCode
module Amazonka.ComputeOptimizer.Types.LambdaFunctionUtilizationMetric
-- | Describes a utilization metric of an Lambda function.
--
-- See: newLambdaFunctionUtilizationMetric smart
-- constructor.
data LambdaFunctionUtilizationMetric
LambdaFunctionUtilizationMetric' :: Maybe LambdaFunctionMetricName -> Maybe LambdaFunctionMetricStatistic -> Maybe Double -> LambdaFunctionUtilizationMetric
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Duration - The amount of time that your function code
-- spends processing an event.
-- - Memory - The amount of memory used per invocation.
--
[$sel:name:LambdaFunctionUtilizationMetric'] :: LambdaFunctionUtilizationMetric -> Maybe LambdaFunctionMetricName
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
[$sel:statistic:LambdaFunctionUtilizationMetric'] :: LambdaFunctionUtilizationMetric -> Maybe LambdaFunctionMetricStatistic
-- | The value of the utilization metric.
[$sel:value:LambdaFunctionUtilizationMetric'] :: LambdaFunctionUtilizationMetric -> Maybe Double
-- | Create a value of LambdaFunctionUtilizationMetric with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:LambdaFunctionUtilizationMetric',
-- lambdaFunctionUtilizationMetric_name - The name of the
-- utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Duration - The amount of time that your function code
-- spends processing an event.
-- - Memory - The amount of memory used per invocation.
--
--
-- $sel:statistic:LambdaFunctionUtilizationMetric',
-- lambdaFunctionUtilizationMetric_statistic - The statistic of
-- the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
--
-- $sel:value:LambdaFunctionUtilizationMetric',
-- lambdaFunctionUtilizationMetric_value - The value of the
-- utilization metric.
newLambdaFunctionUtilizationMetric :: LambdaFunctionUtilizationMetric
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Duration - The amount of time that your function code
-- spends processing an event.
-- - Memory - The amount of memory used per invocation.
--
lambdaFunctionUtilizationMetric_name :: Lens' LambdaFunctionUtilizationMetric (Maybe LambdaFunctionMetricName)
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
lambdaFunctionUtilizationMetric_statistic :: Lens' LambdaFunctionUtilizationMetric (Maybe LambdaFunctionMetricStatistic)
-- | The value of the utilization metric.
lambdaFunctionUtilizationMetric_value :: Lens' LambdaFunctionUtilizationMetric (Maybe Double)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.LambdaFunctionUtilizationMetric.LambdaFunctionUtilizationMetric
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.LambdaFunctionUtilizationMetric.LambdaFunctionUtilizationMetric
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.LambdaFunctionUtilizationMetric.LambdaFunctionUtilizationMetric
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.LambdaFunctionUtilizationMetric.LambdaFunctionUtilizationMetric
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.LambdaFunctionUtilizationMetric.LambdaFunctionUtilizationMetric
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.LambdaFunctionUtilizationMetric.LambdaFunctionUtilizationMetric
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.LambdaFunctionUtilizationMetric.LambdaFunctionUtilizationMetric
module Amazonka.ComputeOptimizer.Types.MemorySizeConfiguration
-- | The memory size configurations of a container.
--
-- See: newMemorySizeConfiguration smart constructor.
data MemorySizeConfiguration
MemorySizeConfiguration' :: Maybe Int -> Maybe Int -> MemorySizeConfiguration
-- | The amount of memory in the container.
[$sel:memory:MemorySizeConfiguration'] :: MemorySizeConfiguration -> Maybe Int
-- | The limit of memory reserve for the container.
[$sel:memoryReservation:MemorySizeConfiguration'] :: MemorySizeConfiguration -> Maybe Int
-- | Create a value of MemorySizeConfiguration with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:memory:MemorySizeConfiguration',
-- memorySizeConfiguration_memory - The amount of memory in the
-- container.
--
-- $sel:memoryReservation:MemorySizeConfiguration',
-- memorySizeConfiguration_memoryReservation - The limit of memory
-- reserve for the container.
newMemorySizeConfiguration :: MemorySizeConfiguration
-- | The amount of memory in the container.
memorySizeConfiguration_memory :: Lens' MemorySizeConfiguration (Maybe Int)
-- | The limit of memory reserve for the container.
memorySizeConfiguration_memoryReservation :: Lens' MemorySizeConfiguration (Maybe Int)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.MemorySizeConfiguration.MemorySizeConfiguration
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.MemorySizeConfiguration.MemorySizeConfiguration
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.MemorySizeConfiguration.MemorySizeConfiguration
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.MemorySizeConfiguration.MemorySizeConfiguration
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.MemorySizeConfiguration.MemorySizeConfiguration
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.MemorySizeConfiguration.MemorySizeConfiguration
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.MemorySizeConfiguration.MemorySizeConfiguration
module Amazonka.ComputeOptimizer.Types.ContainerRecommendation
-- | The CPU and memory recommendations for a container within the tasks of
-- your Amazon ECS service.
--
-- See: newContainerRecommendation smart constructor.
data ContainerRecommendation
ContainerRecommendation' :: Maybe Text -> Maybe Int -> Maybe MemorySizeConfiguration -> ContainerRecommendation
-- | The name of the container.
[$sel:containerName:ContainerRecommendation'] :: ContainerRecommendation -> Maybe Text
-- | The recommended number of CPU units reserved for the container.
[$sel:cpu:ContainerRecommendation'] :: ContainerRecommendation -> Maybe Int
-- | The recommended memory size configurations for the container.
[$sel:memorySizeConfiguration:ContainerRecommendation'] :: ContainerRecommendation -> Maybe MemorySizeConfiguration
-- | Create a value of ContainerRecommendation with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:containerName:ContainerRecommendation',
-- containerRecommendation_containerName - The name of the
-- container.
--
-- $sel:cpu:ContainerRecommendation',
-- containerRecommendation_cpu - The recommended number of CPU
-- units reserved for the container.
--
-- $sel:memorySizeConfiguration:ContainerRecommendation',
-- containerRecommendation_memorySizeConfiguration - The
-- recommended memory size configurations for the container.
newContainerRecommendation :: ContainerRecommendation
-- | The name of the container.
containerRecommendation_containerName :: Lens' ContainerRecommendation (Maybe Text)
-- | The recommended number of CPU units reserved for the container.
containerRecommendation_cpu :: Lens' ContainerRecommendation (Maybe Int)
-- | The recommended memory size configurations for the container.
containerRecommendation_memorySizeConfiguration :: Lens' ContainerRecommendation (Maybe MemorySizeConfiguration)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ContainerRecommendation.ContainerRecommendation
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ContainerRecommendation.ContainerRecommendation
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ContainerRecommendation.ContainerRecommendation
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ContainerRecommendation.ContainerRecommendation
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ContainerRecommendation.ContainerRecommendation
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ContainerRecommendation.ContainerRecommendation
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ContainerRecommendation.ContainerRecommendation
module Amazonka.ComputeOptimizer.Types.ContainerConfiguration
-- | Describes the container configurations within the tasks of your Amazon
-- ECS service.
--
-- See: newContainerConfiguration smart constructor.
data ContainerConfiguration
ContainerConfiguration' :: Maybe Text -> Maybe Int -> Maybe MemorySizeConfiguration -> ContainerConfiguration
-- | The name of the container.
[$sel:containerName:ContainerConfiguration'] :: ContainerConfiguration -> Maybe Text
-- | The number of CPU units reserved for the container.
[$sel:cpu:ContainerConfiguration'] :: ContainerConfiguration -> Maybe Int
-- | The memory size configurations for the container.
[$sel:memorySizeConfiguration:ContainerConfiguration'] :: ContainerConfiguration -> Maybe MemorySizeConfiguration
-- | Create a value of ContainerConfiguration with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:containerName:ContainerConfiguration',
-- containerConfiguration_containerName - The name of the
-- container.
--
-- $sel:cpu:ContainerConfiguration',
-- containerConfiguration_cpu - The number of CPU units reserved
-- for the container.
--
-- $sel:memorySizeConfiguration:ContainerConfiguration',
-- containerConfiguration_memorySizeConfiguration - The memory
-- size configurations for the container.
newContainerConfiguration :: ContainerConfiguration
-- | The name of the container.
containerConfiguration_containerName :: Lens' ContainerConfiguration (Maybe Text)
-- | The number of CPU units reserved for the container.
containerConfiguration_cpu :: Lens' ContainerConfiguration (Maybe Int)
-- | The memory size configurations for the container.
containerConfiguration_memorySizeConfiguration :: Lens' ContainerConfiguration (Maybe MemorySizeConfiguration)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ContainerConfiguration.ContainerConfiguration
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ContainerConfiguration.ContainerConfiguration
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ContainerConfiguration.ContainerConfiguration
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ContainerConfiguration.ContainerConfiguration
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ContainerConfiguration.ContainerConfiguration
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ContainerConfiguration.ContainerConfiguration
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ContainerConfiguration.ContainerConfiguration
module Amazonka.ComputeOptimizer.Types.MetricName
newtype MetricName
MetricName' :: Text -> MetricName
[fromMetricName] :: MetricName -> Text
pattern MetricName_Cpu :: MetricName
pattern MetricName_DISK_READ_BYTES_PER_SECOND :: MetricName
pattern MetricName_DISK_READ_OPS_PER_SECOND :: MetricName
pattern MetricName_DISK_WRITE_BYTES_PER_SECOND :: MetricName
pattern MetricName_DISK_WRITE_OPS_PER_SECOND :: MetricName
pattern MetricName_EBS_READ_BYTES_PER_SECOND :: MetricName
pattern MetricName_EBS_READ_OPS_PER_SECOND :: MetricName
pattern MetricName_EBS_WRITE_BYTES_PER_SECOND :: MetricName
pattern MetricName_EBS_WRITE_OPS_PER_SECOND :: MetricName
pattern MetricName_Memory :: MetricName
pattern MetricName_NETWORK_IN_BYTES_PER_SECOND :: MetricName
pattern MetricName_NETWORK_OUT_BYTES_PER_SECOND :: MetricName
pattern MetricName_NETWORK_PACKETS_IN_PER_SECOND :: MetricName
pattern MetricName_NETWORK_PACKETS_OUT_PER_SECOND :: MetricName
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.MetricName.MetricName
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.MetricName.MetricName
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.MetricName.MetricName
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.MetricName.MetricName
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.MetricName.MetricName
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.MetricName.MetricName
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.MetricName.MetricName
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.MetricName.MetricName
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.MetricName.MetricName
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.MetricName.MetricName
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.MetricName.MetricName
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.MetricName.MetricName
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.MetricName.MetricName
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.MetricName.MetricName
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.MetricName.MetricName
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.MetricName.MetricName
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.MetricName.MetricName
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.MetricName.MetricName
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.MetricName.MetricName
module Amazonka.ComputeOptimizer.Types.MetricStatistic
newtype MetricStatistic
MetricStatistic' :: Text -> MetricStatistic
[fromMetricStatistic] :: MetricStatistic -> Text
pattern MetricStatistic_Average :: MetricStatistic
pattern MetricStatistic_Maximum :: MetricStatistic
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.MetricStatistic.MetricStatistic
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.MetricStatistic.MetricStatistic
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.MetricStatistic.MetricStatistic
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.MetricStatistic.MetricStatistic
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.MetricStatistic.MetricStatistic
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.MetricStatistic.MetricStatistic
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.MetricStatistic.MetricStatistic
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.MetricStatistic.MetricStatistic
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.MetricStatistic.MetricStatistic
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.MetricStatistic.MetricStatistic
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.MetricStatistic.MetricStatistic
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.MetricStatistic.MetricStatistic
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.MetricStatistic.MetricStatistic
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.MetricStatistic.MetricStatistic
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.MetricStatistic.MetricStatistic
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.MetricStatistic.MetricStatistic
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.MetricStatistic.MetricStatistic
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.MetricStatistic.MetricStatistic
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.MetricStatistic.MetricStatistic
module Amazonka.ComputeOptimizer.Types.EBSUtilizationMetric
-- | Describes a utilization metric of an Amazon Elastic Block Store
-- (Amazon EBS) volume.
--
-- Compare the utilization metric data of your resource against its
-- projected utilization metric data to determine the performance
-- difference between your current resource and the recommended option.
--
-- See: newEBSUtilizationMetric smart constructor.
data EBSUtilizationMetric
EBSUtilizationMetric' :: Maybe EBSMetricName -> Maybe MetricStatistic -> Maybe Double -> EBSUtilizationMetric
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - VolumeReadOpsPerSecond - The completed read operations
-- per second from the volume in a specified period of time.Unit:
-- Count
-- - VolumeWriteOpsPerSecond - The completed write operations
-- per second to the volume in a specified period of time.Unit:
-- Count
-- - VolumeReadBytesPerSecond - The bytes read per second from
-- the volume in a specified period of time.Unit: Bytes
-- - VolumeWriteBytesPerSecond - The bytes written to the
-- volume in a specified period of time.Unit: Bytes
--
[$sel:name:EBSUtilizationMetric'] :: EBSUtilizationMetric -> Maybe EBSMetricName
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
[$sel:statistic:EBSUtilizationMetric'] :: EBSUtilizationMetric -> Maybe MetricStatistic
-- | The value of the utilization metric.
[$sel:value:EBSUtilizationMetric'] :: EBSUtilizationMetric -> Maybe Double
-- | Create a value of EBSUtilizationMetric with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:EBSUtilizationMetric',
-- eBSUtilizationMetric_name - The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - VolumeReadOpsPerSecond - The completed read operations
-- per second from the volume in a specified period of time.Unit:
-- Count
-- - VolumeWriteOpsPerSecond - The completed write operations
-- per second to the volume in a specified period of time.Unit:
-- Count
-- - VolumeReadBytesPerSecond - The bytes read per second from
-- the volume in a specified period of time.Unit: Bytes
-- - VolumeWriteBytesPerSecond - The bytes written to the
-- volume in a specified period of time.Unit: Bytes
--
--
-- $sel:statistic:EBSUtilizationMetric',
-- eBSUtilizationMetric_statistic - The statistic of the
-- utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
--
-- $sel:value:EBSUtilizationMetric',
-- eBSUtilizationMetric_value - The value of the utilization
-- metric.
newEBSUtilizationMetric :: EBSUtilizationMetric
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - VolumeReadOpsPerSecond - The completed read operations
-- per second from the volume in a specified period of time.Unit:
-- Count
-- - VolumeWriteOpsPerSecond - The completed write operations
-- per second to the volume in a specified period of time.Unit:
-- Count
-- - VolumeReadBytesPerSecond - The bytes read per second from
-- the volume in a specified period of time.Unit: Bytes
-- - VolumeWriteBytesPerSecond - The bytes written to the
-- volume in a specified period of time.Unit: Bytes
--
eBSUtilizationMetric_name :: Lens' EBSUtilizationMetric (Maybe EBSMetricName)
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
eBSUtilizationMetric_statistic :: Lens' EBSUtilizationMetric (Maybe MetricStatistic)
-- | The value of the utilization metric.
eBSUtilizationMetric_value :: Lens' EBSUtilizationMetric (Maybe Double)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.EBSUtilizationMetric.EBSUtilizationMetric
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.EBSUtilizationMetric.EBSUtilizationMetric
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.EBSUtilizationMetric.EBSUtilizationMetric
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.EBSUtilizationMetric.EBSUtilizationMetric
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.EBSUtilizationMetric.EBSUtilizationMetric
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.EBSUtilizationMetric.EBSUtilizationMetric
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.EBSUtilizationMetric.EBSUtilizationMetric
module Amazonka.ComputeOptimizer.Types.MigrationEffort
newtype MigrationEffort
MigrationEffort' :: Text -> MigrationEffort
[fromMigrationEffort] :: MigrationEffort -> Text
pattern MigrationEffort_High :: MigrationEffort
pattern MigrationEffort_Low :: MigrationEffort
pattern MigrationEffort_Medium :: MigrationEffort
pattern MigrationEffort_VeryLow :: MigrationEffort
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.MigrationEffort.MigrationEffort
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.MigrationEffort.MigrationEffort
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.MigrationEffort.MigrationEffort
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.MigrationEffort.MigrationEffort
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.MigrationEffort.MigrationEffort
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.MigrationEffort.MigrationEffort
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.MigrationEffort.MigrationEffort
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.MigrationEffort.MigrationEffort
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.MigrationEffort.MigrationEffort
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.MigrationEffort.MigrationEffort
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.MigrationEffort.MigrationEffort
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.MigrationEffort.MigrationEffort
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.MigrationEffort.MigrationEffort
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.MigrationEffort.MigrationEffort
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.MigrationEffort.MigrationEffort
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.MigrationEffort.MigrationEffort
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.MigrationEffort.MigrationEffort
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.MigrationEffort.MigrationEffort
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.MigrationEffort.MigrationEffort
module Amazonka.ComputeOptimizer.Types.PlatformDifference
newtype PlatformDifference
PlatformDifference' :: Text -> PlatformDifference
[fromPlatformDifference] :: PlatformDifference -> Text
pattern PlatformDifference_Architecture :: PlatformDifference
pattern PlatformDifference_Hypervisor :: PlatformDifference
pattern PlatformDifference_InstanceStoreAvailability :: PlatformDifference
pattern PlatformDifference_NetworkInterface :: PlatformDifference
pattern PlatformDifference_StorageInterface :: PlatformDifference
pattern PlatformDifference_VirtualizationType :: PlatformDifference
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.PlatformDifference.PlatformDifference
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.PlatformDifference.PlatformDifference
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.PlatformDifference.PlatformDifference
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.PlatformDifference.PlatformDifference
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.PlatformDifference.PlatformDifference
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.PlatformDifference.PlatformDifference
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.PlatformDifference.PlatformDifference
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.PlatformDifference.PlatformDifference
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.PlatformDifference.PlatformDifference
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.PlatformDifference.PlatformDifference
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.PlatformDifference.PlatformDifference
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.PlatformDifference.PlatformDifference
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.PlatformDifference.PlatformDifference
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.PlatformDifference.PlatformDifference
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.PlatformDifference.PlatformDifference
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.PlatformDifference.PlatformDifference
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.PlatformDifference.PlatformDifference
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.PlatformDifference.PlatformDifference
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.PlatformDifference.PlatformDifference
module Amazonka.ComputeOptimizer.Types.ProjectedMetric
-- | Describes a projected utilization metric of a recommendation option,
-- such as an Amazon EC2 instance. This represents the projected
-- utilization of a recommendation option had you used that resource
-- during the analyzed period.
--
-- Compare the utilization metric data of your resource against its
-- projected utilization metric data to determine the performance
-- difference between your current resource and the recommended option.
--
-- The Cpu and Memory metrics are the only projected
-- utilization metrics returned when you run the
-- GetEC2RecommendationProjectedMetrics action. Additionally, the
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
--
-- See: newProjectedMetric smart constructor.
data ProjectedMetric
ProjectedMetric' :: Maybe MetricName -> Maybe [POSIX] -> Maybe [Double] -> ProjectedMetric
-- | The name of the projected utilization metric.
--
-- The following projected utilization metrics are returned:
--
--
-- - Cpu - The projected percentage of allocated EC2 compute
-- units that would be in use on the recommendation option had you used
-- that resource during the analyzed period. This metric identifies the
-- processing power required to run an application on the recommendation
-- option.Depending on the instance type, tools in your operating system
-- can show a lower percentage than CloudWatch when the instance is not
-- allocated a full processor core.Units: Percent
-- - Memory - The percentage of memory that would be in use on
-- the recommendation option had you used that resource during the
-- analyzed period. This metric identifies the amount of memory required
-- to run an application on the recommendation option.Units: PercentThe
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
--
[$sel:name:ProjectedMetric'] :: ProjectedMetric -> Maybe MetricName
-- | The timestamps of the projected utilization metric.
[$sel:timestamps:ProjectedMetric'] :: ProjectedMetric -> Maybe [POSIX]
-- | The values of the projected utilization metrics.
[$sel:values:ProjectedMetric'] :: ProjectedMetric -> Maybe [Double]
-- | Create a value of ProjectedMetric with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:ProjectedMetric', projectedMetric_name - The
-- name of the projected utilization metric.
--
-- The following projected utilization metrics are returned:
--
--
-- - Cpu - The projected percentage of allocated EC2 compute
-- units that would be in use on the recommendation option had you used
-- that resource during the analyzed period. This metric identifies the
-- processing power required to run an application on the recommendation
-- option.Depending on the instance type, tools in your operating system
-- can show a lower percentage than CloudWatch when the instance is not
-- allocated a full processor core.Units: Percent
-- - Memory - The percentage of memory that would be in use on
-- the recommendation option had you used that resource during the
-- analyzed period. This metric identifies the amount of memory required
-- to run an application on the recommendation option.Units: PercentThe
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
--
--
-- $sel:timestamps:ProjectedMetric',
-- projectedMetric_timestamps - The timestamps of the projected
-- utilization metric.
--
-- $sel:values:ProjectedMetric', projectedMetric_values -
-- The values of the projected utilization metrics.
newProjectedMetric :: ProjectedMetric
-- | The name of the projected utilization metric.
--
-- The following projected utilization metrics are returned:
--
--
-- - Cpu - The projected percentage of allocated EC2 compute
-- units that would be in use on the recommendation option had you used
-- that resource during the analyzed period. This metric identifies the
-- processing power required to run an application on the recommendation
-- option.Depending on the instance type, tools in your operating system
-- can show a lower percentage than CloudWatch when the instance is not
-- allocated a full processor core.Units: Percent
-- - Memory - The percentage of memory that would be in use on
-- the recommendation option had you used that resource during the
-- analyzed period. This metric identifies the amount of memory required
-- to run an application on the recommendation option.Units: PercentThe
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
--
projectedMetric_name :: Lens' ProjectedMetric (Maybe MetricName)
-- | The timestamps of the projected utilization metric.
projectedMetric_timestamps :: Lens' ProjectedMetric (Maybe [UTCTime])
-- | The values of the projected utilization metrics.
projectedMetric_values :: Lens' ProjectedMetric (Maybe [Double])
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ProjectedMetric.ProjectedMetric
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ProjectedMetric.ProjectedMetric
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ProjectedMetric.ProjectedMetric
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ProjectedMetric.ProjectedMetric
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ProjectedMetric.ProjectedMetric
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ProjectedMetric.ProjectedMetric
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ProjectedMetric.ProjectedMetric
module Amazonka.ComputeOptimizer.Types.ReasonCodeSummary
-- | A summary of a finding reason code.
--
-- See: newReasonCodeSummary smart constructor.
data ReasonCodeSummary
ReasonCodeSummary' :: Maybe FindingReasonCode -> Maybe Double -> ReasonCodeSummary
-- | The name of the finding reason code.
[$sel:name:ReasonCodeSummary'] :: ReasonCodeSummary -> Maybe FindingReasonCode
-- | The value of the finding reason code summary.
[$sel:value:ReasonCodeSummary'] :: ReasonCodeSummary -> Maybe Double
-- | Create a value of ReasonCodeSummary with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:ReasonCodeSummary', reasonCodeSummary_name -
-- The name of the finding reason code.
--
-- $sel:value:ReasonCodeSummary', reasonCodeSummary_value -
-- The value of the finding reason code summary.
newReasonCodeSummary :: ReasonCodeSummary
-- | The name of the finding reason code.
reasonCodeSummary_name :: Lens' ReasonCodeSummary (Maybe FindingReasonCode)
-- | The value of the finding reason code summary.
reasonCodeSummary_value :: Lens' ReasonCodeSummary (Maybe Double)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ReasonCodeSummary.ReasonCodeSummary
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ReasonCodeSummary.ReasonCodeSummary
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ReasonCodeSummary.ReasonCodeSummary
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ReasonCodeSummary.ReasonCodeSummary
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ReasonCodeSummary.ReasonCodeSummary
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ReasonCodeSummary.ReasonCodeSummary
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ReasonCodeSummary.ReasonCodeSummary
module Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName
newtype RecommendationPreferenceName
RecommendationPreferenceName' :: Text -> RecommendationPreferenceName
[fromRecommendationPreferenceName] :: RecommendationPreferenceName -> Text
pattern RecommendationPreferenceName_EnhancedInfrastructureMetrics :: RecommendationPreferenceName
pattern RecommendationPreferenceName_ExternalMetricsPreference :: RecommendationPreferenceName
pattern RecommendationPreferenceName_InferredWorkloadTypes :: RecommendationPreferenceName
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName.RecommendationPreferenceName
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName.RecommendationPreferenceName
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName.RecommendationPreferenceName
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName.RecommendationPreferenceName
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName.RecommendationPreferenceName
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName.RecommendationPreferenceName
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName.RecommendationPreferenceName
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName.RecommendationPreferenceName
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName.RecommendationPreferenceName
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName.RecommendationPreferenceName
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName.RecommendationPreferenceName
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName.RecommendationPreferenceName
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName.RecommendationPreferenceName
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName.RecommendationPreferenceName
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName.RecommendationPreferenceName
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName.RecommendationPreferenceName
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName.RecommendationPreferenceName
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName.RecommendationPreferenceName
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.RecommendationPreferenceName.RecommendationPreferenceName
module Amazonka.ComputeOptimizer.Types.RecommendationPreferences
-- | Describes the recommendation preferences to return in the response of
-- a GetAutoScalingGroupRecommendations, GetEC2InstanceRecommendations,
-- and GetEC2RecommendationProjectedMetrics request.
--
-- See: newRecommendationPreferences smart constructor.
data RecommendationPreferences
RecommendationPreferences' :: Maybe [CpuVendorArchitecture] -> RecommendationPreferences
-- | Specifies the CPU vendor and architecture for Amazon EC2 instance and
-- Auto Scaling group recommendations.
--
-- For example, when you specify AWS_ARM64 with:
--
--
-- - A GetEC2InstanceRecommendations or
-- GetAutoScalingGroupRecommendations request, Compute Optimizer returns
-- recommendations that consist of Graviton2 instance types only.
-- - A GetEC2RecommendationProjectedMetrics request, Compute Optimizer
-- returns projected utilization metrics for Graviton2 instance type
-- recommendations only.
-- - A ExportEC2InstanceRecommendations or
-- ExportAutoScalingGroupRecommendations request, Compute Optimizer
-- exports recommendations that consist of Graviton2 instance types
-- only.
--
[$sel:cpuVendorArchitectures:RecommendationPreferences'] :: RecommendationPreferences -> Maybe [CpuVendorArchitecture]
-- | Create a value of RecommendationPreferences with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:cpuVendorArchitectures:RecommendationPreferences',
-- recommendationPreferences_cpuVendorArchitectures - Specifies
-- the CPU vendor and architecture for Amazon EC2 instance and Auto
-- Scaling group recommendations.
--
-- For example, when you specify AWS_ARM64 with:
--
--
-- - A GetEC2InstanceRecommendations or
-- GetAutoScalingGroupRecommendations request, Compute Optimizer returns
-- recommendations that consist of Graviton2 instance types only.
-- - A GetEC2RecommendationProjectedMetrics request, Compute Optimizer
-- returns projected utilization metrics for Graviton2 instance type
-- recommendations only.
-- - A ExportEC2InstanceRecommendations or
-- ExportAutoScalingGroupRecommendations request, Compute Optimizer
-- exports recommendations that consist of Graviton2 instance types
-- only.
--
newRecommendationPreferences :: RecommendationPreferences
-- | Specifies the CPU vendor and architecture for Amazon EC2 instance and
-- Auto Scaling group recommendations.
--
-- For example, when you specify AWS_ARM64 with:
--
--
-- - A GetEC2InstanceRecommendations or
-- GetAutoScalingGroupRecommendations request, Compute Optimizer returns
-- recommendations that consist of Graviton2 instance types only.
-- - A GetEC2RecommendationProjectedMetrics request, Compute Optimizer
-- returns projected utilization metrics for Graviton2 instance type
-- recommendations only.
-- - A ExportEC2InstanceRecommendations or
-- ExportAutoScalingGroupRecommendations request, Compute Optimizer
-- exports recommendations that consist of Graviton2 instance types
-- only.
--
recommendationPreferences_cpuVendorArchitectures :: Lens' RecommendationPreferences (Maybe [CpuVendorArchitecture])
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.RecommendationPreferences.RecommendationPreferences
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.RecommendationPreferences.RecommendationPreferences
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.RecommendationPreferences.RecommendationPreferences
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.RecommendationPreferences.RecommendationPreferences
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.RecommendationPreferences.RecommendationPreferences
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.RecommendationPreferences.RecommendationPreferences
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.RecommendationPreferences.RecommendationPreferences
module Amazonka.ComputeOptimizer.Types.RecommendationSourceType
newtype RecommendationSourceType
RecommendationSourceType' :: Text -> RecommendationSourceType
[fromRecommendationSourceType] :: RecommendationSourceType -> Text
pattern RecommendationSourceType_AutoScalingGroup :: RecommendationSourceType
pattern RecommendationSourceType_EbsVolume :: RecommendationSourceType
pattern RecommendationSourceType_Ec2Instance :: RecommendationSourceType
pattern RecommendationSourceType_EcsService :: RecommendationSourceType
pattern RecommendationSourceType_LambdaFunction :: RecommendationSourceType
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.RecommendationSourceType.RecommendationSourceType
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.RecommendationSourceType.RecommendationSourceType
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.RecommendationSourceType.RecommendationSourceType
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.RecommendationSourceType.RecommendationSourceType
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.RecommendationSourceType.RecommendationSourceType
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.RecommendationSourceType.RecommendationSourceType
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.RecommendationSourceType.RecommendationSourceType
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.RecommendationSourceType.RecommendationSourceType
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.RecommendationSourceType.RecommendationSourceType
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.RecommendationSourceType.RecommendationSourceType
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.RecommendationSourceType.RecommendationSourceType
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.RecommendationSourceType.RecommendationSourceType
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.RecommendationSourceType.RecommendationSourceType
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.RecommendationSourceType.RecommendationSourceType
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.RecommendationSourceType.RecommendationSourceType
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.RecommendationSourceType.RecommendationSourceType
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.RecommendationSourceType.RecommendationSourceType
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.RecommendationSourceType.RecommendationSourceType
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.RecommendationSourceType.RecommendationSourceType
module Amazonka.ComputeOptimizer.Types.RecommendationSource
-- | Describes the source of a recommendation, such as an Amazon EC2
-- instance or Auto Scaling group.
--
-- See: newRecommendationSource smart constructor.
data RecommendationSource
RecommendationSource' :: Maybe Text -> Maybe RecommendationSourceType -> RecommendationSource
-- | The Amazon Resource Name (ARN) of the recommendation source.
[$sel:recommendationSourceArn:RecommendationSource'] :: RecommendationSource -> Maybe Text
-- | The resource type of the recommendation source.
[$sel:recommendationSourceType:RecommendationSource'] :: RecommendationSource -> Maybe RecommendationSourceType
-- | Create a value of RecommendationSource with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:recommendationSourceArn:RecommendationSource',
-- recommendationSource_recommendationSourceArn - The Amazon
-- Resource Name (ARN) of the recommendation source.
--
-- $sel:recommendationSourceType:RecommendationSource',
-- recommendationSource_recommendationSourceType - The resource
-- type of the recommendation source.
newRecommendationSource :: RecommendationSource
-- | The Amazon Resource Name (ARN) of the recommendation source.
recommendationSource_recommendationSourceArn :: Lens' RecommendationSource (Maybe Text)
-- | The resource type of the recommendation source.
recommendationSource_recommendationSourceType :: Lens' RecommendationSource (Maybe RecommendationSourceType)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.RecommendationSource.RecommendationSource
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.RecommendationSource.RecommendationSource
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.RecommendationSource.RecommendationSource
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.RecommendationSource.RecommendationSource
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.RecommendationSource.RecommendationSource
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.RecommendationSource.RecommendationSource
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.RecommendationSource.RecommendationSource
module Amazonka.ComputeOptimizer.Types.RecommendedOptionProjectedMetric
-- | Describes a projected utilization metric of a recommendation option.
--
-- The Cpu and Memory metrics are the only projected
-- utilization metrics returned when you run the
-- GetEC2RecommendationProjectedMetrics action. Additionally, the
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
--
-- See: newRecommendedOptionProjectedMetric smart
-- constructor.
data RecommendedOptionProjectedMetric
RecommendedOptionProjectedMetric' :: Maybe [ProjectedMetric] -> Maybe Int -> Maybe Text -> RecommendedOptionProjectedMetric
-- | An array of objects that describe a projected utilization metric.
[$sel:projectedMetrics:RecommendedOptionProjectedMetric'] :: RecommendedOptionProjectedMetric -> Maybe [ProjectedMetric]
-- | The rank of the recommendation option projected metric.
--
-- The top recommendation option is ranked as 1.
--
-- The projected metric rank correlates to the recommendation option
-- rank. For example, the projected metric ranked as 1 is
-- related to the recommendation option that is also ranked as 1
-- in the same response.
[$sel:rank:RecommendedOptionProjectedMetric'] :: RecommendedOptionProjectedMetric -> Maybe Int
-- | The recommended instance type.
[$sel:recommendedInstanceType:RecommendedOptionProjectedMetric'] :: RecommendedOptionProjectedMetric -> Maybe Text
-- | Create a value of RecommendedOptionProjectedMetric with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:projectedMetrics:RecommendedOptionProjectedMetric',
-- recommendedOptionProjectedMetric_projectedMetrics - An array of
-- objects that describe a projected utilization metric.
--
-- $sel:rank:RecommendedOptionProjectedMetric',
-- recommendedOptionProjectedMetric_rank - The rank of the
-- recommendation option projected metric.
--
-- The top recommendation option is ranked as 1.
--
-- The projected metric rank correlates to the recommendation option
-- rank. For example, the projected metric ranked as 1 is
-- related to the recommendation option that is also ranked as 1
-- in the same response.
--
-- $sel:recommendedInstanceType:RecommendedOptionProjectedMetric',
-- recommendedOptionProjectedMetric_recommendedInstanceType - The
-- recommended instance type.
newRecommendedOptionProjectedMetric :: RecommendedOptionProjectedMetric
-- | An array of objects that describe a projected utilization metric.
recommendedOptionProjectedMetric_projectedMetrics :: Lens' RecommendedOptionProjectedMetric (Maybe [ProjectedMetric])
-- | The rank of the recommendation option projected metric.
--
-- The top recommendation option is ranked as 1.
--
-- The projected metric rank correlates to the recommendation option
-- rank. For example, the projected metric ranked as 1 is
-- related to the recommendation option that is also ranked as 1
-- in the same response.
recommendedOptionProjectedMetric_rank :: Lens' RecommendedOptionProjectedMetric (Maybe Int)
-- | The recommended instance type.
recommendedOptionProjectedMetric_recommendedInstanceType :: Lens' RecommendedOptionProjectedMetric (Maybe Text)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.RecommendedOptionProjectedMetric.RecommendedOptionProjectedMetric
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.RecommendedOptionProjectedMetric.RecommendedOptionProjectedMetric
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.RecommendedOptionProjectedMetric.RecommendedOptionProjectedMetric
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.RecommendedOptionProjectedMetric.RecommendedOptionProjectedMetric
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.RecommendedOptionProjectedMetric.RecommendedOptionProjectedMetric
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.RecommendedOptionProjectedMetric.RecommendedOptionProjectedMetric
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.RecommendedOptionProjectedMetric.RecommendedOptionProjectedMetric
module Amazonka.ComputeOptimizer.Types.ResourceType
newtype ResourceType
ResourceType' :: Text -> ResourceType
[fromResourceType] :: ResourceType -> Text
pattern ResourceType_AutoScalingGroup :: ResourceType
pattern ResourceType_EbsVolume :: ResourceType
pattern ResourceType_Ec2Instance :: ResourceType
pattern ResourceType_EcsService :: ResourceType
pattern ResourceType_LambdaFunction :: ResourceType
pattern ResourceType_NotApplicable :: ResourceType
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.ResourceType.ResourceType
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.ResourceType.ResourceType
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.ResourceType.ResourceType
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.ResourceType.ResourceType
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.ResourceType.ResourceType
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ResourceType.ResourceType
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.ResourceType.ResourceType
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.ResourceType.ResourceType
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.ResourceType.ResourceType
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.ResourceType.ResourceType
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.ResourceType.ResourceType
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.ResourceType.ResourceType
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ResourceType.ResourceType
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ResourceType.ResourceType
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ResourceType.ResourceType
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.ResourceType.ResourceType
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ResourceType.ResourceType
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ResourceType.ResourceType
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ResourceType.ResourceType
module Amazonka.ComputeOptimizer.Types.S3Destination
-- | Describes the destination Amazon Simple Storage Service (Amazon S3)
-- bucket name and object keys of a recommendations export file, and its
-- associated metadata file.
--
-- See: newS3Destination smart constructor.
data S3Destination
S3Destination' :: Maybe Text -> Maybe Text -> Maybe Text -> S3Destination
-- | The name of the Amazon S3 bucket used as the destination of an export
-- file.
[$sel:bucket:S3Destination'] :: S3Destination -> Maybe Text
-- | The Amazon S3 bucket key of an export file.
--
-- The key uniquely identifies the object, or export file, in the S3
-- bucket.
[$sel:key:S3Destination'] :: S3Destination -> Maybe Text
-- | The Amazon S3 bucket key of a metadata file.
--
-- The key uniquely identifies the object, or metadata file, in the S3
-- bucket.
[$sel:metadataKey:S3Destination'] :: S3Destination -> Maybe Text
-- | Create a value of S3Destination with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:bucket:S3Destination', s3Destination_bucket - The
-- name of the Amazon S3 bucket used as the destination of an export
-- file.
--
-- $sel:key:S3Destination', s3Destination_key - The Amazon
-- S3 bucket key of an export file.
--
-- The key uniquely identifies the object, or export file, in the S3
-- bucket.
--
-- $sel:metadataKey:S3Destination',
-- s3Destination_metadataKey - The Amazon S3 bucket key of a
-- metadata file.
--
-- The key uniquely identifies the object, or metadata file, in the S3
-- bucket.
newS3Destination :: S3Destination
-- | The name of the Amazon S3 bucket used as the destination of an export
-- file.
s3Destination_bucket :: Lens' S3Destination (Maybe Text)
-- | The Amazon S3 bucket key of an export file.
--
-- The key uniquely identifies the object, or export file, in the S3
-- bucket.
s3Destination_key :: Lens' S3Destination (Maybe Text)
-- | The Amazon S3 bucket key of a metadata file.
--
-- The key uniquely identifies the object, or metadata file, in the S3
-- bucket.
s3Destination_metadataKey :: Lens' S3Destination (Maybe Text)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.S3Destination.S3Destination
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.S3Destination.S3Destination
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.S3Destination.S3Destination
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.S3Destination.S3Destination
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.S3Destination.S3Destination
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.S3Destination.S3Destination
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.S3Destination.S3Destination
module Amazonka.ComputeOptimizer.Types.ExportDestination
-- | Describes the destination of the recommendations export and metadata
-- files.
--
-- See: newExportDestination smart constructor.
data ExportDestination
ExportDestination' :: Maybe S3Destination -> ExportDestination
-- | An object that describes the destination Amazon Simple Storage Service
-- (Amazon S3) bucket name and object keys of a recommendations export
-- file, and its associated metadata file.
[$sel:s3:ExportDestination'] :: ExportDestination -> Maybe S3Destination
-- | Create a value of ExportDestination with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:s3:ExportDestination', exportDestination_s3 - An
-- object that describes the destination Amazon Simple Storage Service
-- (Amazon S3) bucket name and object keys of a recommendations export
-- file, and its associated metadata file.
newExportDestination :: ExportDestination
-- | An object that describes the destination Amazon Simple Storage Service
-- (Amazon S3) bucket name and object keys of a recommendations export
-- file, and its associated metadata file.
exportDestination_s3 :: Lens' ExportDestination (Maybe S3Destination)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ExportDestination.ExportDestination
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ExportDestination.ExportDestination
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ExportDestination.ExportDestination
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ExportDestination.ExportDestination
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ExportDestination.ExportDestination
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ExportDestination.ExportDestination
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ExportDestination.ExportDestination
module Amazonka.ComputeOptimizer.Types.RecommendationExportJob
-- | Describes a recommendation export job.
--
-- Use the DescribeRecommendationExportJobs action to view your
-- recommendation export jobs.
--
-- Use the ExportAutoScalingGroupRecommendations or
-- ExportEC2InstanceRecommendations actions to request an export of your
-- recommendations.
--
-- See: newRecommendationExportJob smart constructor.
data RecommendationExportJob
RecommendationExportJob' :: Maybe POSIX -> Maybe ExportDestination -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe ResourceType -> Maybe JobStatus -> RecommendationExportJob
-- | The timestamp of when the export job was created.
[$sel:creationTimestamp:RecommendationExportJob'] :: RecommendationExportJob -> Maybe POSIX
-- | An object that describes the destination of the export file.
[$sel:destination:RecommendationExportJob'] :: RecommendationExportJob -> Maybe ExportDestination
-- | The reason for an export job failure.
[$sel:failureReason:RecommendationExportJob'] :: RecommendationExportJob -> Maybe Text
-- | The identification number of the export job.
[$sel:jobId:RecommendationExportJob'] :: RecommendationExportJob -> Maybe Text
-- | The timestamp of when the export job was last updated.
[$sel:lastUpdatedTimestamp:RecommendationExportJob'] :: RecommendationExportJob -> Maybe POSIX
-- | The resource type of the exported recommendations.
[$sel:resourceType:RecommendationExportJob'] :: RecommendationExportJob -> Maybe ResourceType
-- | The status of the export job.
[$sel:status:RecommendationExportJob'] :: RecommendationExportJob -> Maybe JobStatus
-- | Create a value of RecommendationExportJob with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:creationTimestamp:RecommendationExportJob',
-- recommendationExportJob_creationTimestamp - The timestamp of
-- when the export job was created.
--
-- $sel:destination:RecommendationExportJob',
-- recommendationExportJob_destination - An object that describes
-- the destination of the export file.
--
-- $sel:failureReason:RecommendationExportJob',
-- recommendationExportJob_failureReason - The reason for an
-- export job failure.
--
-- $sel:jobId:RecommendationExportJob',
-- recommendationExportJob_jobId - The identification number of
-- the export job.
--
-- $sel:lastUpdatedTimestamp:RecommendationExportJob',
-- recommendationExportJob_lastUpdatedTimestamp - The timestamp of
-- when the export job was last updated.
--
-- $sel:resourceType:RecommendationExportJob',
-- recommendationExportJob_resourceType - The resource type of the
-- exported recommendations.
--
-- $sel:status:RecommendationExportJob',
-- recommendationExportJob_status - The status of the export job.
newRecommendationExportJob :: RecommendationExportJob
-- | The timestamp of when the export job was created.
recommendationExportJob_creationTimestamp :: Lens' RecommendationExportJob (Maybe UTCTime)
-- | An object that describes the destination of the export file.
recommendationExportJob_destination :: Lens' RecommendationExportJob (Maybe ExportDestination)
-- | The reason for an export job failure.
recommendationExportJob_failureReason :: Lens' RecommendationExportJob (Maybe Text)
-- | The identification number of the export job.
recommendationExportJob_jobId :: Lens' RecommendationExportJob (Maybe Text)
-- | The timestamp of when the export job was last updated.
recommendationExportJob_lastUpdatedTimestamp :: Lens' RecommendationExportJob (Maybe UTCTime)
-- | The resource type of the exported recommendations.
recommendationExportJob_resourceType :: Lens' RecommendationExportJob (Maybe ResourceType)
-- | The status of the export job.
recommendationExportJob_status :: Lens' RecommendationExportJob (Maybe JobStatus)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.RecommendationExportJob.RecommendationExportJob
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.RecommendationExportJob.RecommendationExportJob
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.RecommendationExportJob.RecommendationExportJob
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.RecommendationExportJob.RecommendationExportJob
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.RecommendationExportJob.RecommendationExportJob
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.RecommendationExportJob.RecommendationExportJob
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.RecommendationExportJob.RecommendationExportJob
module Amazonka.ComputeOptimizer.Types.S3DestinationConfig
-- | Describes the destination Amazon Simple Storage Service (Amazon S3)
-- bucket name and key prefix for a recommendations export job.
--
-- You must create the destination Amazon S3 bucket for your
-- recommendations export before you create the export job. Compute
-- Optimizer does not create the S3 bucket for you. After you create the
-- S3 bucket, ensure that it has the required permission policy to allow
-- Compute Optimizer to write the export file to it. If you plan to
-- specify an object prefix when you create the export job, you must
-- include the object prefix in the policy that you add to the S3 bucket.
-- For more information, see Amazon S3 Bucket Policy for Compute
-- Optimizer in the Compute Optimizer User Guide.
--
-- See: newS3DestinationConfig smart constructor.
data S3DestinationConfig
S3DestinationConfig' :: Maybe Text -> Maybe Text -> S3DestinationConfig
-- | The name of the Amazon S3 bucket to use as the destination for an
-- export job.
[$sel:bucket:S3DestinationConfig'] :: S3DestinationConfig -> Maybe Text
-- | The Amazon S3 bucket prefix for an export job.
[$sel:keyPrefix:S3DestinationConfig'] :: S3DestinationConfig -> Maybe Text
-- | Create a value of S3DestinationConfig with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:bucket:S3DestinationConfig',
-- s3DestinationConfig_bucket - The name of the Amazon S3 bucket
-- to use as the destination for an export job.
--
-- $sel:keyPrefix:S3DestinationConfig',
-- s3DestinationConfig_keyPrefix - The Amazon S3 bucket prefix for
-- an export job.
newS3DestinationConfig :: S3DestinationConfig
-- | The name of the Amazon S3 bucket to use as the destination for an
-- export job.
s3DestinationConfig_bucket :: Lens' S3DestinationConfig (Maybe Text)
-- | The Amazon S3 bucket prefix for an export job.
s3DestinationConfig_keyPrefix :: Lens' S3DestinationConfig (Maybe Text)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.S3DestinationConfig.S3DestinationConfig
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.S3DestinationConfig.S3DestinationConfig
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.S3DestinationConfig.S3DestinationConfig
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.S3DestinationConfig.S3DestinationConfig
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.S3DestinationConfig.S3DestinationConfig
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.S3DestinationConfig.S3DestinationConfig
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.S3DestinationConfig.S3DestinationConfig
module Amazonka.ComputeOptimizer.Types.SavingsOpportunity
-- | Describes the savings opportunity for recommendations of a given
-- resource type or for the recommendation option of an individual
-- resource.
--
-- Savings opportunity represents the estimated monthly savings you can
-- achieve by implementing a given Compute Optimizer recommendation.
--
-- Savings opportunity data requires that you opt in to Cost Explorer, as
-- well as activate Receive Amazon EC2 resource recommendations in
-- the Cost Explorer preferences page. That creates a connection between
-- Cost Explorer and Compute Optimizer. With this connection, Cost
-- Explorer generates savings estimates considering the price of existing
-- resources, the price of recommended resources, and historical usage
-- data. Estimated monthly savings reflects the projected dollar savings
-- associated with each of the recommendations generated. For more
-- information, see Enabling Cost Explorer and Optimizing your
-- cost with Rightsizing Recommendations in the Cost Management
-- User Guide.
--
-- See: newSavingsOpportunity smart constructor.
data SavingsOpportunity
SavingsOpportunity' :: Maybe EstimatedMonthlySavings -> Maybe Double -> SavingsOpportunity
-- | An object that describes the estimated monthly savings amount
-- possible, based on On-Demand instance pricing, by adopting Compute
-- Optimizer recommendations for a given resource.
[$sel:estimatedMonthlySavings:SavingsOpportunity'] :: SavingsOpportunity -> Maybe EstimatedMonthlySavings
-- | The estimated monthly savings possible as a percentage of monthly cost
-- by adopting Compute Optimizer recommendations for a given resource.
[$sel:savingsOpportunityPercentage:SavingsOpportunity'] :: SavingsOpportunity -> Maybe Double
-- | Create a value of SavingsOpportunity with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:estimatedMonthlySavings:SavingsOpportunity',
-- savingsOpportunity_estimatedMonthlySavings - An object that
-- describes the estimated monthly savings amount possible, based on
-- On-Demand instance pricing, by adopting Compute Optimizer
-- recommendations for a given resource.
--
-- $sel:savingsOpportunityPercentage:SavingsOpportunity',
-- savingsOpportunity_savingsOpportunityPercentage - The estimated
-- monthly savings possible as a percentage of monthly cost by adopting
-- Compute Optimizer recommendations for a given resource.
newSavingsOpportunity :: SavingsOpportunity
-- | An object that describes the estimated monthly savings amount
-- possible, based on On-Demand instance pricing, by adopting Compute
-- Optimizer recommendations for a given resource.
savingsOpportunity_estimatedMonthlySavings :: Lens' SavingsOpportunity (Maybe EstimatedMonthlySavings)
-- | The estimated monthly savings possible as a percentage of monthly cost
-- by adopting Compute Optimizer recommendations for a given resource.
savingsOpportunity_savingsOpportunityPercentage :: Lens' SavingsOpportunity (Maybe Double)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.SavingsOpportunity.SavingsOpportunity
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.SavingsOpportunity.SavingsOpportunity
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.SavingsOpportunity.SavingsOpportunity
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.SavingsOpportunity.SavingsOpportunity
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.SavingsOpportunity.SavingsOpportunity
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.SavingsOpportunity.SavingsOpportunity
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.SavingsOpportunity.SavingsOpportunity
module Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryRecommendationOption
-- | Describes a recommendation option for an Lambda function.
--
-- See: newLambdaFunctionMemoryRecommendationOption smart
-- constructor.
data LambdaFunctionMemoryRecommendationOption
LambdaFunctionMemoryRecommendationOption' :: Maybe Int -> Maybe [LambdaFunctionMemoryProjectedMetric] -> Maybe Int -> Maybe SavingsOpportunity -> LambdaFunctionMemoryRecommendationOption
-- | The memory size, in MB, of the function recommendation option.
[$sel:memorySize:LambdaFunctionMemoryRecommendationOption'] :: LambdaFunctionMemoryRecommendationOption -> Maybe Int
-- | An array of objects that describe the projected utilization metrics of
-- the function recommendation option.
[$sel:projectedUtilizationMetrics:LambdaFunctionMemoryRecommendationOption'] :: LambdaFunctionMemoryRecommendationOption -> Maybe [LambdaFunctionMemoryProjectedMetric]
-- | The rank of the function recommendation option.
--
-- The top recommendation option is ranked as 1.
[$sel:rank:LambdaFunctionMemoryRecommendationOption'] :: LambdaFunctionMemoryRecommendationOption -> Maybe Int
-- | An object that describes the savings opportunity for the Lambda
-- function recommendation option. Savings opportunity includes the
-- estimated monthly savings amount and percentage.
[$sel:savingsOpportunity:LambdaFunctionMemoryRecommendationOption'] :: LambdaFunctionMemoryRecommendationOption -> Maybe SavingsOpportunity
-- | Create a value of LambdaFunctionMemoryRecommendationOption with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:memorySize:LambdaFunctionMemoryRecommendationOption',
-- lambdaFunctionMemoryRecommendationOption_memorySize - The
-- memory size, in MB, of the function recommendation option.
--
--
-- $sel:projectedUtilizationMetrics:LambdaFunctionMemoryRecommendationOption',
-- lambdaFunctionMemoryRecommendationOption_projectedUtilizationMetrics
-- - An array of objects that describe the projected utilization metrics
-- of the function recommendation option.
--
-- $sel:rank:LambdaFunctionMemoryRecommendationOption',
-- lambdaFunctionMemoryRecommendationOption_rank - The rank of the
-- function recommendation option.
--
-- The top recommendation option is ranked as 1.
--
--
-- $sel:savingsOpportunity:LambdaFunctionMemoryRecommendationOption',
-- lambdaFunctionMemoryRecommendationOption_savingsOpportunity -
-- An object that describes the savings opportunity for the Lambda
-- function recommendation option. Savings opportunity includes the
-- estimated monthly savings amount and percentage.
newLambdaFunctionMemoryRecommendationOption :: LambdaFunctionMemoryRecommendationOption
-- | The memory size, in MB, of the function recommendation option.
lambdaFunctionMemoryRecommendationOption_memorySize :: Lens' LambdaFunctionMemoryRecommendationOption (Maybe Int)
-- | An array of objects that describe the projected utilization metrics of
-- the function recommendation option.
lambdaFunctionMemoryRecommendationOption_projectedUtilizationMetrics :: Lens' LambdaFunctionMemoryRecommendationOption (Maybe [LambdaFunctionMemoryProjectedMetric])
-- | The rank of the function recommendation option.
--
-- The top recommendation option is ranked as 1.
lambdaFunctionMemoryRecommendationOption_rank :: Lens' LambdaFunctionMemoryRecommendationOption (Maybe Int)
-- | An object that describes the savings opportunity for the Lambda
-- function recommendation option. Savings opportunity includes the
-- estimated monthly savings amount and percentage.
lambdaFunctionMemoryRecommendationOption_savingsOpportunity :: Lens' LambdaFunctionMemoryRecommendationOption (Maybe SavingsOpportunity)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryRecommendationOption.LambdaFunctionMemoryRecommendationOption
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryRecommendationOption.LambdaFunctionMemoryRecommendationOption
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryRecommendationOption.LambdaFunctionMemoryRecommendationOption
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryRecommendationOption.LambdaFunctionMemoryRecommendationOption
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryRecommendationOption.LambdaFunctionMemoryRecommendationOption
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryRecommendationOption.LambdaFunctionMemoryRecommendationOption
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.LambdaFunctionMemoryRecommendationOption.LambdaFunctionMemoryRecommendationOption
module Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendation
-- | Describes an Lambda function recommendation.
--
-- See: newLambdaFunctionRecommendation smart constructor.
data LambdaFunctionRecommendation
LambdaFunctionRecommendation' :: Maybe Text -> Maybe Int -> Maybe CurrentPerformanceRisk -> Maybe LambdaFunctionRecommendationFinding -> Maybe [LambdaFunctionRecommendationFindingReasonCode] -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Double -> Maybe [LambdaFunctionMemoryRecommendationOption] -> Maybe Integer -> Maybe [LambdaFunctionUtilizationMetric] -> LambdaFunctionRecommendation
-- | The Amazon Web Services account ID of the function.
[$sel:accountId:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe Text
-- | The amount of memory, in MB, that's allocated to the current function.
[$sel:currentMemorySize:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe Int
-- | The risk of the current Lambda function not meeting the performance
-- needs of its workloads. The higher the risk, the more likely the
-- current Lambda function requires more memory.
[$sel:currentPerformanceRisk:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe CurrentPerformanceRisk
-- | The finding classification of the function.
--
-- Findings for functions include:
--
--
-- - Optimized — The function is correctly provisioned
-- to run your workload based on its current configuration and its
-- utilization history. This finding classification does not include
-- finding reason codes.
-- - NotOptimized — The function is performing at a
-- higher level (over-provisioned) or at a lower level
-- (under-provisioned) than required for your workload because its
-- current configuration is not optimal. Over-provisioned resources might
-- lead to unnecessary infrastructure cost, and under-provisioned
-- resources might lead to poor application performance. This finding
-- classification can include the MemoryUnderprovisioned and
-- MemoryUnderprovisioned finding reason codes.
-- - Unavailable — Compute Optimizer was unable to
-- generate a recommendation for the function. This could be because the
-- function has not accumulated sufficient metric data, or the function
-- does not qualify for a recommendation. This finding classification can
-- include the InsufficientData and Inconclusive
-- finding reason codes.Functions with a finding of unavailable are not
-- returned unless you specify the filter parameter with a value
-- of Unavailable in your
-- GetLambdaFunctionRecommendations request.
--
[$sel:finding:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe LambdaFunctionRecommendationFinding
-- | The reason for the finding classification of the function.
--
-- Functions that have a finding classification of Optimized
-- don't have a finding reason code.
--
-- Finding reason codes for functions include:
--
--
-- - MemoryOverprovisioned — The function is
-- over-provisioned when its memory configuration can be sized down while
-- still meeting the performance requirements of your workload. An
-- over-provisioned function might lead to unnecessary infrastructure
-- cost. This finding reason code is part of the NotOptimized
-- finding classification.
-- - MemoryUnderprovisioned — The function is
-- under-provisioned when its memory configuration doesn't meet the
-- performance requirements of the workload. An under-provisioned
-- function might lead to poor application performance. This finding
-- reason code is part of the NotOptimized finding
-- classification.
-- - InsufficientData — The function does not have
-- sufficient metric data for Compute Optimizer to generate a
-- recommendation. For more information, see the Supported resources
-- and requirements in the Compute Optimizer User Guide. This
-- finding reason code is part of the Unavailable finding
-- classification.
-- - Inconclusive — The function does not qualify for a
-- recommendation because Compute Optimizer cannot generate a
-- recommendation with a high degree of confidence. This finding reason
-- code is part of the Unavailable finding classification.
--
[$sel:findingReasonCodes:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe [LambdaFunctionRecommendationFindingReasonCode]
-- | The Amazon Resource Name (ARN) of the current function.
[$sel:functionArn:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe Text
-- | The version number of the current function.
[$sel:functionVersion:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe Text
-- | The timestamp of when the function recommendation was last generated.
[$sel:lastRefreshTimestamp:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe POSIX
-- | The number of days for which utilization metrics were analyzed for the
-- function.
[$sel:lookbackPeriodInDays:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe Double
-- | An array of objects that describe the memory configuration
-- recommendation options for the function.
[$sel:memorySizeRecommendationOptions:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe [LambdaFunctionMemoryRecommendationOption]
-- | The number of times your function code was applied during the
-- look-back period.
[$sel:numberOfInvocations:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe Integer
-- | An array of objects that describe the utilization metrics of the
-- function.
[$sel:utilizationMetrics:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe [LambdaFunctionUtilizationMetric]
-- | Create a value of LambdaFunctionRecommendation with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_accountId - The Amazon Web
-- Services account ID of the function.
--
-- $sel:currentMemorySize:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_currentMemorySize - The amount of
-- memory, in MB, that's allocated to the current function.
--
-- $sel:currentPerformanceRisk:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_currentPerformanceRisk - The risk
-- of the current Lambda function not meeting the performance needs of
-- its workloads. The higher the risk, the more likely the current Lambda
-- function requires more memory.
--
-- $sel:finding:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_finding - The finding
-- classification of the function.
--
-- Findings for functions include:
--
--
-- - Optimized — The function is correctly provisioned
-- to run your workload based on its current configuration and its
-- utilization history. This finding classification does not include
-- finding reason codes.
-- - NotOptimized — The function is performing at a
-- higher level (over-provisioned) or at a lower level
-- (under-provisioned) than required for your workload because its
-- current configuration is not optimal. Over-provisioned resources might
-- lead to unnecessary infrastructure cost, and under-provisioned
-- resources might lead to poor application performance. This finding
-- classification can include the MemoryUnderprovisioned and
-- MemoryUnderprovisioned finding reason codes.
-- - Unavailable — Compute Optimizer was unable to
-- generate a recommendation for the function. This could be because the
-- function has not accumulated sufficient metric data, or the function
-- does not qualify for a recommendation. This finding classification can
-- include the InsufficientData and Inconclusive
-- finding reason codes.Functions with a finding of unavailable are not
-- returned unless you specify the filter parameter with a value
-- of Unavailable in your
-- GetLambdaFunctionRecommendations request.
--
--
-- $sel:findingReasonCodes:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_findingReasonCodes - The reason
-- for the finding classification of the function.
--
-- Functions that have a finding classification of Optimized
-- don't have a finding reason code.
--
-- Finding reason codes for functions include:
--
--
-- - MemoryOverprovisioned — The function is
-- over-provisioned when its memory configuration can be sized down while
-- still meeting the performance requirements of your workload. An
-- over-provisioned function might lead to unnecessary infrastructure
-- cost. This finding reason code is part of the NotOptimized
-- finding classification.
-- - MemoryUnderprovisioned — The function is
-- under-provisioned when its memory configuration doesn't meet the
-- performance requirements of the workload. An under-provisioned
-- function might lead to poor application performance. This finding
-- reason code is part of the NotOptimized finding
-- classification.
-- - InsufficientData — The function does not have
-- sufficient metric data for Compute Optimizer to generate a
-- recommendation. For more information, see the Supported resources
-- and requirements in the Compute Optimizer User Guide. This
-- finding reason code is part of the Unavailable finding
-- classification.
-- - Inconclusive — The function does not qualify for a
-- recommendation because Compute Optimizer cannot generate a
-- recommendation with a high degree of confidence. This finding reason
-- code is part of the Unavailable finding classification.
--
--
-- $sel:functionArn:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_functionArn - The Amazon Resource
-- Name (ARN) of the current function.
--
-- $sel:functionVersion:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_functionVersion - The version
-- number of the current function.
--
-- $sel:lastRefreshTimestamp:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_lastRefreshTimestamp - The
-- timestamp of when the function recommendation was last generated.
--
-- $sel:lookbackPeriodInDays:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_lookbackPeriodInDays - The number
-- of days for which utilization metrics were analyzed for the function.
--
--
-- $sel:memorySizeRecommendationOptions:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_memorySizeRecommendationOptions -
-- An array of objects that describe the memory configuration
-- recommendation options for the function.
--
-- $sel:numberOfInvocations:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_numberOfInvocations - The number
-- of times your function code was applied during the look-back period.
--
-- $sel:utilizationMetrics:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_utilizationMetrics - An array of
-- objects that describe the utilization metrics of the function.
newLambdaFunctionRecommendation :: LambdaFunctionRecommendation
-- | The Amazon Web Services account ID of the function.
lambdaFunctionRecommendation_accountId :: Lens' LambdaFunctionRecommendation (Maybe Text)
-- | The amount of memory, in MB, that's allocated to the current function.
lambdaFunctionRecommendation_currentMemorySize :: Lens' LambdaFunctionRecommendation (Maybe Int)
-- | The risk of the current Lambda function not meeting the performance
-- needs of its workloads. The higher the risk, the more likely the
-- current Lambda function requires more memory.
lambdaFunctionRecommendation_currentPerformanceRisk :: Lens' LambdaFunctionRecommendation (Maybe CurrentPerformanceRisk)
-- | The finding classification of the function.
--
-- Findings for functions include:
--
--
-- - Optimized — The function is correctly provisioned
-- to run your workload based on its current configuration and its
-- utilization history. This finding classification does not include
-- finding reason codes.
-- - NotOptimized — The function is performing at a
-- higher level (over-provisioned) or at a lower level
-- (under-provisioned) than required for your workload because its
-- current configuration is not optimal. Over-provisioned resources might
-- lead to unnecessary infrastructure cost, and under-provisioned
-- resources might lead to poor application performance. This finding
-- classification can include the MemoryUnderprovisioned and
-- MemoryUnderprovisioned finding reason codes.
-- - Unavailable — Compute Optimizer was unable to
-- generate a recommendation for the function. This could be because the
-- function has not accumulated sufficient metric data, or the function
-- does not qualify for a recommendation. This finding classification can
-- include the InsufficientData and Inconclusive
-- finding reason codes.Functions with a finding of unavailable are not
-- returned unless you specify the filter parameter with a value
-- of Unavailable in your
-- GetLambdaFunctionRecommendations request.
--
lambdaFunctionRecommendation_finding :: Lens' LambdaFunctionRecommendation (Maybe LambdaFunctionRecommendationFinding)
-- | The reason for the finding classification of the function.
--
-- Functions that have a finding classification of Optimized
-- don't have a finding reason code.
--
-- Finding reason codes for functions include:
--
--
-- - MemoryOverprovisioned — The function is
-- over-provisioned when its memory configuration can be sized down while
-- still meeting the performance requirements of your workload. An
-- over-provisioned function might lead to unnecessary infrastructure
-- cost. This finding reason code is part of the NotOptimized
-- finding classification.
-- - MemoryUnderprovisioned — The function is
-- under-provisioned when its memory configuration doesn't meet the
-- performance requirements of the workload. An under-provisioned
-- function might lead to poor application performance. This finding
-- reason code is part of the NotOptimized finding
-- classification.
-- - InsufficientData — The function does not have
-- sufficient metric data for Compute Optimizer to generate a
-- recommendation. For more information, see the Supported resources
-- and requirements in the Compute Optimizer User Guide. This
-- finding reason code is part of the Unavailable finding
-- classification.
-- - Inconclusive — The function does not qualify for a
-- recommendation because Compute Optimizer cannot generate a
-- recommendation with a high degree of confidence. This finding reason
-- code is part of the Unavailable finding classification.
--
lambdaFunctionRecommendation_findingReasonCodes :: Lens' LambdaFunctionRecommendation (Maybe [LambdaFunctionRecommendationFindingReasonCode])
-- | The Amazon Resource Name (ARN) of the current function.
lambdaFunctionRecommendation_functionArn :: Lens' LambdaFunctionRecommendation (Maybe Text)
-- | The version number of the current function.
lambdaFunctionRecommendation_functionVersion :: Lens' LambdaFunctionRecommendation (Maybe Text)
-- | The timestamp of when the function recommendation was last generated.
lambdaFunctionRecommendation_lastRefreshTimestamp :: Lens' LambdaFunctionRecommendation (Maybe UTCTime)
-- | The number of days for which utilization metrics were analyzed for the
-- function.
lambdaFunctionRecommendation_lookbackPeriodInDays :: Lens' LambdaFunctionRecommendation (Maybe Double)
-- | An array of objects that describe the memory configuration
-- recommendation options for the function.
lambdaFunctionRecommendation_memorySizeRecommendationOptions :: Lens' LambdaFunctionRecommendation (Maybe [LambdaFunctionMemoryRecommendationOption])
-- | The number of times your function code was applied during the
-- look-back period.
lambdaFunctionRecommendation_numberOfInvocations :: Lens' LambdaFunctionRecommendation (Maybe Integer)
-- | An array of objects that describe the utilization metrics of the
-- function.
lambdaFunctionRecommendation_utilizationMetrics :: Lens' LambdaFunctionRecommendation (Maybe [LambdaFunctionUtilizationMetric])
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendation.LambdaFunctionRecommendation
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendation.LambdaFunctionRecommendation
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendation.LambdaFunctionRecommendation
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendation.LambdaFunctionRecommendation
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendation.LambdaFunctionRecommendation
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendation.LambdaFunctionRecommendation
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.LambdaFunctionRecommendation.LambdaFunctionRecommendation
module Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationOption
-- | Describes the recommendation options for an Amazon ECS service.
--
-- See: newECSServiceRecommendationOption smart
-- constructor.
data ECSServiceRecommendationOption
ECSServiceRecommendationOption' :: Maybe [ContainerRecommendation] -> Maybe Int -> Maybe Int -> Maybe [ECSServiceProjectedUtilizationMetric] -> Maybe SavingsOpportunity -> ECSServiceRecommendationOption
-- | The CPU and memory size recommendations for the containers within the
-- task of your ECS service.
[$sel:containerRecommendations:ECSServiceRecommendationOption'] :: ECSServiceRecommendationOption -> Maybe [ContainerRecommendation]
-- | The CPU size of the ECS service recommendation option.
[$sel:cpu:ECSServiceRecommendationOption'] :: ECSServiceRecommendationOption -> Maybe Int
-- | The memory size of the ECS service recommendation option.
[$sel:memory:ECSServiceRecommendationOption'] :: ECSServiceRecommendationOption -> Maybe Int
-- | An array of objects that describe the projected utilization metrics of
-- the ECS service recommendation option.
[$sel:projectedUtilizationMetrics:ECSServiceRecommendationOption'] :: ECSServiceRecommendationOption -> Maybe [ECSServiceProjectedUtilizationMetric]
[$sel:savingsOpportunity:ECSServiceRecommendationOption'] :: ECSServiceRecommendationOption -> Maybe SavingsOpportunity
-- | Create a value of ECSServiceRecommendationOption with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:containerRecommendations:ECSServiceRecommendationOption',
-- eCSServiceRecommendationOption_containerRecommendations - The
-- CPU and memory size recommendations for the containers within the task
-- of your ECS service.
--
-- ECSServiceRecommendationOption,
-- eCSServiceRecommendationOption_cpu - The CPU size of the ECS
-- service recommendation option.
--
-- $sel:memory:ECSServiceRecommendationOption',
-- eCSServiceRecommendationOption_memory - The memory size of the
-- ECS service recommendation option.
--
--
-- $sel:projectedUtilizationMetrics:ECSServiceRecommendationOption',
-- eCSServiceRecommendationOption_projectedUtilizationMetrics - An
-- array of objects that describe the projected utilization metrics of
-- the ECS service recommendation option.
--
-- $sel:savingsOpportunity:ECSServiceRecommendationOption',
-- eCSServiceRecommendationOption_savingsOpportunity -
-- Undocumented member.
newECSServiceRecommendationOption :: ECSServiceRecommendationOption
-- | The CPU and memory size recommendations for the containers within the
-- task of your ECS service.
eCSServiceRecommendationOption_containerRecommendations :: Lens' ECSServiceRecommendationOption (Maybe [ContainerRecommendation])
-- | The CPU size of the ECS service recommendation option.
eCSServiceRecommendationOption_cpu :: Lens' ECSServiceRecommendationOption (Maybe Int)
-- | The memory size of the ECS service recommendation option.
eCSServiceRecommendationOption_memory :: Lens' ECSServiceRecommendationOption (Maybe Int)
-- | An array of objects that describe the projected utilization metrics of
-- the ECS service recommendation option.
eCSServiceRecommendationOption_projectedUtilizationMetrics :: Lens' ECSServiceRecommendationOption (Maybe [ECSServiceProjectedUtilizationMetric])
-- | Undocumented member.
eCSServiceRecommendationOption_savingsOpportunity :: Lens' ECSServiceRecommendationOption (Maybe SavingsOpportunity)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationOption.ECSServiceRecommendationOption
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationOption.ECSServiceRecommendationOption
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationOption.ECSServiceRecommendationOption
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationOption.ECSServiceRecommendationOption
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationOption.ECSServiceRecommendationOption
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationOption.ECSServiceRecommendationOption
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ECSServiceRecommendationOption.ECSServiceRecommendationOption
module Amazonka.ComputeOptimizer.Types.ScopeName
newtype ScopeName
ScopeName' :: Text -> ScopeName
[fromScopeName] :: ScopeName -> Text
pattern ScopeName_AccountId :: ScopeName
pattern ScopeName_Organization :: ScopeName
pattern ScopeName_ResourceArn :: ScopeName
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.ScopeName.ScopeName
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.ScopeName.ScopeName
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.ScopeName.ScopeName
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.ScopeName.ScopeName
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.ScopeName.ScopeName
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ScopeName.ScopeName
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.ScopeName.ScopeName
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.ScopeName.ScopeName
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.ScopeName.ScopeName
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.ScopeName.ScopeName
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.ScopeName.ScopeName
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.ScopeName.ScopeName
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ScopeName.ScopeName
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ScopeName.ScopeName
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ScopeName.ScopeName
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.ScopeName.ScopeName
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ScopeName.ScopeName
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ScopeName.ScopeName
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ScopeName.ScopeName
module Amazonka.ComputeOptimizer.Types.Scope
-- | Describes the scope of a recommendation preference.
--
-- Recommendation preferences can be created at the organization level
-- (for management accounts of an organization only), account level, and
-- resource level. For more information, see Activating enhanced
-- infrastructure metrics in the Compute Optimizer User Guide.
--
-- You cannot create recommendation preferences for Auto Scaling groups
-- at the organization and account levels. You can create recommendation
-- preferences for Auto Scaling groups only at the resource level by
-- specifying a scope name of ResourceArn and a scope value of
-- the Auto Scaling group Amazon Resource Name (ARN). This will configure
-- the preference for all instances that are part of the specified Auto
-- Scaling group. You also cannot create recommendation preferences at
-- the resource level for instances that are part of an Auto Scaling
-- group. You can create recommendation preferences at the resource level
-- only for standalone instances.
--
-- See: newScope smart constructor.
data Scope
Scope' :: Maybe ScopeName -> Maybe Text -> Scope
-- | The name of the scope.
--
-- The following scopes are possible:
--
--
-- - Organization - Specifies that the recommendation
-- preference applies at the organization level, for all member accounts
-- of an organization.
-- - AccountId - Specifies that the recommendation preference
-- applies at the account level, for all resources of a given resource
-- type in an account.
-- - ResourceArn - Specifies that the recommendation
-- preference applies at the individual resource level.
--
[$sel:name:Scope'] :: Scope -> Maybe ScopeName
-- | The value of the scope.
--
-- If you specified the name of the scope as:
--
--
-- - Organization - The value must be
-- ALL_ACCOUNTS.
-- - AccountId - The value must be a 12-digit Amazon
-- Web Services account ID.
-- - ResourceArn - The value must be the Amazon
-- Resource Name (ARN) of an EC2 instance or an Auto Scaling group.
--
--
-- Only EC2 instance and Auto Scaling group ARNs are currently supported.
[$sel:value:Scope'] :: Scope -> Maybe Text
-- | Create a value of Scope with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:Scope', scope_name - The name of the scope.
--
-- The following scopes are possible:
--
--
-- - Organization - Specifies that the recommendation
-- preference applies at the organization level, for all member accounts
-- of an organization.
-- - AccountId - Specifies that the recommendation preference
-- applies at the account level, for all resources of a given resource
-- type in an account.
-- - ResourceArn - Specifies that the recommendation
-- preference applies at the individual resource level.
--
--
-- $sel:value:Scope', scope_value - The value of the scope.
--
-- If you specified the name of the scope as:
--
--
-- - Organization - The value must be
-- ALL_ACCOUNTS.
-- - AccountId - The value must be a 12-digit Amazon
-- Web Services account ID.
-- - ResourceArn - The value must be the Amazon
-- Resource Name (ARN) of an EC2 instance or an Auto Scaling group.
--
--
-- Only EC2 instance and Auto Scaling group ARNs are currently supported.
newScope :: Scope
-- | The name of the scope.
--
-- The following scopes are possible:
--
--
-- - Organization - Specifies that the recommendation
-- preference applies at the organization level, for all member accounts
-- of an organization.
-- - AccountId - Specifies that the recommendation preference
-- applies at the account level, for all resources of a given resource
-- type in an account.
-- - ResourceArn - Specifies that the recommendation
-- preference applies at the individual resource level.
--
scope_name :: Lens' Scope (Maybe ScopeName)
-- | The value of the scope.
--
-- If you specified the name of the scope as:
--
--
-- - Organization - The value must be
-- ALL_ACCOUNTS.
-- - AccountId - The value must be a 12-digit Amazon
-- Web Services account ID.
-- - ResourceArn - The value must be the Amazon
-- Resource Name (ARN) of an EC2 instance or an Auto Scaling group.
--
--
-- Only EC2 instance and Auto Scaling group ARNs are currently supported.
scope_value :: Lens' Scope (Maybe Text)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.Scope.Scope
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.Scope.Scope
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.Scope.Scope
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.Scope.Scope
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.Scope.Scope
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.Scope.Scope
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.Scope.Scope
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.Scope.Scope
module Amazonka.ComputeOptimizer.Types.RecommendationPreferencesDetail
-- | Describes a recommendation preference.
--
-- See: newRecommendationPreferencesDetail smart
-- constructor.
data RecommendationPreferencesDetail
RecommendationPreferencesDetail' :: Maybe EnhancedInfrastructureMetrics -> Maybe ExternalMetricsPreference -> Maybe InferredWorkloadTypesPreference -> Maybe ResourceType -> Maybe Scope -> RecommendationPreferencesDetail
-- | The status of the enhanced infrastructure metrics recommendation
-- preference.
--
-- When the recommendations page is refreshed, a status of
-- Active confirms that the preference is applied to the
-- recommendations, and a status of Inactive confirms that the
-- preference isn't yet applied to recommendations.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
[$sel:enhancedInfrastructureMetrics:RecommendationPreferencesDetail'] :: RecommendationPreferencesDetail -> Maybe EnhancedInfrastructureMetrics
-- | An object that describes the external metrics recommendation
-- preference.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
[$sel:externalMetricsPreference:RecommendationPreferencesDetail'] :: RecommendationPreferencesDetail -> Maybe ExternalMetricsPreference
-- | The status of the inferred workload types recommendation preference.
--
-- When the recommendations page is refreshed, a status of
-- Active confirms that the preference is applied to the
-- recommendations, and a status of Inactive confirms that the
-- preference isn't yet applied to recommendations.
[$sel:inferredWorkloadTypes:RecommendationPreferencesDetail'] :: RecommendationPreferencesDetail -> Maybe InferredWorkloadTypesPreference
-- | The target resource type of the recommendation preference to create.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
[$sel:resourceType:RecommendationPreferencesDetail'] :: RecommendationPreferencesDetail -> Maybe ResourceType
-- | An object that describes the scope of the recommendation preference.
--
-- Recommendation preferences can be created at the organization level
-- (for management accounts of an organization only), account level, and
-- resource level. For more information, see Activating enhanced
-- infrastructure metrics in the Compute Optimizer User Guide.
[$sel:scope:RecommendationPreferencesDetail'] :: RecommendationPreferencesDetail -> Maybe Scope
-- | Create a value of RecommendationPreferencesDetail with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:enhancedInfrastructureMetrics:RecommendationPreferencesDetail',
-- recommendationPreferencesDetail_enhancedInfrastructureMetrics -
-- The status of the enhanced infrastructure metrics recommendation
-- preference.
--
-- When the recommendations page is refreshed, a status of
-- Active confirms that the preference is applied to the
-- recommendations, and a status of Inactive confirms that the
-- preference isn't yet applied to recommendations.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
--
--
-- $sel:externalMetricsPreference:RecommendationPreferencesDetail',
-- recommendationPreferencesDetail_externalMetricsPreference - An
-- object that describes the external metrics recommendation preference.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
--
-- $sel:inferredWorkloadTypes:RecommendationPreferencesDetail',
-- recommendationPreferencesDetail_inferredWorkloadTypes - The
-- status of the inferred workload types recommendation preference.
--
-- When the recommendations page is refreshed, a status of
-- Active confirms that the preference is applied to the
-- recommendations, and a status of Inactive confirms that the
-- preference isn't yet applied to recommendations.
--
-- $sel:resourceType:RecommendationPreferencesDetail',
-- recommendationPreferencesDetail_resourceType - The target
-- resource type of the recommendation preference to create.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
--
-- $sel:scope:RecommendationPreferencesDetail',
-- recommendationPreferencesDetail_scope - An object that
-- describes the scope of the recommendation preference.
--
-- Recommendation preferences can be created at the organization level
-- (for management accounts of an organization only), account level, and
-- resource level. For more information, see Activating enhanced
-- infrastructure metrics in the Compute Optimizer User Guide.
newRecommendationPreferencesDetail :: RecommendationPreferencesDetail
-- | The status of the enhanced infrastructure metrics recommendation
-- preference.
--
-- When the recommendations page is refreshed, a status of
-- Active confirms that the preference is applied to the
-- recommendations, and a status of Inactive confirms that the
-- preference isn't yet applied to recommendations.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
recommendationPreferencesDetail_enhancedInfrastructureMetrics :: Lens' RecommendationPreferencesDetail (Maybe EnhancedInfrastructureMetrics)
-- | An object that describes the external metrics recommendation
-- preference.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
recommendationPreferencesDetail_externalMetricsPreference :: Lens' RecommendationPreferencesDetail (Maybe ExternalMetricsPreference)
-- | The status of the inferred workload types recommendation preference.
--
-- When the recommendations page is refreshed, a status of
-- Active confirms that the preference is applied to the
-- recommendations, and a status of Inactive confirms that the
-- preference isn't yet applied to recommendations.
recommendationPreferencesDetail_inferredWorkloadTypes :: Lens' RecommendationPreferencesDetail (Maybe InferredWorkloadTypesPreference)
-- | The target resource type of the recommendation preference to create.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
recommendationPreferencesDetail_resourceType :: Lens' RecommendationPreferencesDetail (Maybe ResourceType)
-- | An object that describes the scope of the recommendation preference.
--
-- Recommendation preferences can be created at the organization level
-- (for management accounts of an organization only), account level, and
-- resource level. For more information, see Activating enhanced
-- infrastructure metrics in the Compute Optimizer User Guide.
recommendationPreferencesDetail_scope :: Lens' RecommendationPreferencesDetail (Maybe Scope)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.RecommendationPreferencesDetail.RecommendationPreferencesDetail
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.RecommendationPreferencesDetail.RecommendationPreferencesDetail
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.RecommendationPreferencesDetail.RecommendationPreferencesDetail
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.RecommendationPreferencesDetail.RecommendationPreferencesDetail
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.RecommendationPreferencesDetail.RecommendationPreferencesDetail
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.RecommendationPreferencesDetail.RecommendationPreferencesDetail
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.RecommendationPreferencesDetail.RecommendationPreferencesDetail
module Amazonka.ComputeOptimizer.Types.ServiceConfiguration
-- | The Amazon ECS service configurations used for recommendations.
--
-- See: newServiceConfiguration smart constructor.
data ServiceConfiguration
ServiceConfiguration' :: Maybe AutoScalingConfiguration -> Maybe [ContainerConfiguration] -> Maybe Int -> Maybe Int -> Maybe Text -> ServiceConfiguration
-- | Describes the Auto Scaling configuration methods for an Amazon ECS
-- service. This affects the generated recommendations. For example, if
-- Auto Scaling is configured on a ECS service’s CPU, then Compute
-- Optimizer doesn’t generate CPU size recommendations.
--
-- The Auto Scaling configuration methods include:
--
--
-- - TARGET_TRACKING_SCALING_CPU — If the ECS service is
-- configured to use target scaling on CPU, Compute Optimizer doesn't
-- generate CPU recommendations.
-- - TARGET_TRACKING_SCALING_MEMORY — If the ECS service is
-- configured to use target scaling on memory, Compute Optimizer doesn't
-- generate memory recommendations.
--
--
-- For more information about step scaling and target scaling, see
-- Step scaling policies for Application Auto Scaling and
-- Target tracking scaling policies for Application Auto Scaling
-- in the Application Auto Scaling User Guide.
[$sel:autoScalingConfiguration:ServiceConfiguration'] :: ServiceConfiguration -> Maybe AutoScalingConfiguration
-- | The container configurations within a task of an ECS service.
[$sel:containerConfigurations:ServiceConfiguration'] :: ServiceConfiguration -> Maybe [ContainerConfiguration]
-- | The number of CPU units used by the tasks in the ECS service.
[$sel:cpu:ServiceConfiguration'] :: ServiceConfiguration -> Maybe Int
-- | The amount of memory used by the tasks in the ECS service.
[$sel:memory:ServiceConfiguration'] :: ServiceConfiguration -> Maybe Int
-- | The task definition ARN used by the tasks in the ECS service.
[$sel:taskDefinitionArn:ServiceConfiguration'] :: ServiceConfiguration -> Maybe Text
-- | Create a value of ServiceConfiguration with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:autoScalingConfiguration:ServiceConfiguration',
-- serviceConfiguration_autoScalingConfiguration - Describes the
-- Auto Scaling configuration methods for an Amazon ECS service. This
-- affects the generated recommendations. For example, if Auto Scaling is
-- configured on a ECS service’s CPU, then Compute Optimizer doesn’t
-- generate CPU size recommendations.
--
-- The Auto Scaling configuration methods include:
--
--
-- - TARGET_TRACKING_SCALING_CPU — If the ECS service is
-- configured to use target scaling on CPU, Compute Optimizer doesn't
-- generate CPU recommendations.
-- - TARGET_TRACKING_SCALING_MEMORY — If the ECS service is
-- configured to use target scaling on memory, Compute Optimizer doesn't
-- generate memory recommendations.
--
--
-- For more information about step scaling and target scaling, see
-- Step scaling policies for Application Auto Scaling and
-- Target tracking scaling policies for Application Auto Scaling
-- in the Application Auto Scaling User Guide.
--
-- $sel:containerConfigurations:ServiceConfiguration',
-- serviceConfiguration_containerConfigurations - The container
-- configurations within a task of an ECS service.
--
-- ServiceConfiguration, serviceConfiguration_cpu - The
-- number of CPU units used by the tasks in the ECS service.
--
-- $sel:memory:ServiceConfiguration',
-- serviceConfiguration_memory - The amount of memory used by the
-- tasks in the ECS service.
--
-- $sel:taskDefinitionArn:ServiceConfiguration',
-- serviceConfiguration_taskDefinitionArn - The task definition
-- ARN used by the tasks in the ECS service.
newServiceConfiguration :: ServiceConfiguration
-- | Describes the Auto Scaling configuration methods for an Amazon ECS
-- service. This affects the generated recommendations. For example, if
-- Auto Scaling is configured on a ECS service’s CPU, then Compute
-- Optimizer doesn’t generate CPU size recommendations.
--
-- The Auto Scaling configuration methods include:
--
--
-- - TARGET_TRACKING_SCALING_CPU — If the ECS service is
-- configured to use target scaling on CPU, Compute Optimizer doesn't
-- generate CPU recommendations.
-- - TARGET_TRACKING_SCALING_MEMORY — If the ECS service is
-- configured to use target scaling on memory, Compute Optimizer doesn't
-- generate memory recommendations.
--
--
-- For more information about step scaling and target scaling, see
-- Step scaling policies for Application Auto Scaling and
-- Target tracking scaling policies for Application Auto Scaling
-- in the Application Auto Scaling User Guide.
serviceConfiguration_autoScalingConfiguration :: Lens' ServiceConfiguration (Maybe AutoScalingConfiguration)
-- | The container configurations within a task of an ECS service.
serviceConfiguration_containerConfigurations :: Lens' ServiceConfiguration (Maybe [ContainerConfiguration])
-- | The number of CPU units used by the tasks in the ECS service.
serviceConfiguration_cpu :: Lens' ServiceConfiguration (Maybe Int)
-- | The amount of memory used by the tasks in the ECS service.
serviceConfiguration_memory :: Lens' ServiceConfiguration (Maybe Int)
-- | The task definition ARN used by the tasks in the ECS service.
serviceConfiguration_taskDefinitionArn :: Lens' ServiceConfiguration (Maybe Text)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ServiceConfiguration.ServiceConfiguration
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ServiceConfiguration.ServiceConfiguration
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ServiceConfiguration.ServiceConfiguration
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ServiceConfiguration.ServiceConfiguration
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ServiceConfiguration.ServiceConfiguration
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ServiceConfiguration.ServiceConfiguration
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ServiceConfiguration.ServiceConfiguration
module Amazonka.ComputeOptimizer.Types.ECSServiceRecommendation
-- | Describes an Amazon ECS service recommendation.
--
-- See: newECSServiceRecommendation smart constructor.
data ECSServiceRecommendation
ECSServiceRecommendation' :: Maybe Text -> Maybe CurrentPerformanceRisk -> Maybe ServiceConfiguration -> Maybe ECSServiceRecommendationFinding -> Maybe [ECSServiceRecommendationFindingReasonCode] -> Maybe POSIX -> Maybe ECSServiceLaunchType -> Maybe Double -> Maybe Text -> Maybe [ECSServiceRecommendationOption] -> Maybe [ECSServiceUtilizationMetric] -> ECSServiceRecommendation
-- | The Amazon Web Services account ID of the ECS service.
[$sel:accountId:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe Text
-- | The risk of the current ECS service not meeting the performance needs
-- of its workloads. The higher the risk, the more likely the current
-- service can't meet the performance requirements of its workload.
[$sel:currentPerformanceRisk:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe CurrentPerformanceRisk
-- | The configuration of the current ECS service.
[$sel:currentServiceConfiguration:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe ServiceConfiguration
-- | The finding classification of an ECS service.
--
-- Findings for ECS services include:
--
--
-- - Underprovisioned — When Compute Optimizer detects
-- that there’s not enough memory or CPU, an ECS service is considered
-- under-provisioned. An under-provisioned ECS service might result in
-- poor application performance.
-- - Overprovisioned — When Compute Optimizer detects
-- that there’s excessive memory or CPU, an ECS service is considered
-- over-provisioned. An over-provisioned ECS service might result in
-- additional infrastructure costs.
-- - Optimized — When both the CPU and memory of your
-- ECS service meet the performance requirements of your workload, the
-- service is considered optimized.
--
[$sel:finding:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe ECSServiceRecommendationFinding
-- | The reason for the finding classification of an ECS service.
--
-- Finding reason codes for ECS services include:
--
--
-- - CPUUnderprovisioned — The ECS service CPU
-- configuration can be sized up to enhance the performance of your
-- workload. This is identified by analyzing the CPUUtilization
-- metric of the current service during the look-back period.
-- - CPUOverprovisioned — The ECS service CPU
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- CPUUtilization metric of the current service during the
-- look-back period.
-- - MemoryUnderprovisioned — The ECS service memory
-- configuration can be sized up to enhance the performance of your
-- workload. This is identified by analyzing the
-- MemoryUtilization metric of the current service during the
-- look-back period.
-- - MemoryOverprovisioned — The ECS service memory
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- MemoryUtilization metric of the current service during the
-- look-back period.
--
[$sel:findingReasonCodes:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe [ECSServiceRecommendationFindingReasonCode]
-- | The timestamp of when the ECS service recommendation was last
-- generated.
[$sel:lastRefreshTimestamp:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe POSIX
-- | The launch type the ECS service is using.
--
-- Compute Optimizer only supports the Fargate launch type.
[$sel:launchType:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe ECSServiceLaunchType
-- | The number of days the ECS service utilization metrics were analyzed.
[$sel:lookbackPeriodInDays:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe Double
-- | The Amazon Resource Name (ARN) of the current ECS service.
--
-- The following is the format of the ARN:
--
--
-- arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
--
[$sel:serviceArn:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe Text
-- | An array of objects that describe the recommendation options for the
-- ECS service.
[$sel:serviceRecommendationOptions:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe [ECSServiceRecommendationOption]
-- | An array of objects that describe the utilization metrics of the ECS
-- service.
[$sel:utilizationMetrics:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe [ECSServiceUtilizationMetric]
-- | Create a value of ECSServiceRecommendation with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:ECSServiceRecommendation',
-- eCSServiceRecommendation_accountId - The Amazon Web Services
-- account ID of the ECS service.
--
-- $sel:currentPerformanceRisk:ECSServiceRecommendation',
-- eCSServiceRecommendation_currentPerformanceRisk - The risk of
-- the current ECS service not meeting the performance needs of its
-- workloads. The higher the risk, the more likely the current service
-- can't meet the performance requirements of its workload.
--
-- $sel:currentServiceConfiguration:ECSServiceRecommendation',
-- eCSServiceRecommendation_currentServiceConfiguration - The
-- configuration of the current ECS service.
--
-- $sel:finding:ECSServiceRecommendation',
-- eCSServiceRecommendation_finding - The finding classification
-- of an ECS service.
--
-- Findings for ECS services include:
--
--
-- - Underprovisioned — When Compute Optimizer detects
-- that there’s not enough memory or CPU, an ECS service is considered
-- under-provisioned. An under-provisioned ECS service might result in
-- poor application performance.
-- - Overprovisioned — When Compute Optimizer detects
-- that there’s excessive memory or CPU, an ECS service is considered
-- over-provisioned. An over-provisioned ECS service might result in
-- additional infrastructure costs.
-- - Optimized — When both the CPU and memory of your
-- ECS service meet the performance requirements of your workload, the
-- service is considered optimized.
--
--
-- $sel:findingReasonCodes:ECSServiceRecommendation',
-- eCSServiceRecommendation_findingReasonCodes - The reason for
-- the finding classification of an ECS service.
--
-- Finding reason codes for ECS services include:
--
--
-- - CPUUnderprovisioned — The ECS service CPU
-- configuration can be sized up to enhance the performance of your
-- workload. This is identified by analyzing the CPUUtilization
-- metric of the current service during the look-back period.
-- - CPUOverprovisioned — The ECS service CPU
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- CPUUtilization metric of the current service during the
-- look-back period.
-- - MemoryUnderprovisioned — The ECS service memory
-- configuration can be sized up to enhance the performance of your
-- workload. This is identified by analyzing the
-- MemoryUtilization metric of the current service during the
-- look-back period.
-- - MemoryOverprovisioned — The ECS service memory
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- MemoryUtilization metric of the current service during the
-- look-back period.
--
--
-- $sel:lastRefreshTimestamp:ECSServiceRecommendation',
-- eCSServiceRecommendation_lastRefreshTimestamp - The timestamp
-- of when the ECS service recommendation was last generated.
--
-- $sel:launchType:ECSServiceRecommendation',
-- eCSServiceRecommendation_launchType - The launch type the ECS
-- service is using.
--
-- Compute Optimizer only supports the Fargate launch type.
--
-- $sel:lookbackPeriodInDays:ECSServiceRecommendation',
-- eCSServiceRecommendation_lookbackPeriodInDays - The number of
-- days the ECS service utilization metrics were analyzed.
--
-- $sel:serviceArn:ECSServiceRecommendation',
-- eCSServiceRecommendation_serviceArn - The Amazon Resource Name
-- (ARN) of the current ECS service.
--
-- The following is the format of the ARN:
--
--
-- arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
--
--
-- $sel:serviceRecommendationOptions:ECSServiceRecommendation',
-- eCSServiceRecommendation_serviceRecommendationOptions - An
-- array of objects that describe the recommendation options for the ECS
-- service.
--
-- $sel:utilizationMetrics:ECSServiceRecommendation',
-- eCSServiceRecommendation_utilizationMetrics - An array of
-- objects that describe the utilization metrics of the ECS service.
newECSServiceRecommendation :: ECSServiceRecommendation
-- | The Amazon Web Services account ID of the ECS service.
eCSServiceRecommendation_accountId :: Lens' ECSServiceRecommendation (Maybe Text)
-- | The risk of the current ECS service not meeting the performance needs
-- of its workloads. The higher the risk, the more likely the current
-- service can't meet the performance requirements of its workload.
eCSServiceRecommendation_currentPerformanceRisk :: Lens' ECSServiceRecommendation (Maybe CurrentPerformanceRisk)
-- | The configuration of the current ECS service.
eCSServiceRecommendation_currentServiceConfiguration :: Lens' ECSServiceRecommendation (Maybe ServiceConfiguration)
-- | The finding classification of an ECS service.
--
-- Findings for ECS services include:
--
--
-- - Underprovisioned — When Compute Optimizer detects
-- that there’s not enough memory or CPU, an ECS service is considered
-- under-provisioned. An under-provisioned ECS service might result in
-- poor application performance.
-- - Overprovisioned — When Compute Optimizer detects
-- that there’s excessive memory or CPU, an ECS service is considered
-- over-provisioned. An over-provisioned ECS service might result in
-- additional infrastructure costs.
-- - Optimized — When both the CPU and memory of your
-- ECS service meet the performance requirements of your workload, the
-- service is considered optimized.
--
eCSServiceRecommendation_finding :: Lens' ECSServiceRecommendation (Maybe ECSServiceRecommendationFinding)
-- | The reason for the finding classification of an ECS service.
--
-- Finding reason codes for ECS services include:
--
--
-- - CPUUnderprovisioned — The ECS service CPU
-- configuration can be sized up to enhance the performance of your
-- workload. This is identified by analyzing the CPUUtilization
-- metric of the current service during the look-back period.
-- - CPUOverprovisioned — The ECS service CPU
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- CPUUtilization metric of the current service during the
-- look-back period.
-- - MemoryUnderprovisioned — The ECS service memory
-- configuration can be sized up to enhance the performance of your
-- workload. This is identified by analyzing the
-- MemoryUtilization metric of the current service during the
-- look-back period.
-- - MemoryOverprovisioned — The ECS service memory
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- MemoryUtilization metric of the current service during the
-- look-back period.
--
eCSServiceRecommendation_findingReasonCodes :: Lens' ECSServiceRecommendation (Maybe [ECSServiceRecommendationFindingReasonCode])
-- | The timestamp of when the ECS service recommendation was last
-- generated.
eCSServiceRecommendation_lastRefreshTimestamp :: Lens' ECSServiceRecommendation (Maybe UTCTime)
-- | The launch type the ECS service is using.
--
-- Compute Optimizer only supports the Fargate launch type.
eCSServiceRecommendation_launchType :: Lens' ECSServiceRecommendation (Maybe ECSServiceLaunchType)
-- | The number of days the ECS service utilization metrics were analyzed.
eCSServiceRecommendation_lookbackPeriodInDays :: Lens' ECSServiceRecommendation (Maybe Double)
-- | The Amazon Resource Name (ARN) of the current ECS service.
--
-- The following is the format of the ARN:
--
--
-- arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
--
eCSServiceRecommendation_serviceArn :: Lens' ECSServiceRecommendation (Maybe Text)
-- | An array of objects that describe the recommendation options for the
-- ECS service.
eCSServiceRecommendation_serviceRecommendationOptions :: Lens' ECSServiceRecommendation (Maybe [ECSServiceRecommendationOption])
-- | An array of objects that describe the utilization metrics of the ECS
-- service.
eCSServiceRecommendation_utilizationMetrics :: Lens' ECSServiceRecommendation (Maybe [ECSServiceUtilizationMetric])
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.ECSServiceRecommendation.ECSServiceRecommendation
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.ECSServiceRecommendation.ECSServiceRecommendation
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.ECSServiceRecommendation.ECSServiceRecommendation
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.ECSServiceRecommendation.ECSServiceRecommendation
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.ECSServiceRecommendation.ECSServiceRecommendation
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.ECSServiceRecommendation.ECSServiceRecommendation
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.ECSServiceRecommendation.ECSServiceRecommendation
module Amazonka.ComputeOptimizer.Types.Status
newtype Status
Status' :: Text -> Status
[fromStatus] :: Status -> Text
pattern Status_Active :: Status
pattern Status_Failed :: Status
pattern Status_Inactive :: Status
pattern Status_Pending :: Status
instance Amazonka.Data.XML.ToXML Amazonka.ComputeOptimizer.Types.Status.Status
instance Amazonka.Data.XML.FromXML Amazonka.ComputeOptimizer.Types.Status.Status
instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.ComputeOptimizer.Types.Status.Status
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.Types.Status.Status
instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.ComputeOptimizer.Types.Status.Status
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.Status.Status
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.Types.Status.Status
instance Amazonka.Data.Headers.ToHeader Amazonka.ComputeOptimizer.Types.Status.Status
instance Amazonka.Data.Log.ToLog Amazonka.ComputeOptimizer.Types.Status.Status
instance Amazonka.Data.ByteString.ToByteString Amazonka.ComputeOptimizer.Types.Status.Status
instance Amazonka.Data.Text.ToText Amazonka.ComputeOptimizer.Types.Status.Status
instance Amazonka.Data.Text.FromText Amazonka.ComputeOptimizer.Types.Status.Status
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.Status.Status
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.Status.Status
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.Status.Status
instance GHC.Classes.Ord Amazonka.ComputeOptimizer.Types.Status.Status
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.Status.Status
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.Status.Status
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.Status.Status
module Amazonka.ComputeOptimizer.Types.AccountEnrollmentStatus
-- | Describes the enrollment status of an organization's member accounts
-- in Compute Optimizer.
--
-- See: newAccountEnrollmentStatus smart constructor.
data AccountEnrollmentStatus
AccountEnrollmentStatus' :: Maybe Text -> Maybe POSIX -> Maybe Status -> Maybe Text -> AccountEnrollmentStatus
-- | The Amazon Web Services account ID.
[$sel:accountId:AccountEnrollmentStatus'] :: AccountEnrollmentStatus -> Maybe Text
-- | The Unix epoch timestamp, in seconds, of when the account enrollment
-- status was last updated.
[$sel:lastUpdatedTimestamp:AccountEnrollmentStatus'] :: AccountEnrollmentStatus -> Maybe POSIX
-- | The account enrollment status.
[$sel:status:AccountEnrollmentStatus'] :: AccountEnrollmentStatus -> Maybe Status
-- | The reason for the account enrollment status.
--
-- For example, an account might show a status of Pending
-- because member accounts of an organization require more time to be
-- enrolled in the service.
[$sel:statusReason:AccountEnrollmentStatus'] :: AccountEnrollmentStatus -> Maybe Text
-- | Create a value of AccountEnrollmentStatus with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:AccountEnrollmentStatus',
-- accountEnrollmentStatus_accountId - The Amazon Web Services
-- account ID.
--
-- $sel:lastUpdatedTimestamp:AccountEnrollmentStatus',
-- accountEnrollmentStatus_lastUpdatedTimestamp - The Unix epoch
-- timestamp, in seconds, of when the account enrollment status was last
-- updated.
--
-- $sel:status:AccountEnrollmentStatus',
-- accountEnrollmentStatus_status - The account enrollment status.
--
-- $sel:statusReason:AccountEnrollmentStatus',
-- accountEnrollmentStatus_statusReason - The reason for the
-- account enrollment status.
--
-- For example, an account might show a status of Pending
-- because member accounts of an organization require more time to be
-- enrolled in the service.
newAccountEnrollmentStatus :: AccountEnrollmentStatus
-- | The Amazon Web Services account ID.
accountEnrollmentStatus_accountId :: Lens' AccountEnrollmentStatus (Maybe Text)
-- | The Unix epoch timestamp, in seconds, of when the account enrollment
-- status was last updated.
accountEnrollmentStatus_lastUpdatedTimestamp :: Lens' AccountEnrollmentStatus (Maybe UTCTime)
-- | The account enrollment status.
accountEnrollmentStatus_status :: Lens' AccountEnrollmentStatus (Maybe Status)
-- | The reason for the account enrollment status.
--
-- For example, an account might show a status of Pending
-- because member accounts of an organization require more time to be
-- enrolled in the service.
accountEnrollmentStatus_statusReason :: Lens' AccountEnrollmentStatus (Maybe Text)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.AccountEnrollmentStatus.AccountEnrollmentStatus
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.AccountEnrollmentStatus.AccountEnrollmentStatus
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.AccountEnrollmentStatus.AccountEnrollmentStatus
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.AccountEnrollmentStatus.AccountEnrollmentStatus
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.AccountEnrollmentStatus.AccountEnrollmentStatus
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.AccountEnrollmentStatus.AccountEnrollmentStatus
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.AccountEnrollmentStatus.AccountEnrollmentStatus
module Amazonka.ComputeOptimizer.Types.Summary
-- | The summary of a recommendation.
--
-- See: newSummary smart constructor.
data Summary
Summary' :: Maybe Finding -> Maybe [ReasonCodeSummary] -> Maybe Double -> Summary
-- | The finding classification of the recommendation.
[$sel:name:Summary'] :: Summary -> Maybe Finding
-- | An array of objects that summarize a finding reason code.
[$sel:reasonCodeSummaries:Summary'] :: Summary -> Maybe [ReasonCodeSummary]
-- | The value of the recommendation summary.
[$sel:value:Summary'] :: Summary -> Maybe Double
-- | Create a value of Summary with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- Summary, summary_name - The finding classification of
-- the recommendation.
--
-- $sel:reasonCodeSummaries:Summary',
-- summary_reasonCodeSummaries - An array of objects that
-- summarize a finding reason code.
--
-- Summary, summary_value - The value of the recommendation
-- summary.
newSummary :: Summary
-- | The finding classification of the recommendation.
summary_name :: Lens' Summary (Maybe Finding)
-- | An array of objects that summarize a finding reason code.
summary_reasonCodeSummaries :: Lens' Summary (Maybe [ReasonCodeSummary])
-- | The value of the recommendation summary.
summary_value :: Lens' Summary (Maybe Double)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.Summary.Summary
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.Summary.Summary
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.Summary.Summary
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.Summary.Summary
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.Summary.Summary
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.Summary.Summary
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.Summary.Summary
module Amazonka.ComputeOptimizer.Types.RecommendationSummary
-- | A summary of a recommendation.
--
-- See: newRecommendationSummary smart constructor.
data RecommendationSummary
RecommendationSummary' :: Maybe Text -> Maybe CurrentPerformanceRiskRatings -> Maybe RecommendationSourceType -> Maybe SavingsOpportunity -> Maybe [Summary] -> RecommendationSummary
-- | The Amazon Web Services account ID of the recommendation summary.
[$sel:accountId:RecommendationSummary'] :: RecommendationSummary -> Maybe Text
-- | An object that describes the performance risk ratings for a given
-- resource type.
[$sel:currentPerformanceRiskRatings:RecommendationSummary'] :: RecommendationSummary -> Maybe CurrentPerformanceRiskRatings
-- | The resource type that the recommendation summary applies to.
[$sel:recommendationResourceType:RecommendationSummary'] :: RecommendationSummary -> Maybe RecommendationSourceType
-- | An object that describes the savings opportunity for a given resource
-- type. Savings opportunity includes the estimated monthly savings
-- amount and percentage.
[$sel:savingsOpportunity:RecommendationSummary'] :: RecommendationSummary -> Maybe SavingsOpportunity
-- | An array of objects that describe a recommendation summary.
[$sel:summaries:RecommendationSummary'] :: RecommendationSummary -> Maybe [Summary]
-- | Create a value of RecommendationSummary with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:RecommendationSummary',
-- recommendationSummary_accountId - The Amazon Web Services
-- account ID of the recommendation summary.
--
-- $sel:currentPerformanceRiskRatings:RecommendationSummary',
-- recommendationSummary_currentPerformanceRiskRatings - An object
-- that describes the performance risk ratings for a given resource type.
--
-- $sel:recommendationResourceType:RecommendationSummary',
-- recommendationSummary_recommendationResourceType - The resource
-- type that the recommendation summary applies to.
--
-- $sel:savingsOpportunity:RecommendationSummary',
-- recommendationSummary_savingsOpportunity - An object that
-- describes the savings opportunity for a given resource type. Savings
-- opportunity includes the estimated monthly savings amount and
-- percentage.
--
-- $sel:summaries:RecommendationSummary',
-- recommendationSummary_summaries - An array of objects that
-- describe a recommendation summary.
newRecommendationSummary :: RecommendationSummary
-- | The Amazon Web Services account ID of the recommendation summary.
recommendationSummary_accountId :: Lens' RecommendationSummary (Maybe Text)
-- | An object that describes the performance risk ratings for a given
-- resource type.
recommendationSummary_currentPerformanceRiskRatings :: Lens' RecommendationSummary (Maybe CurrentPerformanceRiskRatings)
-- | The resource type that the recommendation summary applies to.
recommendationSummary_recommendationResourceType :: Lens' RecommendationSummary (Maybe RecommendationSourceType)
-- | An object that describes the savings opportunity for a given resource
-- type. Savings opportunity includes the estimated monthly savings
-- amount and percentage.
recommendationSummary_savingsOpportunity :: Lens' RecommendationSummary (Maybe SavingsOpportunity)
-- | An array of objects that describe a recommendation summary.
recommendationSummary_summaries :: Lens' RecommendationSummary (Maybe [Summary])
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.RecommendationSummary.RecommendationSummary
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.RecommendationSummary.RecommendationSummary
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.RecommendationSummary.RecommendationSummary
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.RecommendationSummary.RecommendationSummary
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.RecommendationSummary.RecommendationSummary
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.RecommendationSummary.RecommendationSummary
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.RecommendationSummary.RecommendationSummary
module Amazonka.ComputeOptimizer.Types.UtilizationMetric
-- | Describes a utilization metric of a resource, such as an Amazon EC2
-- instance.
--
-- Compare the utilization metric data of your resource against its
-- projected utilization metric data to determine the performance
-- difference between your current resource and the recommended option.
--
-- See: newUtilizationMetric smart constructor.
data UtilizationMetric
UtilizationMetric' :: Maybe MetricName -> Maybe MetricStatistic -> Maybe Double -> UtilizationMetric
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Cpu - The percentage of allocated EC2 compute units that
-- are currently in use on the instance. This metric identifies the
-- processing power required to run an application on the
-- instance.Depending on the instance type, tools in your operating
-- system can show a lower percentage than CloudWatch when the instance
-- is not allocated a full processor core.Units: Percent
-- - Memory - The percentage of memory that is currently in
-- use on the instance. This metric identifies the amount of memory
-- required to run an application on the instance.Units: PercentThe
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
-- - EBS_READ_OPS_PER_SECOND - The completed read operations
-- from all EBS volumes attached to the instance in a specified period of
-- time.Unit: Count
-- - EBS_WRITE_OPS_PER_SECOND - The completed write operations
-- to all EBS volumes attached to the instance in a specified period of
-- time.Unit: Count
-- - EBS_READ_BYTES_PER_SECOND - The bytes read from all EBS
-- volumes attached to the instance in a specified period of time.Unit:
-- Bytes
-- - EBS_WRITE_BYTES_PER_SECOND - The bytes written to all EBS
-- volumes attached to the instance in a specified period of time.Unit:
-- Bytes
-- - DISK_READ_OPS_PER_SECOND - The completed read operations
-- from all instance store volumes available to the instance in a
-- specified period of time.If there are no instance store volumes,
-- either the value is 0 or the metric is not reported.
-- - DISK_WRITE_OPS_PER_SECOND - The completed write
-- operations from all instance store volumes available to the instance
-- in a specified period of time.If there are no instance store volumes,
-- either the value is 0 or the metric is not reported.
-- - DISK_READ_BYTES_PER_SECOND - The bytes read from all
-- instance store volumes available to the instance. This metric is used
-- to determine the volume of the data the application reads from the
-- disk of the instance. This can be used to determine the speed of the
-- application.If there are no instance store volumes, either the value
-- is 0 or the metric is not reported.
-- - DISK_WRITE_BYTES_PER_SECOND - The bytes written to all
-- instance store volumes available to the instance. This metric is used
-- to determine the volume of the data the application writes onto the
-- disk of the instance. This can be used to determine the speed of the
-- application.If there are no instance store volumes, either the value
-- is 0 or the metric is not reported.
-- - NETWORK_IN_BYTES_PER_SECOND - The number of bytes
-- received by the instance on all network interfaces. This metric
-- identifies the volume of incoming network traffic to a single
-- instance.
-- - NETWORK_OUT_BYTES_PER_SECOND - The number of bytes sent
-- out by the instance on all network interfaces. This metric identifies
-- the volume of outgoing network traffic from a single instance.
-- - NETWORK_PACKETS_IN_PER_SECOND - The number of packets
-- received by the instance on all network interfaces. This metric
-- identifies the volume of incoming traffic in terms of the number of
-- packets on a single instance.
-- - NETWORK_PACKETS_OUT_PER_SECOND - The number of packets
-- sent out by the instance on all network interfaces. This metric
-- identifies the volume of outgoing traffic in terms of the number of
-- packets on a single instance.
--
[$sel:name:UtilizationMetric'] :: UtilizationMetric -> Maybe MetricName
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
[$sel:statistic:UtilizationMetric'] :: UtilizationMetric -> Maybe MetricStatistic
-- | The value of the utilization metric.
[$sel:value:UtilizationMetric'] :: UtilizationMetric -> Maybe Double
-- | Create a value of UtilizationMetric with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:UtilizationMetric', utilizationMetric_name -
-- The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Cpu - The percentage of allocated EC2 compute units that
-- are currently in use on the instance. This metric identifies the
-- processing power required to run an application on the
-- instance.Depending on the instance type, tools in your operating
-- system can show a lower percentage than CloudWatch when the instance
-- is not allocated a full processor core.Units: Percent
-- - Memory - The percentage of memory that is currently in
-- use on the instance. This metric identifies the amount of memory
-- required to run an application on the instance.Units: PercentThe
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
-- - EBS_READ_OPS_PER_SECOND - The completed read operations
-- from all EBS volumes attached to the instance in a specified period of
-- time.Unit: Count
-- - EBS_WRITE_OPS_PER_SECOND - The completed write operations
-- to all EBS volumes attached to the instance in a specified period of
-- time.Unit: Count
-- - EBS_READ_BYTES_PER_SECOND - The bytes read from all EBS
-- volumes attached to the instance in a specified period of time.Unit:
-- Bytes
-- - EBS_WRITE_BYTES_PER_SECOND - The bytes written to all EBS
-- volumes attached to the instance in a specified period of time.Unit:
-- Bytes
-- - DISK_READ_OPS_PER_SECOND - The completed read operations
-- from all instance store volumes available to the instance in a
-- specified period of time.If there are no instance store volumes,
-- either the value is 0 or the metric is not reported.
-- - DISK_WRITE_OPS_PER_SECOND - The completed write
-- operations from all instance store volumes available to the instance
-- in a specified period of time.If there are no instance store volumes,
-- either the value is 0 or the metric is not reported.
-- - DISK_READ_BYTES_PER_SECOND - The bytes read from all
-- instance store volumes available to the instance. This metric is used
-- to determine the volume of the data the application reads from the
-- disk of the instance. This can be used to determine the speed of the
-- application.If there are no instance store volumes, either the value
-- is 0 or the metric is not reported.
-- - DISK_WRITE_BYTES_PER_SECOND - The bytes written to all
-- instance store volumes available to the instance. This metric is used
-- to determine the volume of the data the application writes onto the
-- disk of the instance. This can be used to determine the speed of the
-- application.If there are no instance store volumes, either the value
-- is 0 or the metric is not reported.
-- - NETWORK_IN_BYTES_PER_SECOND - The number of bytes
-- received by the instance on all network interfaces. This metric
-- identifies the volume of incoming network traffic to a single
-- instance.
-- - NETWORK_OUT_BYTES_PER_SECOND - The number of bytes sent
-- out by the instance on all network interfaces. This metric identifies
-- the volume of outgoing network traffic from a single instance.
-- - NETWORK_PACKETS_IN_PER_SECOND - The number of packets
-- received by the instance on all network interfaces. This metric
-- identifies the volume of incoming traffic in terms of the number of
-- packets on a single instance.
-- - NETWORK_PACKETS_OUT_PER_SECOND - The number of packets
-- sent out by the instance on all network interfaces. This metric
-- identifies the volume of outgoing traffic in terms of the number of
-- packets on a single instance.
--
--
-- $sel:statistic:UtilizationMetric',
-- utilizationMetric_statistic - The statistic of the utilization
-- metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
--
-- $sel:value:UtilizationMetric', utilizationMetric_value -
-- The value of the utilization metric.
newUtilizationMetric :: UtilizationMetric
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Cpu - The percentage of allocated EC2 compute units that
-- are currently in use on the instance. This metric identifies the
-- processing power required to run an application on the
-- instance.Depending on the instance type, tools in your operating
-- system can show a lower percentage than CloudWatch when the instance
-- is not allocated a full processor core.Units: Percent
-- - Memory - The percentage of memory that is currently in
-- use on the instance. This metric identifies the amount of memory
-- required to run an application on the instance.Units: PercentThe
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
-- - EBS_READ_OPS_PER_SECOND - The completed read operations
-- from all EBS volumes attached to the instance in a specified period of
-- time.Unit: Count
-- - EBS_WRITE_OPS_PER_SECOND - The completed write operations
-- to all EBS volumes attached to the instance in a specified period of
-- time.Unit: Count
-- - EBS_READ_BYTES_PER_SECOND - The bytes read from all EBS
-- volumes attached to the instance in a specified period of time.Unit:
-- Bytes
-- - EBS_WRITE_BYTES_PER_SECOND - The bytes written to all EBS
-- volumes attached to the instance in a specified period of time.Unit:
-- Bytes
-- - DISK_READ_OPS_PER_SECOND - The completed read operations
-- from all instance store volumes available to the instance in a
-- specified period of time.If there are no instance store volumes,
-- either the value is 0 or the metric is not reported.
-- - DISK_WRITE_OPS_PER_SECOND - The completed write
-- operations from all instance store volumes available to the instance
-- in a specified period of time.If there are no instance store volumes,
-- either the value is 0 or the metric is not reported.
-- - DISK_READ_BYTES_PER_SECOND - The bytes read from all
-- instance store volumes available to the instance. This metric is used
-- to determine the volume of the data the application reads from the
-- disk of the instance. This can be used to determine the speed of the
-- application.If there are no instance store volumes, either the value
-- is 0 or the metric is not reported.
-- - DISK_WRITE_BYTES_PER_SECOND - The bytes written to all
-- instance store volumes available to the instance. This metric is used
-- to determine the volume of the data the application writes onto the
-- disk of the instance. This can be used to determine the speed of the
-- application.If there are no instance store volumes, either the value
-- is 0 or the metric is not reported.
-- - NETWORK_IN_BYTES_PER_SECOND - The number of bytes
-- received by the instance on all network interfaces. This metric
-- identifies the volume of incoming network traffic to a single
-- instance.
-- - NETWORK_OUT_BYTES_PER_SECOND - The number of bytes sent
-- out by the instance on all network interfaces. This metric identifies
-- the volume of outgoing network traffic from a single instance.
-- - NETWORK_PACKETS_IN_PER_SECOND - The number of packets
-- received by the instance on all network interfaces. This metric
-- identifies the volume of incoming traffic in terms of the number of
-- packets on a single instance.
-- - NETWORK_PACKETS_OUT_PER_SECOND - The number of packets
-- sent out by the instance on all network interfaces. This metric
-- identifies the volume of outgoing traffic in terms of the number of
-- packets on a single instance.
--
utilizationMetric_name :: Lens' UtilizationMetric (Maybe MetricName)
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
utilizationMetric_statistic :: Lens' UtilizationMetric (Maybe MetricStatistic)
-- | The value of the utilization metric.
utilizationMetric_value :: Lens' UtilizationMetric (Maybe Double)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.UtilizationMetric.UtilizationMetric
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.UtilizationMetric.UtilizationMetric
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.UtilizationMetric.UtilizationMetric
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.UtilizationMetric.UtilizationMetric
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.UtilizationMetric.UtilizationMetric
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.UtilizationMetric.UtilizationMetric
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.UtilizationMetric.UtilizationMetric
module Amazonka.ComputeOptimizer.Types.InstanceRecommendationOption
-- | Describes a recommendation option for an Amazon EC2 instance.
--
-- See: newInstanceRecommendationOption smart constructor.
data InstanceRecommendationOption
InstanceRecommendationOption' :: Maybe Text -> Maybe MigrationEffort -> Maybe Double -> Maybe [PlatformDifference] -> Maybe [UtilizationMetric] -> Maybe Int -> Maybe SavingsOpportunity -> InstanceRecommendationOption
-- | The instance type of the instance recommendation.
[$sel:instanceType:InstanceRecommendationOption'] :: InstanceRecommendationOption -> Maybe Text
-- | 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.
[$sel:migrationEffort:InstanceRecommendationOption'] :: InstanceRecommendationOption -> Maybe MigrationEffort
-- | The performance risk of the instance recommendation option.
--
-- 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.
[$sel:performanceRisk:InstanceRecommendationOption'] :: InstanceRecommendationOption -> Maybe Double
-- | Describes the configuration differences between the current instance
-- and the recommended instance type. You should consider the
-- configuration differences before migrating your workloads from the
-- current instance to the recommended instance type. The Change the
-- instance type guide for Linux and Change the instance type
-- guide for Windows provide general guidance for getting started
-- with an instance migration.
--
-- Platform differences include:
--
--
-- - Hypervisor — The hypervisor of the recommended
-- instance type is different than that of the current instance. For
-- example, the recommended instance type uses a Nitro hypervisor and the
-- current instance uses a Xen hypervisor. The differences that you
-- should consider between these hypervisors are covered in the Nitro
-- Hypervisor section of the Amazon EC2 frequently asked questions.
-- For more information, see Instances built on the Nitro System
-- in the Amazon EC2 User Guide for Linux, or Instances built
-- on the Nitro System in the Amazon EC2 User Guide for
-- Windows.
-- - NetworkInterface — The network interface of the
-- recommended instance type is different than that of the current
-- instance. For example, the recommended instance type supports enhanced
-- networking and the current instance might not. To enable enhanced
-- networking for the recommended instance type, you must install the
-- Elastic Network Adapter (ENA) driver or the Intel 82599 Virtual
-- Function driver. For more information, see Networking and storage
-- features and Enhanced networking on Linux in the Amazon
-- EC2 User Guide for Linux, or Networking and storage
-- features and Enhanced networking on Windows in the
-- Amazon EC2 User Guide for Windows.
-- - StorageInterface — The storage interface of the
-- recommended instance type is different than that of the current
-- instance. For example, the recommended instance type uses an NVMe
-- storage interface and the current instance does not. To access NVMe
-- volumes for the recommended instance type, you will need to install or
-- upgrade the NVMe driver. For more information, see Networking and
-- storage features and Amazon EBS and NVMe on Linux instances
-- in the Amazon EC2 User Guide for Linux, or Networking and
-- storage features and Amazon EBS and NVMe on Windows
-- instances in the Amazon EC2 User Guide for Windows.
-- - InstanceStoreAvailability — The recommended
-- instance type does not support instance store volumes and the current
-- instance does. Before migrating, you might need to back up the data on
-- your instance store volumes if you want to preserve them. For more
-- information, see How do I back up an instance store volume on my
-- Amazon EC2 instance to Amazon EBS? in the Amazon Web Services
-- Premium Support Knowledge Base. For more information, see
-- Networking and storage features and Amazon EC2 instance
-- store in the Amazon EC2 User Guide for Linux, or see
-- Networking and storage features and Amazon EC2 instance
-- store in the Amazon EC2 User Guide for Windows.
-- - VirtualizationType — The recommended instance type
-- uses the hardware virtual machine (HVM) virtualization type and the
-- current instance uses the paravirtual (PV) virtualization type. For
-- more information about the differences between these virtualization
-- types, see Linux AMI virtualization types in the Amazon EC2
-- User Guide for Linux, or Windows AMI virtualization types
-- in the Amazon EC2 User Guide for Windows.
-- - Architecture — The CPU architecture between the
-- recommended instance type and the current instance is different. For
-- example, the recommended instance type might use an Arm CPU
-- architecture and the current instance type might use a different one,
-- such as x86. Before migrating, you should consider recompiling the
-- software on your instance for the new architecture. Alternatively, you
-- might switch to an Amazon Machine Image (AMI) that supports the new
-- architecture. For more information about the CPU architecture for each
-- instance type, see Amazon EC2 Instance Types.
--
[$sel:platformDifferences:InstanceRecommendationOption'] :: InstanceRecommendationOption -> Maybe [PlatformDifference]
-- | An array of objects that describe the projected utilization metrics of
-- the instance 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 Enabling Memory
-- Utilization with the CloudWatch Agent.
[$sel:projectedUtilizationMetrics:InstanceRecommendationOption'] :: InstanceRecommendationOption -> Maybe [UtilizationMetric]
-- | The rank of the instance recommendation option.
--
-- The top recommendation option is ranked as 1.
[$sel:rank:InstanceRecommendationOption'] :: InstanceRecommendationOption -> Maybe Int
-- | An object that describes the savings opportunity for the instance
-- recommendation option. Savings opportunity includes the estimated
-- monthly savings amount and percentage.
[$sel:savingsOpportunity:InstanceRecommendationOption'] :: InstanceRecommendationOption -> Maybe SavingsOpportunity
-- | Create a value of InstanceRecommendationOption with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:instanceType:InstanceRecommendationOption',
-- instanceRecommendationOption_instanceType - The instance type
-- of the instance recommendation.
--
-- $sel:migrationEffort:InstanceRecommendationOption',
-- instanceRecommendationOption_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.
--
-- $sel:performanceRisk:InstanceRecommendationOption',
-- instanceRecommendationOption_performanceRisk - The performance
-- risk of the instance recommendation option.
--
-- 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.
--
-- $sel:platformDifferences:InstanceRecommendationOption',
-- instanceRecommendationOption_platformDifferences - Describes
-- the configuration differences between the current instance and the
-- recommended instance type. You should consider the configuration
-- differences before migrating your workloads from the current instance
-- to the recommended instance type. The Change the instance type
-- guide for Linux and Change the instance type guide for
-- Windows provide general guidance for getting started with an
-- instance migration.
--
-- Platform differences include:
--
--
-- - Hypervisor — The hypervisor of the recommended
-- instance type is different than that of the current instance. For
-- example, the recommended instance type uses a Nitro hypervisor and the
-- current instance uses a Xen hypervisor. The differences that you
-- should consider between these hypervisors are covered in the Nitro
-- Hypervisor section of the Amazon EC2 frequently asked questions.
-- For more information, see Instances built on the Nitro System
-- in the Amazon EC2 User Guide for Linux, or Instances built
-- on the Nitro System in the Amazon EC2 User Guide for
-- Windows.
-- - NetworkInterface — The network interface of the
-- recommended instance type is different than that of the current
-- instance. For example, the recommended instance type supports enhanced
-- networking and the current instance might not. To enable enhanced
-- networking for the recommended instance type, you must install the
-- Elastic Network Adapter (ENA) driver or the Intel 82599 Virtual
-- Function driver. For more information, see Networking and storage
-- features and Enhanced networking on Linux in the Amazon
-- EC2 User Guide for Linux, or Networking and storage
-- features and Enhanced networking on Windows in the
-- Amazon EC2 User Guide for Windows.
-- - StorageInterface — The storage interface of the
-- recommended instance type is different than that of the current
-- instance. For example, the recommended instance type uses an NVMe
-- storage interface and the current instance does not. To access NVMe
-- volumes for the recommended instance type, you will need to install or
-- upgrade the NVMe driver. For more information, see Networking and
-- storage features and Amazon EBS and NVMe on Linux instances
-- in the Amazon EC2 User Guide for Linux, or Networking and
-- storage features and Amazon EBS and NVMe on Windows
-- instances in the Amazon EC2 User Guide for Windows.
-- - InstanceStoreAvailability — The recommended
-- instance type does not support instance store volumes and the current
-- instance does. Before migrating, you might need to back up the data on
-- your instance store volumes if you want to preserve them. For more
-- information, see How do I back up an instance store volume on my
-- Amazon EC2 instance to Amazon EBS? in the Amazon Web Services
-- Premium Support Knowledge Base. For more information, see
-- Networking and storage features and Amazon EC2 instance
-- store in the Amazon EC2 User Guide for Linux, or see
-- Networking and storage features and Amazon EC2 instance
-- store in the Amazon EC2 User Guide for Windows.
-- - VirtualizationType — The recommended instance type
-- uses the hardware virtual machine (HVM) virtualization type and the
-- current instance uses the paravirtual (PV) virtualization type. For
-- more information about the differences between these virtualization
-- types, see Linux AMI virtualization types in the Amazon EC2
-- User Guide for Linux, or Windows AMI virtualization types
-- in the Amazon EC2 User Guide for Windows.
-- - Architecture — The CPU architecture between the
-- recommended instance type and the current instance is different. For
-- example, the recommended instance type might use an Arm CPU
-- architecture and the current instance type might use a different one,
-- such as x86. Before migrating, you should consider recompiling the
-- software on your instance for the new architecture. Alternatively, you
-- might switch to an Amazon Machine Image (AMI) that supports the new
-- architecture. For more information about the CPU architecture for each
-- instance type, see Amazon EC2 Instance Types.
--
--
-- $sel:projectedUtilizationMetrics:InstanceRecommendationOption',
-- instanceRecommendationOption_projectedUtilizationMetrics - An
-- array of objects that describe the projected utilization metrics of
-- the instance 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 Enabling Memory
-- Utilization with the CloudWatch Agent.
--
-- $sel:rank:InstanceRecommendationOption',
-- instanceRecommendationOption_rank - The rank of the instance
-- recommendation option.
--
-- The top recommendation option is ranked as 1.
--
-- $sel:savingsOpportunity:InstanceRecommendationOption',
-- instanceRecommendationOption_savingsOpportunity - An object
-- that describes the savings opportunity for the instance recommendation
-- option. Savings opportunity includes the estimated monthly savings
-- amount and percentage.
newInstanceRecommendationOption :: InstanceRecommendationOption
-- | The instance type of the instance recommendation.
instanceRecommendationOption_instanceType :: Lens' InstanceRecommendationOption (Maybe Text)
-- | 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.
instanceRecommendationOption_migrationEffort :: Lens' InstanceRecommendationOption (Maybe MigrationEffort)
-- | The performance risk of the instance recommendation option.
--
-- 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.
instanceRecommendationOption_performanceRisk :: Lens' InstanceRecommendationOption (Maybe Double)
-- | Describes the configuration differences between the current instance
-- and the recommended instance type. You should consider the
-- configuration differences before migrating your workloads from the
-- current instance to the recommended instance type. The Change the
-- instance type guide for Linux and Change the instance type
-- guide for Windows provide general guidance for getting started
-- with an instance migration.
--
-- Platform differences include:
--
--
-- - Hypervisor — The hypervisor of the recommended
-- instance type is different than that of the current instance. For
-- example, the recommended instance type uses a Nitro hypervisor and the
-- current instance uses a Xen hypervisor. The differences that you
-- should consider between these hypervisors are covered in the Nitro
-- Hypervisor section of the Amazon EC2 frequently asked questions.
-- For more information, see Instances built on the Nitro System
-- in the Amazon EC2 User Guide for Linux, or Instances built
-- on the Nitro System in the Amazon EC2 User Guide for
-- Windows.
-- - NetworkInterface — The network interface of the
-- recommended instance type is different than that of the current
-- instance. For example, the recommended instance type supports enhanced
-- networking and the current instance might not. To enable enhanced
-- networking for the recommended instance type, you must install the
-- Elastic Network Adapter (ENA) driver or the Intel 82599 Virtual
-- Function driver. For more information, see Networking and storage
-- features and Enhanced networking on Linux in the Amazon
-- EC2 User Guide for Linux, or Networking and storage
-- features and Enhanced networking on Windows in the
-- Amazon EC2 User Guide for Windows.
-- - StorageInterface — The storage interface of the
-- recommended instance type is different than that of the current
-- instance. For example, the recommended instance type uses an NVMe
-- storage interface and the current instance does not. To access NVMe
-- volumes for the recommended instance type, you will need to install or
-- upgrade the NVMe driver. For more information, see Networking and
-- storage features and Amazon EBS and NVMe on Linux instances
-- in the Amazon EC2 User Guide for Linux, or Networking and
-- storage features and Amazon EBS and NVMe on Windows
-- instances in the Amazon EC2 User Guide for Windows.
-- - InstanceStoreAvailability — The recommended
-- instance type does not support instance store volumes and the current
-- instance does. Before migrating, you might need to back up the data on
-- your instance store volumes if you want to preserve them. For more
-- information, see How do I back up an instance store volume on my
-- Amazon EC2 instance to Amazon EBS? in the Amazon Web Services
-- Premium Support Knowledge Base. For more information, see
-- Networking and storage features and Amazon EC2 instance
-- store in the Amazon EC2 User Guide for Linux, or see
-- Networking and storage features and Amazon EC2 instance
-- store in the Amazon EC2 User Guide for Windows.
-- - VirtualizationType — The recommended instance type
-- uses the hardware virtual machine (HVM) virtualization type and the
-- current instance uses the paravirtual (PV) virtualization type. For
-- more information about the differences between these virtualization
-- types, see Linux AMI virtualization types in the Amazon EC2
-- User Guide for Linux, or Windows AMI virtualization types
-- in the Amazon EC2 User Guide for Windows.
-- - Architecture — The CPU architecture between the
-- recommended instance type and the current instance is different. For
-- example, the recommended instance type might use an Arm CPU
-- architecture and the current instance type might use a different one,
-- such as x86. Before migrating, you should consider recompiling the
-- software on your instance for the new architecture. Alternatively, you
-- might switch to an Amazon Machine Image (AMI) that supports the new
-- architecture. For more information about the CPU architecture for each
-- instance type, see Amazon EC2 Instance Types.
--
instanceRecommendationOption_platformDifferences :: Lens' InstanceRecommendationOption (Maybe [PlatformDifference])
-- | An array of objects that describe the projected utilization metrics of
-- the instance 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 Enabling Memory
-- Utilization with the CloudWatch Agent.
instanceRecommendationOption_projectedUtilizationMetrics :: Lens' InstanceRecommendationOption (Maybe [UtilizationMetric])
-- | The rank of the instance recommendation option.
--
-- The top recommendation option is ranked as 1.
instanceRecommendationOption_rank :: Lens' InstanceRecommendationOption (Maybe Int)
-- | An object that describes the savings opportunity for the instance
-- recommendation option. Savings opportunity includes the estimated
-- monthly savings amount and percentage.
instanceRecommendationOption_savingsOpportunity :: Lens' InstanceRecommendationOption (Maybe SavingsOpportunity)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.InstanceRecommendationOption.InstanceRecommendationOption
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.InstanceRecommendationOption.InstanceRecommendationOption
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.InstanceRecommendationOption.InstanceRecommendationOption
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.InstanceRecommendationOption.InstanceRecommendationOption
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.InstanceRecommendationOption.InstanceRecommendationOption
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.InstanceRecommendationOption.InstanceRecommendationOption
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.InstanceRecommendationOption.InstanceRecommendationOption
module Amazonka.ComputeOptimizer.Types.InstanceRecommendation
-- | Describes an Amazon EC2 instance recommendation.
--
-- See: newInstanceRecommendation smart constructor.
data InstanceRecommendation
InstanceRecommendation' :: Maybe Text -> Maybe Text -> Maybe CurrentPerformanceRisk -> Maybe EffectiveRecommendationPreferences -> Maybe Finding -> Maybe [InstanceRecommendationFindingReasonCode] -> Maybe [InferredWorkloadType] -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Double -> Maybe [InstanceRecommendationOption] -> Maybe [RecommendationSource] -> Maybe [UtilizationMetric] -> InstanceRecommendation
-- | The Amazon Web Services account ID of the instance.
[$sel:accountId:InstanceRecommendation'] :: InstanceRecommendation -> Maybe Text
-- | The instance type of the current instance.
[$sel:currentInstanceType:InstanceRecommendation'] :: InstanceRecommendation -> Maybe Text
-- | The risk of the current instance not meeting the performance needs of
-- its workloads. The higher the risk, the more likely the current
-- instance cannot meet the performance requirements of its workload.
[$sel:currentPerformanceRisk:InstanceRecommendation'] :: InstanceRecommendation -> Maybe CurrentPerformanceRisk
-- | An object that describes the effective recommendation preferences for
-- the instance.
[$sel:effectiveRecommendationPreferences:InstanceRecommendation'] :: InstanceRecommendation -> Maybe EffectiveRecommendationPreferences
-- | The finding classification of the instance.
--
-- Findings for instances include:
--
--
-- - Underprovisioned —An instance is considered
-- under-provisioned when at least one specification of your instance,
-- such as CPU, memory, or network, does not meet the performance
-- requirements of your workload. Under-provisioned instances may lead to
-- poor application performance.
-- - Overprovisioned —An instance is considered
-- over-provisioned when at least one specification of your instance,
-- such as CPU, memory, or network, can be sized down while still meeting
-- the performance requirements of your workload, and no specification is
-- under-provisioned. Over-provisioned instances may lead to unnecessary
-- infrastructure cost.
-- - Optimized —An instance is considered optimized
-- when all specifications of your instance, such as CPU, memory, and
-- network, meet the performance requirements of your workload and is not
-- over provisioned. For optimized resources, Compute Optimizer might
-- recommend a new generation instance type.
--
[$sel:finding:InstanceRecommendation'] :: InstanceRecommendation -> Maybe Finding
-- | The reason for the finding classification of the instance.
--
-- Finding reason codes for instances include:
--
--
-- - CPUOverprovisioned — The instance’s CPU
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- CPUUtilization metric of the current instance during the
-- look-back period.
-- - CPUUnderprovisioned — The instance’s CPU
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better CPU performance. This is identified by analyzing the
-- CPUUtilization metric of the current instance during the
-- look-back period.
-- - MemoryOverprovisioned — The instance’s memory
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- memory utilization metric of the current instance during the look-back
-- period.
-- - MemoryUnderprovisioned — The instance’s memory
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better memory performance. This is identified by analyzing the memory
-- utilization metric of the current instance during the look-back
-- period.Memory utilization is analyzed only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling memory utilization with the Amazon CloudWatch Agent in
-- the Compute Optimizer User Guide. On Linux instances, Compute
-- Optimizer analyses the mem_used_percent metric in the
-- CWAgent namespace, or the legacy MemoryUtilization
-- metric in the System/Linux namespace. On Windows instances,
-- Compute Optimizer analyses the Memory % Committed Bytes In
-- Use metric in the CWAgent namespace.
-- - EBSThroughputOverprovisioned — The instance’s EBS
-- throughput configuration can be sized down while still meeting the
-- performance requirements of your workload. This is identified by
-- analyzing the VolumeReadOps and VolumeWriteOps
-- metrics of EBS volumes attached to the current instance during the
-- look-back period.
-- - EBSThroughputUnderprovisioned — The instance’s EBS
-- throughput configuration doesn't meet the performance requirements of
-- your workload and there is an alternative instance type that provides
-- better EBS throughput performance. This is identified by analyzing the
-- VolumeReadOps and VolumeWriteOps metrics of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - EBSIOPSOverprovisioned — The instance’s EBS IOPS
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- VolumeReadBytes and VolumeWriteBytes metric of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - EBSIOPSUnderprovisioned — The instance’s EBS IOPS
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better EBS IOPS performance. This is identified by analyzing the
-- VolumeReadBytes and VolumeWriteBytes metric of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - NetworkBandwidthOverprovisioned — The instance’s
-- network bandwidth configuration can be sized down while still meeting
-- the performance requirements of your workload. This is identified by
-- analyzing the NetworkIn and NetworkOut metrics of
-- the current instance during the look-back period.
-- - NetworkBandwidthUnderprovisioned — The instance’s
-- network bandwidth configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better network bandwidth performance. This is
-- identified by analyzing the NetworkIn and NetworkOut
-- metrics of the current instance during the look-back period. This
-- finding reason happens when the NetworkIn or
-- NetworkOut performance of an instance is impacted.
-- - NetworkPPSOverprovisioned — The instance’s network
-- PPS (packets per second) configuration can be sized down while still
-- meeting the performance requirements of your workload. This is
-- identified by analyzing the NetworkPacketsIn and
-- NetworkPacketsIn metrics of the current instance during the
-- look-back period.
-- - NetworkPPSUnderprovisioned — The instance’s
-- network PPS (packets per second) configuration doesn't meet the
-- performance requirements of your workload and there is an alternative
-- instance type that provides better network PPS performance. This is
-- identified by analyzing the NetworkPacketsIn and
-- NetworkPacketsIn metrics of the current instance during the
-- look-back period.
-- - DiskIOPSOverprovisioned — The instance’s disk IOPS
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- DiskReadOps and DiskWriteOps metrics of the current
-- instance during the look-back period.
-- - DiskIOPSUnderprovisioned — The instance’s disk
-- IOPS configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better disk IOPS performance. This is identified by analyzing the
-- DiskReadOps and DiskWriteOps metrics of the current
-- instance during the look-back period.
-- - DiskThroughputOverprovisioned — The instance’s
-- disk throughput configuration can be sized down while still meeting
-- the performance requirements of your workload. This is identified by
-- analyzing the DiskReadBytes and DiskWriteBytes
-- metrics of the current instance during the look-back period.
-- - DiskThroughputUnderprovisioned — The instance’s
-- disk throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk throughput performance. This is
-- identified by analyzing the DiskReadBytes and
-- DiskWriteBytes metrics of the current instance during the
-- look-back period.
--
--
-- For more information about instance metrics, see List the available
-- CloudWatch metrics for your instances in the Amazon Elastic
-- Compute Cloud User Guide. For more information about EBS volume
-- metrics, see Amazon CloudWatch metrics for Amazon EBS in the
-- Amazon Elastic Compute Cloud User Guide.
[$sel:findingReasonCodes:InstanceRecommendation'] :: InstanceRecommendation -> Maybe [InstanceRecommendationFindingReasonCode]
-- | The applications that might be running on the instance as inferred by
-- Compute Optimizer.
--
-- Compute Optimizer can infer if one of the following applications might
-- be running on the instance:
--
--
-- - AmazonEmr - Infers that Amazon EMR might be running on
-- the instance.
-- - ApacheCassandra - Infers that Apache Cassandra might be
-- running on the instance.
-- - ApacheHadoop - Infers that Apache Hadoop might be running
-- on the instance.
-- - Memcached - Infers that Memcached might be running on the
-- instance.
-- - NGINX - Infers that NGINX might be running on the
-- instance.
-- - PostgreSql - Infers that PostgreSQL might be running on
-- the instance.
-- - Redis - Infers that Redis might be running on the
-- instance.
--
[$sel:inferredWorkloadTypes:InstanceRecommendation'] :: InstanceRecommendation -> Maybe [InferredWorkloadType]
-- | The Amazon Resource Name (ARN) of the current instance.
[$sel:instanceArn:InstanceRecommendation'] :: InstanceRecommendation -> Maybe Text
-- | The name of the current instance.
[$sel:instanceName:InstanceRecommendation'] :: InstanceRecommendation -> Maybe Text
-- | The timestamp of when the instance recommendation was last generated.
[$sel:lastRefreshTimestamp:InstanceRecommendation'] :: InstanceRecommendation -> Maybe POSIX
-- | The number of days for which utilization metrics were analyzed for the
-- instance.
[$sel:lookBackPeriodInDays:InstanceRecommendation'] :: InstanceRecommendation -> Maybe Double
-- | An array of objects that describe the recommendation options for the
-- instance.
[$sel:recommendationOptions:InstanceRecommendation'] :: InstanceRecommendation -> Maybe [InstanceRecommendationOption]
-- | An array of objects that describe the source resource of the
-- recommendation.
[$sel:recommendationSources:InstanceRecommendation'] :: InstanceRecommendation -> Maybe [RecommendationSource]
-- | An array of objects that describe the utilization metrics of the
-- instance.
[$sel:utilizationMetrics:InstanceRecommendation'] :: InstanceRecommendation -> Maybe [UtilizationMetric]
-- | Create a value of InstanceRecommendation with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:InstanceRecommendation',
-- instanceRecommendation_accountId - The Amazon Web Services
-- account ID of the instance.
--
-- $sel:currentInstanceType:InstanceRecommendation',
-- instanceRecommendation_currentInstanceType - The instance type
-- of the current instance.
--
-- $sel:currentPerformanceRisk:InstanceRecommendation',
-- instanceRecommendation_currentPerformanceRisk - The risk of the
-- current instance not meeting the performance needs of its workloads.
-- The higher the risk, the more likely the current instance cannot meet
-- the performance requirements of its workload.
--
--
-- $sel:effectiveRecommendationPreferences:InstanceRecommendation',
-- instanceRecommendation_effectiveRecommendationPreferences - An
-- object that describes the effective recommendation preferences for the
-- instance.
--
-- $sel:finding:InstanceRecommendation',
-- instanceRecommendation_finding - The finding classification of
-- the instance.
--
-- Findings for instances include:
--
--
-- - Underprovisioned —An instance is considered
-- under-provisioned when at least one specification of your instance,
-- such as CPU, memory, or network, does not meet the performance
-- requirements of your workload. Under-provisioned instances may lead to
-- poor application performance.
-- - Overprovisioned —An instance is considered
-- over-provisioned when at least one specification of your instance,
-- such as CPU, memory, or network, can be sized down while still meeting
-- the performance requirements of your workload, and no specification is
-- under-provisioned. Over-provisioned instances may lead to unnecessary
-- infrastructure cost.
-- - Optimized —An instance is considered optimized
-- when all specifications of your instance, such as CPU, memory, and
-- network, meet the performance requirements of your workload and is not
-- over provisioned. For optimized resources, Compute Optimizer might
-- recommend a new generation instance type.
--
--
-- $sel:findingReasonCodes:InstanceRecommendation',
-- instanceRecommendation_findingReasonCodes - The reason for the
-- finding classification of the instance.
--
-- Finding reason codes for instances include:
--
--
-- - CPUOverprovisioned — The instance’s CPU
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- CPUUtilization metric of the current instance during the
-- look-back period.
-- - CPUUnderprovisioned — The instance’s CPU
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better CPU performance. This is identified by analyzing the
-- CPUUtilization metric of the current instance during the
-- look-back period.
-- - MemoryOverprovisioned — The instance’s memory
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- memory utilization metric of the current instance during the look-back
-- period.
-- - MemoryUnderprovisioned — The instance’s memory
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better memory performance. This is identified by analyzing the memory
-- utilization metric of the current instance during the look-back
-- period.Memory utilization is analyzed only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling memory utilization with the Amazon CloudWatch Agent in
-- the Compute Optimizer User Guide. On Linux instances, Compute
-- Optimizer analyses the mem_used_percent metric in the
-- CWAgent namespace, or the legacy MemoryUtilization
-- metric in the System/Linux namespace. On Windows instances,
-- Compute Optimizer analyses the Memory % Committed Bytes In
-- Use metric in the CWAgent namespace.
-- - EBSThroughputOverprovisioned — The instance’s EBS
-- throughput configuration can be sized down while still meeting the
-- performance requirements of your workload. This is identified by
-- analyzing the VolumeReadOps and VolumeWriteOps
-- metrics of EBS volumes attached to the current instance during the
-- look-back period.
-- - EBSThroughputUnderprovisioned — The instance’s EBS
-- throughput configuration doesn't meet the performance requirements of
-- your workload and there is an alternative instance type that provides
-- better EBS throughput performance. This is identified by analyzing the
-- VolumeReadOps and VolumeWriteOps metrics of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - EBSIOPSOverprovisioned — The instance’s EBS IOPS
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- VolumeReadBytes and VolumeWriteBytes metric of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - EBSIOPSUnderprovisioned — The instance’s EBS IOPS
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better EBS IOPS performance. This is identified by analyzing the
-- VolumeReadBytes and VolumeWriteBytes metric of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - NetworkBandwidthOverprovisioned — The instance’s
-- network bandwidth configuration can be sized down while still meeting
-- the performance requirements of your workload. This is identified by
-- analyzing the NetworkIn and NetworkOut metrics of
-- the current instance during the look-back period.
-- - NetworkBandwidthUnderprovisioned — The instance’s
-- network bandwidth configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better network bandwidth performance. This is
-- identified by analyzing the NetworkIn and NetworkOut
-- metrics of the current instance during the look-back period. This
-- finding reason happens when the NetworkIn or
-- NetworkOut performance of an instance is impacted.
-- - NetworkPPSOverprovisioned — The instance’s network
-- PPS (packets per second) configuration can be sized down while still
-- meeting the performance requirements of your workload. This is
-- identified by analyzing the NetworkPacketsIn and
-- NetworkPacketsIn metrics of the current instance during the
-- look-back period.
-- - NetworkPPSUnderprovisioned — The instance’s
-- network PPS (packets per second) configuration doesn't meet the
-- performance requirements of your workload and there is an alternative
-- instance type that provides better network PPS performance. This is
-- identified by analyzing the NetworkPacketsIn and
-- NetworkPacketsIn metrics of the current instance during the
-- look-back period.
-- - DiskIOPSOverprovisioned — The instance’s disk IOPS
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- DiskReadOps and DiskWriteOps metrics of the current
-- instance during the look-back period.
-- - DiskIOPSUnderprovisioned — The instance’s disk
-- IOPS configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better disk IOPS performance. This is identified by analyzing the
-- DiskReadOps and DiskWriteOps metrics of the current
-- instance during the look-back period.
-- - DiskThroughputOverprovisioned — The instance’s
-- disk throughput configuration can be sized down while still meeting
-- the performance requirements of your workload. This is identified by
-- analyzing the DiskReadBytes and DiskWriteBytes
-- metrics of the current instance during the look-back period.
-- - DiskThroughputUnderprovisioned — The instance’s
-- disk throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk throughput performance. This is
-- identified by analyzing the DiskReadBytes and
-- DiskWriteBytes metrics of the current instance during the
-- look-back period.
--
--
-- For more information about instance metrics, see List the available
-- CloudWatch metrics for your instances in the Amazon Elastic
-- Compute Cloud User Guide. For more information about EBS volume
-- metrics, see Amazon CloudWatch metrics for Amazon EBS in the
-- Amazon Elastic Compute Cloud User Guide.
--
-- InstanceRecommendation,
-- instanceRecommendation_inferredWorkloadTypes - The applications
-- that might be running on the instance as inferred by Compute
-- Optimizer.
--
-- Compute Optimizer can infer if one of the following applications might
-- be running on the instance:
--
--
-- - AmazonEmr - Infers that Amazon EMR might be running on
-- the instance.
-- - ApacheCassandra - Infers that Apache Cassandra might be
-- running on the instance.
-- - ApacheHadoop - Infers that Apache Hadoop might be running
-- on the instance.
-- - Memcached - Infers that Memcached might be running on the
-- instance.
-- - NGINX - Infers that NGINX might be running on the
-- instance.
-- - PostgreSql - Infers that PostgreSQL might be running on
-- the instance.
-- - Redis - Infers that Redis might be running on the
-- instance.
--
--
-- $sel:instanceArn:InstanceRecommendation',
-- instanceRecommendation_instanceArn - The Amazon Resource Name
-- (ARN) of the current instance.
--
-- $sel:instanceName:InstanceRecommendation',
-- instanceRecommendation_instanceName - The name of the current
-- instance.
--
-- $sel:lastRefreshTimestamp:InstanceRecommendation',
-- instanceRecommendation_lastRefreshTimestamp - The timestamp of
-- when the instance recommendation was last generated.
--
-- $sel:lookBackPeriodInDays:InstanceRecommendation',
-- instanceRecommendation_lookBackPeriodInDays - The number of
-- days for which utilization metrics were analyzed for the instance.
--
-- $sel:recommendationOptions:InstanceRecommendation',
-- instanceRecommendation_recommendationOptions - An array of
-- objects that describe the recommendation options for the instance.
--
-- $sel:recommendationSources:InstanceRecommendation',
-- instanceRecommendation_recommendationSources - An array of
-- objects that describe the source resource of the recommendation.
--
-- $sel:utilizationMetrics:InstanceRecommendation',
-- instanceRecommendation_utilizationMetrics - An array of objects
-- that describe the utilization metrics of the instance.
newInstanceRecommendation :: InstanceRecommendation
-- | The Amazon Web Services account ID of the instance.
instanceRecommendation_accountId :: Lens' InstanceRecommendation (Maybe Text)
-- | The instance type of the current instance.
instanceRecommendation_currentInstanceType :: Lens' InstanceRecommendation (Maybe Text)
-- | The risk of the current instance not meeting the performance needs of
-- its workloads. The higher the risk, the more likely the current
-- instance cannot meet the performance requirements of its workload.
instanceRecommendation_currentPerformanceRisk :: Lens' InstanceRecommendation (Maybe CurrentPerformanceRisk)
-- | An object that describes the effective recommendation preferences for
-- the instance.
instanceRecommendation_effectiveRecommendationPreferences :: Lens' InstanceRecommendation (Maybe EffectiveRecommendationPreferences)
-- | The finding classification of the instance.
--
-- Findings for instances include:
--
--
-- - Underprovisioned —An instance is considered
-- under-provisioned when at least one specification of your instance,
-- such as CPU, memory, or network, does not meet the performance
-- requirements of your workload. Under-provisioned instances may lead to
-- poor application performance.
-- - Overprovisioned —An instance is considered
-- over-provisioned when at least one specification of your instance,
-- such as CPU, memory, or network, can be sized down while still meeting
-- the performance requirements of your workload, and no specification is
-- under-provisioned. Over-provisioned instances may lead to unnecessary
-- infrastructure cost.
-- - Optimized —An instance is considered optimized
-- when all specifications of your instance, such as CPU, memory, and
-- network, meet the performance requirements of your workload and is not
-- over provisioned. For optimized resources, Compute Optimizer might
-- recommend a new generation instance type.
--
instanceRecommendation_finding :: Lens' InstanceRecommendation (Maybe Finding)
-- | The reason for the finding classification of the instance.
--
-- Finding reason codes for instances include:
--
--
-- - CPUOverprovisioned — The instance’s CPU
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- CPUUtilization metric of the current instance during the
-- look-back period.
-- - CPUUnderprovisioned — The instance’s CPU
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better CPU performance. This is identified by analyzing the
-- CPUUtilization metric of the current instance during the
-- look-back period.
-- - MemoryOverprovisioned — The instance’s memory
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- memory utilization metric of the current instance during the look-back
-- period.
-- - MemoryUnderprovisioned — The instance’s memory
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better memory performance. This is identified by analyzing the memory
-- utilization metric of the current instance during the look-back
-- period.Memory utilization is analyzed only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling memory utilization with the Amazon CloudWatch Agent in
-- the Compute Optimizer User Guide. On Linux instances, Compute
-- Optimizer analyses the mem_used_percent metric in the
-- CWAgent namespace, or the legacy MemoryUtilization
-- metric in the System/Linux namespace. On Windows instances,
-- Compute Optimizer analyses the Memory % Committed Bytes In
-- Use metric in the CWAgent namespace.
-- - EBSThroughputOverprovisioned — The instance’s EBS
-- throughput configuration can be sized down while still meeting the
-- performance requirements of your workload. This is identified by
-- analyzing the VolumeReadOps and VolumeWriteOps
-- metrics of EBS volumes attached to the current instance during the
-- look-back period.
-- - EBSThroughputUnderprovisioned — The instance’s EBS
-- throughput configuration doesn't meet the performance requirements of
-- your workload and there is an alternative instance type that provides
-- better EBS throughput performance. This is identified by analyzing the
-- VolumeReadOps and VolumeWriteOps metrics of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - EBSIOPSOverprovisioned — The instance’s EBS IOPS
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- VolumeReadBytes and VolumeWriteBytes metric of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - EBSIOPSUnderprovisioned — The instance’s EBS IOPS
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better EBS IOPS performance. This is identified by analyzing the
-- VolumeReadBytes and VolumeWriteBytes metric of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - NetworkBandwidthOverprovisioned — The instance’s
-- network bandwidth configuration can be sized down while still meeting
-- the performance requirements of your workload. This is identified by
-- analyzing the NetworkIn and NetworkOut metrics of
-- the current instance during the look-back period.
-- - NetworkBandwidthUnderprovisioned — The instance’s
-- network bandwidth configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better network bandwidth performance. This is
-- identified by analyzing the NetworkIn and NetworkOut
-- metrics of the current instance during the look-back period. This
-- finding reason happens when the NetworkIn or
-- NetworkOut performance of an instance is impacted.
-- - NetworkPPSOverprovisioned — The instance’s network
-- PPS (packets per second) configuration can be sized down while still
-- meeting the performance requirements of your workload. This is
-- identified by analyzing the NetworkPacketsIn and
-- NetworkPacketsIn metrics of the current instance during the
-- look-back period.
-- - NetworkPPSUnderprovisioned — The instance’s
-- network PPS (packets per second) configuration doesn't meet the
-- performance requirements of your workload and there is an alternative
-- instance type that provides better network PPS performance. This is
-- identified by analyzing the NetworkPacketsIn and
-- NetworkPacketsIn metrics of the current instance during the
-- look-back period.
-- - DiskIOPSOverprovisioned — The instance’s disk IOPS
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- DiskReadOps and DiskWriteOps metrics of the current
-- instance during the look-back period.
-- - DiskIOPSUnderprovisioned — The instance’s disk
-- IOPS configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better disk IOPS performance. This is identified by analyzing the
-- DiskReadOps and DiskWriteOps metrics of the current
-- instance during the look-back period.
-- - DiskThroughputOverprovisioned — The instance’s
-- disk throughput configuration can be sized down while still meeting
-- the performance requirements of your workload. This is identified by
-- analyzing the DiskReadBytes and DiskWriteBytes
-- metrics of the current instance during the look-back period.
-- - DiskThroughputUnderprovisioned — The instance’s
-- disk throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk throughput performance. This is
-- identified by analyzing the DiskReadBytes and
-- DiskWriteBytes metrics of the current instance during the
-- look-back period.
--
--
-- For more information about instance metrics, see List the available
-- CloudWatch metrics for your instances in the Amazon Elastic
-- Compute Cloud User Guide. For more information about EBS volume
-- metrics, see Amazon CloudWatch metrics for Amazon EBS in the
-- Amazon Elastic Compute Cloud User Guide.
instanceRecommendation_findingReasonCodes :: Lens' InstanceRecommendation (Maybe [InstanceRecommendationFindingReasonCode])
-- | The applications that might be running on the instance as inferred by
-- Compute Optimizer.
--
-- Compute Optimizer can infer if one of the following applications might
-- be running on the instance:
--
--
-- - AmazonEmr - Infers that Amazon EMR might be running on
-- the instance.
-- - ApacheCassandra - Infers that Apache Cassandra might be
-- running on the instance.
-- - ApacheHadoop - Infers that Apache Hadoop might be running
-- on the instance.
-- - Memcached - Infers that Memcached might be running on the
-- instance.
-- - NGINX - Infers that NGINX might be running on the
-- instance.
-- - PostgreSql - Infers that PostgreSQL might be running on
-- the instance.
-- - Redis - Infers that Redis might be running on the
-- instance.
--
instanceRecommendation_inferredWorkloadTypes :: Lens' InstanceRecommendation (Maybe [InferredWorkloadType])
-- | The Amazon Resource Name (ARN) of the current instance.
instanceRecommendation_instanceArn :: Lens' InstanceRecommendation (Maybe Text)
-- | The name of the current instance.
instanceRecommendation_instanceName :: Lens' InstanceRecommendation (Maybe Text)
-- | The timestamp of when the instance recommendation was last generated.
instanceRecommendation_lastRefreshTimestamp :: Lens' InstanceRecommendation (Maybe UTCTime)
-- | The number of days for which utilization metrics were analyzed for the
-- instance.
instanceRecommendation_lookBackPeriodInDays :: Lens' InstanceRecommendation (Maybe Double)
-- | An array of objects that describe the recommendation options for the
-- instance.
instanceRecommendation_recommendationOptions :: Lens' InstanceRecommendation (Maybe [InstanceRecommendationOption])
-- | An array of objects that describe the source resource of the
-- recommendation.
instanceRecommendation_recommendationSources :: Lens' InstanceRecommendation (Maybe [RecommendationSource])
-- | An array of objects that describe the utilization metrics of the
-- instance.
instanceRecommendation_utilizationMetrics :: Lens' InstanceRecommendation (Maybe [UtilizationMetric])
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.InstanceRecommendation.InstanceRecommendation
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.InstanceRecommendation.InstanceRecommendation
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.InstanceRecommendation.InstanceRecommendation
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.InstanceRecommendation.InstanceRecommendation
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.InstanceRecommendation.InstanceRecommendation
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.InstanceRecommendation.InstanceRecommendation
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.InstanceRecommendation.InstanceRecommendation
module Amazonka.ComputeOptimizer.Types.AutoScalingGroupRecommendationOption
-- | Describes a recommendation option for an Auto Scaling group.
--
-- See: newAutoScalingGroupRecommendationOption smart
-- constructor.
data AutoScalingGroupRecommendationOption
AutoScalingGroupRecommendationOption' :: Maybe AutoScalingGroupConfiguration -> Maybe MigrationEffort -> Maybe Double -> Maybe [UtilizationMetric] -> Maybe Int -> Maybe SavingsOpportunity -> AutoScalingGroupRecommendationOption
-- | An array of objects that describe an Auto Scaling group configuration.
[$sel:configuration:AutoScalingGroupRecommendationOption'] :: AutoScalingGroupRecommendationOption -> 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.
[$sel:migrationEffort:AutoScalingGroupRecommendationOption'] :: AutoScalingGroupRecommendationOption -> 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.
[$sel:performanceRisk:AutoScalingGroupRecommendationOption'] :: AutoScalingGroupRecommendationOption -> Maybe 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 Enabling Memory
-- Utilization with the CloudWatch Agent.
[$sel:projectedUtilizationMetrics:AutoScalingGroupRecommendationOption'] :: AutoScalingGroupRecommendationOption -> Maybe [UtilizationMetric]
-- | The rank of the Auto Scaling group recommendation option.
--
-- The top recommendation option is ranked as 1.
[$sel:rank:AutoScalingGroupRecommendationOption'] :: AutoScalingGroupRecommendationOption -> Maybe 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.
[$sel:savingsOpportunity:AutoScalingGroupRecommendationOption'] :: AutoScalingGroupRecommendationOption -> Maybe SavingsOpportunity
-- | Create a value of AutoScalingGroupRecommendationOption with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:configuration:AutoScalingGroupRecommendationOption',
-- autoScalingGroupRecommendationOption_configuration - An array
-- of objects that describe an Auto Scaling group configuration.
--
-- $sel:migrationEffort:AutoScalingGroupRecommendationOption',
-- 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.
--
-- $sel:performanceRisk:AutoScalingGroupRecommendationOption',
-- 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.
--
--
-- $sel:projectedUtilizationMetrics:AutoScalingGroupRecommendationOption',
-- 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 Enabling Memory
-- Utilization with the CloudWatch Agent.
--
-- $sel:rank:AutoScalingGroupRecommendationOption',
-- autoScalingGroupRecommendationOption_rank - The rank of the
-- Auto Scaling group recommendation option.
--
-- The top recommendation option is ranked as 1.
--
-- $sel:savingsOpportunity:AutoScalingGroupRecommendationOption',
-- 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
-- | An array of objects that describe an Auto Scaling group configuration.
autoScalingGroupRecommendationOption_configuration :: Lens' AutoScalingGroupRecommendationOption (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_migrationEffort :: Lens' AutoScalingGroupRecommendationOption (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_performanceRisk :: Lens' AutoScalingGroupRecommendationOption (Maybe 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 Enabling Memory
-- Utilization with the CloudWatch Agent.
autoScalingGroupRecommendationOption_projectedUtilizationMetrics :: Lens' AutoScalingGroupRecommendationOption (Maybe [UtilizationMetric])
-- | The rank of the Auto Scaling group recommendation option.
--
-- The top recommendation option is ranked as 1.
autoScalingGroupRecommendationOption_rank :: Lens' AutoScalingGroupRecommendationOption (Maybe 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_savingsOpportunity :: Lens' AutoScalingGroupRecommendationOption (Maybe SavingsOpportunity)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.AutoScalingGroupRecommendationOption.AutoScalingGroupRecommendationOption
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.AutoScalingGroupRecommendationOption.AutoScalingGroupRecommendationOption
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.AutoScalingGroupRecommendationOption.AutoScalingGroupRecommendationOption
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.AutoScalingGroupRecommendationOption.AutoScalingGroupRecommendationOption
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.AutoScalingGroupRecommendationOption.AutoScalingGroupRecommendationOption
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.AutoScalingGroupRecommendationOption.AutoScalingGroupRecommendationOption
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.AutoScalingGroupRecommendationOption.AutoScalingGroupRecommendationOption
module Amazonka.ComputeOptimizer.Types.AutoScalingGroupRecommendation
-- | Describes an Auto Scaling group recommendation.
--
-- See: newAutoScalingGroupRecommendation smart
-- constructor.
data AutoScalingGroupRecommendation
AutoScalingGroupRecommendation' :: Maybe Text -> Maybe Text -> Maybe Text -> Maybe AutoScalingGroupConfiguration -> Maybe CurrentPerformanceRisk -> Maybe EffectiveRecommendationPreferences -> Maybe Finding -> Maybe [InferredWorkloadType] -> Maybe POSIX -> Maybe Double -> Maybe [AutoScalingGroupRecommendationOption] -> Maybe [UtilizationMetric] -> AutoScalingGroupRecommendation
-- | The Amazon Web Services account ID of the Auto Scaling group.
[$sel:accountId:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe Text
-- | The Amazon Resource Name (ARN) of the Auto Scaling group.
[$sel:autoScalingGroupArn:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe Text
-- | The name of the Auto Scaling group.
[$sel:autoScalingGroupName:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe Text
-- | An array of objects that describe the current configuration of the
-- Auto Scaling group.
[$sel:currentConfiguration:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe AutoScalingGroupConfiguration
-- | The risk of the current Auto Scaling group not meeting the performance
-- needs of its workloads. The higher the risk, the more likely the
-- current Auto Scaling group configuration has insufficient capacity and
-- cannot meet workload requirements.
[$sel:currentPerformanceRisk:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe CurrentPerformanceRisk
-- | An object that describes the effective recommendation preferences for
-- the Auto Scaling group.
[$sel:effectiveRecommendationPreferences:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe EffectiveRecommendationPreferences
-- | The finding classification of the Auto Scaling group.
--
-- Findings for Auto Scaling groups include:
--
--
-- - NotOptimized —An Auto Scaling group is considered
-- not optimized when Compute Optimizer identifies a recommendation that
-- can provide better performance for your workload.
-- - Optimized —An Auto Scaling group is considered
-- optimized when Compute Optimizer determines that the group is
-- correctly provisioned to run your workload based on the chosen
-- instance type. For optimized resources, Compute Optimizer might
-- recommend a new generation instance type.
--
[$sel:finding:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe Finding
-- | The applications that might be running on the instances in the Auto
-- Scaling group as inferred by Compute Optimizer.
--
-- Compute Optimizer can infer if one of the following applications might
-- be running on the instances:
--
--
-- - AmazonEmr - Infers that Amazon EMR might be running on
-- the instances.
-- - ApacheCassandra - Infers that Apache Cassandra might be
-- running on the instances.
-- - ApacheHadoop - Infers that Apache Hadoop might be running
-- on the instances.
-- - Memcached - Infers that Memcached might be running on the
-- instances.
-- - NGINX - Infers that NGINX might be running on the
-- instances.
-- - PostgreSql - Infers that PostgreSQL might be running on
-- the instances.
-- - Redis - Infers that Redis might be running on the
-- instances.
--
[$sel:inferredWorkloadTypes:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe [InferredWorkloadType]
-- | The timestamp of when the Auto Scaling group recommendation was last
-- generated.
[$sel:lastRefreshTimestamp:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe POSIX
-- | The number of days for which utilization metrics were analyzed for the
-- Auto Scaling group.
[$sel:lookBackPeriodInDays:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe Double
-- | An array of objects that describe the recommendation options for the
-- Auto Scaling group.
[$sel:recommendationOptions:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe [AutoScalingGroupRecommendationOption]
-- | An array of objects that describe the utilization metrics of the Auto
-- Scaling group.
[$sel:utilizationMetrics:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe [UtilizationMetric]
-- | Create a value of AutoScalingGroupRecommendation with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_accountId - The Amazon Web
-- Services account ID of the Auto Scaling group.
--
-- $sel:autoScalingGroupArn:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_autoScalingGroupArn - The Amazon
-- Resource Name (ARN) of the Auto Scaling group.
--
-- $sel:autoScalingGroupName:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_autoScalingGroupName - The name
-- of the Auto Scaling group.
--
-- $sel:currentConfiguration:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_currentConfiguration - An array
-- of objects that describe the current configuration of the Auto Scaling
-- group.
--
-- $sel:currentPerformanceRisk:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_currentPerformanceRisk - The
-- risk of the current Auto Scaling group not meeting the performance
-- needs of its workloads. The higher the risk, the more likely the
-- current Auto Scaling group configuration has insufficient capacity and
-- cannot meet workload requirements.
--
--
-- $sel:effectiveRecommendationPreferences:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_effectiveRecommendationPreferences
-- - An object that describes the effective recommendation preferences
-- for the Auto Scaling group.
--
-- $sel:finding:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_finding - The finding
-- classification of the Auto Scaling group.
--
-- Findings for Auto Scaling groups include:
--
--
-- - NotOptimized —An Auto Scaling group is considered
-- not optimized when Compute Optimizer identifies a recommendation that
-- can provide better performance for your workload.
-- - Optimized —An Auto Scaling group is considered
-- optimized when Compute Optimizer determines that the group is
-- correctly provisioned to run your workload based on the chosen
-- instance type. For optimized resources, Compute Optimizer might
-- recommend a new generation instance type.
--
--
-- AutoScalingGroupRecommendation,
-- autoScalingGroupRecommendation_inferredWorkloadTypes - The
-- applications that might be running on the instances in the Auto
-- Scaling group as inferred by Compute Optimizer.
--
-- Compute Optimizer can infer if one of the following applications might
-- be running on the instances:
--
--
-- - AmazonEmr - Infers that Amazon EMR might be running on
-- the instances.
-- - ApacheCassandra - Infers that Apache Cassandra might be
-- running on the instances.
-- - ApacheHadoop - Infers that Apache Hadoop might be running
-- on the instances.
-- - Memcached - Infers that Memcached might be running on the
-- instances.
-- - NGINX - Infers that NGINX might be running on the
-- instances.
-- - PostgreSql - Infers that PostgreSQL might be running on
-- the instances.
-- - Redis - Infers that Redis might be running on the
-- instances.
--
--
-- $sel:lastRefreshTimestamp:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_lastRefreshTimestamp - The
-- timestamp of when the Auto Scaling group recommendation was last
-- generated.
--
-- $sel:lookBackPeriodInDays:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_lookBackPeriodInDays - The
-- number of days for which utilization metrics were analyzed for the
-- Auto Scaling group.
--
-- $sel:recommendationOptions:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_recommendationOptions - An array
-- of objects that describe the recommendation options for the Auto
-- Scaling group.
--
-- $sel:utilizationMetrics:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_utilizationMetrics - An array of
-- objects that describe the utilization metrics of the Auto Scaling
-- group.
newAutoScalingGroupRecommendation :: AutoScalingGroupRecommendation
-- | The Amazon Web Services account ID of the Auto Scaling group.
autoScalingGroupRecommendation_accountId :: Lens' AutoScalingGroupRecommendation (Maybe Text)
-- | The Amazon Resource Name (ARN) of the Auto Scaling group.
autoScalingGroupRecommendation_autoScalingGroupArn :: Lens' AutoScalingGroupRecommendation (Maybe Text)
-- | The name of the Auto Scaling group.
autoScalingGroupRecommendation_autoScalingGroupName :: Lens' AutoScalingGroupRecommendation (Maybe Text)
-- | An array of objects that describe the current configuration of the
-- Auto Scaling group.
autoScalingGroupRecommendation_currentConfiguration :: Lens' AutoScalingGroupRecommendation (Maybe AutoScalingGroupConfiguration)
-- | The risk of the current Auto Scaling group not meeting the performance
-- needs of its workloads. The higher the risk, the more likely the
-- current Auto Scaling group configuration has insufficient capacity and
-- cannot meet workload requirements.
autoScalingGroupRecommendation_currentPerformanceRisk :: Lens' AutoScalingGroupRecommendation (Maybe CurrentPerformanceRisk)
-- | An object that describes the effective recommendation preferences for
-- the Auto Scaling group.
autoScalingGroupRecommendation_effectiveRecommendationPreferences :: Lens' AutoScalingGroupRecommendation (Maybe EffectiveRecommendationPreferences)
-- | The finding classification of the Auto Scaling group.
--
-- Findings for Auto Scaling groups include:
--
--
-- - NotOptimized —An Auto Scaling group is considered
-- not optimized when Compute Optimizer identifies a recommendation that
-- can provide better performance for your workload.
-- - Optimized —An Auto Scaling group is considered
-- optimized when Compute Optimizer determines that the group is
-- correctly provisioned to run your workload based on the chosen
-- instance type. For optimized resources, Compute Optimizer might
-- recommend a new generation instance type.
--
autoScalingGroupRecommendation_finding :: Lens' AutoScalingGroupRecommendation (Maybe Finding)
-- | The applications that might be running on the instances in the Auto
-- Scaling group as inferred by Compute Optimizer.
--
-- Compute Optimizer can infer if one of the following applications might
-- be running on the instances:
--
--
-- - AmazonEmr - Infers that Amazon EMR might be running on
-- the instances.
-- - ApacheCassandra - Infers that Apache Cassandra might be
-- running on the instances.
-- - ApacheHadoop - Infers that Apache Hadoop might be running
-- on the instances.
-- - Memcached - Infers that Memcached might be running on the
-- instances.
-- - NGINX - Infers that NGINX might be running on the
-- instances.
-- - PostgreSql - Infers that PostgreSQL might be running on
-- the instances.
-- - Redis - Infers that Redis might be running on the
-- instances.
--
autoScalingGroupRecommendation_inferredWorkloadTypes :: Lens' AutoScalingGroupRecommendation (Maybe [InferredWorkloadType])
-- | The timestamp of when the Auto Scaling group recommendation was last
-- generated.
autoScalingGroupRecommendation_lastRefreshTimestamp :: Lens' AutoScalingGroupRecommendation (Maybe UTCTime)
-- | The number of days for which utilization metrics were analyzed for the
-- Auto Scaling group.
autoScalingGroupRecommendation_lookBackPeriodInDays :: Lens' AutoScalingGroupRecommendation (Maybe Double)
-- | An array of objects that describe the recommendation options for the
-- Auto Scaling group.
autoScalingGroupRecommendation_recommendationOptions :: Lens' AutoScalingGroupRecommendation (Maybe [AutoScalingGroupRecommendationOption])
-- | An array of objects that describe the utilization metrics of the Auto
-- Scaling group.
autoScalingGroupRecommendation_utilizationMetrics :: Lens' AutoScalingGroupRecommendation (Maybe [UtilizationMetric])
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.AutoScalingGroupRecommendation.AutoScalingGroupRecommendation
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.AutoScalingGroupRecommendation.AutoScalingGroupRecommendation
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.AutoScalingGroupRecommendation.AutoScalingGroupRecommendation
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.AutoScalingGroupRecommendation.AutoScalingGroupRecommendation
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.AutoScalingGroupRecommendation.AutoScalingGroupRecommendation
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.AutoScalingGroupRecommendation.AutoScalingGroupRecommendation
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.AutoScalingGroupRecommendation.AutoScalingGroupRecommendation
module Amazonka.ComputeOptimizer.Types.VolumeConfiguration
-- | Describes the configuration of an Amazon Elastic Block Store (Amazon
-- EBS) volume.
--
-- See: newVolumeConfiguration smart constructor.
data VolumeConfiguration
VolumeConfiguration' :: Maybe Int -> Maybe Int -> Maybe Int -> Maybe Int -> Maybe Int -> Maybe Text -> VolumeConfiguration
-- | The baseline IOPS of the volume.
[$sel:volumeBaselineIOPS:VolumeConfiguration'] :: VolumeConfiguration -> Maybe Int
-- | The baseline throughput of the volume.
[$sel:volumeBaselineThroughput:VolumeConfiguration'] :: VolumeConfiguration -> Maybe Int
-- | The burst IOPS of the volume.
[$sel:volumeBurstIOPS:VolumeConfiguration'] :: VolumeConfiguration -> Maybe Int
-- | The burst throughput of the volume.
[$sel:volumeBurstThroughput:VolumeConfiguration'] :: VolumeConfiguration -> Maybe Int
-- | The size of the volume, in GiB.
[$sel:volumeSize:VolumeConfiguration'] :: VolumeConfiguration -> Maybe Int
-- | The volume type.
--
-- This can be gp2 for General Purpose SSD, io1 or
-- io2 for Provisioned IOPS SSD, st1 for Throughput
-- Optimized HDD, sc1 for Cold HDD, or standard for
-- Magnetic volumes.
[$sel:volumeType:VolumeConfiguration'] :: VolumeConfiguration -> Maybe Text
-- | Create a value of VolumeConfiguration with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:volumeBaselineIOPS:VolumeConfiguration',
-- volumeConfiguration_volumeBaselineIOPS - The baseline IOPS of
-- the volume.
--
-- $sel:volumeBaselineThroughput:VolumeConfiguration',
-- volumeConfiguration_volumeBaselineThroughput - The baseline
-- throughput of the volume.
--
-- $sel:volumeBurstIOPS:VolumeConfiguration',
-- volumeConfiguration_volumeBurstIOPS - The burst IOPS of the
-- volume.
--
-- $sel:volumeBurstThroughput:VolumeConfiguration',
-- volumeConfiguration_volumeBurstThroughput - The burst
-- throughput of the volume.
--
-- $sel:volumeSize:VolumeConfiguration',
-- volumeConfiguration_volumeSize - The size of the volume, in
-- GiB.
--
-- $sel:volumeType:VolumeConfiguration',
-- volumeConfiguration_volumeType - The volume type.
--
-- This can be gp2 for General Purpose SSD, io1 or
-- io2 for Provisioned IOPS SSD, st1 for Throughput
-- Optimized HDD, sc1 for Cold HDD, or standard for
-- Magnetic volumes.
newVolumeConfiguration :: VolumeConfiguration
-- | The baseline IOPS of the volume.
volumeConfiguration_volumeBaselineIOPS :: Lens' VolumeConfiguration (Maybe Int)
-- | The baseline throughput of the volume.
volumeConfiguration_volumeBaselineThroughput :: Lens' VolumeConfiguration (Maybe Int)
-- | The burst IOPS of the volume.
volumeConfiguration_volumeBurstIOPS :: Lens' VolumeConfiguration (Maybe Int)
-- | The burst throughput of the volume.
volumeConfiguration_volumeBurstThroughput :: Lens' VolumeConfiguration (Maybe Int)
-- | The size of the volume, in GiB.
volumeConfiguration_volumeSize :: Lens' VolumeConfiguration (Maybe Int)
-- | The volume type.
--
-- This can be gp2 for General Purpose SSD, io1 or
-- io2 for Provisioned IOPS SSD, st1 for Throughput
-- Optimized HDD, sc1 for Cold HDD, or standard for
-- Magnetic volumes.
volumeConfiguration_volumeType :: Lens' VolumeConfiguration (Maybe Text)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.VolumeConfiguration.VolumeConfiguration
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.VolumeConfiguration.VolumeConfiguration
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.VolumeConfiguration.VolumeConfiguration
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.VolumeConfiguration.VolumeConfiguration
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.VolumeConfiguration.VolumeConfiguration
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.VolumeConfiguration.VolumeConfiguration
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.VolumeConfiguration.VolumeConfiguration
module Amazonka.ComputeOptimizer.Types.VolumeRecommendationOption
-- | Describes a recommendation option for an Amazon Elastic Block Store
-- (Amazon EBS) instance.
--
-- See: newVolumeRecommendationOption smart constructor.
data VolumeRecommendationOption
VolumeRecommendationOption' :: Maybe VolumeConfiguration -> Maybe Double -> Maybe Int -> Maybe SavingsOpportunity -> VolumeRecommendationOption
-- | An array of objects that describe a volume configuration.
[$sel:configuration:VolumeRecommendationOption'] :: VolumeRecommendationOption -> Maybe VolumeConfiguration
-- | The performance risk of the volume recommendation option.
--
-- Performance risk is the likelihood of the recommended volume type
-- meeting the performance requirement of your workload.
--
-- 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.
[$sel:performanceRisk:VolumeRecommendationOption'] :: VolumeRecommendationOption -> Maybe Double
-- | The rank of the volume recommendation option.
--
-- The top recommendation option is ranked as 1.
[$sel:rank:VolumeRecommendationOption'] :: VolumeRecommendationOption -> Maybe Int
-- | An object that describes the savings opportunity for the EBS volume
-- recommendation option. Savings opportunity includes the estimated
-- monthly savings amount and percentage.
[$sel:savingsOpportunity:VolumeRecommendationOption'] :: VolumeRecommendationOption -> Maybe SavingsOpportunity
-- | Create a value of VolumeRecommendationOption with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:configuration:VolumeRecommendationOption',
-- volumeRecommendationOption_configuration - An array of objects
-- that describe a volume configuration.
--
-- $sel:performanceRisk:VolumeRecommendationOption',
-- volumeRecommendationOption_performanceRisk - The performance
-- risk of the volume recommendation option.
--
-- Performance risk is the likelihood of the recommended volume type
-- meeting the performance requirement of your workload.
--
-- 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.
--
-- $sel:rank:VolumeRecommendationOption',
-- volumeRecommendationOption_rank - The rank of the volume
-- recommendation option.
--
-- The top recommendation option is ranked as 1.
--
-- $sel:savingsOpportunity:VolumeRecommendationOption',
-- volumeRecommendationOption_savingsOpportunity - An object that
-- describes the savings opportunity for the EBS volume recommendation
-- option. Savings opportunity includes the estimated monthly savings
-- amount and percentage.
newVolumeRecommendationOption :: VolumeRecommendationOption
-- | An array of objects that describe a volume configuration.
volumeRecommendationOption_configuration :: Lens' VolumeRecommendationOption (Maybe VolumeConfiguration)
-- | The performance risk of the volume recommendation option.
--
-- Performance risk is the likelihood of the recommended volume type
-- meeting the performance requirement of your workload.
--
-- 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.
volumeRecommendationOption_performanceRisk :: Lens' VolumeRecommendationOption (Maybe Double)
-- | The rank of the volume recommendation option.
--
-- The top recommendation option is ranked as 1.
volumeRecommendationOption_rank :: Lens' VolumeRecommendationOption (Maybe Int)
-- | An object that describes the savings opportunity for the EBS volume
-- recommendation option. Savings opportunity includes the estimated
-- monthly savings amount and percentage.
volumeRecommendationOption_savingsOpportunity :: Lens' VolumeRecommendationOption (Maybe SavingsOpportunity)
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.VolumeRecommendationOption.VolumeRecommendationOption
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.VolumeRecommendationOption.VolumeRecommendationOption
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.VolumeRecommendationOption.VolumeRecommendationOption
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.VolumeRecommendationOption.VolumeRecommendationOption
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.VolumeRecommendationOption.VolumeRecommendationOption
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.VolumeRecommendationOption.VolumeRecommendationOption
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.VolumeRecommendationOption.VolumeRecommendationOption
module Amazonka.ComputeOptimizer.Types.VolumeRecommendation
-- | Describes an Amazon Elastic Block Store (Amazon EBS) volume
-- recommendation.
--
-- See: newVolumeRecommendation smart constructor.
data VolumeRecommendation
VolumeRecommendation' :: Maybe Text -> Maybe VolumeConfiguration -> Maybe CurrentPerformanceRisk -> Maybe EBSFinding -> Maybe POSIX -> Maybe Double -> Maybe [EBSUtilizationMetric] -> Maybe Text -> Maybe [VolumeRecommendationOption] -> VolumeRecommendation
-- | The Amazon Web Services account ID of the volume.
[$sel:accountId:VolumeRecommendation'] :: VolumeRecommendation -> Maybe Text
-- | An array of objects that describe the current configuration of the
-- volume.
[$sel:currentConfiguration:VolumeRecommendation'] :: VolumeRecommendation -> Maybe VolumeConfiguration
-- | The risk of the current EBS volume not meeting the performance needs
-- of its workloads. The higher the risk, the more likely the current EBS
-- volume doesn't have sufficient capacity.
[$sel:currentPerformanceRisk:VolumeRecommendation'] :: VolumeRecommendation -> Maybe CurrentPerformanceRisk
-- | The finding classification of the volume.
--
-- Findings for volumes include:
--
--
-- - NotOptimized —A volume is considered not optimized
-- when Compute Optimizer identifies a recommendation that can provide
-- better performance for your workload.
-- - Optimized —An volume is considered optimized when
-- Compute Optimizer determines that the volume is correctly provisioned
-- to run your workload based on the chosen volume type. For optimized
-- resources, Compute Optimizer might recommend a new generation volume
-- type.
--
[$sel:finding:VolumeRecommendation'] :: VolumeRecommendation -> Maybe EBSFinding
-- | The timestamp of when the volume recommendation was last generated.
[$sel:lastRefreshTimestamp:VolumeRecommendation'] :: VolumeRecommendation -> Maybe POSIX
-- | The number of days for which utilization metrics were analyzed for the
-- volume.
[$sel:lookBackPeriodInDays:VolumeRecommendation'] :: VolumeRecommendation -> Maybe Double
-- | An array of objects that describe the utilization metrics of the
-- volume.
[$sel:utilizationMetrics:VolumeRecommendation'] :: VolumeRecommendation -> Maybe [EBSUtilizationMetric]
-- | The Amazon Resource Name (ARN) of the current volume.
[$sel:volumeArn:VolumeRecommendation'] :: VolumeRecommendation -> Maybe Text
-- | An array of objects that describe the recommendation options for the
-- volume.
[$sel:volumeRecommendationOptions:VolumeRecommendation'] :: VolumeRecommendation -> Maybe [VolumeRecommendationOption]
-- | Create a value of VolumeRecommendation with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:VolumeRecommendation',
-- volumeRecommendation_accountId - The Amazon Web Services
-- account ID of the volume.
--
-- $sel:currentConfiguration:VolumeRecommendation',
-- volumeRecommendation_currentConfiguration - An array of objects
-- that describe the current configuration of the volume.
--
-- $sel:currentPerformanceRisk:VolumeRecommendation',
-- volumeRecommendation_currentPerformanceRisk - The risk of the
-- current EBS volume not meeting the performance needs of its workloads.
-- The higher the risk, the more likely the current EBS volume doesn't
-- have sufficient capacity.
--
-- $sel:finding:VolumeRecommendation',
-- volumeRecommendation_finding - The finding classification of
-- the volume.
--
-- Findings for volumes include:
--
--
-- - NotOptimized —A volume is considered not optimized
-- when Compute Optimizer identifies a recommendation that can provide
-- better performance for your workload.
-- - Optimized —An volume is considered optimized when
-- Compute Optimizer determines that the volume is correctly provisioned
-- to run your workload based on the chosen volume type. For optimized
-- resources, Compute Optimizer might recommend a new generation volume
-- type.
--
--
-- $sel:lastRefreshTimestamp:VolumeRecommendation',
-- volumeRecommendation_lastRefreshTimestamp - The timestamp of
-- when the volume recommendation was last generated.
--
-- $sel:lookBackPeriodInDays:VolumeRecommendation',
-- volumeRecommendation_lookBackPeriodInDays - The number of days
-- for which utilization metrics were analyzed for the volume.
--
-- $sel:utilizationMetrics:VolumeRecommendation',
-- volumeRecommendation_utilizationMetrics - An array of objects
-- that describe the utilization metrics of the volume.
--
-- $sel:volumeArn:VolumeRecommendation',
-- volumeRecommendation_volumeArn - The Amazon Resource Name (ARN)
-- of the current volume.
--
-- $sel:volumeRecommendationOptions:VolumeRecommendation',
-- volumeRecommendation_volumeRecommendationOptions - An array of
-- objects that describe the recommendation options for the volume.
newVolumeRecommendation :: VolumeRecommendation
-- | The Amazon Web Services account ID of the volume.
volumeRecommendation_accountId :: Lens' VolumeRecommendation (Maybe Text)
-- | An array of objects that describe the current configuration of the
-- volume.
volumeRecommendation_currentConfiguration :: Lens' VolumeRecommendation (Maybe VolumeConfiguration)
-- | The risk of the current EBS volume not meeting the performance needs
-- of its workloads. The higher the risk, the more likely the current EBS
-- volume doesn't have sufficient capacity.
volumeRecommendation_currentPerformanceRisk :: Lens' VolumeRecommendation (Maybe CurrentPerformanceRisk)
-- | The finding classification of the volume.
--
-- Findings for volumes include:
--
--
-- - NotOptimized —A volume is considered not optimized
-- when Compute Optimizer identifies a recommendation that can provide
-- better performance for your workload.
-- - Optimized —An volume is considered optimized when
-- Compute Optimizer determines that the volume is correctly provisioned
-- to run your workload based on the chosen volume type. For optimized
-- resources, Compute Optimizer might recommend a new generation volume
-- type.
--
volumeRecommendation_finding :: Lens' VolumeRecommendation (Maybe EBSFinding)
-- | The timestamp of when the volume recommendation was last generated.
volumeRecommendation_lastRefreshTimestamp :: Lens' VolumeRecommendation (Maybe UTCTime)
-- | The number of days for which utilization metrics were analyzed for the
-- volume.
volumeRecommendation_lookBackPeriodInDays :: Lens' VolumeRecommendation (Maybe Double)
-- | An array of objects that describe the utilization metrics of the
-- volume.
volumeRecommendation_utilizationMetrics :: Lens' VolumeRecommendation (Maybe [EBSUtilizationMetric])
-- | The Amazon Resource Name (ARN) of the current volume.
volumeRecommendation_volumeArn :: Lens' VolumeRecommendation (Maybe Text)
-- | An array of objects that describe the recommendation options for the
-- volume.
volumeRecommendation_volumeRecommendationOptions :: Lens' VolumeRecommendation (Maybe [VolumeRecommendationOption])
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.Types.VolumeRecommendation.VolumeRecommendation
instance GHC.Show.Show Amazonka.ComputeOptimizer.Types.VolumeRecommendation.VolumeRecommendation
instance GHC.Read.Read Amazonka.ComputeOptimizer.Types.VolumeRecommendation.VolumeRecommendation
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.Types.VolumeRecommendation.VolumeRecommendation
instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.ComputeOptimizer.Types.VolumeRecommendation.VolumeRecommendation
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.Types.VolumeRecommendation.VolumeRecommendation
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.Types.VolumeRecommendation.VolumeRecommendation
module Amazonka.ComputeOptimizer.Types
-- | API version 2019-11-01 of the Amazon Compute Optimizer SDK
-- configuration.
defaultService :: Service
-- | You do not have sufficient access to perform this action.
_AccessDeniedException :: AsError a => Fold a ServiceError
-- | An internal error has occurred. Try your call again.
_InternalServerException :: AsError a => Fold a ServiceError
-- | The value supplied for the input parameter is out of range or not
-- valid.
_InvalidParameterValueException :: AsError a => Fold a ServiceError
-- | The request exceeds a limit of the service.
_LimitExceededException :: AsError a => Fold a ServiceError
-- | The request must contain either a valid (registered) Amazon Web
-- Services access key ID or X.509 certificate.
_MissingAuthenticationToken :: AsError a => Fold a ServiceError
-- | The account is not opted in to Compute Optimizer.
_OptInRequiredException :: AsError a => Fold a ServiceError
-- | A resource that is required for the action doesn't exist.
_ResourceNotFoundException :: AsError a => Fold a ServiceError
-- | The request has failed due to a temporary failure of the server.
_ServiceUnavailableException :: AsError a => Fold a ServiceError
-- | The request was denied due to request throttling.
_ThrottlingException :: AsError a => Fold a ServiceError
newtype AutoScalingConfiguration
AutoScalingConfiguration' :: Text -> AutoScalingConfiguration
[fromAutoScalingConfiguration] :: AutoScalingConfiguration -> Text
pattern AutoScalingConfiguration_TargetTrackingScalingCpu :: AutoScalingConfiguration
pattern AutoScalingConfiguration_TargetTrackingScalingMemory :: AutoScalingConfiguration
newtype CpuVendorArchitecture
CpuVendorArchitecture' :: Text -> CpuVendorArchitecture
[fromCpuVendorArchitecture] :: CpuVendorArchitecture -> Text
pattern CpuVendorArchitecture_AWS_ARM64 :: CpuVendorArchitecture
pattern CpuVendorArchitecture_CURRENT :: CpuVendorArchitecture
newtype Currency
Currency' :: Text -> Currency
[fromCurrency] :: Currency -> Text
pattern Currency_CNY :: Currency
pattern Currency_USD :: Currency
newtype CurrentPerformanceRisk
CurrentPerformanceRisk' :: Text -> CurrentPerformanceRisk
[fromCurrentPerformanceRisk] :: CurrentPerformanceRisk -> Text
pattern CurrentPerformanceRisk_High :: CurrentPerformanceRisk
pattern CurrentPerformanceRisk_Low :: CurrentPerformanceRisk
pattern CurrentPerformanceRisk_Medium :: CurrentPerformanceRisk
pattern CurrentPerformanceRisk_VeryLow :: CurrentPerformanceRisk
newtype EBSFilterName
EBSFilterName' :: Text -> EBSFilterName
[fromEBSFilterName] :: EBSFilterName -> Text
pattern EBSFilterName_Finding :: EBSFilterName
newtype EBSFinding
EBSFinding' :: Text -> EBSFinding
[fromEBSFinding] :: EBSFinding -> Text
pattern EBSFinding_NotOptimized :: EBSFinding
pattern EBSFinding_Optimized :: EBSFinding
newtype EBSMetricName
EBSMetricName' :: Text -> EBSMetricName
[fromEBSMetricName] :: EBSMetricName -> Text
pattern EBSMetricName_VolumeReadBytesPerSecond :: EBSMetricName
pattern EBSMetricName_VolumeReadOpsPerSecond :: EBSMetricName
pattern EBSMetricName_VolumeWriteBytesPerSecond :: EBSMetricName
pattern EBSMetricName_VolumeWriteOpsPerSecond :: EBSMetricName
newtype ECSServiceLaunchType
ECSServiceLaunchType' :: Text -> ECSServiceLaunchType
[fromECSServiceLaunchType] :: ECSServiceLaunchType -> Text
pattern ECSServiceLaunchType_EC2 :: ECSServiceLaunchType
pattern ECSServiceLaunchType_Fargate :: ECSServiceLaunchType
newtype ECSServiceMetricName
ECSServiceMetricName' :: Text -> ECSServiceMetricName
[fromECSServiceMetricName] :: ECSServiceMetricName -> Text
pattern ECSServiceMetricName_Cpu :: ECSServiceMetricName
pattern ECSServiceMetricName_Memory :: ECSServiceMetricName
newtype ECSServiceMetricStatistic
ECSServiceMetricStatistic' :: Text -> ECSServiceMetricStatistic
[fromECSServiceMetricStatistic] :: ECSServiceMetricStatistic -> Text
pattern ECSServiceMetricStatistic_Average :: ECSServiceMetricStatistic
pattern ECSServiceMetricStatistic_Maximum :: ECSServiceMetricStatistic
newtype ECSServiceRecommendationFilterName
ECSServiceRecommendationFilterName' :: Text -> ECSServiceRecommendationFilterName
[fromECSServiceRecommendationFilterName] :: ECSServiceRecommendationFilterName -> Text
pattern ECSServiceRecommendationFilterName_Finding :: ECSServiceRecommendationFilterName
pattern ECSServiceRecommendationFilterName_FindingReasonCode :: ECSServiceRecommendationFilterName
newtype ECSServiceRecommendationFinding
ECSServiceRecommendationFinding' :: Text -> ECSServiceRecommendationFinding
[fromECSServiceRecommendationFinding] :: ECSServiceRecommendationFinding -> Text
pattern ECSServiceRecommendationFinding_Optimized :: ECSServiceRecommendationFinding
pattern ECSServiceRecommendationFinding_Overprovisioned :: ECSServiceRecommendationFinding
pattern ECSServiceRecommendationFinding_Underprovisioned :: ECSServiceRecommendationFinding
newtype ECSServiceRecommendationFindingReasonCode
ECSServiceRecommendationFindingReasonCode' :: Text -> ECSServiceRecommendationFindingReasonCode
[fromECSServiceRecommendationFindingReasonCode] :: ECSServiceRecommendationFindingReasonCode -> Text
pattern ECSServiceRecommendationFindingReasonCode_CPUOverprovisioned :: ECSServiceRecommendationFindingReasonCode
pattern ECSServiceRecommendationFindingReasonCode_CPUUnderprovisioned :: ECSServiceRecommendationFindingReasonCode
pattern ECSServiceRecommendationFindingReasonCode_MemoryOverprovisioned :: ECSServiceRecommendationFindingReasonCode
pattern ECSServiceRecommendationFindingReasonCode_MemoryUnderprovisioned :: ECSServiceRecommendationFindingReasonCode
newtype EnhancedInfrastructureMetrics
EnhancedInfrastructureMetrics' :: Text -> EnhancedInfrastructureMetrics
[fromEnhancedInfrastructureMetrics] :: EnhancedInfrastructureMetrics -> Text
pattern EnhancedInfrastructureMetrics_Active :: EnhancedInfrastructureMetrics
pattern EnhancedInfrastructureMetrics_Inactive :: EnhancedInfrastructureMetrics
newtype EnrollmentFilterName
EnrollmentFilterName' :: Text -> EnrollmentFilterName
[fromEnrollmentFilterName] :: EnrollmentFilterName -> Text
pattern EnrollmentFilterName_Status :: EnrollmentFilterName
newtype ExportableAutoScalingGroupField
ExportableAutoScalingGroupField' :: Text -> ExportableAutoScalingGroupField
[fromExportableAutoScalingGroupField] :: ExportableAutoScalingGroupField -> Text
pattern ExportableAutoScalingGroupField_AccountId :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_AutoScalingGroupArn :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_AutoScalingGroupName :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentConfigurationDesiredCapacity :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentConfigurationInstanceType :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentConfigurationMaxSize :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentConfigurationMinSize :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentMemory :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentNetwork :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentOnDemandPrice :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentPerformanceRisk :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentStandardOneYearNoUpfrontReservedPrice :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentStandardThreeYearNoUpfrontReservedPrice :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentStorage :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentVCpus :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_EffectiveRecommendationPreferencesCpuVendorArchitectures :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_EffectiveRecommendationPreferencesInferredWorkloadTypes :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_Finding :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_InferredWorkloadTypes :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_LastRefreshTimestamp :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_LookbackPeriodInDays :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsConfigurationDesiredCapacity :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsConfigurationInstanceType :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsConfigurationMaxSize :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsConfigurationMinSize :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsEstimatedMonthlySavingsCurrency :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsEstimatedMonthlySavingsValue :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsMemory :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsMigrationEffort :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsNetwork :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsOnDemandPrice :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsPerformanceRisk :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsProjectedUtilizationMetricsCpuMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsSavingsOpportunityPercentage :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsStandardOneYearNoUpfrontReservedPrice :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsStorage :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsVcpus :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsCpuMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsDiskReadBytesPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsDiskReadOpsPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsDiskWriteBytesPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsDiskWriteOpsPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsEbsReadBytesPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsEbsReadOpsPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsEbsWriteBytesPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsEbsWriteOpsPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsMemoryMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsNetworkInBytesPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsNetworkOutBytesPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsNetworkPacketsInPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsNetworkPacketsOutPerSecondMaximum :: ExportableAutoScalingGroupField
newtype ExportableECSServiceField
ExportableECSServiceField' :: Text -> ExportableECSServiceField
[fromExportableECSServiceField] :: ExportableECSServiceField -> Text
pattern ExportableECSServiceField_AccountId :: ExportableECSServiceField
pattern ExportableECSServiceField_CurrentPerformanceRisk :: ExportableECSServiceField
pattern ExportableECSServiceField_CurrentServiceConfigurationAutoScalingConfiguration :: ExportableECSServiceField
pattern ExportableECSServiceField_CurrentServiceConfigurationCpu :: ExportableECSServiceField
pattern ExportableECSServiceField_CurrentServiceConfigurationMemory :: ExportableECSServiceField
pattern ExportableECSServiceField_CurrentServiceConfigurationTaskDefinitionArn :: ExportableECSServiceField
pattern ExportableECSServiceField_CurrentServiceContainerConfigurations :: ExportableECSServiceField
pattern ExportableECSServiceField_Finding :: ExportableECSServiceField
pattern ExportableECSServiceField_FindingReasonCodes :: ExportableECSServiceField
pattern ExportableECSServiceField_LastRefreshTimestamp :: ExportableECSServiceField
pattern ExportableECSServiceField_LaunchType :: ExportableECSServiceField
pattern ExportableECSServiceField_LookbackPeriodInDays :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsContainerRecommendations :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsCpu :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsEstimatedMonthlySavingsCurrency :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsEstimatedMonthlySavingsValue :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsMemory :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsProjectedUtilizationMetricsCpuMaximum :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsSavingsOpportunityPercentage :: ExportableECSServiceField
pattern ExportableECSServiceField_ServiceArn :: ExportableECSServiceField
pattern ExportableECSServiceField_UtilizationMetricsCpuMaximum :: ExportableECSServiceField
pattern ExportableECSServiceField_UtilizationMetricsMemoryMaximum :: ExportableECSServiceField
newtype ExportableInstanceField
ExportableInstanceField' :: Text -> ExportableInstanceField
[fromExportableInstanceField] :: ExportableInstanceField -> Text
pattern ExportableInstanceField_AccountId :: ExportableInstanceField
pattern ExportableInstanceField_CurrentInstanceType :: ExportableInstanceField
pattern ExportableInstanceField_CurrentMemory :: ExportableInstanceField
pattern ExportableInstanceField_CurrentNetwork :: ExportableInstanceField
pattern ExportableInstanceField_CurrentOnDemandPrice :: ExportableInstanceField
pattern ExportableInstanceField_CurrentPerformanceRisk :: ExportableInstanceField
pattern ExportableInstanceField_CurrentStandardOneYearNoUpfrontReservedPrice :: ExportableInstanceField
pattern ExportableInstanceField_CurrentStandardThreeYearNoUpfrontReservedPrice :: ExportableInstanceField
pattern ExportableInstanceField_CurrentStorage :: ExportableInstanceField
pattern ExportableInstanceField_CurrentVCpus :: ExportableInstanceField
pattern ExportableInstanceField_EffectiveRecommendationPreferencesCpuVendorArchitectures :: ExportableInstanceField
pattern ExportableInstanceField_EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics :: ExportableInstanceField
pattern ExportableInstanceField_EffectiveRecommendationPreferencesExternalMetricsSource :: ExportableInstanceField
pattern ExportableInstanceField_EffectiveRecommendationPreferencesInferredWorkloadTypes :: ExportableInstanceField
pattern ExportableInstanceField_Finding :: ExportableInstanceField
pattern ExportableInstanceField_FindingReasonCodes :: ExportableInstanceField
pattern ExportableInstanceField_InferredWorkloadTypes :: ExportableInstanceField
pattern ExportableInstanceField_InstanceArn :: ExportableInstanceField
pattern ExportableInstanceField_InstanceName :: ExportableInstanceField
pattern ExportableInstanceField_LastRefreshTimestamp :: ExportableInstanceField
pattern ExportableInstanceField_LookbackPeriodInDays :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsEstimatedMonthlySavingsCurrency :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsEstimatedMonthlySavingsValue :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsInstanceType :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsMemory :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsMigrationEffort :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsNetwork :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsOnDemandPrice :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsPerformanceRisk :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsPlatformDifferences :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsProjectedUtilizationMetricsCpuMaximum :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsSavingsOpportunityPercentage :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsStandardOneYearNoUpfrontReservedPrice :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsStorage :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsVcpus :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationsSourcesRecommendationSourceArn :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationsSourcesRecommendationSourceType :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsCpuMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsDiskReadBytesPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsDiskReadOpsPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsDiskWriteBytesPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsDiskWriteOpsPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsEbsReadBytesPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsEbsReadOpsPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsEbsWriteBytesPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsEbsWriteOpsPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsMemoryMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsNetworkInBytesPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsNetworkOutBytesPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsNetworkPacketsInPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsNetworkPacketsOutPerSecondMaximum :: ExportableInstanceField
newtype ExportableLambdaFunctionField
ExportableLambdaFunctionField' :: Text -> ExportableLambdaFunctionField
[fromExportableLambdaFunctionField] :: ExportableLambdaFunctionField -> Text
pattern ExportableLambdaFunctionField_AccountId :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_CurrentConfigurationMemorySize :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_CurrentConfigurationTimeout :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_CurrentCostAverage :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_CurrentCostTotal :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_CurrentPerformanceRisk :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_Finding :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_FindingReasonCodes :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_FunctionArn :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_FunctionVersion :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_LastRefreshTimestamp :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_LookbackPeriodInDays :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_NumberOfInvocations :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsConfigurationMemorySize :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsCostHigh :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsCostLow :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsEstimatedMonthlySavingsCurrency :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsEstimatedMonthlySavingsValue :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsProjectedUtilizationMetricsDurationExpected :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsProjectedUtilizationMetricsDurationLowerBound :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsProjectedUtilizationMetricsDurationUpperBound :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsSavingsOpportunityPercentage :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_UtilizationMetricsDurationAverage :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_UtilizationMetricsDurationMaximum :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_UtilizationMetricsMemoryAverage :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_UtilizationMetricsMemoryMaximum :: ExportableLambdaFunctionField
newtype ExportableVolumeField
ExportableVolumeField' :: Text -> ExportableVolumeField
[fromExportableVolumeField] :: ExportableVolumeField -> Text
pattern ExportableVolumeField_AccountId :: ExportableVolumeField
pattern ExportableVolumeField_CurrentConfigurationVolumeBaselineIOPS :: ExportableVolumeField
pattern ExportableVolumeField_CurrentConfigurationVolumeBaselineThroughput :: ExportableVolumeField
pattern ExportableVolumeField_CurrentConfigurationVolumeBurstIOPS :: ExportableVolumeField
pattern ExportableVolumeField_CurrentConfigurationVolumeBurstThroughput :: ExportableVolumeField
pattern ExportableVolumeField_CurrentConfigurationVolumeSize :: ExportableVolumeField
pattern ExportableVolumeField_CurrentConfigurationVolumeType :: ExportableVolumeField
pattern ExportableVolumeField_CurrentMonthlyPrice :: ExportableVolumeField
pattern ExportableVolumeField_CurrentPerformanceRisk :: ExportableVolumeField
pattern ExportableVolumeField_Finding :: ExportableVolumeField
pattern ExportableVolumeField_LastRefreshTimestamp :: ExportableVolumeField
pattern ExportableVolumeField_LookbackPeriodInDays :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsConfigurationVolumeBaselineIOPS :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsConfigurationVolumeBaselineThroughput :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsConfigurationVolumeBurstIOPS :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsConfigurationVolumeBurstThroughput :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsConfigurationVolumeSize :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsConfigurationVolumeType :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsEstimatedMonthlySavingsCurrency :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsEstimatedMonthlySavingsValue :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsMonthlyPrice :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsPerformanceRisk :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsSavingsOpportunityPercentage :: ExportableVolumeField
pattern ExportableVolumeField_UtilizationMetricsVolumeReadBytesPerSecondMaximum :: ExportableVolumeField
pattern ExportableVolumeField_UtilizationMetricsVolumeReadOpsPerSecondMaximum :: ExportableVolumeField
pattern ExportableVolumeField_UtilizationMetricsVolumeWriteBytesPerSecondMaximum :: ExportableVolumeField
pattern ExportableVolumeField_UtilizationMetricsVolumeWriteOpsPerSecondMaximum :: ExportableVolumeField
pattern ExportableVolumeField_VolumeArn :: ExportableVolumeField
newtype ExternalMetricsSource
ExternalMetricsSource' :: Text -> ExternalMetricsSource
[fromExternalMetricsSource] :: ExternalMetricsSource -> Text
pattern ExternalMetricsSource_Datadog :: ExternalMetricsSource
pattern ExternalMetricsSource_Dynatrace :: ExternalMetricsSource
pattern ExternalMetricsSource_Instana :: ExternalMetricsSource
pattern ExternalMetricsSource_NewRelic :: ExternalMetricsSource
newtype FileFormat
FileFormat' :: Text -> FileFormat
[fromFileFormat] :: FileFormat -> Text
pattern FileFormat_Csv :: FileFormat
newtype FilterName
FilterName' :: Text -> FilterName
[fromFilterName] :: FilterName -> Text
pattern FilterName_Finding :: FilterName
pattern FilterName_FindingReasonCodes :: FilterName
pattern FilterName_RecommendationSourceType :: FilterName
newtype Finding
Finding' :: Text -> Finding
[fromFinding] :: Finding -> Text
pattern Finding_NotOptimized :: Finding
pattern Finding_Optimized :: Finding
pattern Finding_Overprovisioned :: Finding
pattern Finding_Underprovisioned :: Finding
newtype FindingReasonCode
FindingReasonCode' :: Text -> FindingReasonCode
[fromFindingReasonCode] :: FindingReasonCode -> Text
pattern FindingReasonCode_MemoryOverprovisioned :: FindingReasonCode
pattern FindingReasonCode_MemoryUnderprovisioned :: FindingReasonCode
newtype InferredWorkloadType
InferredWorkloadType' :: Text -> InferredWorkloadType
[fromInferredWorkloadType] :: InferredWorkloadType -> Text
pattern InferredWorkloadType_AmazonEmr :: InferredWorkloadType
pattern InferredWorkloadType_ApacheCassandra :: InferredWorkloadType
pattern InferredWorkloadType_ApacheHadoop :: InferredWorkloadType
pattern InferredWorkloadType_Memcached :: InferredWorkloadType
pattern InferredWorkloadType_Nginx :: InferredWorkloadType
pattern InferredWorkloadType_PostgreSql :: InferredWorkloadType
pattern InferredWorkloadType_Redis :: InferredWorkloadType
newtype InferredWorkloadTypesPreference
InferredWorkloadTypesPreference' :: Text -> InferredWorkloadTypesPreference
[fromInferredWorkloadTypesPreference] :: InferredWorkloadTypesPreference -> Text
pattern InferredWorkloadTypesPreference_Active :: InferredWorkloadTypesPreference
pattern InferredWorkloadTypesPreference_Inactive :: InferredWorkloadTypesPreference
newtype InstanceRecommendationFindingReasonCode
InstanceRecommendationFindingReasonCode' :: Text -> InstanceRecommendationFindingReasonCode
[fromInstanceRecommendationFindingReasonCode] :: InstanceRecommendationFindingReasonCode -> Text
pattern InstanceRecommendationFindingReasonCode_CPUOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_CPUUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_DiskIOPSOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_DiskIOPSUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_DiskThroughputOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_DiskThroughputUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_EBSIOPSOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_EBSIOPSUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_EBSThroughputOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_EBSThroughputUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_MemoryOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_MemoryUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_NetworkBandwidthOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_NetworkBandwidthUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_NetworkPPSOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_NetworkPPSUnderprovisioned :: InstanceRecommendationFindingReasonCode
newtype JobFilterName
JobFilterName' :: Text -> JobFilterName
[fromJobFilterName] :: JobFilterName -> Text
pattern JobFilterName_JobStatus :: JobFilterName
pattern JobFilterName_ResourceType :: JobFilterName
newtype JobStatus
JobStatus' :: Text -> JobStatus
[fromJobStatus] :: JobStatus -> Text
pattern JobStatus_Complete :: JobStatus
pattern JobStatus_Failed :: JobStatus
pattern JobStatus_InProgress :: JobStatus
pattern JobStatus_Queued :: JobStatus
newtype LambdaFunctionMemoryMetricName
LambdaFunctionMemoryMetricName' :: Text -> LambdaFunctionMemoryMetricName
[fromLambdaFunctionMemoryMetricName] :: LambdaFunctionMemoryMetricName -> Text
pattern LambdaFunctionMemoryMetricName_Duration :: LambdaFunctionMemoryMetricName
newtype LambdaFunctionMemoryMetricStatistic
LambdaFunctionMemoryMetricStatistic' :: Text -> LambdaFunctionMemoryMetricStatistic
[fromLambdaFunctionMemoryMetricStatistic] :: LambdaFunctionMemoryMetricStatistic -> Text
pattern LambdaFunctionMemoryMetricStatistic_Expected :: LambdaFunctionMemoryMetricStatistic
pattern LambdaFunctionMemoryMetricStatistic_LowerBound :: LambdaFunctionMemoryMetricStatistic
pattern LambdaFunctionMemoryMetricStatistic_UpperBound :: LambdaFunctionMemoryMetricStatistic
newtype LambdaFunctionMetricName
LambdaFunctionMetricName' :: Text -> LambdaFunctionMetricName
[fromLambdaFunctionMetricName] :: LambdaFunctionMetricName -> Text
pattern LambdaFunctionMetricName_Duration :: LambdaFunctionMetricName
pattern LambdaFunctionMetricName_Memory :: LambdaFunctionMetricName
newtype LambdaFunctionMetricStatistic
LambdaFunctionMetricStatistic' :: Text -> LambdaFunctionMetricStatistic
[fromLambdaFunctionMetricStatistic] :: LambdaFunctionMetricStatistic -> Text
pattern LambdaFunctionMetricStatistic_Average :: LambdaFunctionMetricStatistic
pattern LambdaFunctionMetricStatistic_Maximum :: LambdaFunctionMetricStatistic
newtype LambdaFunctionRecommendationFilterName
LambdaFunctionRecommendationFilterName' :: Text -> LambdaFunctionRecommendationFilterName
[fromLambdaFunctionRecommendationFilterName] :: LambdaFunctionRecommendationFilterName -> Text
pattern LambdaFunctionRecommendationFilterName_Finding :: LambdaFunctionRecommendationFilterName
pattern LambdaFunctionRecommendationFilterName_FindingReasonCode :: LambdaFunctionRecommendationFilterName
newtype LambdaFunctionRecommendationFinding
LambdaFunctionRecommendationFinding' :: Text -> LambdaFunctionRecommendationFinding
[fromLambdaFunctionRecommendationFinding] :: LambdaFunctionRecommendationFinding -> Text
pattern LambdaFunctionRecommendationFinding_NotOptimized :: LambdaFunctionRecommendationFinding
pattern LambdaFunctionRecommendationFinding_Optimized :: LambdaFunctionRecommendationFinding
pattern LambdaFunctionRecommendationFinding_Unavailable :: LambdaFunctionRecommendationFinding
newtype LambdaFunctionRecommendationFindingReasonCode
LambdaFunctionRecommendationFindingReasonCode' :: Text -> LambdaFunctionRecommendationFindingReasonCode
[fromLambdaFunctionRecommendationFindingReasonCode] :: LambdaFunctionRecommendationFindingReasonCode -> Text
pattern LambdaFunctionRecommendationFindingReasonCode_Inconclusive :: LambdaFunctionRecommendationFindingReasonCode
pattern LambdaFunctionRecommendationFindingReasonCode_InsufficientData :: LambdaFunctionRecommendationFindingReasonCode
pattern LambdaFunctionRecommendationFindingReasonCode_MemoryOverprovisioned :: LambdaFunctionRecommendationFindingReasonCode
pattern LambdaFunctionRecommendationFindingReasonCode_MemoryUnderprovisioned :: LambdaFunctionRecommendationFindingReasonCode
newtype MetricName
MetricName' :: Text -> MetricName
[fromMetricName] :: MetricName -> Text
pattern MetricName_Cpu :: MetricName
pattern MetricName_DISK_READ_BYTES_PER_SECOND :: MetricName
pattern MetricName_DISK_READ_OPS_PER_SECOND :: MetricName
pattern MetricName_DISK_WRITE_BYTES_PER_SECOND :: MetricName
pattern MetricName_DISK_WRITE_OPS_PER_SECOND :: MetricName
pattern MetricName_EBS_READ_BYTES_PER_SECOND :: MetricName
pattern MetricName_EBS_READ_OPS_PER_SECOND :: MetricName
pattern MetricName_EBS_WRITE_BYTES_PER_SECOND :: MetricName
pattern MetricName_EBS_WRITE_OPS_PER_SECOND :: MetricName
pattern MetricName_Memory :: MetricName
pattern MetricName_NETWORK_IN_BYTES_PER_SECOND :: MetricName
pattern MetricName_NETWORK_OUT_BYTES_PER_SECOND :: MetricName
pattern MetricName_NETWORK_PACKETS_IN_PER_SECOND :: MetricName
pattern MetricName_NETWORK_PACKETS_OUT_PER_SECOND :: MetricName
newtype MetricStatistic
MetricStatistic' :: Text -> MetricStatistic
[fromMetricStatistic] :: MetricStatistic -> Text
pattern MetricStatistic_Average :: MetricStatistic
pattern MetricStatistic_Maximum :: MetricStatistic
newtype MigrationEffort
MigrationEffort' :: Text -> MigrationEffort
[fromMigrationEffort] :: MigrationEffort -> Text
pattern MigrationEffort_High :: MigrationEffort
pattern MigrationEffort_Low :: MigrationEffort
pattern MigrationEffort_Medium :: MigrationEffort
pattern MigrationEffort_VeryLow :: MigrationEffort
newtype PlatformDifference
PlatformDifference' :: Text -> PlatformDifference
[fromPlatformDifference] :: PlatformDifference -> Text
pattern PlatformDifference_Architecture :: PlatformDifference
pattern PlatformDifference_Hypervisor :: PlatformDifference
pattern PlatformDifference_InstanceStoreAvailability :: PlatformDifference
pattern PlatformDifference_NetworkInterface :: PlatformDifference
pattern PlatformDifference_StorageInterface :: PlatformDifference
pattern PlatformDifference_VirtualizationType :: PlatformDifference
newtype RecommendationPreferenceName
RecommendationPreferenceName' :: Text -> RecommendationPreferenceName
[fromRecommendationPreferenceName] :: RecommendationPreferenceName -> Text
pattern RecommendationPreferenceName_EnhancedInfrastructureMetrics :: RecommendationPreferenceName
pattern RecommendationPreferenceName_ExternalMetricsPreference :: RecommendationPreferenceName
pattern RecommendationPreferenceName_InferredWorkloadTypes :: RecommendationPreferenceName
newtype RecommendationSourceType
RecommendationSourceType' :: Text -> RecommendationSourceType
[fromRecommendationSourceType] :: RecommendationSourceType -> Text
pattern RecommendationSourceType_AutoScalingGroup :: RecommendationSourceType
pattern RecommendationSourceType_EbsVolume :: RecommendationSourceType
pattern RecommendationSourceType_Ec2Instance :: RecommendationSourceType
pattern RecommendationSourceType_EcsService :: RecommendationSourceType
pattern RecommendationSourceType_LambdaFunction :: RecommendationSourceType
newtype ResourceType
ResourceType' :: Text -> ResourceType
[fromResourceType] :: ResourceType -> Text
pattern ResourceType_AutoScalingGroup :: ResourceType
pattern ResourceType_EbsVolume :: ResourceType
pattern ResourceType_Ec2Instance :: ResourceType
pattern ResourceType_EcsService :: ResourceType
pattern ResourceType_LambdaFunction :: ResourceType
pattern ResourceType_NotApplicable :: ResourceType
newtype ScopeName
ScopeName' :: Text -> ScopeName
[fromScopeName] :: ScopeName -> Text
pattern ScopeName_AccountId :: ScopeName
pattern ScopeName_Organization :: ScopeName
pattern ScopeName_ResourceArn :: ScopeName
newtype Status
Status' :: Text -> Status
[fromStatus] :: Status -> Text
pattern Status_Active :: Status
pattern Status_Failed :: Status
pattern Status_Inactive :: Status
pattern Status_Pending :: Status
-- | Describes the enrollment status of an organization's member accounts
-- in Compute Optimizer.
--
-- See: newAccountEnrollmentStatus smart constructor.
data AccountEnrollmentStatus
AccountEnrollmentStatus' :: Maybe Text -> Maybe POSIX -> Maybe Status -> Maybe Text -> AccountEnrollmentStatus
-- | The Amazon Web Services account ID.
[$sel:accountId:AccountEnrollmentStatus'] :: AccountEnrollmentStatus -> Maybe Text
-- | The Unix epoch timestamp, in seconds, of when the account enrollment
-- status was last updated.
[$sel:lastUpdatedTimestamp:AccountEnrollmentStatus'] :: AccountEnrollmentStatus -> Maybe POSIX
-- | The account enrollment status.
[$sel:status:AccountEnrollmentStatus'] :: AccountEnrollmentStatus -> Maybe Status
-- | The reason for the account enrollment status.
--
-- For example, an account might show a status of Pending
-- because member accounts of an organization require more time to be
-- enrolled in the service.
[$sel:statusReason:AccountEnrollmentStatus'] :: AccountEnrollmentStatus -> Maybe Text
-- | Create a value of AccountEnrollmentStatus with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:AccountEnrollmentStatus',
-- accountEnrollmentStatus_accountId - The Amazon Web Services
-- account ID.
--
-- $sel:lastUpdatedTimestamp:AccountEnrollmentStatus',
-- accountEnrollmentStatus_lastUpdatedTimestamp - The Unix epoch
-- timestamp, in seconds, of when the account enrollment status was last
-- updated.
--
-- $sel:status:AccountEnrollmentStatus',
-- accountEnrollmentStatus_status - The account enrollment status.
--
-- $sel:statusReason:AccountEnrollmentStatus',
-- accountEnrollmentStatus_statusReason - The reason for the
-- account enrollment status.
--
-- For example, an account might show a status of Pending
-- because member accounts of an organization require more time to be
-- enrolled in the service.
newAccountEnrollmentStatus :: AccountEnrollmentStatus
-- | The Amazon Web Services account ID.
accountEnrollmentStatus_accountId :: Lens' AccountEnrollmentStatus (Maybe Text)
-- | The Unix epoch timestamp, in seconds, of when the account enrollment
-- status was last updated.
accountEnrollmentStatus_lastUpdatedTimestamp :: Lens' AccountEnrollmentStatus (Maybe UTCTime)
-- | The account enrollment status.
accountEnrollmentStatus_status :: Lens' AccountEnrollmentStatus (Maybe Status)
-- | The reason for the account enrollment status.
--
-- For example, an account might show a status of Pending
-- because member accounts of an organization require more time to be
-- enrolled in the service.
accountEnrollmentStatus_statusReason :: Lens' AccountEnrollmentStatus (Maybe Text)
-- | Describes the configuration of an Auto Scaling group.
--
-- See: newAutoScalingGroupConfiguration smart constructor.
data AutoScalingGroupConfiguration
AutoScalingGroupConfiguration' :: Maybe Int -> Maybe Text -> Maybe Int -> Maybe Int -> AutoScalingGroupConfiguration
-- | The desired capacity, or number of instances, for the Auto Scaling
-- group.
[$sel:desiredCapacity:AutoScalingGroupConfiguration'] :: AutoScalingGroupConfiguration -> Maybe Int
-- | The instance type for the Auto Scaling group.
[$sel:instanceType:AutoScalingGroupConfiguration'] :: AutoScalingGroupConfiguration -> Maybe Text
-- | The maximum size, or maximum number of instances, for the Auto Scaling
-- group.
[$sel:maxSize:AutoScalingGroupConfiguration'] :: AutoScalingGroupConfiguration -> Maybe Int
-- | The minimum size, or minimum number of instances, for the Auto Scaling
-- group.
[$sel:minSize:AutoScalingGroupConfiguration'] :: AutoScalingGroupConfiguration -> Maybe Int
-- | Create a value of AutoScalingGroupConfiguration with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:desiredCapacity:AutoScalingGroupConfiguration',
-- autoScalingGroupConfiguration_desiredCapacity - The desired
-- capacity, or number of instances, for the Auto Scaling group.
--
-- $sel:instanceType:AutoScalingGroupConfiguration',
-- autoScalingGroupConfiguration_instanceType - The instance type
-- for the Auto Scaling group.
--
-- $sel:maxSize:AutoScalingGroupConfiguration',
-- autoScalingGroupConfiguration_maxSize - The maximum size, or
-- maximum number of instances, for the Auto Scaling group.
--
-- $sel:minSize:AutoScalingGroupConfiguration',
-- autoScalingGroupConfiguration_minSize - The minimum size, or
-- minimum number of instances, for the Auto Scaling group.
newAutoScalingGroupConfiguration :: AutoScalingGroupConfiguration
-- | The desired capacity, or number of instances, for the Auto Scaling
-- group.
autoScalingGroupConfiguration_desiredCapacity :: Lens' AutoScalingGroupConfiguration (Maybe Int)
-- | The instance type for the Auto Scaling group.
autoScalingGroupConfiguration_instanceType :: Lens' AutoScalingGroupConfiguration (Maybe Text)
-- | The maximum size, or maximum number of instances, for the Auto Scaling
-- group.
autoScalingGroupConfiguration_maxSize :: Lens' AutoScalingGroupConfiguration (Maybe Int)
-- | The minimum size, or minimum number of instances, for the Auto Scaling
-- group.
autoScalingGroupConfiguration_minSize :: Lens' AutoScalingGroupConfiguration (Maybe Int)
-- | Describes an Auto Scaling group recommendation.
--
-- See: newAutoScalingGroupRecommendation smart
-- constructor.
data AutoScalingGroupRecommendation
AutoScalingGroupRecommendation' :: Maybe Text -> Maybe Text -> Maybe Text -> Maybe AutoScalingGroupConfiguration -> Maybe CurrentPerformanceRisk -> Maybe EffectiveRecommendationPreferences -> Maybe Finding -> Maybe [InferredWorkloadType] -> Maybe POSIX -> Maybe Double -> Maybe [AutoScalingGroupRecommendationOption] -> Maybe [UtilizationMetric] -> AutoScalingGroupRecommendation
-- | The Amazon Web Services account ID of the Auto Scaling group.
[$sel:accountId:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe Text
-- | The Amazon Resource Name (ARN) of the Auto Scaling group.
[$sel:autoScalingGroupArn:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe Text
-- | The name of the Auto Scaling group.
[$sel:autoScalingGroupName:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe Text
-- | An array of objects that describe the current configuration of the
-- Auto Scaling group.
[$sel:currentConfiguration:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe AutoScalingGroupConfiguration
-- | The risk of the current Auto Scaling group not meeting the performance
-- needs of its workloads. The higher the risk, the more likely the
-- current Auto Scaling group configuration has insufficient capacity and
-- cannot meet workload requirements.
[$sel:currentPerformanceRisk:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe CurrentPerformanceRisk
-- | An object that describes the effective recommendation preferences for
-- the Auto Scaling group.
[$sel:effectiveRecommendationPreferences:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe EffectiveRecommendationPreferences
-- | The finding classification of the Auto Scaling group.
--
-- Findings for Auto Scaling groups include:
--
--
-- - NotOptimized —An Auto Scaling group is considered
-- not optimized when Compute Optimizer identifies a recommendation that
-- can provide better performance for your workload.
-- - Optimized —An Auto Scaling group is considered
-- optimized when Compute Optimizer determines that the group is
-- correctly provisioned to run your workload based on the chosen
-- instance type. For optimized resources, Compute Optimizer might
-- recommend a new generation instance type.
--
[$sel:finding:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe Finding
-- | The applications that might be running on the instances in the Auto
-- Scaling group as inferred by Compute Optimizer.
--
-- Compute Optimizer can infer if one of the following applications might
-- be running on the instances:
--
--
-- - AmazonEmr - Infers that Amazon EMR might be running on
-- the instances.
-- - ApacheCassandra - Infers that Apache Cassandra might be
-- running on the instances.
-- - ApacheHadoop - Infers that Apache Hadoop might be running
-- on the instances.
-- - Memcached - Infers that Memcached might be running on the
-- instances.
-- - NGINX - Infers that NGINX might be running on the
-- instances.
-- - PostgreSql - Infers that PostgreSQL might be running on
-- the instances.
-- - Redis - Infers that Redis might be running on the
-- instances.
--
[$sel:inferredWorkloadTypes:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe [InferredWorkloadType]
-- | The timestamp of when the Auto Scaling group recommendation was last
-- generated.
[$sel:lastRefreshTimestamp:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe POSIX
-- | The number of days for which utilization metrics were analyzed for the
-- Auto Scaling group.
[$sel:lookBackPeriodInDays:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe Double
-- | An array of objects that describe the recommendation options for the
-- Auto Scaling group.
[$sel:recommendationOptions:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe [AutoScalingGroupRecommendationOption]
-- | An array of objects that describe the utilization metrics of the Auto
-- Scaling group.
[$sel:utilizationMetrics:AutoScalingGroupRecommendation'] :: AutoScalingGroupRecommendation -> Maybe [UtilizationMetric]
-- | Create a value of AutoScalingGroupRecommendation with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_accountId - The Amazon Web
-- Services account ID of the Auto Scaling group.
--
-- $sel:autoScalingGroupArn:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_autoScalingGroupArn - The Amazon
-- Resource Name (ARN) of the Auto Scaling group.
--
-- $sel:autoScalingGroupName:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_autoScalingGroupName - The name
-- of the Auto Scaling group.
--
-- $sel:currentConfiguration:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_currentConfiguration - An array
-- of objects that describe the current configuration of the Auto Scaling
-- group.
--
-- $sel:currentPerformanceRisk:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_currentPerformanceRisk - The
-- risk of the current Auto Scaling group not meeting the performance
-- needs of its workloads. The higher the risk, the more likely the
-- current Auto Scaling group configuration has insufficient capacity and
-- cannot meet workload requirements.
--
--
-- $sel:effectiveRecommendationPreferences:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_effectiveRecommendationPreferences
-- - An object that describes the effective recommendation preferences
-- for the Auto Scaling group.
--
-- $sel:finding:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_finding - The finding
-- classification of the Auto Scaling group.
--
-- Findings for Auto Scaling groups include:
--
--
-- - NotOptimized —An Auto Scaling group is considered
-- not optimized when Compute Optimizer identifies a recommendation that
-- can provide better performance for your workload.
-- - Optimized —An Auto Scaling group is considered
-- optimized when Compute Optimizer determines that the group is
-- correctly provisioned to run your workload based on the chosen
-- instance type. For optimized resources, Compute Optimizer might
-- recommend a new generation instance type.
--
--
-- AutoScalingGroupRecommendation,
-- autoScalingGroupRecommendation_inferredWorkloadTypes - The
-- applications that might be running on the instances in the Auto
-- Scaling group as inferred by Compute Optimizer.
--
-- Compute Optimizer can infer if one of the following applications might
-- be running on the instances:
--
--
-- - AmazonEmr - Infers that Amazon EMR might be running on
-- the instances.
-- - ApacheCassandra - Infers that Apache Cassandra might be
-- running on the instances.
-- - ApacheHadoop - Infers that Apache Hadoop might be running
-- on the instances.
-- - Memcached - Infers that Memcached might be running on the
-- instances.
-- - NGINX - Infers that NGINX might be running on the
-- instances.
-- - PostgreSql - Infers that PostgreSQL might be running on
-- the instances.
-- - Redis - Infers that Redis might be running on the
-- instances.
--
--
-- $sel:lastRefreshTimestamp:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_lastRefreshTimestamp - The
-- timestamp of when the Auto Scaling group recommendation was last
-- generated.
--
-- $sel:lookBackPeriodInDays:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_lookBackPeriodInDays - The
-- number of days for which utilization metrics were analyzed for the
-- Auto Scaling group.
--
-- $sel:recommendationOptions:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_recommendationOptions - An array
-- of objects that describe the recommendation options for the Auto
-- Scaling group.
--
-- $sel:utilizationMetrics:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_utilizationMetrics - An array of
-- objects that describe the utilization metrics of the Auto Scaling
-- group.
newAutoScalingGroupRecommendation :: AutoScalingGroupRecommendation
-- | The Amazon Web Services account ID of the Auto Scaling group.
autoScalingGroupRecommendation_accountId :: Lens' AutoScalingGroupRecommendation (Maybe Text)
-- | The Amazon Resource Name (ARN) of the Auto Scaling group.
autoScalingGroupRecommendation_autoScalingGroupArn :: Lens' AutoScalingGroupRecommendation (Maybe Text)
-- | The name of the Auto Scaling group.
autoScalingGroupRecommendation_autoScalingGroupName :: Lens' AutoScalingGroupRecommendation (Maybe Text)
-- | An array of objects that describe the current configuration of the
-- Auto Scaling group.
autoScalingGroupRecommendation_currentConfiguration :: Lens' AutoScalingGroupRecommendation (Maybe AutoScalingGroupConfiguration)
-- | The risk of the current Auto Scaling group not meeting the performance
-- needs of its workloads. The higher the risk, the more likely the
-- current Auto Scaling group configuration has insufficient capacity and
-- cannot meet workload requirements.
autoScalingGroupRecommendation_currentPerformanceRisk :: Lens' AutoScalingGroupRecommendation (Maybe CurrentPerformanceRisk)
-- | An object that describes the effective recommendation preferences for
-- the Auto Scaling group.
autoScalingGroupRecommendation_effectiveRecommendationPreferences :: Lens' AutoScalingGroupRecommendation (Maybe EffectiveRecommendationPreferences)
-- | The finding classification of the Auto Scaling group.
--
-- Findings for Auto Scaling groups include:
--
--
-- - NotOptimized —An Auto Scaling group is considered
-- not optimized when Compute Optimizer identifies a recommendation that
-- can provide better performance for your workload.
-- - Optimized —An Auto Scaling group is considered
-- optimized when Compute Optimizer determines that the group is
-- correctly provisioned to run your workload based on the chosen
-- instance type. For optimized resources, Compute Optimizer might
-- recommend a new generation instance type.
--
autoScalingGroupRecommendation_finding :: Lens' AutoScalingGroupRecommendation (Maybe Finding)
-- | The applications that might be running on the instances in the Auto
-- Scaling group as inferred by Compute Optimizer.
--
-- Compute Optimizer can infer if one of the following applications might
-- be running on the instances:
--
--
-- - AmazonEmr - Infers that Amazon EMR might be running on
-- the instances.
-- - ApacheCassandra - Infers that Apache Cassandra might be
-- running on the instances.
-- - ApacheHadoop - Infers that Apache Hadoop might be running
-- on the instances.
-- - Memcached - Infers that Memcached might be running on the
-- instances.
-- - NGINX - Infers that NGINX might be running on the
-- instances.
-- - PostgreSql - Infers that PostgreSQL might be running on
-- the instances.
-- - Redis - Infers that Redis might be running on the
-- instances.
--
autoScalingGroupRecommendation_inferredWorkloadTypes :: Lens' AutoScalingGroupRecommendation (Maybe [InferredWorkloadType])
-- | The timestamp of when the Auto Scaling group recommendation was last
-- generated.
autoScalingGroupRecommendation_lastRefreshTimestamp :: Lens' AutoScalingGroupRecommendation (Maybe UTCTime)
-- | The number of days for which utilization metrics were analyzed for the
-- Auto Scaling group.
autoScalingGroupRecommendation_lookBackPeriodInDays :: Lens' AutoScalingGroupRecommendation (Maybe Double)
-- | An array of objects that describe the recommendation options for the
-- Auto Scaling group.
autoScalingGroupRecommendation_recommendationOptions :: Lens' AutoScalingGroupRecommendation (Maybe [AutoScalingGroupRecommendationOption])
-- | An array of objects that describe the utilization metrics of the Auto
-- Scaling group.
autoScalingGroupRecommendation_utilizationMetrics :: Lens' AutoScalingGroupRecommendation (Maybe [UtilizationMetric])
-- | Describes a recommendation option for an Auto Scaling group.
--
-- See: newAutoScalingGroupRecommendationOption smart
-- constructor.
data AutoScalingGroupRecommendationOption
AutoScalingGroupRecommendationOption' :: Maybe AutoScalingGroupConfiguration -> Maybe MigrationEffort -> Maybe Double -> Maybe [UtilizationMetric] -> Maybe Int -> Maybe SavingsOpportunity -> AutoScalingGroupRecommendationOption
-- | An array of objects that describe an Auto Scaling group configuration.
[$sel:configuration:AutoScalingGroupRecommendationOption'] :: AutoScalingGroupRecommendationOption -> 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.
[$sel:migrationEffort:AutoScalingGroupRecommendationOption'] :: AutoScalingGroupRecommendationOption -> 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.
[$sel:performanceRisk:AutoScalingGroupRecommendationOption'] :: AutoScalingGroupRecommendationOption -> Maybe 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 Enabling Memory
-- Utilization with the CloudWatch Agent.
[$sel:projectedUtilizationMetrics:AutoScalingGroupRecommendationOption'] :: AutoScalingGroupRecommendationOption -> Maybe [UtilizationMetric]
-- | The rank of the Auto Scaling group recommendation option.
--
-- The top recommendation option is ranked as 1.
[$sel:rank:AutoScalingGroupRecommendationOption'] :: AutoScalingGroupRecommendationOption -> Maybe 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.
[$sel:savingsOpportunity:AutoScalingGroupRecommendationOption'] :: AutoScalingGroupRecommendationOption -> Maybe SavingsOpportunity
-- | Create a value of AutoScalingGroupRecommendationOption with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:configuration:AutoScalingGroupRecommendationOption',
-- autoScalingGroupRecommendationOption_configuration - An array
-- of objects that describe an Auto Scaling group configuration.
--
-- $sel:migrationEffort:AutoScalingGroupRecommendationOption',
-- 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.
--
-- $sel:performanceRisk:AutoScalingGroupRecommendationOption',
-- 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.
--
--
-- $sel:projectedUtilizationMetrics:AutoScalingGroupRecommendationOption',
-- 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 Enabling Memory
-- Utilization with the CloudWatch Agent.
--
-- $sel:rank:AutoScalingGroupRecommendationOption',
-- autoScalingGroupRecommendationOption_rank - The rank of the
-- Auto Scaling group recommendation option.
--
-- The top recommendation option is ranked as 1.
--
-- $sel:savingsOpportunity:AutoScalingGroupRecommendationOption',
-- 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
-- | An array of objects that describe an Auto Scaling group configuration.
autoScalingGroupRecommendationOption_configuration :: Lens' AutoScalingGroupRecommendationOption (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_migrationEffort :: Lens' AutoScalingGroupRecommendationOption (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_performanceRisk :: Lens' AutoScalingGroupRecommendationOption (Maybe 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 Enabling Memory
-- Utilization with the CloudWatch Agent.
autoScalingGroupRecommendationOption_projectedUtilizationMetrics :: Lens' AutoScalingGroupRecommendationOption (Maybe [UtilizationMetric])
-- | The rank of the Auto Scaling group recommendation option.
--
-- The top recommendation option is ranked as 1.
autoScalingGroupRecommendationOption_rank :: Lens' AutoScalingGroupRecommendationOption (Maybe 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_savingsOpportunity :: Lens' AutoScalingGroupRecommendationOption (Maybe SavingsOpportunity)
-- | Describes the container configurations within the tasks of your Amazon
-- ECS service.
--
-- See: newContainerConfiguration smart constructor.
data ContainerConfiguration
ContainerConfiguration' :: Maybe Text -> Maybe Int -> Maybe MemorySizeConfiguration -> ContainerConfiguration
-- | The name of the container.
[$sel:containerName:ContainerConfiguration'] :: ContainerConfiguration -> Maybe Text
-- | The number of CPU units reserved for the container.
[$sel:cpu:ContainerConfiguration'] :: ContainerConfiguration -> Maybe Int
-- | The memory size configurations for the container.
[$sel:memorySizeConfiguration:ContainerConfiguration'] :: ContainerConfiguration -> Maybe MemorySizeConfiguration
-- | Create a value of ContainerConfiguration with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:containerName:ContainerConfiguration',
-- containerConfiguration_containerName - The name of the
-- container.
--
-- $sel:cpu:ContainerConfiguration',
-- containerConfiguration_cpu - The number of CPU units reserved
-- for the container.
--
-- $sel:memorySizeConfiguration:ContainerConfiguration',
-- containerConfiguration_memorySizeConfiguration - The memory
-- size configurations for the container.
newContainerConfiguration :: ContainerConfiguration
-- | The name of the container.
containerConfiguration_containerName :: Lens' ContainerConfiguration (Maybe Text)
-- | The number of CPU units reserved for the container.
containerConfiguration_cpu :: Lens' ContainerConfiguration (Maybe Int)
-- | The memory size configurations for the container.
containerConfiguration_memorySizeConfiguration :: Lens' ContainerConfiguration (Maybe MemorySizeConfiguration)
-- | The CPU and memory recommendations for a container within the tasks of
-- your Amazon ECS service.
--
-- See: newContainerRecommendation smart constructor.
data ContainerRecommendation
ContainerRecommendation' :: Maybe Text -> Maybe Int -> Maybe MemorySizeConfiguration -> ContainerRecommendation
-- | The name of the container.
[$sel:containerName:ContainerRecommendation'] :: ContainerRecommendation -> Maybe Text
-- | The recommended number of CPU units reserved for the container.
[$sel:cpu:ContainerRecommendation'] :: ContainerRecommendation -> Maybe Int
-- | The recommended memory size configurations for the container.
[$sel:memorySizeConfiguration:ContainerRecommendation'] :: ContainerRecommendation -> Maybe MemorySizeConfiguration
-- | Create a value of ContainerRecommendation with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:containerName:ContainerRecommendation',
-- containerRecommendation_containerName - The name of the
-- container.
--
-- $sel:cpu:ContainerRecommendation',
-- containerRecommendation_cpu - The recommended number of CPU
-- units reserved for the container.
--
-- $sel:memorySizeConfiguration:ContainerRecommendation',
-- containerRecommendation_memorySizeConfiguration - The
-- recommended memory size configurations for the container.
newContainerRecommendation :: ContainerRecommendation
-- | The name of the container.
containerRecommendation_containerName :: Lens' ContainerRecommendation (Maybe Text)
-- | The recommended number of CPU units reserved for the container.
containerRecommendation_cpu :: Lens' ContainerRecommendation (Maybe Int)
-- | The recommended memory size configurations for the container.
containerRecommendation_memorySizeConfiguration :: Lens' ContainerRecommendation (Maybe MemorySizeConfiguration)
-- | Describes the performance risk ratings for a given resource type.
--
-- Resources with a high or medium rating are at risk
-- of not meeting the performance needs of their workloads, while
-- resources with a low rating are performing well in their
-- workloads.
--
-- See: newCurrentPerformanceRiskRatings smart constructor.
data CurrentPerformanceRiskRatings
CurrentPerformanceRiskRatings' :: Maybe Integer -> Maybe Integer -> Maybe Integer -> Maybe Integer -> CurrentPerformanceRiskRatings
-- | A count of the applicable resource types with a high performance risk
-- rating.
[$sel:high:CurrentPerformanceRiskRatings'] :: CurrentPerformanceRiskRatings -> Maybe Integer
-- | A count of the applicable resource types with a low performance risk
-- rating.
[$sel:low:CurrentPerformanceRiskRatings'] :: CurrentPerformanceRiskRatings -> Maybe Integer
-- | A count of the applicable resource types with a medium performance
-- risk rating.
[$sel:medium:CurrentPerformanceRiskRatings'] :: CurrentPerformanceRiskRatings -> Maybe Integer
-- | A count of the applicable resource types with a very low performance
-- risk rating.
[$sel:veryLow:CurrentPerformanceRiskRatings'] :: CurrentPerformanceRiskRatings -> Maybe Integer
-- | Create a value of CurrentPerformanceRiskRatings with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:high:CurrentPerformanceRiskRatings',
-- currentPerformanceRiskRatings_high - A count of the applicable
-- resource types with a high performance risk rating.
--
-- $sel:low:CurrentPerformanceRiskRatings',
-- currentPerformanceRiskRatings_low - A count of the applicable
-- resource types with a low performance risk rating.
--
-- $sel:medium:CurrentPerformanceRiskRatings',
-- currentPerformanceRiskRatings_medium - A count of the
-- applicable resource types with a medium performance risk rating.
--
-- $sel:veryLow:CurrentPerformanceRiskRatings',
-- currentPerformanceRiskRatings_veryLow - A count of the
-- applicable resource types with a very low performance risk rating.
newCurrentPerformanceRiskRatings :: CurrentPerformanceRiskRatings
-- | A count of the applicable resource types with a high performance risk
-- rating.
currentPerformanceRiskRatings_high :: Lens' CurrentPerformanceRiskRatings (Maybe Integer)
-- | A count of the applicable resource types with a low performance risk
-- rating.
currentPerformanceRiskRatings_low :: Lens' CurrentPerformanceRiskRatings (Maybe Integer)
-- | A count of the applicable resource types with a medium performance
-- risk rating.
currentPerformanceRiskRatings_medium :: Lens' CurrentPerformanceRiskRatings (Maybe Integer)
-- | A count of the applicable resource types with a very low performance
-- risk rating.
currentPerformanceRiskRatings_veryLow :: Lens' CurrentPerformanceRiskRatings (Maybe Integer)
-- | Describes a filter that returns a more specific list of Amazon Elastic
-- Block Store (Amazon EBS) volume recommendations. Use this filter with
-- the GetEBSVolumeRecommendations action.
--
-- You can use LambdaFunctionRecommendationFilter with the
-- GetLambdaFunctionRecommendations action, JobFilter with the
-- DescribeRecommendationExportJobs action, and Filter with the
-- GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations
-- actions.
--
-- See: newEBSFilter smart constructor.
data EBSFilter
EBSFilter' :: Maybe EBSFilterName -> Maybe [Text] -> EBSFilter
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, NotOptimized).
[$sel:name:EBSFilter'] :: EBSFilter -> Maybe EBSFilterName
-- | The value of the filter.
--
-- The valid values are Optimized, or NotOptimized.
[$sel:values:EBSFilter'] :: EBSFilter -> Maybe [Text]
-- | Create a value of EBSFilter with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:EBSFilter', eBSFilter_name - The name of the
-- filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, NotOptimized).
--
-- $sel:values:EBSFilter', eBSFilter_values - The value of
-- the filter.
--
-- The valid values are Optimized, or NotOptimized.
newEBSFilter :: EBSFilter
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, NotOptimized).
eBSFilter_name :: Lens' EBSFilter (Maybe EBSFilterName)
-- | The value of the filter.
--
-- The valid values are Optimized, or NotOptimized.
eBSFilter_values :: Lens' EBSFilter (Maybe [Text])
-- | Describes a utilization metric of an Amazon Elastic Block Store
-- (Amazon EBS) volume.
--
-- Compare the utilization metric data of your resource against its
-- projected utilization metric data to determine the performance
-- difference between your current resource and the recommended option.
--
-- See: newEBSUtilizationMetric smart constructor.
data EBSUtilizationMetric
EBSUtilizationMetric' :: Maybe EBSMetricName -> Maybe MetricStatistic -> Maybe Double -> EBSUtilizationMetric
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - VolumeReadOpsPerSecond - The completed read operations
-- per second from the volume in a specified period of time.Unit:
-- Count
-- - VolumeWriteOpsPerSecond - The completed write operations
-- per second to the volume in a specified period of time.Unit:
-- Count
-- - VolumeReadBytesPerSecond - The bytes read per second from
-- the volume in a specified period of time.Unit: Bytes
-- - VolumeWriteBytesPerSecond - The bytes written to the
-- volume in a specified period of time.Unit: Bytes
--
[$sel:name:EBSUtilizationMetric'] :: EBSUtilizationMetric -> Maybe EBSMetricName
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
[$sel:statistic:EBSUtilizationMetric'] :: EBSUtilizationMetric -> Maybe MetricStatistic
-- | The value of the utilization metric.
[$sel:value:EBSUtilizationMetric'] :: EBSUtilizationMetric -> Maybe Double
-- | Create a value of EBSUtilizationMetric with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:EBSUtilizationMetric',
-- eBSUtilizationMetric_name - The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - VolumeReadOpsPerSecond - The completed read operations
-- per second from the volume in a specified period of time.Unit:
-- Count
-- - VolumeWriteOpsPerSecond - The completed write operations
-- per second to the volume in a specified period of time.Unit:
-- Count
-- - VolumeReadBytesPerSecond - The bytes read per second from
-- the volume in a specified period of time.Unit: Bytes
-- - VolumeWriteBytesPerSecond - The bytes written to the
-- volume in a specified period of time.Unit: Bytes
--
--
-- $sel:statistic:EBSUtilizationMetric',
-- eBSUtilizationMetric_statistic - The statistic of the
-- utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
--
-- $sel:value:EBSUtilizationMetric',
-- eBSUtilizationMetric_value - The value of the utilization
-- metric.
newEBSUtilizationMetric :: EBSUtilizationMetric
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - VolumeReadOpsPerSecond - The completed read operations
-- per second from the volume in a specified period of time.Unit:
-- Count
-- - VolumeWriteOpsPerSecond - The completed write operations
-- per second to the volume in a specified period of time.Unit:
-- Count
-- - VolumeReadBytesPerSecond - The bytes read per second from
-- the volume in a specified period of time.Unit: Bytes
-- - VolumeWriteBytesPerSecond - The bytes written to the
-- volume in a specified period of time.Unit: Bytes
--
eBSUtilizationMetric_name :: Lens' EBSUtilizationMetric (Maybe EBSMetricName)
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
eBSUtilizationMetric_statistic :: Lens' EBSUtilizationMetric (Maybe MetricStatistic)
-- | The value of the utilization metric.
eBSUtilizationMetric_value :: Lens' EBSUtilizationMetric (Maybe Double)
-- | Describes the projected metrics of an Amazon ECS service
-- recommendation option.
--
-- To determine the performance difference between your current ECS
-- service and the recommended option, compare the metric data of your
-- service against its projected metric data.
--
-- See: newECSServiceProjectedMetric smart constructor.
data ECSServiceProjectedMetric
ECSServiceProjectedMetric' :: Maybe [Double] -> Maybe ECSServiceMetricName -> Maybe [POSIX] -> Maybe [Double] -> ECSServiceProjectedMetric
-- | The lower bound values for the projected metric.
[$sel:lowerBoundValues:ECSServiceProjectedMetric'] :: ECSServiceProjectedMetric -> Maybe [Double]
-- | The name of the projected metric.
--
-- The following metrics are available:
--
--
-- - CPU — The percentage of allocated compute units that are
-- currently in use on the ECS service tasks.
-- - Memory — The percentage of memory that is currently in
-- use on the ECS service tasks.
--
[$sel:name:ECSServiceProjectedMetric'] :: ECSServiceProjectedMetric -> Maybe ECSServiceMetricName
-- | The timestamps of the projected metric.
[$sel:timestamps:ECSServiceProjectedMetric'] :: ECSServiceProjectedMetric -> Maybe [POSIX]
-- | The upper bound values for the projected metric.
[$sel:upperBoundValues:ECSServiceProjectedMetric'] :: ECSServiceProjectedMetric -> Maybe [Double]
-- | Create a value of ECSServiceProjectedMetric with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:lowerBoundValues:ECSServiceProjectedMetric',
-- eCSServiceProjectedMetric_lowerBoundValues - The lower bound
-- values for the projected metric.
--
-- $sel:name:ECSServiceProjectedMetric',
-- eCSServiceProjectedMetric_name - The name of the projected
-- metric.
--
-- The following metrics are available:
--
--
-- - CPU — The percentage of allocated compute units that are
-- currently in use on the ECS service tasks.
-- - Memory — The percentage of memory that is currently in
-- use on the ECS service tasks.
--
--
-- $sel:timestamps:ECSServiceProjectedMetric',
-- eCSServiceProjectedMetric_timestamps - The timestamps of the
-- projected metric.
--
-- $sel:upperBoundValues:ECSServiceProjectedMetric',
-- eCSServiceProjectedMetric_upperBoundValues - The upper bound
-- values for the projected metric.
newECSServiceProjectedMetric :: ECSServiceProjectedMetric
-- | The lower bound values for the projected metric.
eCSServiceProjectedMetric_lowerBoundValues :: Lens' ECSServiceProjectedMetric (Maybe [Double])
-- | The name of the projected metric.
--
-- The following metrics are available:
--
--
-- - CPU — The percentage of allocated compute units that are
-- currently in use on the ECS service tasks.
-- - Memory — The percentage of memory that is currently in
-- use on the ECS service tasks.
--
eCSServiceProjectedMetric_name :: Lens' ECSServiceProjectedMetric (Maybe ECSServiceMetricName)
-- | The timestamps of the projected metric.
eCSServiceProjectedMetric_timestamps :: Lens' ECSServiceProjectedMetric (Maybe [UTCTime])
-- | The upper bound values for the projected metric.
eCSServiceProjectedMetric_upperBoundValues :: Lens' ECSServiceProjectedMetric (Maybe [Double])
-- | Describes the projected utilization metrics of an Amazon ECS service
-- recommendation option.
--
-- To determine the performance difference between your current ECS
-- service and the recommended option, compare the utilization metric
-- data of your service against its projected utilization metric data.
--
-- See: newECSServiceProjectedUtilizationMetric smart
-- constructor.
data ECSServiceProjectedUtilizationMetric
ECSServiceProjectedUtilizationMetric' :: Maybe Double -> Maybe ECSServiceMetricName -> Maybe ECSServiceMetricStatistic -> Maybe Double -> ECSServiceProjectedUtilizationMetric
-- | The lower bound values for the projected utilization metrics.
[$sel:lowerBoundValue:ECSServiceProjectedUtilizationMetric'] :: ECSServiceProjectedUtilizationMetric -> Maybe Double
-- | The name of the projected utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - CPU — The percentage of allocated compute units that are
-- currently in use on the ECS service tasks.
-- - Memory — The percentage of memory that is currently in
-- use on the ECS service tasks.
--
[$sel:name:ECSServiceProjectedUtilizationMetric'] :: ECSServiceProjectedUtilizationMetric -> Maybe ECSServiceMetricName
-- | The statistic of the projected utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
[$sel:statistic:ECSServiceProjectedUtilizationMetric'] :: ECSServiceProjectedUtilizationMetric -> Maybe ECSServiceMetricStatistic
-- | The upper bound values for the projected utilization metrics.
[$sel:upperBoundValue:ECSServiceProjectedUtilizationMetric'] :: ECSServiceProjectedUtilizationMetric -> Maybe Double
-- | Create a value of ECSServiceProjectedUtilizationMetric with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:lowerBoundValue:ECSServiceProjectedUtilizationMetric',
-- eCSServiceProjectedUtilizationMetric_lowerBoundValue - The
-- lower bound values for the projected utilization metrics.
--
-- $sel:name:ECSServiceProjectedUtilizationMetric',
-- eCSServiceProjectedUtilizationMetric_name - The name of the
-- projected utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - CPU — The percentage of allocated compute units that are
-- currently in use on the ECS service tasks.
-- - Memory — The percentage of memory that is currently in
-- use on the ECS service tasks.
--
--
-- $sel:statistic:ECSServiceProjectedUtilizationMetric',
-- eCSServiceProjectedUtilizationMetric_statistic - The statistic
-- of the projected utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
--
-- $sel:upperBoundValue:ECSServiceProjectedUtilizationMetric',
-- eCSServiceProjectedUtilizationMetric_upperBoundValue - The
-- upper bound values for the projected utilization metrics.
newECSServiceProjectedUtilizationMetric :: ECSServiceProjectedUtilizationMetric
-- | The lower bound values for the projected utilization metrics.
eCSServiceProjectedUtilizationMetric_lowerBoundValue :: Lens' ECSServiceProjectedUtilizationMetric (Maybe Double)
-- | The name of the projected utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - CPU — The percentage of allocated compute units that are
-- currently in use on the ECS service tasks.
-- - Memory — The percentage of memory that is currently in
-- use on the ECS service tasks.
--
eCSServiceProjectedUtilizationMetric_name :: Lens' ECSServiceProjectedUtilizationMetric (Maybe ECSServiceMetricName)
-- | The statistic of the projected utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
eCSServiceProjectedUtilizationMetric_statistic :: Lens' ECSServiceProjectedUtilizationMetric (Maybe ECSServiceMetricStatistic)
-- | The upper bound values for the projected utilization metrics.
eCSServiceProjectedUtilizationMetric_upperBoundValue :: Lens' ECSServiceProjectedUtilizationMetric (Maybe Double)
-- | Describes an Amazon ECS service recommendation.
--
-- See: newECSServiceRecommendation smart constructor.
data ECSServiceRecommendation
ECSServiceRecommendation' :: Maybe Text -> Maybe CurrentPerformanceRisk -> Maybe ServiceConfiguration -> Maybe ECSServiceRecommendationFinding -> Maybe [ECSServiceRecommendationFindingReasonCode] -> Maybe POSIX -> Maybe ECSServiceLaunchType -> Maybe Double -> Maybe Text -> Maybe [ECSServiceRecommendationOption] -> Maybe [ECSServiceUtilizationMetric] -> ECSServiceRecommendation
-- | The Amazon Web Services account ID of the ECS service.
[$sel:accountId:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe Text
-- | The risk of the current ECS service not meeting the performance needs
-- of its workloads. The higher the risk, the more likely the current
-- service can't meet the performance requirements of its workload.
[$sel:currentPerformanceRisk:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe CurrentPerformanceRisk
-- | The configuration of the current ECS service.
[$sel:currentServiceConfiguration:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe ServiceConfiguration
-- | The finding classification of an ECS service.
--
-- Findings for ECS services include:
--
--
-- - Underprovisioned — When Compute Optimizer detects
-- that there’s not enough memory or CPU, an ECS service is considered
-- under-provisioned. An under-provisioned ECS service might result in
-- poor application performance.
-- - Overprovisioned — When Compute Optimizer detects
-- that there’s excessive memory or CPU, an ECS service is considered
-- over-provisioned. An over-provisioned ECS service might result in
-- additional infrastructure costs.
-- - Optimized — When both the CPU and memory of your
-- ECS service meet the performance requirements of your workload, the
-- service is considered optimized.
--
[$sel:finding:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe ECSServiceRecommendationFinding
-- | The reason for the finding classification of an ECS service.
--
-- Finding reason codes for ECS services include:
--
--
-- - CPUUnderprovisioned — The ECS service CPU
-- configuration can be sized up to enhance the performance of your
-- workload. This is identified by analyzing the CPUUtilization
-- metric of the current service during the look-back period.
-- - CPUOverprovisioned — The ECS service CPU
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- CPUUtilization metric of the current service during the
-- look-back period.
-- - MemoryUnderprovisioned — The ECS service memory
-- configuration can be sized up to enhance the performance of your
-- workload. This is identified by analyzing the
-- MemoryUtilization metric of the current service during the
-- look-back period.
-- - MemoryOverprovisioned — The ECS service memory
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- MemoryUtilization metric of the current service during the
-- look-back period.
--
[$sel:findingReasonCodes:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe [ECSServiceRecommendationFindingReasonCode]
-- | The timestamp of when the ECS service recommendation was last
-- generated.
[$sel:lastRefreshTimestamp:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe POSIX
-- | The launch type the ECS service is using.
--
-- Compute Optimizer only supports the Fargate launch type.
[$sel:launchType:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe ECSServiceLaunchType
-- | The number of days the ECS service utilization metrics were analyzed.
[$sel:lookbackPeriodInDays:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe Double
-- | The Amazon Resource Name (ARN) of the current ECS service.
--
-- The following is the format of the ARN:
--
--
-- arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
--
[$sel:serviceArn:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe Text
-- | An array of objects that describe the recommendation options for the
-- ECS service.
[$sel:serviceRecommendationOptions:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe [ECSServiceRecommendationOption]
-- | An array of objects that describe the utilization metrics of the ECS
-- service.
[$sel:utilizationMetrics:ECSServiceRecommendation'] :: ECSServiceRecommendation -> Maybe [ECSServiceUtilizationMetric]
-- | Create a value of ECSServiceRecommendation with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:ECSServiceRecommendation',
-- eCSServiceRecommendation_accountId - The Amazon Web Services
-- account ID of the ECS service.
--
-- $sel:currentPerformanceRisk:ECSServiceRecommendation',
-- eCSServiceRecommendation_currentPerformanceRisk - The risk of
-- the current ECS service not meeting the performance needs of its
-- workloads. The higher the risk, the more likely the current service
-- can't meet the performance requirements of its workload.
--
-- $sel:currentServiceConfiguration:ECSServiceRecommendation',
-- eCSServiceRecommendation_currentServiceConfiguration - The
-- configuration of the current ECS service.
--
-- $sel:finding:ECSServiceRecommendation',
-- eCSServiceRecommendation_finding - The finding classification
-- of an ECS service.
--
-- Findings for ECS services include:
--
--
-- - Underprovisioned — When Compute Optimizer detects
-- that there’s not enough memory or CPU, an ECS service is considered
-- under-provisioned. An under-provisioned ECS service might result in
-- poor application performance.
-- - Overprovisioned — When Compute Optimizer detects
-- that there’s excessive memory or CPU, an ECS service is considered
-- over-provisioned. An over-provisioned ECS service might result in
-- additional infrastructure costs.
-- - Optimized — When both the CPU and memory of your
-- ECS service meet the performance requirements of your workload, the
-- service is considered optimized.
--
--
-- $sel:findingReasonCodes:ECSServiceRecommendation',
-- eCSServiceRecommendation_findingReasonCodes - The reason for
-- the finding classification of an ECS service.
--
-- Finding reason codes for ECS services include:
--
--
-- - CPUUnderprovisioned — The ECS service CPU
-- configuration can be sized up to enhance the performance of your
-- workload. This is identified by analyzing the CPUUtilization
-- metric of the current service during the look-back period.
-- - CPUOverprovisioned — The ECS service CPU
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- CPUUtilization metric of the current service during the
-- look-back period.
-- - MemoryUnderprovisioned — The ECS service memory
-- configuration can be sized up to enhance the performance of your
-- workload. This is identified by analyzing the
-- MemoryUtilization metric of the current service during the
-- look-back period.
-- - MemoryOverprovisioned — The ECS service memory
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- MemoryUtilization metric of the current service during the
-- look-back period.
--
--
-- $sel:lastRefreshTimestamp:ECSServiceRecommendation',
-- eCSServiceRecommendation_lastRefreshTimestamp - The timestamp
-- of when the ECS service recommendation was last generated.
--
-- $sel:launchType:ECSServiceRecommendation',
-- eCSServiceRecommendation_launchType - The launch type the ECS
-- service is using.
--
-- Compute Optimizer only supports the Fargate launch type.
--
-- $sel:lookbackPeriodInDays:ECSServiceRecommendation',
-- eCSServiceRecommendation_lookbackPeriodInDays - The number of
-- days the ECS service utilization metrics were analyzed.
--
-- $sel:serviceArn:ECSServiceRecommendation',
-- eCSServiceRecommendation_serviceArn - The Amazon Resource Name
-- (ARN) of the current ECS service.
--
-- The following is the format of the ARN:
--
--
-- arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
--
--
-- $sel:serviceRecommendationOptions:ECSServiceRecommendation',
-- eCSServiceRecommendation_serviceRecommendationOptions - An
-- array of objects that describe the recommendation options for the ECS
-- service.
--
-- $sel:utilizationMetrics:ECSServiceRecommendation',
-- eCSServiceRecommendation_utilizationMetrics - An array of
-- objects that describe the utilization metrics of the ECS service.
newECSServiceRecommendation :: ECSServiceRecommendation
-- | The Amazon Web Services account ID of the ECS service.
eCSServiceRecommendation_accountId :: Lens' ECSServiceRecommendation (Maybe Text)
-- | The risk of the current ECS service not meeting the performance needs
-- of its workloads. The higher the risk, the more likely the current
-- service can't meet the performance requirements of its workload.
eCSServiceRecommendation_currentPerformanceRisk :: Lens' ECSServiceRecommendation (Maybe CurrentPerformanceRisk)
-- | The configuration of the current ECS service.
eCSServiceRecommendation_currentServiceConfiguration :: Lens' ECSServiceRecommendation (Maybe ServiceConfiguration)
-- | The finding classification of an ECS service.
--
-- Findings for ECS services include:
--
--
-- - Underprovisioned — When Compute Optimizer detects
-- that there’s not enough memory or CPU, an ECS service is considered
-- under-provisioned. An under-provisioned ECS service might result in
-- poor application performance.
-- - Overprovisioned — When Compute Optimizer detects
-- that there’s excessive memory or CPU, an ECS service is considered
-- over-provisioned. An over-provisioned ECS service might result in
-- additional infrastructure costs.
-- - Optimized — When both the CPU and memory of your
-- ECS service meet the performance requirements of your workload, the
-- service is considered optimized.
--
eCSServiceRecommendation_finding :: Lens' ECSServiceRecommendation (Maybe ECSServiceRecommendationFinding)
-- | The reason for the finding classification of an ECS service.
--
-- Finding reason codes for ECS services include:
--
--
-- - CPUUnderprovisioned — The ECS service CPU
-- configuration can be sized up to enhance the performance of your
-- workload. This is identified by analyzing the CPUUtilization
-- metric of the current service during the look-back period.
-- - CPUOverprovisioned — The ECS service CPU
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- CPUUtilization metric of the current service during the
-- look-back period.
-- - MemoryUnderprovisioned — The ECS service memory
-- configuration can be sized up to enhance the performance of your
-- workload. This is identified by analyzing the
-- MemoryUtilization metric of the current service during the
-- look-back period.
-- - MemoryOverprovisioned — The ECS service memory
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- MemoryUtilization metric of the current service during the
-- look-back period.
--
eCSServiceRecommendation_findingReasonCodes :: Lens' ECSServiceRecommendation (Maybe [ECSServiceRecommendationFindingReasonCode])
-- | The timestamp of when the ECS service recommendation was last
-- generated.
eCSServiceRecommendation_lastRefreshTimestamp :: Lens' ECSServiceRecommendation (Maybe UTCTime)
-- | The launch type the ECS service is using.
--
-- Compute Optimizer only supports the Fargate launch type.
eCSServiceRecommendation_launchType :: Lens' ECSServiceRecommendation (Maybe ECSServiceLaunchType)
-- | The number of days the ECS service utilization metrics were analyzed.
eCSServiceRecommendation_lookbackPeriodInDays :: Lens' ECSServiceRecommendation (Maybe Double)
-- | The Amazon Resource Name (ARN) of the current ECS service.
--
-- The following is the format of the ARN:
--
--
-- arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
--
eCSServiceRecommendation_serviceArn :: Lens' ECSServiceRecommendation (Maybe Text)
-- | An array of objects that describe the recommendation options for the
-- ECS service.
eCSServiceRecommendation_serviceRecommendationOptions :: Lens' ECSServiceRecommendation (Maybe [ECSServiceRecommendationOption])
-- | An array of objects that describe the utilization metrics of the ECS
-- service.
eCSServiceRecommendation_utilizationMetrics :: Lens' ECSServiceRecommendation (Maybe [ECSServiceUtilizationMetric])
-- | Describes a filter that returns a more specific list of Amazon ECS
-- service recommendations. Use this filter with the
-- GetECSServiceRecommendations action.
--
-- See: newECSServiceRecommendationFilter smart
-- constructor.
data ECSServiceRecommendationFilter
ECSServiceRecommendationFilter' :: Maybe ECSServiceRecommendationFilterName -> Maybe [Text] -> ECSServiceRecommendationFilter
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification.
--
-- Specify FindingReasonCode to return recommendations with a
-- specific finding reason code.
[$sel:name:ECSServiceRecommendationFilter'] :: ECSServiceRecommendationFilter -> Maybe ECSServiceRecommendationFilterName
-- | The value of the filter.
--
-- The valid values for this parameter are as follows:
--
--
-- - If you specify the name parameter as Finding,
-- specify Optimized, NotOptimized, or
-- Unavailable.
-- - If you specify the name parameter as
-- FindingReasonCode, specify CPUUnderprovisioned,
-- CPUOverprovisioned, MemoryUnderprovisioned, or
-- MemoryOverprovisioned.
--
[$sel:values:ECSServiceRecommendationFilter'] :: ECSServiceRecommendationFilter -> Maybe [Text]
-- | Create a value of ECSServiceRecommendationFilter with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:ECSServiceRecommendationFilter',
-- eCSServiceRecommendationFilter_name - The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification.
--
-- Specify FindingReasonCode to return recommendations with a
-- specific finding reason code.
--
-- $sel:values:ECSServiceRecommendationFilter',
-- eCSServiceRecommendationFilter_values - The value of the
-- filter.
--
-- The valid values for this parameter are as follows:
--
--
-- - If you specify the name parameter as Finding,
-- specify Optimized, NotOptimized, or
-- Unavailable.
-- - If you specify the name parameter as
-- FindingReasonCode, specify CPUUnderprovisioned,
-- CPUOverprovisioned, MemoryUnderprovisioned, or
-- MemoryOverprovisioned.
--
newECSServiceRecommendationFilter :: ECSServiceRecommendationFilter
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification.
--
-- Specify FindingReasonCode to return recommendations with a
-- specific finding reason code.
eCSServiceRecommendationFilter_name :: Lens' ECSServiceRecommendationFilter (Maybe ECSServiceRecommendationFilterName)
-- | The value of the filter.
--
-- The valid values for this parameter are as follows:
--
--
-- - If you specify the name parameter as Finding,
-- specify Optimized, NotOptimized, or
-- Unavailable.
-- - If you specify the name parameter as
-- FindingReasonCode, specify CPUUnderprovisioned,
-- CPUOverprovisioned, MemoryUnderprovisioned, or
-- MemoryOverprovisioned.
--
eCSServiceRecommendationFilter_values :: Lens' ECSServiceRecommendationFilter (Maybe [Text])
-- | Describes the recommendation options for an Amazon ECS service.
--
-- See: newECSServiceRecommendationOption smart
-- constructor.
data ECSServiceRecommendationOption
ECSServiceRecommendationOption' :: Maybe [ContainerRecommendation] -> Maybe Int -> Maybe Int -> Maybe [ECSServiceProjectedUtilizationMetric] -> Maybe SavingsOpportunity -> ECSServiceRecommendationOption
-- | The CPU and memory size recommendations for the containers within the
-- task of your ECS service.
[$sel:containerRecommendations:ECSServiceRecommendationOption'] :: ECSServiceRecommendationOption -> Maybe [ContainerRecommendation]
-- | The CPU size of the ECS service recommendation option.
[$sel:cpu:ECSServiceRecommendationOption'] :: ECSServiceRecommendationOption -> Maybe Int
-- | The memory size of the ECS service recommendation option.
[$sel:memory:ECSServiceRecommendationOption'] :: ECSServiceRecommendationOption -> Maybe Int
-- | An array of objects that describe the projected utilization metrics of
-- the ECS service recommendation option.
[$sel:projectedUtilizationMetrics:ECSServiceRecommendationOption'] :: ECSServiceRecommendationOption -> Maybe [ECSServiceProjectedUtilizationMetric]
[$sel:savingsOpportunity:ECSServiceRecommendationOption'] :: ECSServiceRecommendationOption -> Maybe SavingsOpportunity
-- | Create a value of ECSServiceRecommendationOption with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:containerRecommendations:ECSServiceRecommendationOption',
-- eCSServiceRecommendationOption_containerRecommendations - The
-- CPU and memory size recommendations for the containers within the task
-- of your ECS service.
--
-- ECSServiceRecommendationOption,
-- eCSServiceRecommendationOption_cpu - The CPU size of the ECS
-- service recommendation option.
--
-- $sel:memory:ECSServiceRecommendationOption',
-- eCSServiceRecommendationOption_memory - The memory size of the
-- ECS service recommendation option.
--
--
-- $sel:projectedUtilizationMetrics:ECSServiceRecommendationOption',
-- eCSServiceRecommendationOption_projectedUtilizationMetrics - An
-- array of objects that describe the projected utilization metrics of
-- the ECS service recommendation option.
--
-- $sel:savingsOpportunity:ECSServiceRecommendationOption',
-- eCSServiceRecommendationOption_savingsOpportunity -
-- Undocumented member.
newECSServiceRecommendationOption :: ECSServiceRecommendationOption
-- | The CPU and memory size recommendations for the containers within the
-- task of your ECS service.
eCSServiceRecommendationOption_containerRecommendations :: Lens' ECSServiceRecommendationOption (Maybe [ContainerRecommendation])
-- | The CPU size of the ECS service recommendation option.
eCSServiceRecommendationOption_cpu :: Lens' ECSServiceRecommendationOption (Maybe Int)
-- | The memory size of the ECS service recommendation option.
eCSServiceRecommendationOption_memory :: Lens' ECSServiceRecommendationOption (Maybe Int)
-- | An array of objects that describe the projected utilization metrics of
-- the ECS service recommendation option.
eCSServiceRecommendationOption_projectedUtilizationMetrics :: Lens' ECSServiceRecommendationOption (Maybe [ECSServiceProjectedUtilizationMetric])
-- | Undocumented member.
eCSServiceRecommendationOption_savingsOpportunity :: Lens' ECSServiceRecommendationOption (Maybe SavingsOpportunity)
-- | Describes the projected metrics of an Amazon ECS service
-- recommendation option.
--
-- To determine the performance difference between your current ECS
-- service and the recommended option, compare the metric data of your
-- service against its projected metric data.
--
-- See: newECSServiceRecommendedOptionProjectedMetric smart
-- constructor.
data ECSServiceRecommendedOptionProjectedMetric
ECSServiceRecommendedOptionProjectedMetric' :: Maybe [ECSServiceProjectedMetric] -> Maybe Int -> Maybe Int -> ECSServiceRecommendedOptionProjectedMetric
-- | An array of objects that describe the projected metric.
[$sel:projectedMetrics:ECSServiceRecommendedOptionProjectedMetric'] :: ECSServiceRecommendedOptionProjectedMetric -> Maybe [ECSServiceProjectedMetric]
-- | The recommended CPU size for the ECS service.
[$sel:recommendedCpuUnits:ECSServiceRecommendedOptionProjectedMetric'] :: ECSServiceRecommendedOptionProjectedMetric -> Maybe Int
-- | The recommended memory size for the ECS service.
[$sel:recommendedMemorySize:ECSServiceRecommendedOptionProjectedMetric'] :: ECSServiceRecommendedOptionProjectedMetric -> Maybe Int
-- | Create a value of ECSServiceRecommendedOptionProjectedMetric
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:projectedMetrics:ECSServiceRecommendedOptionProjectedMetric',
-- eCSServiceRecommendedOptionProjectedMetric_projectedMetrics -
-- An array of objects that describe the projected metric.
--
--
-- $sel:recommendedCpuUnits:ECSServiceRecommendedOptionProjectedMetric',
-- eCSServiceRecommendedOptionProjectedMetric_recommendedCpuUnits
-- - The recommended CPU size for the ECS service.
--
--
-- $sel:recommendedMemorySize:ECSServiceRecommendedOptionProjectedMetric',
-- eCSServiceRecommendedOptionProjectedMetric_recommendedMemorySize
-- - The recommended memory size for the ECS service.
newECSServiceRecommendedOptionProjectedMetric :: ECSServiceRecommendedOptionProjectedMetric
-- | An array of objects that describe the projected metric.
eCSServiceRecommendedOptionProjectedMetric_projectedMetrics :: Lens' ECSServiceRecommendedOptionProjectedMetric (Maybe [ECSServiceProjectedMetric])
-- | The recommended CPU size for the ECS service.
eCSServiceRecommendedOptionProjectedMetric_recommendedCpuUnits :: Lens' ECSServiceRecommendedOptionProjectedMetric (Maybe Int)
-- | The recommended memory size for the ECS service.
eCSServiceRecommendedOptionProjectedMetric_recommendedMemorySize :: Lens' ECSServiceRecommendedOptionProjectedMetric (Maybe Int)
-- | Describes the utilization metric of an Amazon ECS service.
--
-- To determine the performance difference between your current ECS
-- service and the recommended option, compare the utilization metric
-- data of your service against its projected utilization metric data.
--
-- See: newECSServiceUtilizationMetric smart constructor.
data ECSServiceUtilizationMetric
ECSServiceUtilizationMetric' :: Maybe ECSServiceMetricName -> Maybe ECSServiceMetricStatistic -> Maybe Double -> ECSServiceUtilizationMetric
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Cpu — The amount of CPU units that are used in the
-- service.
-- - Memory — The amount of memory that is used in the
-- service.
--
[$sel:name:ECSServiceUtilizationMetric'] :: ECSServiceUtilizationMetric -> Maybe ECSServiceMetricName
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
[$sel:statistic:ECSServiceUtilizationMetric'] :: ECSServiceUtilizationMetric -> Maybe ECSServiceMetricStatistic
-- | The value of the utilization metric.
[$sel:value:ECSServiceUtilizationMetric'] :: ECSServiceUtilizationMetric -> Maybe Double
-- | Create a value of ECSServiceUtilizationMetric with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:ECSServiceUtilizationMetric',
-- eCSServiceUtilizationMetric_name - The name of the utilization
-- metric.
--
-- The following utilization metrics are available:
--
--
-- - Cpu — The amount of CPU units that are used in the
-- service.
-- - Memory — The amount of memory that is used in the
-- service.
--
--
-- $sel:statistic:ECSServiceUtilizationMetric',
-- eCSServiceUtilizationMetric_statistic - The statistic of the
-- utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
--
-- $sel:value:ECSServiceUtilizationMetric',
-- eCSServiceUtilizationMetric_value - The value of the
-- utilization metric.
newECSServiceUtilizationMetric :: ECSServiceUtilizationMetric
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Cpu — The amount of CPU units that are used in the
-- service.
-- - Memory — The amount of memory that is used in the
-- service.
--
eCSServiceUtilizationMetric_name :: Lens' ECSServiceUtilizationMetric (Maybe ECSServiceMetricName)
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
eCSServiceUtilizationMetric_statistic :: Lens' ECSServiceUtilizationMetric (Maybe ECSServiceMetricStatistic)
-- | The value of the utilization metric.
eCSServiceUtilizationMetric_value :: Lens' ECSServiceUtilizationMetric (Maybe Double)
-- | Describes the effective recommendation preferences for a resource.
--
-- See: newEffectiveRecommendationPreferences smart
-- constructor.
data EffectiveRecommendationPreferences
EffectiveRecommendationPreferences' :: Maybe [CpuVendorArchitecture] -> Maybe EnhancedInfrastructureMetrics -> Maybe ExternalMetricsPreference -> Maybe InferredWorkloadTypesPreference -> EffectiveRecommendationPreferences
-- | Describes the CPU vendor and architecture for an instance or Auto
-- Scaling group recommendations.
--
-- For example, when you specify AWS_ARM64 with:
--
--
-- - A GetEC2InstanceRecommendations or
-- GetAutoScalingGroupRecommendations request, Compute Optimizer returns
-- recommendations that consist of Graviton2 instance types only.
-- - A GetEC2RecommendationProjectedMetrics request, Compute Optimizer
-- returns projected utilization metrics for Graviton2 instance type
-- recommendations only.
-- - A ExportEC2InstanceRecommendations or
-- ExportAutoScalingGroupRecommendations request, Compute Optimizer
-- exports recommendations that consist of Graviton2 instance types
-- only.
--
[$sel:cpuVendorArchitectures:EffectiveRecommendationPreferences'] :: EffectiveRecommendationPreferences -> Maybe [CpuVendorArchitecture]
-- | Describes the activation status of the enhanced infrastructure metrics
-- preference.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh, and a status of Inactive
-- confirms that it's not yet applied to recommendations.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
[$sel:enhancedInfrastructureMetrics:EffectiveRecommendationPreferences'] :: EffectiveRecommendationPreferences -> Maybe EnhancedInfrastructureMetrics
-- | An object that describes the external metrics recommendation
-- preference.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
[$sel:externalMetricsPreference:EffectiveRecommendationPreferences'] :: EffectiveRecommendationPreferences -> Maybe ExternalMetricsPreference
-- | Describes the activation status of the inferred workload types
-- preference.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh. A status of Inactive
-- confirms that it's not yet applied to recommendations.
[$sel:inferredWorkloadTypes:EffectiveRecommendationPreferences'] :: EffectiveRecommendationPreferences -> Maybe InferredWorkloadTypesPreference
-- | Create a value of EffectiveRecommendationPreferences with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:cpuVendorArchitectures:EffectiveRecommendationPreferences',
-- effectiveRecommendationPreferences_cpuVendorArchitectures -
-- Describes the CPU vendor and architecture for an instance or Auto
-- Scaling group recommendations.
--
-- For example, when you specify AWS_ARM64 with:
--
--
-- - A GetEC2InstanceRecommendations or
-- GetAutoScalingGroupRecommendations request, Compute Optimizer returns
-- recommendations that consist of Graviton2 instance types only.
-- - A GetEC2RecommendationProjectedMetrics request, Compute Optimizer
-- returns projected utilization metrics for Graviton2 instance type
-- recommendations only.
-- - A ExportEC2InstanceRecommendations or
-- ExportAutoScalingGroupRecommendations request, Compute Optimizer
-- exports recommendations that consist of Graviton2 instance types
-- only.
--
--
--
-- $sel:enhancedInfrastructureMetrics:EffectiveRecommendationPreferences',
-- effectiveRecommendationPreferences_enhancedInfrastructureMetrics
-- - Describes the activation status of the enhanced infrastructure
-- metrics preference.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh, and a status of Inactive
-- confirms that it's not yet applied to recommendations.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
--
--
-- $sel:externalMetricsPreference:EffectiveRecommendationPreferences',
-- effectiveRecommendationPreferences_externalMetricsPreference -
-- An object that describes the external metrics recommendation
-- preference.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
--
-- $sel:inferredWorkloadTypes:EffectiveRecommendationPreferences',
-- effectiveRecommendationPreferences_inferredWorkloadTypes -
-- Describes the activation status of the inferred workload types
-- preference.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh. A status of Inactive
-- confirms that it's not yet applied to recommendations.
newEffectiveRecommendationPreferences :: EffectiveRecommendationPreferences
-- | Describes the CPU vendor and architecture for an instance or Auto
-- Scaling group recommendations.
--
-- For example, when you specify AWS_ARM64 with:
--
--
-- - A GetEC2InstanceRecommendations or
-- GetAutoScalingGroupRecommendations request, Compute Optimizer returns
-- recommendations that consist of Graviton2 instance types only.
-- - A GetEC2RecommendationProjectedMetrics request, Compute Optimizer
-- returns projected utilization metrics for Graviton2 instance type
-- recommendations only.
-- - A ExportEC2InstanceRecommendations or
-- ExportAutoScalingGroupRecommendations request, Compute Optimizer
-- exports recommendations that consist of Graviton2 instance types
-- only.
--
effectiveRecommendationPreferences_cpuVendorArchitectures :: Lens' EffectiveRecommendationPreferences (Maybe [CpuVendorArchitecture])
-- | Describes the activation status of the enhanced infrastructure metrics
-- preference.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh, and a status of Inactive
-- confirms that it's not yet applied to recommendations.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
effectiveRecommendationPreferences_enhancedInfrastructureMetrics :: Lens' EffectiveRecommendationPreferences (Maybe EnhancedInfrastructureMetrics)
-- | An object that describes the external metrics recommendation
-- preference.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
effectiveRecommendationPreferences_externalMetricsPreference :: Lens' EffectiveRecommendationPreferences (Maybe ExternalMetricsPreference)
-- | Describes the activation status of the inferred workload types
-- preference.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh. A status of Inactive
-- confirms that it's not yet applied to recommendations.
effectiveRecommendationPreferences_inferredWorkloadTypes :: Lens' EffectiveRecommendationPreferences (Maybe InferredWorkloadTypesPreference)
-- | Describes a filter that returns a more specific list of account
-- enrollment statuses. Use this filter with the
-- GetEnrollmentStatusesForOrganization action.
--
-- See: newEnrollmentFilter smart constructor.
data EnrollmentFilter
EnrollmentFilter' :: Maybe EnrollmentFilterName -> Maybe [Text] -> EnrollmentFilter
-- | The name of the filter.
--
-- Specify Status to return accounts with a specific enrollment
-- status (for example, Active).
[$sel:name:EnrollmentFilter'] :: EnrollmentFilter -> Maybe EnrollmentFilterName
-- | The value of the filter.
--
-- The valid values are Active, Inactive,
-- Pending, and Failed.
[$sel:values:EnrollmentFilter'] :: EnrollmentFilter -> Maybe [Text]
-- | Create a value of EnrollmentFilter with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:EnrollmentFilter', enrollmentFilter_name - The
-- name of the filter.
--
-- Specify Status to return accounts with a specific enrollment
-- status (for example, Active).
--
-- $sel:values:EnrollmentFilter', enrollmentFilter_values -
-- The value of the filter.
--
-- The valid values are Active, Inactive,
-- Pending, and Failed.
newEnrollmentFilter :: EnrollmentFilter
-- | The name of the filter.
--
-- Specify Status to return accounts with a specific enrollment
-- status (for example, Active).
enrollmentFilter_name :: Lens' EnrollmentFilter (Maybe EnrollmentFilterName)
-- | The value of the filter.
--
-- The valid values are Active, Inactive,
-- Pending, and Failed.
enrollmentFilter_values :: Lens' EnrollmentFilter (Maybe [Text])
-- | Describes the estimated monthly savings amount possible, based on
-- On-Demand instance pricing, by adopting Compute Optimizer
-- recommendations for a given resource.
--
-- For more information, see Estimated monthly savings and savings
-- opportunities in the Compute Optimizer User Guide.
--
-- See: newEstimatedMonthlySavings smart constructor.
data EstimatedMonthlySavings
EstimatedMonthlySavings' :: Maybe Currency -> Maybe Double -> EstimatedMonthlySavings
-- | The currency of the estimated monthly savings.
[$sel:currency:EstimatedMonthlySavings'] :: EstimatedMonthlySavings -> Maybe Currency
-- | The value of the estimated monthly savings.
[$sel:value:EstimatedMonthlySavings'] :: EstimatedMonthlySavings -> Maybe Double
-- | Create a value of EstimatedMonthlySavings with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:currency:EstimatedMonthlySavings',
-- estimatedMonthlySavings_currency - The currency of the
-- estimated monthly savings.
--
-- $sel:value:EstimatedMonthlySavings',
-- estimatedMonthlySavings_value - The value of the estimated
-- monthly savings.
newEstimatedMonthlySavings :: EstimatedMonthlySavings
-- | The currency of the estimated monthly savings.
estimatedMonthlySavings_currency :: Lens' EstimatedMonthlySavings (Maybe Currency)
-- | The value of the estimated monthly savings.
estimatedMonthlySavings_value :: Lens' EstimatedMonthlySavings (Maybe Double)
-- | Describes the destination of the recommendations export and metadata
-- files.
--
-- See: newExportDestination smart constructor.
data ExportDestination
ExportDestination' :: Maybe S3Destination -> ExportDestination
-- | An object that describes the destination Amazon Simple Storage Service
-- (Amazon S3) bucket name and object keys of a recommendations export
-- file, and its associated metadata file.
[$sel:s3:ExportDestination'] :: ExportDestination -> Maybe S3Destination
-- | Create a value of ExportDestination with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:s3:ExportDestination', exportDestination_s3 - An
-- object that describes the destination Amazon Simple Storage Service
-- (Amazon S3) bucket name and object keys of a recommendations export
-- file, and its associated metadata file.
newExportDestination :: ExportDestination
-- | An object that describes the destination Amazon Simple Storage Service
-- (Amazon S3) bucket name and object keys of a recommendations export
-- file, and its associated metadata file.
exportDestination_s3 :: Lens' ExportDestination (Maybe S3Destination)
-- | Describes the external metrics preferences for EC2 rightsizing
-- recommendations.
--
-- See: newExternalMetricsPreference smart constructor.
data ExternalMetricsPreference
ExternalMetricsPreference' :: Maybe ExternalMetricsSource -> ExternalMetricsPreference
-- | Contains the source options for external metrics preferences.
[$sel:source:ExternalMetricsPreference'] :: ExternalMetricsPreference -> Maybe ExternalMetricsSource
-- | Create a value of ExternalMetricsPreference with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:source:ExternalMetricsPreference',
-- externalMetricsPreference_source - Contains the source options
-- for external metrics preferences.
newExternalMetricsPreference :: ExternalMetricsPreference
-- | Contains the source options for external metrics preferences.
externalMetricsPreference_source :: Lens' ExternalMetricsPreference (Maybe ExternalMetricsSource)
-- | Describes a filter that returns a more specific list of
-- recommendations. Use this filter with the
-- GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations
-- actions.
--
-- You can use EBSFilter with the GetEBSVolumeRecommendations
-- action, LambdaFunctionRecommendationFilter with the
-- GetLambdaFunctionRecommendations action, and JobFilter with
-- the DescribeRecommendationExportJobs action.
--
-- See: newFilter smart constructor.
data Filter
Filter' :: Maybe FilterName -> Maybe [Text] -> Filter
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, Underprovisioned).
--
-- Specify RecommendationSourceType to return recommendations of
-- a specific resource type (for example, Ec2Instance).
--
-- Specify FindingReasonCodes to return recommendations with a
-- specific finding reason code (for example,
-- CPUUnderprovisioned).
[$sel:name:Filter'] :: Filter -> Maybe FilterName
-- | The value of the filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter and the resource type that
-- you wish to filter results for:
--
--
-- - Specify Optimized or NotOptimized if you specify
-- the name parameter as Finding and you want to filter
-- results for Auto Scaling groups.
-- - Specify Underprovisioned, Overprovisioned, or
-- Optimized if you specify the name parameter as
-- Finding and you want to filter results for EC2
-- instances.
-- - Specify Ec2Instance or AutoScalingGroup if you
-- specify the name parameter as
-- RecommendationSourceType.
-- - Specify one of the following options if you specify the
-- name parameter as
-- FindingReasonCodes:
- CPUOverprovisioned
-- — The instance’s CPU configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- CPUUnderprovisioned — The instance’s
-- CPU configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better CPU performance.
- MemoryOverprovisioned
-- — The instance’s memory configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- MemoryUnderprovisioned — The
-- instance’s memory configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better memory
-- performance.
- EBSThroughputOverprovisioned —
-- The instance’s EBS throughput configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- EBSThroughputUnderprovisioned — The
-- instance’s EBS throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better EBS throughput
-- performance.
- EBSIOPSOverprovisioned — The
-- instance’s EBS IOPS configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- EBSIOPSUnderprovisioned — The
-- instance’s EBS IOPS configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better EBS IOPS
-- performance.
- NetworkBandwidthOverprovisioned —
-- The instance’s network bandwidth configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- NetworkBandwidthUnderprovisioned —
-- The instance’s network bandwidth configuration doesn't meet the
-- performance requirements of your workload and there is an alternative
-- instance type that provides better network bandwidth performance. This
-- finding reason happens when the NetworkIn or
-- NetworkOut performance of an instance is
-- impacted.
- NetworkPPSOverprovisioned — The
-- instance’s network PPS (packets per second) configuration can be sized
-- down while still meeting the performance requirements of your
-- workload.
- NetworkPPSUnderprovisioned — The
-- instance’s network PPS (packets per second) configuration doesn't meet
-- the performance requirements of your workload and there is an
-- alternative instance type that provides better network PPS
-- performance.
- DiskIOPSOverprovisioned — The
-- instance’s disk IOPS configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- DiskIOPSUnderprovisioned — The
-- instance’s disk IOPS configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk IOPS
-- performance.
- DiskThroughputOverprovisioned —
-- The instance’s disk throughput configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- DiskThroughputUnderprovisioned — The
-- instance’s disk throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk throughput performance.
--
[$sel:values:Filter'] :: Filter -> Maybe [Text]
-- | Create a value of Filter with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:Filter', filter_name - The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, Underprovisioned).
--
-- Specify RecommendationSourceType to return recommendations of
-- a specific resource type (for example, Ec2Instance).
--
-- Specify FindingReasonCodes to return recommendations with a
-- specific finding reason code (for example,
-- CPUUnderprovisioned).
--
-- $sel:values:Filter', filter_values - The value of the
-- filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter and the resource type that
-- you wish to filter results for:
--
--
-- - Specify Optimized or NotOptimized if you specify
-- the name parameter as Finding and you want to filter
-- results for Auto Scaling groups.
-- - Specify Underprovisioned, Overprovisioned, or
-- Optimized if you specify the name parameter as
-- Finding and you want to filter results for EC2
-- instances.
-- - Specify Ec2Instance or AutoScalingGroup if you
-- specify the name parameter as
-- RecommendationSourceType.
-- - Specify one of the following options if you specify the
-- name parameter as
-- FindingReasonCodes:
- CPUOverprovisioned
-- — The instance’s CPU configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- CPUUnderprovisioned — The instance’s
-- CPU configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better CPU performance.
- MemoryOverprovisioned
-- — The instance’s memory configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- MemoryUnderprovisioned — The
-- instance’s memory configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better memory
-- performance.
- EBSThroughputOverprovisioned —
-- The instance’s EBS throughput configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- EBSThroughputUnderprovisioned — The
-- instance’s EBS throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better EBS throughput
-- performance.
- EBSIOPSOverprovisioned — The
-- instance’s EBS IOPS configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- EBSIOPSUnderprovisioned — The
-- instance’s EBS IOPS configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better EBS IOPS
-- performance.
- NetworkBandwidthOverprovisioned —
-- The instance’s network bandwidth configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- NetworkBandwidthUnderprovisioned —
-- The instance’s network bandwidth configuration doesn't meet the
-- performance requirements of your workload and there is an alternative
-- instance type that provides better network bandwidth performance. This
-- finding reason happens when the NetworkIn or
-- NetworkOut performance of an instance is
-- impacted.
- NetworkPPSOverprovisioned — The
-- instance’s network PPS (packets per second) configuration can be sized
-- down while still meeting the performance requirements of your
-- workload.
- NetworkPPSUnderprovisioned — The
-- instance’s network PPS (packets per second) configuration doesn't meet
-- the performance requirements of your workload and there is an
-- alternative instance type that provides better network PPS
-- performance.
- DiskIOPSOverprovisioned — The
-- instance’s disk IOPS configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- DiskIOPSUnderprovisioned — The
-- instance’s disk IOPS configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk IOPS
-- performance.
- DiskThroughputOverprovisioned —
-- The instance’s disk throughput configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- DiskThroughputUnderprovisioned — The
-- instance’s disk throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk throughput performance.
--
newFilter :: Filter
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, Underprovisioned).
--
-- Specify RecommendationSourceType to return recommendations of
-- a specific resource type (for example, Ec2Instance).
--
-- Specify FindingReasonCodes to return recommendations with a
-- specific finding reason code (for example,
-- CPUUnderprovisioned).
filter_name :: Lens' Filter (Maybe FilterName)
-- | The value of the filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter and the resource type that
-- you wish to filter results for:
--
--
-- - Specify Optimized or NotOptimized if you specify
-- the name parameter as Finding and you want to filter
-- results for Auto Scaling groups.
-- - Specify Underprovisioned, Overprovisioned, or
-- Optimized if you specify the name parameter as
-- Finding and you want to filter results for EC2
-- instances.
-- - Specify Ec2Instance or AutoScalingGroup if you
-- specify the name parameter as
-- RecommendationSourceType.
-- - Specify one of the following options if you specify the
-- name parameter as
-- FindingReasonCodes:
- CPUOverprovisioned
-- — The instance’s CPU configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- CPUUnderprovisioned — The instance’s
-- CPU configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better CPU performance.
- MemoryOverprovisioned
-- — The instance’s memory configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- MemoryUnderprovisioned — The
-- instance’s memory configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better memory
-- performance.
- EBSThroughputOverprovisioned —
-- The instance’s EBS throughput configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- EBSThroughputUnderprovisioned — The
-- instance’s EBS throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better EBS throughput
-- performance.
- EBSIOPSOverprovisioned — The
-- instance’s EBS IOPS configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- EBSIOPSUnderprovisioned — The
-- instance’s EBS IOPS configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better EBS IOPS
-- performance.
- NetworkBandwidthOverprovisioned —
-- The instance’s network bandwidth configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- NetworkBandwidthUnderprovisioned —
-- The instance’s network bandwidth configuration doesn't meet the
-- performance requirements of your workload and there is an alternative
-- instance type that provides better network bandwidth performance. This
-- finding reason happens when the NetworkIn or
-- NetworkOut performance of an instance is
-- impacted.
- NetworkPPSOverprovisioned — The
-- instance’s network PPS (packets per second) configuration can be sized
-- down while still meeting the performance requirements of your
-- workload.
- NetworkPPSUnderprovisioned — The
-- instance’s network PPS (packets per second) configuration doesn't meet
-- the performance requirements of your workload and there is an
-- alternative instance type that provides better network PPS
-- performance.
- DiskIOPSOverprovisioned — The
-- instance’s disk IOPS configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- DiskIOPSUnderprovisioned — The
-- instance’s disk IOPS configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk IOPS
-- performance.
- DiskThroughputOverprovisioned —
-- The instance’s disk throughput configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- DiskThroughputUnderprovisioned — The
-- instance’s disk throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk throughput performance.
--
filter_values :: Lens' Filter (Maybe [Text])
-- | Describes an error experienced when getting recommendations.
--
-- For example, an error is returned if you request recommendations for
-- an unsupported Auto Scaling group, or if you request recommendations
-- for an instance of an unsupported instance family.
--
-- See: newGetRecommendationError smart constructor.
data GetRecommendationError
GetRecommendationError' :: Maybe Text -> Maybe Text -> Maybe Text -> GetRecommendationError
-- | The error code.
[$sel:code:GetRecommendationError'] :: GetRecommendationError -> Maybe Text
-- | The ID of the error.
[$sel:identifier:GetRecommendationError'] :: GetRecommendationError -> Maybe Text
-- | The message, or reason, for the error.
[$sel:message:GetRecommendationError'] :: GetRecommendationError -> Maybe Text
-- | Create a value of GetRecommendationError with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:code:GetRecommendationError',
-- getRecommendationError_code - The error code.
--
-- $sel:identifier:GetRecommendationError',
-- getRecommendationError_identifier - The ID of the error.
--
-- $sel:message:GetRecommendationError',
-- getRecommendationError_message - The message, or reason, for
-- the error.
newGetRecommendationError :: GetRecommendationError
-- | The error code.
getRecommendationError_code :: Lens' GetRecommendationError (Maybe Text)
-- | The ID of the error.
getRecommendationError_identifier :: Lens' GetRecommendationError (Maybe Text)
-- | The message, or reason, for the error.
getRecommendationError_message :: Lens' GetRecommendationError (Maybe Text)
-- | Describes an Amazon EC2 instance recommendation.
--
-- See: newInstanceRecommendation smart constructor.
data InstanceRecommendation
InstanceRecommendation' :: Maybe Text -> Maybe Text -> Maybe CurrentPerformanceRisk -> Maybe EffectiveRecommendationPreferences -> Maybe Finding -> Maybe [InstanceRecommendationFindingReasonCode] -> Maybe [InferredWorkloadType] -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Double -> Maybe [InstanceRecommendationOption] -> Maybe [RecommendationSource] -> Maybe [UtilizationMetric] -> InstanceRecommendation
-- | The Amazon Web Services account ID of the instance.
[$sel:accountId:InstanceRecommendation'] :: InstanceRecommendation -> Maybe Text
-- | The instance type of the current instance.
[$sel:currentInstanceType:InstanceRecommendation'] :: InstanceRecommendation -> Maybe Text
-- | The risk of the current instance not meeting the performance needs of
-- its workloads. The higher the risk, the more likely the current
-- instance cannot meet the performance requirements of its workload.
[$sel:currentPerformanceRisk:InstanceRecommendation'] :: InstanceRecommendation -> Maybe CurrentPerformanceRisk
-- | An object that describes the effective recommendation preferences for
-- the instance.
[$sel:effectiveRecommendationPreferences:InstanceRecommendation'] :: InstanceRecommendation -> Maybe EffectiveRecommendationPreferences
-- | The finding classification of the instance.
--
-- Findings for instances include:
--
--
-- - Underprovisioned —An instance is considered
-- under-provisioned when at least one specification of your instance,
-- such as CPU, memory, or network, does not meet the performance
-- requirements of your workload. Under-provisioned instances may lead to
-- poor application performance.
-- - Overprovisioned —An instance is considered
-- over-provisioned when at least one specification of your instance,
-- such as CPU, memory, or network, can be sized down while still meeting
-- the performance requirements of your workload, and no specification is
-- under-provisioned. Over-provisioned instances may lead to unnecessary
-- infrastructure cost.
-- - Optimized —An instance is considered optimized
-- when all specifications of your instance, such as CPU, memory, and
-- network, meet the performance requirements of your workload and is not
-- over provisioned. For optimized resources, Compute Optimizer might
-- recommend a new generation instance type.
--
[$sel:finding:InstanceRecommendation'] :: InstanceRecommendation -> Maybe Finding
-- | The reason for the finding classification of the instance.
--
-- Finding reason codes for instances include:
--
--
-- - CPUOverprovisioned — The instance’s CPU
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- CPUUtilization metric of the current instance during the
-- look-back period.
-- - CPUUnderprovisioned — The instance’s CPU
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better CPU performance. This is identified by analyzing the
-- CPUUtilization metric of the current instance during the
-- look-back period.
-- - MemoryOverprovisioned — The instance’s memory
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- memory utilization metric of the current instance during the look-back
-- period.
-- - MemoryUnderprovisioned — The instance’s memory
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better memory performance. This is identified by analyzing the memory
-- utilization metric of the current instance during the look-back
-- period.Memory utilization is analyzed only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling memory utilization with the Amazon CloudWatch Agent in
-- the Compute Optimizer User Guide. On Linux instances, Compute
-- Optimizer analyses the mem_used_percent metric in the
-- CWAgent namespace, or the legacy MemoryUtilization
-- metric in the System/Linux namespace. On Windows instances,
-- Compute Optimizer analyses the Memory % Committed Bytes In
-- Use metric in the CWAgent namespace.
-- - EBSThroughputOverprovisioned — The instance’s EBS
-- throughput configuration can be sized down while still meeting the
-- performance requirements of your workload. This is identified by
-- analyzing the VolumeReadOps and VolumeWriteOps
-- metrics of EBS volumes attached to the current instance during the
-- look-back period.
-- - EBSThroughputUnderprovisioned — The instance’s EBS
-- throughput configuration doesn't meet the performance requirements of
-- your workload and there is an alternative instance type that provides
-- better EBS throughput performance. This is identified by analyzing the
-- VolumeReadOps and VolumeWriteOps metrics of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - EBSIOPSOverprovisioned — The instance’s EBS IOPS
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- VolumeReadBytes and VolumeWriteBytes metric of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - EBSIOPSUnderprovisioned — The instance’s EBS IOPS
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better EBS IOPS performance. This is identified by analyzing the
-- VolumeReadBytes and VolumeWriteBytes metric of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - NetworkBandwidthOverprovisioned — The instance’s
-- network bandwidth configuration can be sized down while still meeting
-- the performance requirements of your workload. This is identified by
-- analyzing the NetworkIn and NetworkOut metrics of
-- the current instance during the look-back period.
-- - NetworkBandwidthUnderprovisioned — The instance’s
-- network bandwidth configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better network bandwidth performance. This is
-- identified by analyzing the NetworkIn and NetworkOut
-- metrics of the current instance during the look-back period. This
-- finding reason happens when the NetworkIn or
-- NetworkOut performance of an instance is impacted.
-- - NetworkPPSOverprovisioned — The instance’s network
-- PPS (packets per second) configuration can be sized down while still
-- meeting the performance requirements of your workload. This is
-- identified by analyzing the NetworkPacketsIn and
-- NetworkPacketsIn metrics of the current instance during the
-- look-back period.
-- - NetworkPPSUnderprovisioned — The instance’s
-- network PPS (packets per second) configuration doesn't meet the
-- performance requirements of your workload and there is an alternative
-- instance type that provides better network PPS performance. This is
-- identified by analyzing the NetworkPacketsIn and
-- NetworkPacketsIn metrics of the current instance during the
-- look-back period.
-- - DiskIOPSOverprovisioned — The instance’s disk IOPS
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- DiskReadOps and DiskWriteOps metrics of the current
-- instance during the look-back period.
-- - DiskIOPSUnderprovisioned — The instance’s disk
-- IOPS configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better disk IOPS performance. This is identified by analyzing the
-- DiskReadOps and DiskWriteOps metrics of the current
-- instance during the look-back period.
-- - DiskThroughputOverprovisioned — The instance’s
-- disk throughput configuration can be sized down while still meeting
-- the performance requirements of your workload. This is identified by
-- analyzing the DiskReadBytes and DiskWriteBytes
-- metrics of the current instance during the look-back period.
-- - DiskThroughputUnderprovisioned — The instance’s
-- disk throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk throughput performance. This is
-- identified by analyzing the DiskReadBytes and
-- DiskWriteBytes metrics of the current instance during the
-- look-back period.
--
--
-- For more information about instance metrics, see List the available
-- CloudWatch metrics for your instances in the Amazon Elastic
-- Compute Cloud User Guide. For more information about EBS volume
-- metrics, see Amazon CloudWatch metrics for Amazon EBS in the
-- Amazon Elastic Compute Cloud User Guide.
[$sel:findingReasonCodes:InstanceRecommendation'] :: InstanceRecommendation -> Maybe [InstanceRecommendationFindingReasonCode]
-- | The applications that might be running on the instance as inferred by
-- Compute Optimizer.
--
-- Compute Optimizer can infer if one of the following applications might
-- be running on the instance:
--
--
-- - AmazonEmr - Infers that Amazon EMR might be running on
-- the instance.
-- - ApacheCassandra - Infers that Apache Cassandra might be
-- running on the instance.
-- - ApacheHadoop - Infers that Apache Hadoop might be running
-- on the instance.
-- - Memcached - Infers that Memcached might be running on the
-- instance.
-- - NGINX - Infers that NGINX might be running on the
-- instance.
-- - PostgreSql - Infers that PostgreSQL might be running on
-- the instance.
-- - Redis - Infers that Redis might be running on the
-- instance.
--
[$sel:inferredWorkloadTypes:InstanceRecommendation'] :: InstanceRecommendation -> Maybe [InferredWorkloadType]
-- | The Amazon Resource Name (ARN) of the current instance.
[$sel:instanceArn:InstanceRecommendation'] :: InstanceRecommendation -> Maybe Text
-- | The name of the current instance.
[$sel:instanceName:InstanceRecommendation'] :: InstanceRecommendation -> Maybe Text
-- | The timestamp of when the instance recommendation was last generated.
[$sel:lastRefreshTimestamp:InstanceRecommendation'] :: InstanceRecommendation -> Maybe POSIX
-- | The number of days for which utilization metrics were analyzed for the
-- instance.
[$sel:lookBackPeriodInDays:InstanceRecommendation'] :: InstanceRecommendation -> Maybe Double
-- | An array of objects that describe the recommendation options for the
-- instance.
[$sel:recommendationOptions:InstanceRecommendation'] :: InstanceRecommendation -> Maybe [InstanceRecommendationOption]
-- | An array of objects that describe the source resource of the
-- recommendation.
[$sel:recommendationSources:InstanceRecommendation'] :: InstanceRecommendation -> Maybe [RecommendationSource]
-- | An array of objects that describe the utilization metrics of the
-- instance.
[$sel:utilizationMetrics:InstanceRecommendation'] :: InstanceRecommendation -> Maybe [UtilizationMetric]
-- | Create a value of InstanceRecommendation with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:InstanceRecommendation',
-- instanceRecommendation_accountId - The Amazon Web Services
-- account ID of the instance.
--
-- $sel:currentInstanceType:InstanceRecommendation',
-- instanceRecommendation_currentInstanceType - The instance type
-- of the current instance.
--
-- $sel:currentPerformanceRisk:InstanceRecommendation',
-- instanceRecommendation_currentPerformanceRisk - The risk of the
-- current instance not meeting the performance needs of its workloads.
-- The higher the risk, the more likely the current instance cannot meet
-- the performance requirements of its workload.
--
--
-- $sel:effectiveRecommendationPreferences:InstanceRecommendation',
-- instanceRecommendation_effectiveRecommendationPreferences - An
-- object that describes the effective recommendation preferences for the
-- instance.
--
-- $sel:finding:InstanceRecommendation',
-- instanceRecommendation_finding - The finding classification of
-- the instance.
--
-- Findings for instances include:
--
--
-- - Underprovisioned —An instance is considered
-- under-provisioned when at least one specification of your instance,
-- such as CPU, memory, or network, does not meet the performance
-- requirements of your workload. Under-provisioned instances may lead to
-- poor application performance.
-- - Overprovisioned —An instance is considered
-- over-provisioned when at least one specification of your instance,
-- such as CPU, memory, or network, can be sized down while still meeting
-- the performance requirements of your workload, and no specification is
-- under-provisioned. Over-provisioned instances may lead to unnecessary
-- infrastructure cost.
-- - Optimized —An instance is considered optimized
-- when all specifications of your instance, such as CPU, memory, and
-- network, meet the performance requirements of your workload and is not
-- over provisioned. For optimized resources, Compute Optimizer might
-- recommend a new generation instance type.
--
--
-- $sel:findingReasonCodes:InstanceRecommendation',
-- instanceRecommendation_findingReasonCodes - The reason for the
-- finding classification of the instance.
--
-- Finding reason codes for instances include:
--
--
-- - CPUOverprovisioned — The instance’s CPU
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- CPUUtilization metric of the current instance during the
-- look-back period.
-- - CPUUnderprovisioned — The instance’s CPU
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better CPU performance. This is identified by analyzing the
-- CPUUtilization metric of the current instance during the
-- look-back period.
-- - MemoryOverprovisioned — The instance’s memory
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- memory utilization metric of the current instance during the look-back
-- period.
-- - MemoryUnderprovisioned — The instance’s memory
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better memory performance. This is identified by analyzing the memory
-- utilization metric of the current instance during the look-back
-- period.Memory utilization is analyzed only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling memory utilization with the Amazon CloudWatch Agent in
-- the Compute Optimizer User Guide. On Linux instances, Compute
-- Optimizer analyses the mem_used_percent metric in the
-- CWAgent namespace, or the legacy MemoryUtilization
-- metric in the System/Linux namespace. On Windows instances,
-- Compute Optimizer analyses the Memory % Committed Bytes In
-- Use metric in the CWAgent namespace.
-- - EBSThroughputOverprovisioned — The instance’s EBS
-- throughput configuration can be sized down while still meeting the
-- performance requirements of your workload. This is identified by
-- analyzing the VolumeReadOps and VolumeWriteOps
-- metrics of EBS volumes attached to the current instance during the
-- look-back period.
-- - EBSThroughputUnderprovisioned — The instance’s EBS
-- throughput configuration doesn't meet the performance requirements of
-- your workload and there is an alternative instance type that provides
-- better EBS throughput performance. This is identified by analyzing the
-- VolumeReadOps and VolumeWriteOps metrics of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - EBSIOPSOverprovisioned — The instance’s EBS IOPS
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- VolumeReadBytes and VolumeWriteBytes metric of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - EBSIOPSUnderprovisioned — The instance’s EBS IOPS
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better EBS IOPS performance. This is identified by analyzing the
-- VolumeReadBytes and VolumeWriteBytes metric of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - NetworkBandwidthOverprovisioned — The instance’s
-- network bandwidth configuration can be sized down while still meeting
-- the performance requirements of your workload. This is identified by
-- analyzing the NetworkIn and NetworkOut metrics of
-- the current instance during the look-back period.
-- - NetworkBandwidthUnderprovisioned — The instance’s
-- network bandwidth configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better network bandwidth performance. This is
-- identified by analyzing the NetworkIn and NetworkOut
-- metrics of the current instance during the look-back period. This
-- finding reason happens when the NetworkIn or
-- NetworkOut performance of an instance is impacted.
-- - NetworkPPSOverprovisioned — The instance’s network
-- PPS (packets per second) configuration can be sized down while still
-- meeting the performance requirements of your workload. This is
-- identified by analyzing the NetworkPacketsIn and
-- NetworkPacketsIn metrics of the current instance during the
-- look-back period.
-- - NetworkPPSUnderprovisioned — The instance’s
-- network PPS (packets per second) configuration doesn't meet the
-- performance requirements of your workload and there is an alternative
-- instance type that provides better network PPS performance. This is
-- identified by analyzing the NetworkPacketsIn and
-- NetworkPacketsIn metrics of the current instance during the
-- look-back period.
-- - DiskIOPSOverprovisioned — The instance’s disk IOPS
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- DiskReadOps and DiskWriteOps metrics of the current
-- instance during the look-back period.
-- - DiskIOPSUnderprovisioned — The instance’s disk
-- IOPS configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better disk IOPS performance. This is identified by analyzing the
-- DiskReadOps and DiskWriteOps metrics of the current
-- instance during the look-back period.
-- - DiskThroughputOverprovisioned — The instance’s
-- disk throughput configuration can be sized down while still meeting
-- the performance requirements of your workload. This is identified by
-- analyzing the DiskReadBytes and DiskWriteBytes
-- metrics of the current instance during the look-back period.
-- - DiskThroughputUnderprovisioned — The instance’s
-- disk throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk throughput performance. This is
-- identified by analyzing the DiskReadBytes and
-- DiskWriteBytes metrics of the current instance during the
-- look-back period.
--
--
-- For more information about instance metrics, see List the available
-- CloudWatch metrics for your instances in the Amazon Elastic
-- Compute Cloud User Guide. For more information about EBS volume
-- metrics, see Amazon CloudWatch metrics for Amazon EBS in the
-- Amazon Elastic Compute Cloud User Guide.
--
-- InstanceRecommendation,
-- instanceRecommendation_inferredWorkloadTypes - The applications
-- that might be running on the instance as inferred by Compute
-- Optimizer.
--
-- Compute Optimizer can infer if one of the following applications might
-- be running on the instance:
--
--
-- - AmazonEmr - Infers that Amazon EMR might be running on
-- the instance.
-- - ApacheCassandra - Infers that Apache Cassandra might be
-- running on the instance.
-- - ApacheHadoop - Infers that Apache Hadoop might be running
-- on the instance.
-- - Memcached - Infers that Memcached might be running on the
-- instance.
-- - NGINX - Infers that NGINX might be running on the
-- instance.
-- - PostgreSql - Infers that PostgreSQL might be running on
-- the instance.
-- - Redis - Infers that Redis might be running on the
-- instance.
--
--
-- $sel:instanceArn:InstanceRecommendation',
-- instanceRecommendation_instanceArn - The Amazon Resource Name
-- (ARN) of the current instance.
--
-- $sel:instanceName:InstanceRecommendation',
-- instanceRecommendation_instanceName - The name of the current
-- instance.
--
-- $sel:lastRefreshTimestamp:InstanceRecommendation',
-- instanceRecommendation_lastRefreshTimestamp - The timestamp of
-- when the instance recommendation was last generated.
--
-- $sel:lookBackPeriodInDays:InstanceRecommendation',
-- instanceRecommendation_lookBackPeriodInDays - The number of
-- days for which utilization metrics were analyzed for the instance.
--
-- $sel:recommendationOptions:InstanceRecommendation',
-- instanceRecommendation_recommendationOptions - An array of
-- objects that describe the recommendation options for the instance.
--
-- $sel:recommendationSources:InstanceRecommendation',
-- instanceRecommendation_recommendationSources - An array of
-- objects that describe the source resource of the recommendation.
--
-- $sel:utilizationMetrics:InstanceRecommendation',
-- instanceRecommendation_utilizationMetrics - An array of objects
-- that describe the utilization metrics of the instance.
newInstanceRecommendation :: InstanceRecommendation
-- | The Amazon Web Services account ID of the instance.
instanceRecommendation_accountId :: Lens' InstanceRecommendation (Maybe Text)
-- | The instance type of the current instance.
instanceRecommendation_currentInstanceType :: Lens' InstanceRecommendation (Maybe Text)
-- | The risk of the current instance not meeting the performance needs of
-- its workloads. The higher the risk, the more likely the current
-- instance cannot meet the performance requirements of its workload.
instanceRecommendation_currentPerformanceRisk :: Lens' InstanceRecommendation (Maybe CurrentPerformanceRisk)
-- | An object that describes the effective recommendation preferences for
-- the instance.
instanceRecommendation_effectiveRecommendationPreferences :: Lens' InstanceRecommendation (Maybe EffectiveRecommendationPreferences)
-- | The finding classification of the instance.
--
-- Findings for instances include:
--
--
-- - Underprovisioned —An instance is considered
-- under-provisioned when at least one specification of your instance,
-- such as CPU, memory, or network, does not meet the performance
-- requirements of your workload. Under-provisioned instances may lead to
-- poor application performance.
-- - Overprovisioned —An instance is considered
-- over-provisioned when at least one specification of your instance,
-- such as CPU, memory, or network, can be sized down while still meeting
-- the performance requirements of your workload, and no specification is
-- under-provisioned. Over-provisioned instances may lead to unnecessary
-- infrastructure cost.
-- - Optimized —An instance is considered optimized
-- when all specifications of your instance, such as CPU, memory, and
-- network, meet the performance requirements of your workload and is not
-- over provisioned. For optimized resources, Compute Optimizer might
-- recommend a new generation instance type.
--
instanceRecommendation_finding :: Lens' InstanceRecommendation (Maybe Finding)
-- | The reason for the finding classification of the instance.
--
-- Finding reason codes for instances include:
--
--
-- - CPUOverprovisioned — The instance’s CPU
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- CPUUtilization metric of the current instance during the
-- look-back period.
-- - CPUUnderprovisioned — The instance’s CPU
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better CPU performance. This is identified by analyzing the
-- CPUUtilization metric of the current instance during the
-- look-back period.
-- - MemoryOverprovisioned — The instance’s memory
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- memory utilization metric of the current instance during the look-back
-- period.
-- - MemoryUnderprovisioned — The instance’s memory
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better memory performance. This is identified by analyzing the memory
-- utilization metric of the current instance during the look-back
-- period.Memory utilization is analyzed only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling memory utilization with the Amazon CloudWatch Agent in
-- the Compute Optimizer User Guide. On Linux instances, Compute
-- Optimizer analyses the mem_used_percent metric in the
-- CWAgent namespace, or the legacy MemoryUtilization
-- metric in the System/Linux namespace. On Windows instances,
-- Compute Optimizer analyses the Memory % Committed Bytes In
-- Use metric in the CWAgent namespace.
-- - EBSThroughputOverprovisioned — The instance’s EBS
-- throughput configuration can be sized down while still meeting the
-- performance requirements of your workload. This is identified by
-- analyzing the VolumeReadOps and VolumeWriteOps
-- metrics of EBS volumes attached to the current instance during the
-- look-back period.
-- - EBSThroughputUnderprovisioned — The instance’s EBS
-- throughput configuration doesn't meet the performance requirements of
-- your workload and there is an alternative instance type that provides
-- better EBS throughput performance. This is identified by analyzing the
-- VolumeReadOps and VolumeWriteOps metrics of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - EBSIOPSOverprovisioned — The instance’s EBS IOPS
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- VolumeReadBytes and VolumeWriteBytes metric of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - EBSIOPSUnderprovisioned — The instance’s EBS IOPS
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better EBS IOPS performance. This is identified by analyzing the
-- VolumeReadBytes and VolumeWriteBytes metric of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - NetworkBandwidthOverprovisioned — The instance’s
-- network bandwidth configuration can be sized down while still meeting
-- the performance requirements of your workload. This is identified by
-- analyzing the NetworkIn and NetworkOut metrics of
-- the current instance during the look-back period.
-- - NetworkBandwidthUnderprovisioned — The instance’s
-- network bandwidth configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better network bandwidth performance. This is
-- identified by analyzing the NetworkIn and NetworkOut
-- metrics of the current instance during the look-back period. This
-- finding reason happens when the NetworkIn or
-- NetworkOut performance of an instance is impacted.
-- - NetworkPPSOverprovisioned — The instance’s network
-- PPS (packets per second) configuration can be sized down while still
-- meeting the performance requirements of your workload. This is
-- identified by analyzing the NetworkPacketsIn and
-- NetworkPacketsIn metrics of the current instance during the
-- look-back period.
-- - NetworkPPSUnderprovisioned — The instance’s
-- network PPS (packets per second) configuration doesn't meet the
-- performance requirements of your workload and there is an alternative
-- instance type that provides better network PPS performance. This is
-- identified by analyzing the NetworkPacketsIn and
-- NetworkPacketsIn metrics of the current instance during the
-- look-back period.
-- - DiskIOPSOverprovisioned — The instance’s disk IOPS
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- DiskReadOps and DiskWriteOps metrics of the current
-- instance during the look-back period.
-- - DiskIOPSUnderprovisioned — The instance’s disk
-- IOPS configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better disk IOPS performance. This is identified by analyzing the
-- DiskReadOps and DiskWriteOps metrics of the current
-- instance during the look-back period.
-- - DiskThroughputOverprovisioned — The instance’s
-- disk throughput configuration can be sized down while still meeting
-- the performance requirements of your workload. This is identified by
-- analyzing the DiskReadBytes and DiskWriteBytes
-- metrics of the current instance during the look-back period.
-- - DiskThroughputUnderprovisioned — The instance’s
-- disk throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk throughput performance. This is
-- identified by analyzing the DiskReadBytes and
-- DiskWriteBytes metrics of the current instance during the
-- look-back period.
--
--
-- For more information about instance metrics, see List the available
-- CloudWatch metrics for your instances in the Amazon Elastic
-- Compute Cloud User Guide. For more information about EBS volume
-- metrics, see Amazon CloudWatch metrics for Amazon EBS in the
-- Amazon Elastic Compute Cloud User Guide.
instanceRecommendation_findingReasonCodes :: Lens' InstanceRecommendation (Maybe [InstanceRecommendationFindingReasonCode])
-- | The applications that might be running on the instance as inferred by
-- Compute Optimizer.
--
-- Compute Optimizer can infer if one of the following applications might
-- be running on the instance:
--
--
-- - AmazonEmr - Infers that Amazon EMR might be running on
-- the instance.
-- - ApacheCassandra - Infers that Apache Cassandra might be
-- running on the instance.
-- - ApacheHadoop - Infers that Apache Hadoop might be running
-- on the instance.
-- - Memcached - Infers that Memcached might be running on the
-- instance.
-- - NGINX - Infers that NGINX might be running on the
-- instance.
-- - PostgreSql - Infers that PostgreSQL might be running on
-- the instance.
-- - Redis - Infers that Redis might be running on the
-- instance.
--
instanceRecommendation_inferredWorkloadTypes :: Lens' InstanceRecommendation (Maybe [InferredWorkloadType])
-- | The Amazon Resource Name (ARN) of the current instance.
instanceRecommendation_instanceArn :: Lens' InstanceRecommendation (Maybe Text)
-- | The name of the current instance.
instanceRecommendation_instanceName :: Lens' InstanceRecommendation (Maybe Text)
-- | The timestamp of when the instance recommendation was last generated.
instanceRecommendation_lastRefreshTimestamp :: Lens' InstanceRecommendation (Maybe UTCTime)
-- | The number of days for which utilization metrics were analyzed for the
-- instance.
instanceRecommendation_lookBackPeriodInDays :: Lens' InstanceRecommendation (Maybe Double)
-- | An array of objects that describe the recommendation options for the
-- instance.
instanceRecommendation_recommendationOptions :: Lens' InstanceRecommendation (Maybe [InstanceRecommendationOption])
-- | An array of objects that describe the source resource of the
-- recommendation.
instanceRecommendation_recommendationSources :: Lens' InstanceRecommendation (Maybe [RecommendationSource])
-- | An array of objects that describe the utilization metrics of the
-- instance.
instanceRecommendation_utilizationMetrics :: Lens' InstanceRecommendation (Maybe [UtilizationMetric])
-- | Describes a recommendation option for an Amazon EC2 instance.
--
-- See: newInstanceRecommendationOption smart constructor.
data InstanceRecommendationOption
InstanceRecommendationOption' :: Maybe Text -> Maybe MigrationEffort -> Maybe Double -> Maybe [PlatformDifference] -> Maybe [UtilizationMetric] -> Maybe Int -> Maybe SavingsOpportunity -> InstanceRecommendationOption
-- | The instance type of the instance recommendation.
[$sel:instanceType:InstanceRecommendationOption'] :: InstanceRecommendationOption -> Maybe Text
-- | 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.
[$sel:migrationEffort:InstanceRecommendationOption'] :: InstanceRecommendationOption -> Maybe MigrationEffort
-- | The performance risk of the instance recommendation option.
--
-- 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.
[$sel:performanceRisk:InstanceRecommendationOption'] :: InstanceRecommendationOption -> Maybe Double
-- | Describes the configuration differences between the current instance
-- and the recommended instance type. You should consider the
-- configuration differences before migrating your workloads from the
-- current instance to the recommended instance type. The Change the
-- instance type guide for Linux and Change the instance type
-- guide for Windows provide general guidance for getting started
-- with an instance migration.
--
-- Platform differences include:
--
--
-- - Hypervisor — The hypervisor of the recommended
-- instance type is different than that of the current instance. For
-- example, the recommended instance type uses a Nitro hypervisor and the
-- current instance uses a Xen hypervisor. The differences that you
-- should consider between these hypervisors are covered in the Nitro
-- Hypervisor section of the Amazon EC2 frequently asked questions.
-- For more information, see Instances built on the Nitro System
-- in the Amazon EC2 User Guide for Linux, or Instances built
-- on the Nitro System in the Amazon EC2 User Guide for
-- Windows.
-- - NetworkInterface — The network interface of the
-- recommended instance type is different than that of the current
-- instance. For example, the recommended instance type supports enhanced
-- networking and the current instance might not. To enable enhanced
-- networking for the recommended instance type, you must install the
-- Elastic Network Adapter (ENA) driver or the Intel 82599 Virtual
-- Function driver. For more information, see Networking and storage
-- features and Enhanced networking on Linux in the Amazon
-- EC2 User Guide for Linux, or Networking and storage
-- features and Enhanced networking on Windows in the
-- Amazon EC2 User Guide for Windows.
-- - StorageInterface — The storage interface of the
-- recommended instance type is different than that of the current
-- instance. For example, the recommended instance type uses an NVMe
-- storage interface and the current instance does not. To access NVMe
-- volumes for the recommended instance type, you will need to install or
-- upgrade the NVMe driver. For more information, see Networking and
-- storage features and Amazon EBS and NVMe on Linux instances
-- in the Amazon EC2 User Guide for Linux, or Networking and
-- storage features and Amazon EBS and NVMe on Windows
-- instances in the Amazon EC2 User Guide for Windows.
-- - InstanceStoreAvailability — The recommended
-- instance type does not support instance store volumes and the current
-- instance does. Before migrating, you might need to back up the data on
-- your instance store volumes if you want to preserve them. For more
-- information, see How do I back up an instance store volume on my
-- Amazon EC2 instance to Amazon EBS? in the Amazon Web Services
-- Premium Support Knowledge Base. For more information, see
-- Networking and storage features and Amazon EC2 instance
-- store in the Amazon EC2 User Guide for Linux, or see
-- Networking and storage features and Amazon EC2 instance
-- store in the Amazon EC2 User Guide for Windows.
-- - VirtualizationType — The recommended instance type
-- uses the hardware virtual machine (HVM) virtualization type and the
-- current instance uses the paravirtual (PV) virtualization type. For
-- more information about the differences between these virtualization
-- types, see Linux AMI virtualization types in the Amazon EC2
-- User Guide for Linux, or Windows AMI virtualization types
-- in the Amazon EC2 User Guide for Windows.
-- - Architecture — The CPU architecture between the
-- recommended instance type and the current instance is different. For
-- example, the recommended instance type might use an Arm CPU
-- architecture and the current instance type might use a different one,
-- such as x86. Before migrating, you should consider recompiling the
-- software on your instance for the new architecture. Alternatively, you
-- might switch to an Amazon Machine Image (AMI) that supports the new
-- architecture. For more information about the CPU architecture for each
-- instance type, see Amazon EC2 Instance Types.
--
[$sel:platformDifferences:InstanceRecommendationOption'] :: InstanceRecommendationOption -> Maybe [PlatformDifference]
-- | An array of objects that describe the projected utilization metrics of
-- the instance 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 Enabling Memory
-- Utilization with the CloudWatch Agent.
[$sel:projectedUtilizationMetrics:InstanceRecommendationOption'] :: InstanceRecommendationOption -> Maybe [UtilizationMetric]
-- | The rank of the instance recommendation option.
--
-- The top recommendation option is ranked as 1.
[$sel:rank:InstanceRecommendationOption'] :: InstanceRecommendationOption -> Maybe Int
-- | An object that describes the savings opportunity for the instance
-- recommendation option. Savings opportunity includes the estimated
-- monthly savings amount and percentage.
[$sel:savingsOpportunity:InstanceRecommendationOption'] :: InstanceRecommendationOption -> Maybe SavingsOpportunity
-- | Create a value of InstanceRecommendationOption with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:instanceType:InstanceRecommendationOption',
-- instanceRecommendationOption_instanceType - The instance type
-- of the instance recommendation.
--
-- $sel:migrationEffort:InstanceRecommendationOption',
-- instanceRecommendationOption_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.
--
-- $sel:performanceRisk:InstanceRecommendationOption',
-- instanceRecommendationOption_performanceRisk - The performance
-- risk of the instance recommendation option.
--
-- 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.
--
-- $sel:platformDifferences:InstanceRecommendationOption',
-- instanceRecommendationOption_platformDifferences - Describes
-- the configuration differences between the current instance and the
-- recommended instance type. You should consider the configuration
-- differences before migrating your workloads from the current instance
-- to the recommended instance type. The Change the instance type
-- guide for Linux and Change the instance type guide for
-- Windows provide general guidance for getting started with an
-- instance migration.
--
-- Platform differences include:
--
--
-- - Hypervisor — The hypervisor of the recommended
-- instance type is different than that of the current instance. For
-- example, the recommended instance type uses a Nitro hypervisor and the
-- current instance uses a Xen hypervisor. The differences that you
-- should consider between these hypervisors are covered in the Nitro
-- Hypervisor section of the Amazon EC2 frequently asked questions.
-- For more information, see Instances built on the Nitro System
-- in the Amazon EC2 User Guide for Linux, or Instances built
-- on the Nitro System in the Amazon EC2 User Guide for
-- Windows.
-- - NetworkInterface — The network interface of the
-- recommended instance type is different than that of the current
-- instance. For example, the recommended instance type supports enhanced
-- networking and the current instance might not. To enable enhanced
-- networking for the recommended instance type, you must install the
-- Elastic Network Adapter (ENA) driver or the Intel 82599 Virtual
-- Function driver. For more information, see Networking and storage
-- features and Enhanced networking on Linux in the Amazon
-- EC2 User Guide for Linux, or Networking and storage
-- features and Enhanced networking on Windows in the
-- Amazon EC2 User Guide for Windows.
-- - StorageInterface — The storage interface of the
-- recommended instance type is different than that of the current
-- instance. For example, the recommended instance type uses an NVMe
-- storage interface and the current instance does not. To access NVMe
-- volumes for the recommended instance type, you will need to install or
-- upgrade the NVMe driver. For more information, see Networking and
-- storage features and Amazon EBS and NVMe on Linux instances
-- in the Amazon EC2 User Guide for Linux, or Networking and
-- storage features and Amazon EBS and NVMe on Windows
-- instances in the Amazon EC2 User Guide for Windows.
-- - InstanceStoreAvailability — The recommended
-- instance type does not support instance store volumes and the current
-- instance does. Before migrating, you might need to back up the data on
-- your instance store volumes if you want to preserve them. For more
-- information, see How do I back up an instance store volume on my
-- Amazon EC2 instance to Amazon EBS? in the Amazon Web Services
-- Premium Support Knowledge Base. For more information, see
-- Networking and storage features and Amazon EC2 instance
-- store in the Amazon EC2 User Guide for Linux, or see
-- Networking and storage features and Amazon EC2 instance
-- store in the Amazon EC2 User Guide for Windows.
-- - VirtualizationType — The recommended instance type
-- uses the hardware virtual machine (HVM) virtualization type and the
-- current instance uses the paravirtual (PV) virtualization type. For
-- more information about the differences between these virtualization
-- types, see Linux AMI virtualization types in the Amazon EC2
-- User Guide for Linux, or Windows AMI virtualization types
-- in the Amazon EC2 User Guide for Windows.
-- - Architecture — The CPU architecture between the
-- recommended instance type and the current instance is different. For
-- example, the recommended instance type might use an Arm CPU
-- architecture and the current instance type might use a different one,
-- such as x86. Before migrating, you should consider recompiling the
-- software on your instance for the new architecture. Alternatively, you
-- might switch to an Amazon Machine Image (AMI) that supports the new
-- architecture. For more information about the CPU architecture for each
-- instance type, see Amazon EC2 Instance Types.
--
--
-- $sel:projectedUtilizationMetrics:InstanceRecommendationOption',
-- instanceRecommendationOption_projectedUtilizationMetrics - An
-- array of objects that describe the projected utilization metrics of
-- the instance 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 Enabling Memory
-- Utilization with the CloudWatch Agent.
--
-- $sel:rank:InstanceRecommendationOption',
-- instanceRecommendationOption_rank - The rank of the instance
-- recommendation option.
--
-- The top recommendation option is ranked as 1.
--
-- $sel:savingsOpportunity:InstanceRecommendationOption',
-- instanceRecommendationOption_savingsOpportunity - An object
-- that describes the savings opportunity for the instance recommendation
-- option. Savings opportunity includes the estimated monthly savings
-- amount and percentage.
newInstanceRecommendationOption :: InstanceRecommendationOption
-- | The instance type of the instance recommendation.
instanceRecommendationOption_instanceType :: Lens' InstanceRecommendationOption (Maybe Text)
-- | 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.
instanceRecommendationOption_migrationEffort :: Lens' InstanceRecommendationOption (Maybe MigrationEffort)
-- | The performance risk of the instance recommendation option.
--
-- 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.
instanceRecommendationOption_performanceRisk :: Lens' InstanceRecommendationOption (Maybe Double)
-- | Describes the configuration differences between the current instance
-- and the recommended instance type. You should consider the
-- configuration differences before migrating your workloads from the
-- current instance to the recommended instance type. The Change the
-- instance type guide for Linux and Change the instance type
-- guide for Windows provide general guidance for getting started
-- with an instance migration.
--
-- Platform differences include:
--
--
-- - Hypervisor — The hypervisor of the recommended
-- instance type is different than that of the current instance. For
-- example, the recommended instance type uses a Nitro hypervisor and the
-- current instance uses a Xen hypervisor. The differences that you
-- should consider between these hypervisors are covered in the Nitro
-- Hypervisor section of the Amazon EC2 frequently asked questions.
-- For more information, see Instances built on the Nitro System
-- in the Amazon EC2 User Guide for Linux, or Instances built
-- on the Nitro System in the Amazon EC2 User Guide for
-- Windows.
-- - NetworkInterface — The network interface of the
-- recommended instance type is different than that of the current
-- instance. For example, the recommended instance type supports enhanced
-- networking and the current instance might not. To enable enhanced
-- networking for the recommended instance type, you must install the
-- Elastic Network Adapter (ENA) driver or the Intel 82599 Virtual
-- Function driver. For more information, see Networking and storage
-- features and Enhanced networking on Linux in the Amazon
-- EC2 User Guide for Linux, or Networking and storage
-- features and Enhanced networking on Windows in the
-- Amazon EC2 User Guide for Windows.
-- - StorageInterface — The storage interface of the
-- recommended instance type is different than that of the current
-- instance. For example, the recommended instance type uses an NVMe
-- storage interface and the current instance does not. To access NVMe
-- volumes for the recommended instance type, you will need to install or
-- upgrade the NVMe driver. For more information, see Networking and
-- storage features and Amazon EBS and NVMe on Linux instances
-- in the Amazon EC2 User Guide for Linux, or Networking and
-- storage features and Amazon EBS and NVMe on Windows
-- instances in the Amazon EC2 User Guide for Windows.
-- - InstanceStoreAvailability — The recommended
-- instance type does not support instance store volumes and the current
-- instance does. Before migrating, you might need to back up the data on
-- your instance store volumes if you want to preserve them. For more
-- information, see How do I back up an instance store volume on my
-- Amazon EC2 instance to Amazon EBS? in the Amazon Web Services
-- Premium Support Knowledge Base. For more information, see
-- Networking and storage features and Amazon EC2 instance
-- store in the Amazon EC2 User Guide for Linux, or see
-- Networking and storage features and Amazon EC2 instance
-- store in the Amazon EC2 User Guide for Windows.
-- - VirtualizationType — The recommended instance type
-- uses the hardware virtual machine (HVM) virtualization type and the
-- current instance uses the paravirtual (PV) virtualization type. For
-- more information about the differences between these virtualization
-- types, see Linux AMI virtualization types in the Amazon EC2
-- User Guide for Linux, or Windows AMI virtualization types
-- in the Amazon EC2 User Guide for Windows.
-- - Architecture — The CPU architecture between the
-- recommended instance type and the current instance is different. For
-- example, the recommended instance type might use an Arm CPU
-- architecture and the current instance type might use a different one,
-- such as x86. Before migrating, you should consider recompiling the
-- software on your instance for the new architecture. Alternatively, you
-- might switch to an Amazon Machine Image (AMI) that supports the new
-- architecture. For more information about the CPU architecture for each
-- instance type, see Amazon EC2 Instance Types.
--
instanceRecommendationOption_platformDifferences :: Lens' InstanceRecommendationOption (Maybe [PlatformDifference])
-- | An array of objects that describe the projected utilization metrics of
-- the instance 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 Enabling Memory
-- Utilization with the CloudWatch Agent.
instanceRecommendationOption_projectedUtilizationMetrics :: Lens' InstanceRecommendationOption (Maybe [UtilizationMetric])
-- | The rank of the instance recommendation option.
--
-- The top recommendation option is ranked as 1.
instanceRecommendationOption_rank :: Lens' InstanceRecommendationOption (Maybe Int)
-- | An object that describes the savings opportunity for the instance
-- recommendation option. Savings opportunity includes the estimated
-- monthly savings amount and percentage.
instanceRecommendationOption_savingsOpportunity :: Lens' InstanceRecommendationOption (Maybe SavingsOpportunity)
-- | Describes a filter that returns a more specific list of recommendation
-- export jobs. Use this filter with the DescribeRecommendationExportJobs
-- action.
--
-- You can use EBSFilter with the GetEBSVolumeRecommendations
-- action, LambdaFunctionRecommendationFilter with the
-- GetLambdaFunctionRecommendations action, and Filter with the
-- GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations
-- actions.
--
-- See: newJobFilter smart constructor.
data JobFilter
JobFilter' :: Maybe JobFilterName -> Maybe [Text] -> JobFilter
-- | The name of the filter.
--
-- Specify ResourceType to return export jobs of a specific
-- resource type (for example, Ec2Instance).
--
-- Specify JobStatus to return export jobs with a specific
-- status (e.g, Complete).
[$sel:name:JobFilter'] :: JobFilter -> Maybe JobFilterName
-- | The value of the filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter:
--
--
-- - Specify Ec2Instance or AutoScalingGroup if you
-- specify the name parameter as ResourceType. There is
-- no filter for EBS volumes because volume recommendations cannot be
-- exported at this time.
-- - Specify Queued, InProgress, Complete,
-- or Failed if you specify the name parameter as
-- JobStatus.
--
[$sel:values:JobFilter'] :: JobFilter -> Maybe [Text]
-- | Create a value of JobFilter with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:JobFilter', jobFilter_name - The name of the
-- filter.
--
-- Specify ResourceType to return export jobs of a specific
-- resource type (for example, Ec2Instance).
--
-- Specify JobStatus to return export jobs with a specific
-- status (e.g, Complete).
--
-- $sel:values:JobFilter', jobFilter_values - The value of
-- the filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter:
--
--
-- - Specify Ec2Instance or AutoScalingGroup if you
-- specify the name parameter as ResourceType. There is
-- no filter for EBS volumes because volume recommendations cannot be
-- exported at this time.
-- - Specify Queued, InProgress, Complete,
-- or Failed if you specify the name parameter as
-- JobStatus.
--
newJobFilter :: JobFilter
-- | The name of the filter.
--
-- Specify ResourceType to return export jobs of a specific
-- resource type (for example, Ec2Instance).
--
-- Specify JobStatus to return export jobs with a specific
-- status (e.g, Complete).
jobFilter_name :: Lens' JobFilter (Maybe JobFilterName)
-- | The value of the filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter:
--
--
-- - Specify Ec2Instance or AutoScalingGroup if you
-- specify the name parameter as ResourceType. There is
-- no filter for EBS volumes because volume recommendations cannot be
-- exported at this time.
-- - Specify Queued, InProgress, Complete,
-- or Failed if you specify the name parameter as
-- JobStatus.
--
jobFilter_values :: Lens' JobFilter (Maybe [Text])
-- | Describes a projected utilization metric of an Lambda function
-- recommendation option.
--
-- See: newLambdaFunctionMemoryProjectedMetric smart
-- constructor.
data LambdaFunctionMemoryProjectedMetric
LambdaFunctionMemoryProjectedMetric' :: Maybe LambdaFunctionMemoryMetricName -> Maybe LambdaFunctionMemoryMetricStatistic -> Maybe Double -> LambdaFunctionMemoryProjectedMetric
-- | The name of the projected utilization metric.
[$sel:name:LambdaFunctionMemoryProjectedMetric'] :: LambdaFunctionMemoryProjectedMetric -> Maybe LambdaFunctionMemoryMetricName
-- | The statistic of the projected utilization metric.
[$sel:statistic:LambdaFunctionMemoryProjectedMetric'] :: LambdaFunctionMemoryProjectedMetric -> Maybe LambdaFunctionMemoryMetricStatistic
-- | The values of the projected utilization metrics.
[$sel:value:LambdaFunctionMemoryProjectedMetric'] :: LambdaFunctionMemoryProjectedMetric -> Maybe Double
-- | Create a value of LambdaFunctionMemoryProjectedMetric with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:LambdaFunctionMemoryProjectedMetric',
-- lambdaFunctionMemoryProjectedMetric_name - The name of the
-- projected utilization metric.
--
-- $sel:statistic:LambdaFunctionMemoryProjectedMetric',
-- lambdaFunctionMemoryProjectedMetric_statistic - The statistic
-- of the projected utilization metric.
--
-- $sel:value:LambdaFunctionMemoryProjectedMetric',
-- lambdaFunctionMemoryProjectedMetric_value - The values of the
-- projected utilization metrics.
newLambdaFunctionMemoryProjectedMetric :: LambdaFunctionMemoryProjectedMetric
-- | The name of the projected utilization metric.
lambdaFunctionMemoryProjectedMetric_name :: Lens' LambdaFunctionMemoryProjectedMetric (Maybe LambdaFunctionMemoryMetricName)
-- | The statistic of the projected utilization metric.
lambdaFunctionMemoryProjectedMetric_statistic :: Lens' LambdaFunctionMemoryProjectedMetric (Maybe LambdaFunctionMemoryMetricStatistic)
-- | The values of the projected utilization metrics.
lambdaFunctionMemoryProjectedMetric_value :: Lens' LambdaFunctionMemoryProjectedMetric (Maybe Double)
-- | Describes a recommendation option for an Lambda function.
--
-- See: newLambdaFunctionMemoryRecommendationOption smart
-- constructor.
data LambdaFunctionMemoryRecommendationOption
LambdaFunctionMemoryRecommendationOption' :: Maybe Int -> Maybe [LambdaFunctionMemoryProjectedMetric] -> Maybe Int -> Maybe SavingsOpportunity -> LambdaFunctionMemoryRecommendationOption
-- | The memory size, in MB, of the function recommendation option.
[$sel:memorySize:LambdaFunctionMemoryRecommendationOption'] :: LambdaFunctionMemoryRecommendationOption -> Maybe Int
-- | An array of objects that describe the projected utilization metrics of
-- the function recommendation option.
[$sel:projectedUtilizationMetrics:LambdaFunctionMemoryRecommendationOption'] :: LambdaFunctionMemoryRecommendationOption -> Maybe [LambdaFunctionMemoryProjectedMetric]
-- | The rank of the function recommendation option.
--
-- The top recommendation option is ranked as 1.
[$sel:rank:LambdaFunctionMemoryRecommendationOption'] :: LambdaFunctionMemoryRecommendationOption -> Maybe Int
-- | An object that describes the savings opportunity for the Lambda
-- function recommendation option. Savings opportunity includes the
-- estimated monthly savings amount and percentage.
[$sel:savingsOpportunity:LambdaFunctionMemoryRecommendationOption'] :: LambdaFunctionMemoryRecommendationOption -> Maybe SavingsOpportunity
-- | Create a value of LambdaFunctionMemoryRecommendationOption with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:memorySize:LambdaFunctionMemoryRecommendationOption',
-- lambdaFunctionMemoryRecommendationOption_memorySize - The
-- memory size, in MB, of the function recommendation option.
--
--
-- $sel:projectedUtilizationMetrics:LambdaFunctionMemoryRecommendationOption',
-- lambdaFunctionMemoryRecommendationOption_projectedUtilizationMetrics
-- - An array of objects that describe the projected utilization metrics
-- of the function recommendation option.
--
-- $sel:rank:LambdaFunctionMemoryRecommendationOption',
-- lambdaFunctionMemoryRecommendationOption_rank - The rank of the
-- function recommendation option.
--
-- The top recommendation option is ranked as 1.
--
--
-- $sel:savingsOpportunity:LambdaFunctionMemoryRecommendationOption',
-- lambdaFunctionMemoryRecommendationOption_savingsOpportunity -
-- An object that describes the savings opportunity for the Lambda
-- function recommendation option. Savings opportunity includes the
-- estimated monthly savings amount and percentage.
newLambdaFunctionMemoryRecommendationOption :: LambdaFunctionMemoryRecommendationOption
-- | The memory size, in MB, of the function recommendation option.
lambdaFunctionMemoryRecommendationOption_memorySize :: Lens' LambdaFunctionMemoryRecommendationOption (Maybe Int)
-- | An array of objects that describe the projected utilization metrics of
-- the function recommendation option.
lambdaFunctionMemoryRecommendationOption_projectedUtilizationMetrics :: Lens' LambdaFunctionMemoryRecommendationOption (Maybe [LambdaFunctionMemoryProjectedMetric])
-- | The rank of the function recommendation option.
--
-- The top recommendation option is ranked as 1.
lambdaFunctionMemoryRecommendationOption_rank :: Lens' LambdaFunctionMemoryRecommendationOption (Maybe Int)
-- | An object that describes the savings opportunity for the Lambda
-- function recommendation option. Savings opportunity includes the
-- estimated monthly savings amount and percentage.
lambdaFunctionMemoryRecommendationOption_savingsOpportunity :: Lens' LambdaFunctionMemoryRecommendationOption (Maybe SavingsOpportunity)
-- | Describes an Lambda function recommendation.
--
-- See: newLambdaFunctionRecommendation smart constructor.
data LambdaFunctionRecommendation
LambdaFunctionRecommendation' :: Maybe Text -> Maybe Int -> Maybe CurrentPerformanceRisk -> Maybe LambdaFunctionRecommendationFinding -> Maybe [LambdaFunctionRecommendationFindingReasonCode] -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Double -> Maybe [LambdaFunctionMemoryRecommendationOption] -> Maybe Integer -> Maybe [LambdaFunctionUtilizationMetric] -> LambdaFunctionRecommendation
-- | The Amazon Web Services account ID of the function.
[$sel:accountId:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe Text
-- | The amount of memory, in MB, that's allocated to the current function.
[$sel:currentMemorySize:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe Int
-- | The risk of the current Lambda function not meeting the performance
-- needs of its workloads. The higher the risk, the more likely the
-- current Lambda function requires more memory.
[$sel:currentPerformanceRisk:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe CurrentPerformanceRisk
-- | The finding classification of the function.
--
-- Findings for functions include:
--
--
-- - Optimized — The function is correctly provisioned
-- to run your workload based on its current configuration and its
-- utilization history. This finding classification does not include
-- finding reason codes.
-- - NotOptimized — The function is performing at a
-- higher level (over-provisioned) or at a lower level
-- (under-provisioned) than required for your workload because its
-- current configuration is not optimal. Over-provisioned resources might
-- lead to unnecessary infrastructure cost, and under-provisioned
-- resources might lead to poor application performance. This finding
-- classification can include the MemoryUnderprovisioned and
-- MemoryUnderprovisioned finding reason codes.
-- - Unavailable — Compute Optimizer was unable to
-- generate a recommendation for the function. This could be because the
-- function has not accumulated sufficient metric data, or the function
-- does not qualify for a recommendation. This finding classification can
-- include the InsufficientData and Inconclusive
-- finding reason codes.Functions with a finding of unavailable are not
-- returned unless you specify the filter parameter with a value
-- of Unavailable in your
-- GetLambdaFunctionRecommendations request.
--
[$sel:finding:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe LambdaFunctionRecommendationFinding
-- | The reason for the finding classification of the function.
--
-- Functions that have a finding classification of Optimized
-- don't have a finding reason code.
--
-- Finding reason codes for functions include:
--
--
-- - MemoryOverprovisioned — The function is
-- over-provisioned when its memory configuration can be sized down while
-- still meeting the performance requirements of your workload. An
-- over-provisioned function might lead to unnecessary infrastructure
-- cost. This finding reason code is part of the NotOptimized
-- finding classification.
-- - MemoryUnderprovisioned — The function is
-- under-provisioned when its memory configuration doesn't meet the
-- performance requirements of the workload. An under-provisioned
-- function might lead to poor application performance. This finding
-- reason code is part of the NotOptimized finding
-- classification.
-- - InsufficientData — The function does not have
-- sufficient metric data for Compute Optimizer to generate a
-- recommendation. For more information, see the Supported resources
-- and requirements in the Compute Optimizer User Guide. This
-- finding reason code is part of the Unavailable finding
-- classification.
-- - Inconclusive — The function does not qualify for a
-- recommendation because Compute Optimizer cannot generate a
-- recommendation with a high degree of confidence. This finding reason
-- code is part of the Unavailable finding classification.
--
[$sel:findingReasonCodes:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe [LambdaFunctionRecommendationFindingReasonCode]
-- | The Amazon Resource Name (ARN) of the current function.
[$sel:functionArn:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe Text
-- | The version number of the current function.
[$sel:functionVersion:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe Text
-- | The timestamp of when the function recommendation was last generated.
[$sel:lastRefreshTimestamp:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe POSIX
-- | The number of days for which utilization metrics were analyzed for the
-- function.
[$sel:lookbackPeriodInDays:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe Double
-- | An array of objects that describe the memory configuration
-- recommendation options for the function.
[$sel:memorySizeRecommendationOptions:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe [LambdaFunctionMemoryRecommendationOption]
-- | The number of times your function code was applied during the
-- look-back period.
[$sel:numberOfInvocations:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe Integer
-- | An array of objects that describe the utilization metrics of the
-- function.
[$sel:utilizationMetrics:LambdaFunctionRecommendation'] :: LambdaFunctionRecommendation -> Maybe [LambdaFunctionUtilizationMetric]
-- | Create a value of LambdaFunctionRecommendation with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_accountId - The Amazon Web
-- Services account ID of the function.
--
-- $sel:currentMemorySize:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_currentMemorySize - The amount of
-- memory, in MB, that's allocated to the current function.
--
-- $sel:currentPerformanceRisk:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_currentPerformanceRisk - The risk
-- of the current Lambda function not meeting the performance needs of
-- its workloads. The higher the risk, the more likely the current Lambda
-- function requires more memory.
--
-- $sel:finding:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_finding - The finding
-- classification of the function.
--
-- Findings for functions include:
--
--
-- - Optimized — The function is correctly provisioned
-- to run your workload based on its current configuration and its
-- utilization history. This finding classification does not include
-- finding reason codes.
-- - NotOptimized — The function is performing at a
-- higher level (over-provisioned) or at a lower level
-- (under-provisioned) than required for your workload because its
-- current configuration is not optimal. Over-provisioned resources might
-- lead to unnecessary infrastructure cost, and under-provisioned
-- resources might lead to poor application performance. This finding
-- classification can include the MemoryUnderprovisioned and
-- MemoryUnderprovisioned finding reason codes.
-- - Unavailable — Compute Optimizer was unable to
-- generate a recommendation for the function. This could be because the
-- function has not accumulated sufficient metric data, or the function
-- does not qualify for a recommendation. This finding classification can
-- include the InsufficientData and Inconclusive
-- finding reason codes.Functions with a finding of unavailable are not
-- returned unless you specify the filter parameter with a value
-- of Unavailable in your
-- GetLambdaFunctionRecommendations request.
--
--
-- $sel:findingReasonCodes:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_findingReasonCodes - The reason
-- for the finding classification of the function.
--
-- Functions that have a finding classification of Optimized
-- don't have a finding reason code.
--
-- Finding reason codes for functions include:
--
--
-- - MemoryOverprovisioned — The function is
-- over-provisioned when its memory configuration can be sized down while
-- still meeting the performance requirements of your workload. An
-- over-provisioned function might lead to unnecessary infrastructure
-- cost. This finding reason code is part of the NotOptimized
-- finding classification.
-- - MemoryUnderprovisioned — The function is
-- under-provisioned when its memory configuration doesn't meet the
-- performance requirements of the workload. An under-provisioned
-- function might lead to poor application performance. This finding
-- reason code is part of the NotOptimized finding
-- classification.
-- - InsufficientData — The function does not have
-- sufficient metric data for Compute Optimizer to generate a
-- recommendation. For more information, see the Supported resources
-- and requirements in the Compute Optimizer User Guide. This
-- finding reason code is part of the Unavailable finding
-- classification.
-- - Inconclusive — The function does not qualify for a
-- recommendation because Compute Optimizer cannot generate a
-- recommendation with a high degree of confidence. This finding reason
-- code is part of the Unavailable finding classification.
--
--
-- $sel:functionArn:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_functionArn - The Amazon Resource
-- Name (ARN) of the current function.
--
-- $sel:functionVersion:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_functionVersion - The version
-- number of the current function.
--
-- $sel:lastRefreshTimestamp:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_lastRefreshTimestamp - The
-- timestamp of when the function recommendation was last generated.
--
-- $sel:lookbackPeriodInDays:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_lookbackPeriodInDays - The number
-- of days for which utilization metrics were analyzed for the function.
--
--
-- $sel:memorySizeRecommendationOptions:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_memorySizeRecommendationOptions -
-- An array of objects that describe the memory configuration
-- recommendation options for the function.
--
-- $sel:numberOfInvocations:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_numberOfInvocations - The number
-- of times your function code was applied during the look-back period.
--
-- $sel:utilizationMetrics:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_utilizationMetrics - An array of
-- objects that describe the utilization metrics of the function.
newLambdaFunctionRecommendation :: LambdaFunctionRecommendation
-- | The Amazon Web Services account ID of the function.
lambdaFunctionRecommendation_accountId :: Lens' LambdaFunctionRecommendation (Maybe Text)
-- | The amount of memory, in MB, that's allocated to the current function.
lambdaFunctionRecommendation_currentMemorySize :: Lens' LambdaFunctionRecommendation (Maybe Int)
-- | The risk of the current Lambda function not meeting the performance
-- needs of its workloads. The higher the risk, the more likely the
-- current Lambda function requires more memory.
lambdaFunctionRecommendation_currentPerformanceRisk :: Lens' LambdaFunctionRecommendation (Maybe CurrentPerformanceRisk)
-- | The finding classification of the function.
--
-- Findings for functions include:
--
--
-- - Optimized — The function is correctly provisioned
-- to run your workload based on its current configuration and its
-- utilization history. This finding classification does not include
-- finding reason codes.
-- - NotOptimized — The function is performing at a
-- higher level (over-provisioned) or at a lower level
-- (under-provisioned) than required for your workload because its
-- current configuration is not optimal. Over-provisioned resources might
-- lead to unnecessary infrastructure cost, and under-provisioned
-- resources might lead to poor application performance. This finding
-- classification can include the MemoryUnderprovisioned and
-- MemoryUnderprovisioned finding reason codes.
-- - Unavailable — Compute Optimizer was unable to
-- generate a recommendation for the function. This could be because the
-- function has not accumulated sufficient metric data, or the function
-- does not qualify for a recommendation. This finding classification can
-- include the InsufficientData and Inconclusive
-- finding reason codes.Functions with a finding of unavailable are not
-- returned unless you specify the filter parameter with a value
-- of Unavailable in your
-- GetLambdaFunctionRecommendations request.
--
lambdaFunctionRecommendation_finding :: Lens' LambdaFunctionRecommendation (Maybe LambdaFunctionRecommendationFinding)
-- | The reason for the finding classification of the function.
--
-- Functions that have a finding classification of Optimized
-- don't have a finding reason code.
--
-- Finding reason codes for functions include:
--
--
-- - MemoryOverprovisioned — The function is
-- over-provisioned when its memory configuration can be sized down while
-- still meeting the performance requirements of your workload. An
-- over-provisioned function might lead to unnecessary infrastructure
-- cost. This finding reason code is part of the NotOptimized
-- finding classification.
-- - MemoryUnderprovisioned — The function is
-- under-provisioned when its memory configuration doesn't meet the
-- performance requirements of the workload. An under-provisioned
-- function might lead to poor application performance. This finding
-- reason code is part of the NotOptimized finding
-- classification.
-- - InsufficientData — The function does not have
-- sufficient metric data for Compute Optimizer to generate a
-- recommendation. For more information, see the Supported resources
-- and requirements in the Compute Optimizer User Guide. This
-- finding reason code is part of the Unavailable finding
-- classification.
-- - Inconclusive — The function does not qualify for a
-- recommendation because Compute Optimizer cannot generate a
-- recommendation with a high degree of confidence. This finding reason
-- code is part of the Unavailable finding classification.
--
lambdaFunctionRecommendation_findingReasonCodes :: Lens' LambdaFunctionRecommendation (Maybe [LambdaFunctionRecommendationFindingReasonCode])
-- | The Amazon Resource Name (ARN) of the current function.
lambdaFunctionRecommendation_functionArn :: Lens' LambdaFunctionRecommendation (Maybe Text)
-- | The version number of the current function.
lambdaFunctionRecommendation_functionVersion :: Lens' LambdaFunctionRecommendation (Maybe Text)
-- | The timestamp of when the function recommendation was last generated.
lambdaFunctionRecommendation_lastRefreshTimestamp :: Lens' LambdaFunctionRecommendation (Maybe UTCTime)
-- | The number of days for which utilization metrics were analyzed for the
-- function.
lambdaFunctionRecommendation_lookbackPeriodInDays :: Lens' LambdaFunctionRecommendation (Maybe Double)
-- | An array of objects that describe the memory configuration
-- recommendation options for the function.
lambdaFunctionRecommendation_memorySizeRecommendationOptions :: Lens' LambdaFunctionRecommendation (Maybe [LambdaFunctionMemoryRecommendationOption])
-- | The number of times your function code was applied during the
-- look-back period.
lambdaFunctionRecommendation_numberOfInvocations :: Lens' LambdaFunctionRecommendation (Maybe Integer)
-- | An array of objects that describe the utilization metrics of the
-- function.
lambdaFunctionRecommendation_utilizationMetrics :: Lens' LambdaFunctionRecommendation (Maybe [LambdaFunctionUtilizationMetric])
-- | Describes a filter that returns a more specific list of Lambda
-- function recommendations. Use this filter with the
-- GetLambdaFunctionRecommendations action.
--
-- You can use EBSFilter with the GetEBSVolumeRecommendations
-- action, JobFilter with the DescribeRecommendationExportJobs
-- action, and Filter with the
-- GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations
-- actions.
--
-- See: newLambdaFunctionRecommendationFilter smart
-- constructor.
data LambdaFunctionRecommendationFilter
LambdaFunctionRecommendationFilter' :: Maybe LambdaFunctionRecommendationFilterName -> Maybe [Text] -> LambdaFunctionRecommendationFilter
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, NotOptimized).
--
-- Specify FindingReasonCode to return recommendations with a
-- specific finding reason code (for example,
-- MemoryUnderprovisioned).
[$sel:name:LambdaFunctionRecommendationFilter'] :: LambdaFunctionRecommendationFilter -> Maybe LambdaFunctionRecommendationFilterName
-- | The value of the filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter:
--
--
-- - Specify Optimized, NotOptimized, or
-- Unavailable if you specify the name parameter as
-- Finding.
-- - Specify MemoryOverprovisioned,
-- MemoryUnderprovisioned, InsufficientData, or
-- Inconclusive if you specify the name parameter as
-- FindingReasonCode.
--
[$sel:values:LambdaFunctionRecommendationFilter'] :: LambdaFunctionRecommendationFilter -> Maybe [Text]
-- | Create a value of LambdaFunctionRecommendationFilter with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:LambdaFunctionRecommendationFilter',
-- lambdaFunctionRecommendationFilter_name - The name of the
-- filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, NotOptimized).
--
-- Specify FindingReasonCode to return recommendations with a
-- specific finding reason code (for example,
-- MemoryUnderprovisioned).
--
-- $sel:values:LambdaFunctionRecommendationFilter',
-- lambdaFunctionRecommendationFilter_values - The value of the
-- filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter:
--
--
-- - Specify Optimized, NotOptimized, or
-- Unavailable if you specify the name parameter as
-- Finding.
-- - Specify MemoryOverprovisioned,
-- MemoryUnderprovisioned, InsufficientData, or
-- Inconclusive if you specify the name parameter as
-- FindingReasonCode.
--
newLambdaFunctionRecommendationFilter :: LambdaFunctionRecommendationFilter
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, NotOptimized).
--
-- Specify FindingReasonCode to return recommendations with a
-- specific finding reason code (for example,
-- MemoryUnderprovisioned).
lambdaFunctionRecommendationFilter_name :: Lens' LambdaFunctionRecommendationFilter (Maybe LambdaFunctionRecommendationFilterName)
-- | The value of the filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter:
--
--
-- - Specify Optimized, NotOptimized, or
-- Unavailable if you specify the name parameter as
-- Finding.
-- - Specify MemoryOverprovisioned,
-- MemoryUnderprovisioned, InsufficientData, or
-- Inconclusive if you specify the name parameter as
-- FindingReasonCode.
--
lambdaFunctionRecommendationFilter_values :: Lens' LambdaFunctionRecommendationFilter (Maybe [Text])
-- | Describes a utilization metric of an Lambda function.
--
-- See: newLambdaFunctionUtilizationMetric smart
-- constructor.
data LambdaFunctionUtilizationMetric
LambdaFunctionUtilizationMetric' :: Maybe LambdaFunctionMetricName -> Maybe LambdaFunctionMetricStatistic -> Maybe Double -> LambdaFunctionUtilizationMetric
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Duration - The amount of time that your function code
-- spends processing an event.
-- - Memory - The amount of memory used per invocation.
--
[$sel:name:LambdaFunctionUtilizationMetric'] :: LambdaFunctionUtilizationMetric -> Maybe LambdaFunctionMetricName
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
[$sel:statistic:LambdaFunctionUtilizationMetric'] :: LambdaFunctionUtilizationMetric -> Maybe LambdaFunctionMetricStatistic
-- | The value of the utilization metric.
[$sel:value:LambdaFunctionUtilizationMetric'] :: LambdaFunctionUtilizationMetric -> Maybe Double
-- | Create a value of LambdaFunctionUtilizationMetric with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:LambdaFunctionUtilizationMetric',
-- lambdaFunctionUtilizationMetric_name - The name of the
-- utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Duration - The amount of time that your function code
-- spends processing an event.
-- - Memory - The amount of memory used per invocation.
--
--
-- $sel:statistic:LambdaFunctionUtilizationMetric',
-- lambdaFunctionUtilizationMetric_statistic - The statistic of
-- the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
--
-- $sel:value:LambdaFunctionUtilizationMetric',
-- lambdaFunctionUtilizationMetric_value - The value of the
-- utilization metric.
newLambdaFunctionUtilizationMetric :: LambdaFunctionUtilizationMetric
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Duration - The amount of time that your function code
-- spends processing an event.
-- - Memory - The amount of memory used per invocation.
--
lambdaFunctionUtilizationMetric_name :: Lens' LambdaFunctionUtilizationMetric (Maybe LambdaFunctionMetricName)
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
lambdaFunctionUtilizationMetric_statistic :: Lens' LambdaFunctionUtilizationMetric (Maybe LambdaFunctionMetricStatistic)
-- | The value of the utilization metric.
lambdaFunctionUtilizationMetric_value :: Lens' LambdaFunctionUtilizationMetric (Maybe Double)
-- | The memory size configurations of a container.
--
-- See: newMemorySizeConfiguration smart constructor.
data MemorySizeConfiguration
MemorySizeConfiguration' :: Maybe Int -> Maybe Int -> MemorySizeConfiguration
-- | The amount of memory in the container.
[$sel:memory:MemorySizeConfiguration'] :: MemorySizeConfiguration -> Maybe Int
-- | The limit of memory reserve for the container.
[$sel:memoryReservation:MemorySizeConfiguration'] :: MemorySizeConfiguration -> Maybe Int
-- | Create a value of MemorySizeConfiguration with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:memory:MemorySizeConfiguration',
-- memorySizeConfiguration_memory - The amount of memory in the
-- container.
--
-- $sel:memoryReservation:MemorySizeConfiguration',
-- memorySizeConfiguration_memoryReservation - The limit of memory
-- reserve for the container.
newMemorySizeConfiguration :: MemorySizeConfiguration
-- | The amount of memory in the container.
memorySizeConfiguration_memory :: Lens' MemorySizeConfiguration (Maybe Int)
-- | The limit of memory reserve for the container.
memorySizeConfiguration_memoryReservation :: Lens' MemorySizeConfiguration (Maybe Int)
-- | Describes a projected utilization metric of a recommendation option,
-- such as an Amazon EC2 instance. This represents the projected
-- utilization of a recommendation option had you used that resource
-- during the analyzed period.
--
-- Compare the utilization metric data of your resource against its
-- projected utilization metric data to determine the performance
-- difference between your current resource and the recommended option.
--
-- The Cpu and Memory metrics are the only projected
-- utilization metrics returned when you run the
-- GetEC2RecommendationProjectedMetrics action. Additionally, the
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
--
-- See: newProjectedMetric smart constructor.
data ProjectedMetric
ProjectedMetric' :: Maybe MetricName -> Maybe [POSIX] -> Maybe [Double] -> ProjectedMetric
-- | The name of the projected utilization metric.
--
-- The following projected utilization metrics are returned:
--
--
-- - Cpu - The projected percentage of allocated EC2 compute
-- units that would be in use on the recommendation option had you used
-- that resource during the analyzed period. This metric identifies the
-- processing power required to run an application on the recommendation
-- option.Depending on the instance type, tools in your operating system
-- can show a lower percentage than CloudWatch when the instance is not
-- allocated a full processor core.Units: Percent
-- - Memory - The percentage of memory that would be in use on
-- the recommendation option had you used that resource during the
-- analyzed period. This metric identifies the amount of memory required
-- to run an application on the recommendation option.Units: PercentThe
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
--
[$sel:name:ProjectedMetric'] :: ProjectedMetric -> Maybe MetricName
-- | The timestamps of the projected utilization metric.
[$sel:timestamps:ProjectedMetric'] :: ProjectedMetric -> Maybe [POSIX]
-- | The values of the projected utilization metrics.
[$sel:values:ProjectedMetric'] :: ProjectedMetric -> Maybe [Double]
-- | Create a value of ProjectedMetric with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:ProjectedMetric', projectedMetric_name - The
-- name of the projected utilization metric.
--
-- The following projected utilization metrics are returned:
--
--
-- - Cpu - The projected percentage of allocated EC2 compute
-- units that would be in use on the recommendation option had you used
-- that resource during the analyzed period. This metric identifies the
-- processing power required to run an application on the recommendation
-- option.Depending on the instance type, tools in your operating system
-- can show a lower percentage than CloudWatch when the instance is not
-- allocated a full processor core.Units: Percent
-- - Memory - The percentage of memory that would be in use on
-- the recommendation option had you used that resource during the
-- analyzed period. This metric identifies the amount of memory required
-- to run an application on the recommendation option.Units: PercentThe
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
--
--
-- $sel:timestamps:ProjectedMetric',
-- projectedMetric_timestamps - The timestamps of the projected
-- utilization metric.
--
-- $sel:values:ProjectedMetric', projectedMetric_values -
-- The values of the projected utilization metrics.
newProjectedMetric :: ProjectedMetric
-- | The name of the projected utilization metric.
--
-- The following projected utilization metrics are returned:
--
--
-- - Cpu - The projected percentage of allocated EC2 compute
-- units that would be in use on the recommendation option had you used
-- that resource during the analyzed period. This metric identifies the
-- processing power required to run an application on the recommendation
-- option.Depending on the instance type, tools in your operating system
-- can show a lower percentage than CloudWatch when the instance is not
-- allocated a full processor core.Units: Percent
-- - Memory - The percentage of memory that would be in use on
-- the recommendation option had you used that resource during the
-- analyzed period. This metric identifies the amount of memory required
-- to run an application on the recommendation option.Units: PercentThe
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
--
projectedMetric_name :: Lens' ProjectedMetric (Maybe MetricName)
-- | The timestamps of the projected utilization metric.
projectedMetric_timestamps :: Lens' ProjectedMetric (Maybe [UTCTime])
-- | The values of the projected utilization metrics.
projectedMetric_values :: Lens' ProjectedMetric (Maybe [Double])
-- | A summary of a finding reason code.
--
-- See: newReasonCodeSummary smart constructor.
data ReasonCodeSummary
ReasonCodeSummary' :: Maybe FindingReasonCode -> Maybe Double -> ReasonCodeSummary
-- | The name of the finding reason code.
[$sel:name:ReasonCodeSummary'] :: ReasonCodeSummary -> Maybe FindingReasonCode
-- | The value of the finding reason code summary.
[$sel:value:ReasonCodeSummary'] :: ReasonCodeSummary -> Maybe Double
-- | Create a value of ReasonCodeSummary with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:ReasonCodeSummary', reasonCodeSummary_name -
-- The name of the finding reason code.
--
-- $sel:value:ReasonCodeSummary', reasonCodeSummary_value -
-- The value of the finding reason code summary.
newReasonCodeSummary :: ReasonCodeSummary
-- | The name of the finding reason code.
reasonCodeSummary_name :: Lens' ReasonCodeSummary (Maybe FindingReasonCode)
-- | The value of the finding reason code summary.
reasonCodeSummary_value :: Lens' ReasonCodeSummary (Maybe Double)
-- | Describes a recommendation export job.
--
-- Use the DescribeRecommendationExportJobs action to view your
-- recommendation export jobs.
--
-- Use the ExportAutoScalingGroupRecommendations or
-- ExportEC2InstanceRecommendations actions to request an export of your
-- recommendations.
--
-- See: newRecommendationExportJob smart constructor.
data RecommendationExportJob
RecommendationExportJob' :: Maybe POSIX -> Maybe ExportDestination -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe ResourceType -> Maybe JobStatus -> RecommendationExportJob
-- | The timestamp of when the export job was created.
[$sel:creationTimestamp:RecommendationExportJob'] :: RecommendationExportJob -> Maybe POSIX
-- | An object that describes the destination of the export file.
[$sel:destination:RecommendationExportJob'] :: RecommendationExportJob -> Maybe ExportDestination
-- | The reason for an export job failure.
[$sel:failureReason:RecommendationExportJob'] :: RecommendationExportJob -> Maybe Text
-- | The identification number of the export job.
[$sel:jobId:RecommendationExportJob'] :: RecommendationExportJob -> Maybe Text
-- | The timestamp of when the export job was last updated.
[$sel:lastUpdatedTimestamp:RecommendationExportJob'] :: RecommendationExportJob -> Maybe POSIX
-- | The resource type of the exported recommendations.
[$sel:resourceType:RecommendationExportJob'] :: RecommendationExportJob -> Maybe ResourceType
-- | The status of the export job.
[$sel:status:RecommendationExportJob'] :: RecommendationExportJob -> Maybe JobStatus
-- | Create a value of RecommendationExportJob with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:creationTimestamp:RecommendationExportJob',
-- recommendationExportJob_creationTimestamp - The timestamp of
-- when the export job was created.
--
-- $sel:destination:RecommendationExportJob',
-- recommendationExportJob_destination - An object that describes
-- the destination of the export file.
--
-- $sel:failureReason:RecommendationExportJob',
-- recommendationExportJob_failureReason - The reason for an
-- export job failure.
--
-- $sel:jobId:RecommendationExportJob',
-- recommendationExportJob_jobId - The identification number of
-- the export job.
--
-- $sel:lastUpdatedTimestamp:RecommendationExportJob',
-- recommendationExportJob_lastUpdatedTimestamp - The timestamp of
-- when the export job was last updated.
--
-- $sel:resourceType:RecommendationExportJob',
-- recommendationExportJob_resourceType - The resource type of the
-- exported recommendations.
--
-- $sel:status:RecommendationExportJob',
-- recommendationExportJob_status - The status of the export job.
newRecommendationExportJob :: RecommendationExportJob
-- | The timestamp of when the export job was created.
recommendationExportJob_creationTimestamp :: Lens' RecommendationExportJob (Maybe UTCTime)
-- | An object that describes the destination of the export file.
recommendationExportJob_destination :: Lens' RecommendationExportJob (Maybe ExportDestination)
-- | The reason for an export job failure.
recommendationExportJob_failureReason :: Lens' RecommendationExportJob (Maybe Text)
-- | The identification number of the export job.
recommendationExportJob_jobId :: Lens' RecommendationExportJob (Maybe Text)
-- | The timestamp of when the export job was last updated.
recommendationExportJob_lastUpdatedTimestamp :: Lens' RecommendationExportJob (Maybe UTCTime)
-- | The resource type of the exported recommendations.
recommendationExportJob_resourceType :: Lens' RecommendationExportJob (Maybe ResourceType)
-- | The status of the export job.
recommendationExportJob_status :: Lens' RecommendationExportJob (Maybe JobStatus)
-- | Describes the recommendation preferences to return in the response of
-- a GetAutoScalingGroupRecommendations, GetEC2InstanceRecommendations,
-- and GetEC2RecommendationProjectedMetrics request.
--
-- See: newRecommendationPreferences smart constructor.
data RecommendationPreferences
RecommendationPreferences' :: Maybe [CpuVendorArchitecture] -> RecommendationPreferences
-- | Specifies the CPU vendor and architecture for Amazon EC2 instance and
-- Auto Scaling group recommendations.
--
-- For example, when you specify AWS_ARM64 with:
--
--
-- - A GetEC2InstanceRecommendations or
-- GetAutoScalingGroupRecommendations request, Compute Optimizer returns
-- recommendations that consist of Graviton2 instance types only.
-- - A GetEC2RecommendationProjectedMetrics request, Compute Optimizer
-- returns projected utilization metrics for Graviton2 instance type
-- recommendations only.
-- - A ExportEC2InstanceRecommendations or
-- ExportAutoScalingGroupRecommendations request, Compute Optimizer
-- exports recommendations that consist of Graviton2 instance types
-- only.
--
[$sel:cpuVendorArchitectures:RecommendationPreferences'] :: RecommendationPreferences -> Maybe [CpuVendorArchitecture]
-- | Create a value of RecommendationPreferences with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:cpuVendorArchitectures:RecommendationPreferences',
-- recommendationPreferences_cpuVendorArchitectures - Specifies
-- the CPU vendor and architecture for Amazon EC2 instance and Auto
-- Scaling group recommendations.
--
-- For example, when you specify AWS_ARM64 with:
--
--
-- - A GetEC2InstanceRecommendations or
-- GetAutoScalingGroupRecommendations request, Compute Optimizer returns
-- recommendations that consist of Graviton2 instance types only.
-- - A GetEC2RecommendationProjectedMetrics request, Compute Optimizer
-- returns projected utilization metrics for Graviton2 instance type
-- recommendations only.
-- - A ExportEC2InstanceRecommendations or
-- ExportAutoScalingGroupRecommendations request, Compute Optimizer
-- exports recommendations that consist of Graviton2 instance types
-- only.
--
newRecommendationPreferences :: RecommendationPreferences
-- | Specifies the CPU vendor and architecture for Amazon EC2 instance and
-- Auto Scaling group recommendations.
--
-- For example, when you specify AWS_ARM64 with:
--
--
-- - A GetEC2InstanceRecommendations or
-- GetAutoScalingGroupRecommendations request, Compute Optimizer returns
-- recommendations that consist of Graviton2 instance types only.
-- - A GetEC2RecommendationProjectedMetrics request, Compute Optimizer
-- returns projected utilization metrics for Graviton2 instance type
-- recommendations only.
-- - A ExportEC2InstanceRecommendations or
-- ExportAutoScalingGroupRecommendations request, Compute Optimizer
-- exports recommendations that consist of Graviton2 instance types
-- only.
--
recommendationPreferences_cpuVendorArchitectures :: Lens' RecommendationPreferences (Maybe [CpuVendorArchitecture])
-- | Describes a recommendation preference.
--
-- See: newRecommendationPreferencesDetail smart
-- constructor.
data RecommendationPreferencesDetail
RecommendationPreferencesDetail' :: Maybe EnhancedInfrastructureMetrics -> Maybe ExternalMetricsPreference -> Maybe InferredWorkloadTypesPreference -> Maybe ResourceType -> Maybe Scope -> RecommendationPreferencesDetail
-- | The status of the enhanced infrastructure metrics recommendation
-- preference.
--
-- When the recommendations page is refreshed, a status of
-- Active confirms that the preference is applied to the
-- recommendations, and a status of Inactive confirms that the
-- preference isn't yet applied to recommendations.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
[$sel:enhancedInfrastructureMetrics:RecommendationPreferencesDetail'] :: RecommendationPreferencesDetail -> Maybe EnhancedInfrastructureMetrics
-- | An object that describes the external metrics recommendation
-- preference.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
[$sel:externalMetricsPreference:RecommendationPreferencesDetail'] :: RecommendationPreferencesDetail -> Maybe ExternalMetricsPreference
-- | The status of the inferred workload types recommendation preference.
--
-- When the recommendations page is refreshed, a status of
-- Active confirms that the preference is applied to the
-- recommendations, and a status of Inactive confirms that the
-- preference isn't yet applied to recommendations.
[$sel:inferredWorkloadTypes:RecommendationPreferencesDetail'] :: RecommendationPreferencesDetail -> Maybe InferredWorkloadTypesPreference
-- | The target resource type of the recommendation preference to create.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
[$sel:resourceType:RecommendationPreferencesDetail'] :: RecommendationPreferencesDetail -> Maybe ResourceType
-- | An object that describes the scope of the recommendation preference.
--
-- Recommendation preferences can be created at the organization level
-- (for management accounts of an organization only), account level, and
-- resource level. For more information, see Activating enhanced
-- infrastructure metrics in the Compute Optimizer User Guide.
[$sel:scope:RecommendationPreferencesDetail'] :: RecommendationPreferencesDetail -> Maybe Scope
-- | Create a value of RecommendationPreferencesDetail with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:enhancedInfrastructureMetrics:RecommendationPreferencesDetail',
-- recommendationPreferencesDetail_enhancedInfrastructureMetrics -
-- The status of the enhanced infrastructure metrics recommendation
-- preference.
--
-- When the recommendations page is refreshed, a status of
-- Active confirms that the preference is applied to the
-- recommendations, and a status of Inactive confirms that the
-- preference isn't yet applied to recommendations.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
--
--
-- $sel:externalMetricsPreference:RecommendationPreferencesDetail',
-- recommendationPreferencesDetail_externalMetricsPreference - An
-- object that describes the external metrics recommendation preference.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
--
-- $sel:inferredWorkloadTypes:RecommendationPreferencesDetail',
-- recommendationPreferencesDetail_inferredWorkloadTypes - The
-- status of the inferred workload types recommendation preference.
--
-- When the recommendations page is refreshed, a status of
-- Active confirms that the preference is applied to the
-- recommendations, and a status of Inactive confirms that the
-- preference isn't yet applied to recommendations.
--
-- $sel:resourceType:RecommendationPreferencesDetail',
-- recommendationPreferencesDetail_resourceType - The target
-- resource type of the recommendation preference to create.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
--
-- $sel:scope:RecommendationPreferencesDetail',
-- recommendationPreferencesDetail_scope - An object that
-- describes the scope of the recommendation preference.
--
-- Recommendation preferences can be created at the organization level
-- (for management accounts of an organization only), account level, and
-- resource level. For more information, see Activating enhanced
-- infrastructure metrics in the Compute Optimizer User Guide.
newRecommendationPreferencesDetail :: RecommendationPreferencesDetail
-- | The status of the enhanced infrastructure metrics recommendation
-- preference.
--
-- When the recommendations page is refreshed, a status of
-- Active confirms that the preference is applied to the
-- recommendations, and a status of Inactive confirms that the
-- preference isn't yet applied to recommendations.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
recommendationPreferencesDetail_enhancedInfrastructureMetrics :: Lens' RecommendationPreferencesDetail (Maybe EnhancedInfrastructureMetrics)
-- | An object that describes the external metrics recommendation
-- preference.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
recommendationPreferencesDetail_externalMetricsPreference :: Lens' RecommendationPreferencesDetail (Maybe ExternalMetricsPreference)
-- | The status of the inferred workload types recommendation preference.
--
-- When the recommendations page is refreshed, a status of
-- Active confirms that the preference is applied to the
-- recommendations, and a status of Inactive confirms that the
-- preference isn't yet applied to recommendations.
recommendationPreferencesDetail_inferredWorkloadTypes :: Lens' RecommendationPreferencesDetail (Maybe InferredWorkloadTypesPreference)
-- | The target resource type of the recommendation preference to create.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
recommendationPreferencesDetail_resourceType :: Lens' RecommendationPreferencesDetail (Maybe ResourceType)
-- | An object that describes the scope of the recommendation preference.
--
-- Recommendation preferences can be created at the organization level
-- (for management accounts of an organization only), account level, and
-- resource level. For more information, see Activating enhanced
-- infrastructure metrics in the Compute Optimizer User Guide.
recommendationPreferencesDetail_scope :: Lens' RecommendationPreferencesDetail (Maybe Scope)
-- | Describes the source of a recommendation, such as an Amazon EC2
-- instance or Auto Scaling group.
--
-- See: newRecommendationSource smart constructor.
data RecommendationSource
RecommendationSource' :: Maybe Text -> Maybe RecommendationSourceType -> RecommendationSource
-- | The Amazon Resource Name (ARN) of the recommendation source.
[$sel:recommendationSourceArn:RecommendationSource'] :: RecommendationSource -> Maybe Text
-- | The resource type of the recommendation source.
[$sel:recommendationSourceType:RecommendationSource'] :: RecommendationSource -> Maybe RecommendationSourceType
-- | Create a value of RecommendationSource with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:recommendationSourceArn:RecommendationSource',
-- recommendationSource_recommendationSourceArn - The Amazon
-- Resource Name (ARN) of the recommendation source.
--
-- $sel:recommendationSourceType:RecommendationSource',
-- recommendationSource_recommendationSourceType - The resource
-- type of the recommendation source.
newRecommendationSource :: RecommendationSource
-- | The Amazon Resource Name (ARN) of the recommendation source.
recommendationSource_recommendationSourceArn :: Lens' RecommendationSource (Maybe Text)
-- | The resource type of the recommendation source.
recommendationSource_recommendationSourceType :: Lens' RecommendationSource (Maybe RecommendationSourceType)
-- | A summary of a recommendation.
--
-- See: newRecommendationSummary smart constructor.
data RecommendationSummary
RecommendationSummary' :: Maybe Text -> Maybe CurrentPerformanceRiskRatings -> Maybe RecommendationSourceType -> Maybe SavingsOpportunity -> Maybe [Summary] -> RecommendationSummary
-- | The Amazon Web Services account ID of the recommendation summary.
[$sel:accountId:RecommendationSummary'] :: RecommendationSummary -> Maybe Text
-- | An object that describes the performance risk ratings for a given
-- resource type.
[$sel:currentPerformanceRiskRatings:RecommendationSummary'] :: RecommendationSummary -> Maybe CurrentPerformanceRiskRatings
-- | The resource type that the recommendation summary applies to.
[$sel:recommendationResourceType:RecommendationSummary'] :: RecommendationSummary -> Maybe RecommendationSourceType
-- | An object that describes the savings opportunity for a given resource
-- type. Savings opportunity includes the estimated monthly savings
-- amount and percentage.
[$sel:savingsOpportunity:RecommendationSummary'] :: RecommendationSummary -> Maybe SavingsOpportunity
-- | An array of objects that describe a recommendation summary.
[$sel:summaries:RecommendationSummary'] :: RecommendationSummary -> Maybe [Summary]
-- | Create a value of RecommendationSummary with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:RecommendationSummary',
-- recommendationSummary_accountId - The Amazon Web Services
-- account ID of the recommendation summary.
--
-- $sel:currentPerformanceRiskRatings:RecommendationSummary',
-- recommendationSummary_currentPerformanceRiskRatings - An object
-- that describes the performance risk ratings for a given resource type.
--
-- $sel:recommendationResourceType:RecommendationSummary',
-- recommendationSummary_recommendationResourceType - The resource
-- type that the recommendation summary applies to.
--
-- $sel:savingsOpportunity:RecommendationSummary',
-- recommendationSummary_savingsOpportunity - An object that
-- describes the savings opportunity for a given resource type. Savings
-- opportunity includes the estimated monthly savings amount and
-- percentage.
--
-- $sel:summaries:RecommendationSummary',
-- recommendationSummary_summaries - An array of objects that
-- describe a recommendation summary.
newRecommendationSummary :: RecommendationSummary
-- | The Amazon Web Services account ID of the recommendation summary.
recommendationSummary_accountId :: Lens' RecommendationSummary (Maybe Text)
-- | An object that describes the performance risk ratings for a given
-- resource type.
recommendationSummary_currentPerformanceRiskRatings :: Lens' RecommendationSummary (Maybe CurrentPerformanceRiskRatings)
-- | The resource type that the recommendation summary applies to.
recommendationSummary_recommendationResourceType :: Lens' RecommendationSummary (Maybe RecommendationSourceType)
-- | An object that describes the savings opportunity for a given resource
-- type. Savings opportunity includes the estimated monthly savings
-- amount and percentage.
recommendationSummary_savingsOpportunity :: Lens' RecommendationSummary (Maybe SavingsOpportunity)
-- | An array of objects that describe a recommendation summary.
recommendationSummary_summaries :: Lens' RecommendationSummary (Maybe [Summary])
-- | Describes a projected utilization metric of a recommendation option.
--
-- The Cpu and Memory metrics are the only projected
-- utilization metrics returned when you run the
-- GetEC2RecommendationProjectedMetrics action. Additionally, the
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
--
-- See: newRecommendedOptionProjectedMetric smart
-- constructor.
data RecommendedOptionProjectedMetric
RecommendedOptionProjectedMetric' :: Maybe [ProjectedMetric] -> Maybe Int -> Maybe Text -> RecommendedOptionProjectedMetric
-- | An array of objects that describe a projected utilization metric.
[$sel:projectedMetrics:RecommendedOptionProjectedMetric'] :: RecommendedOptionProjectedMetric -> Maybe [ProjectedMetric]
-- | The rank of the recommendation option projected metric.
--
-- The top recommendation option is ranked as 1.
--
-- The projected metric rank correlates to the recommendation option
-- rank. For example, the projected metric ranked as 1 is
-- related to the recommendation option that is also ranked as 1
-- in the same response.
[$sel:rank:RecommendedOptionProjectedMetric'] :: RecommendedOptionProjectedMetric -> Maybe Int
-- | The recommended instance type.
[$sel:recommendedInstanceType:RecommendedOptionProjectedMetric'] :: RecommendedOptionProjectedMetric -> Maybe Text
-- | Create a value of RecommendedOptionProjectedMetric with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:projectedMetrics:RecommendedOptionProjectedMetric',
-- recommendedOptionProjectedMetric_projectedMetrics - An array of
-- objects that describe a projected utilization metric.
--
-- $sel:rank:RecommendedOptionProjectedMetric',
-- recommendedOptionProjectedMetric_rank - The rank of the
-- recommendation option projected metric.
--
-- The top recommendation option is ranked as 1.
--
-- The projected metric rank correlates to the recommendation option
-- rank. For example, the projected metric ranked as 1 is
-- related to the recommendation option that is also ranked as 1
-- in the same response.
--
-- $sel:recommendedInstanceType:RecommendedOptionProjectedMetric',
-- recommendedOptionProjectedMetric_recommendedInstanceType - The
-- recommended instance type.
newRecommendedOptionProjectedMetric :: RecommendedOptionProjectedMetric
-- | An array of objects that describe a projected utilization metric.
recommendedOptionProjectedMetric_projectedMetrics :: Lens' RecommendedOptionProjectedMetric (Maybe [ProjectedMetric])
-- | The rank of the recommendation option projected metric.
--
-- The top recommendation option is ranked as 1.
--
-- The projected metric rank correlates to the recommendation option
-- rank. For example, the projected metric ranked as 1 is
-- related to the recommendation option that is also ranked as 1
-- in the same response.
recommendedOptionProjectedMetric_rank :: Lens' RecommendedOptionProjectedMetric (Maybe Int)
-- | The recommended instance type.
recommendedOptionProjectedMetric_recommendedInstanceType :: Lens' RecommendedOptionProjectedMetric (Maybe Text)
-- | Describes the destination Amazon Simple Storage Service (Amazon S3)
-- bucket name and object keys of a recommendations export file, and its
-- associated metadata file.
--
-- See: newS3Destination smart constructor.
data S3Destination
S3Destination' :: Maybe Text -> Maybe Text -> Maybe Text -> S3Destination
-- | The name of the Amazon S3 bucket used as the destination of an export
-- file.
[$sel:bucket:S3Destination'] :: S3Destination -> Maybe Text
-- | The Amazon S3 bucket key of an export file.
--
-- The key uniquely identifies the object, or export file, in the S3
-- bucket.
[$sel:key:S3Destination'] :: S3Destination -> Maybe Text
-- | The Amazon S3 bucket key of a metadata file.
--
-- The key uniquely identifies the object, or metadata file, in the S3
-- bucket.
[$sel:metadataKey:S3Destination'] :: S3Destination -> Maybe Text
-- | Create a value of S3Destination with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:bucket:S3Destination', s3Destination_bucket - The
-- name of the Amazon S3 bucket used as the destination of an export
-- file.
--
-- $sel:key:S3Destination', s3Destination_key - The Amazon
-- S3 bucket key of an export file.
--
-- The key uniquely identifies the object, or export file, in the S3
-- bucket.
--
-- $sel:metadataKey:S3Destination',
-- s3Destination_metadataKey - The Amazon S3 bucket key of a
-- metadata file.
--
-- The key uniquely identifies the object, or metadata file, in the S3
-- bucket.
newS3Destination :: S3Destination
-- | The name of the Amazon S3 bucket used as the destination of an export
-- file.
s3Destination_bucket :: Lens' S3Destination (Maybe Text)
-- | The Amazon S3 bucket key of an export file.
--
-- The key uniquely identifies the object, or export file, in the S3
-- bucket.
s3Destination_key :: Lens' S3Destination (Maybe Text)
-- | The Amazon S3 bucket key of a metadata file.
--
-- The key uniquely identifies the object, or metadata file, in the S3
-- bucket.
s3Destination_metadataKey :: Lens' S3Destination (Maybe Text)
-- | Describes the destination Amazon Simple Storage Service (Amazon S3)
-- bucket name and key prefix for a recommendations export job.
--
-- You must create the destination Amazon S3 bucket for your
-- recommendations export before you create the export job. Compute
-- Optimizer does not create the S3 bucket for you. After you create the
-- S3 bucket, ensure that it has the required permission policy to allow
-- Compute Optimizer to write the export file to it. If you plan to
-- specify an object prefix when you create the export job, you must
-- include the object prefix in the policy that you add to the S3 bucket.
-- For more information, see Amazon S3 Bucket Policy for Compute
-- Optimizer in the Compute Optimizer User Guide.
--
-- See: newS3DestinationConfig smart constructor.
data S3DestinationConfig
S3DestinationConfig' :: Maybe Text -> Maybe Text -> S3DestinationConfig
-- | The name of the Amazon S3 bucket to use as the destination for an
-- export job.
[$sel:bucket:S3DestinationConfig'] :: S3DestinationConfig -> Maybe Text
-- | The Amazon S3 bucket prefix for an export job.
[$sel:keyPrefix:S3DestinationConfig'] :: S3DestinationConfig -> Maybe Text
-- | Create a value of S3DestinationConfig with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:bucket:S3DestinationConfig',
-- s3DestinationConfig_bucket - The name of the Amazon S3 bucket
-- to use as the destination for an export job.
--
-- $sel:keyPrefix:S3DestinationConfig',
-- s3DestinationConfig_keyPrefix - The Amazon S3 bucket prefix for
-- an export job.
newS3DestinationConfig :: S3DestinationConfig
-- | The name of the Amazon S3 bucket to use as the destination for an
-- export job.
s3DestinationConfig_bucket :: Lens' S3DestinationConfig (Maybe Text)
-- | The Amazon S3 bucket prefix for an export job.
s3DestinationConfig_keyPrefix :: Lens' S3DestinationConfig (Maybe Text)
-- | Describes the savings opportunity for recommendations of a given
-- resource type or for the recommendation option of an individual
-- resource.
--
-- Savings opportunity represents the estimated monthly savings you can
-- achieve by implementing a given Compute Optimizer recommendation.
--
-- Savings opportunity data requires that you opt in to Cost Explorer, as
-- well as activate Receive Amazon EC2 resource recommendations in
-- the Cost Explorer preferences page. That creates a connection between
-- Cost Explorer and Compute Optimizer. With this connection, Cost
-- Explorer generates savings estimates considering the price of existing
-- resources, the price of recommended resources, and historical usage
-- data. Estimated monthly savings reflects the projected dollar savings
-- associated with each of the recommendations generated. For more
-- information, see Enabling Cost Explorer and Optimizing your
-- cost with Rightsizing Recommendations in the Cost Management
-- User Guide.
--
-- See: newSavingsOpportunity smart constructor.
data SavingsOpportunity
SavingsOpportunity' :: Maybe EstimatedMonthlySavings -> Maybe Double -> SavingsOpportunity
-- | An object that describes the estimated monthly savings amount
-- possible, based on On-Demand instance pricing, by adopting Compute
-- Optimizer recommendations for a given resource.
[$sel:estimatedMonthlySavings:SavingsOpportunity'] :: SavingsOpportunity -> Maybe EstimatedMonthlySavings
-- | The estimated monthly savings possible as a percentage of monthly cost
-- by adopting Compute Optimizer recommendations for a given resource.
[$sel:savingsOpportunityPercentage:SavingsOpportunity'] :: SavingsOpportunity -> Maybe Double
-- | Create a value of SavingsOpportunity with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:estimatedMonthlySavings:SavingsOpportunity',
-- savingsOpportunity_estimatedMonthlySavings - An object that
-- describes the estimated monthly savings amount possible, based on
-- On-Demand instance pricing, by adopting Compute Optimizer
-- recommendations for a given resource.
--
-- $sel:savingsOpportunityPercentage:SavingsOpportunity',
-- savingsOpportunity_savingsOpportunityPercentage - The estimated
-- monthly savings possible as a percentage of monthly cost by adopting
-- Compute Optimizer recommendations for a given resource.
newSavingsOpportunity :: SavingsOpportunity
-- | An object that describes the estimated monthly savings amount
-- possible, based on On-Demand instance pricing, by adopting Compute
-- Optimizer recommendations for a given resource.
savingsOpportunity_estimatedMonthlySavings :: Lens' SavingsOpportunity (Maybe EstimatedMonthlySavings)
-- | The estimated monthly savings possible as a percentage of monthly cost
-- by adopting Compute Optimizer recommendations for a given resource.
savingsOpportunity_savingsOpportunityPercentage :: Lens' SavingsOpportunity (Maybe Double)
-- | Describes the scope of a recommendation preference.
--
-- Recommendation preferences can be created at the organization level
-- (for management accounts of an organization only), account level, and
-- resource level. For more information, see Activating enhanced
-- infrastructure metrics in the Compute Optimizer User Guide.
--
-- You cannot create recommendation preferences for Auto Scaling groups
-- at the organization and account levels. You can create recommendation
-- preferences for Auto Scaling groups only at the resource level by
-- specifying a scope name of ResourceArn and a scope value of
-- the Auto Scaling group Amazon Resource Name (ARN). This will configure
-- the preference for all instances that are part of the specified Auto
-- Scaling group. You also cannot create recommendation preferences at
-- the resource level for instances that are part of an Auto Scaling
-- group. You can create recommendation preferences at the resource level
-- only for standalone instances.
--
-- See: newScope smart constructor.
data Scope
Scope' :: Maybe ScopeName -> Maybe Text -> Scope
-- | The name of the scope.
--
-- The following scopes are possible:
--
--
-- - Organization - Specifies that the recommendation
-- preference applies at the organization level, for all member accounts
-- of an organization.
-- - AccountId - Specifies that the recommendation preference
-- applies at the account level, for all resources of a given resource
-- type in an account.
-- - ResourceArn - Specifies that the recommendation
-- preference applies at the individual resource level.
--
[$sel:name:Scope'] :: Scope -> Maybe ScopeName
-- | The value of the scope.
--
-- If you specified the name of the scope as:
--
--
-- - Organization - The value must be
-- ALL_ACCOUNTS.
-- - AccountId - The value must be a 12-digit Amazon
-- Web Services account ID.
-- - ResourceArn - The value must be the Amazon
-- Resource Name (ARN) of an EC2 instance or an Auto Scaling group.
--
--
-- Only EC2 instance and Auto Scaling group ARNs are currently supported.
[$sel:value:Scope'] :: Scope -> Maybe Text
-- | Create a value of Scope with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:Scope', scope_name - The name of the scope.
--
-- The following scopes are possible:
--
--
-- - Organization - Specifies that the recommendation
-- preference applies at the organization level, for all member accounts
-- of an organization.
-- - AccountId - Specifies that the recommendation preference
-- applies at the account level, for all resources of a given resource
-- type in an account.
-- - ResourceArn - Specifies that the recommendation
-- preference applies at the individual resource level.
--
--
-- $sel:value:Scope', scope_value - The value of the scope.
--
-- If you specified the name of the scope as:
--
--
-- - Organization - The value must be
-- ALL_ACCOUNTS.
-- - AccountId - The value must be a 12-digit Amazon
-- Web Services account ID.
-- - ResourceArn - The value must be the Amazon
-- Resource Name (ARN) of an EC2 instance or an Auto Scaling group.
--
--
-- Only EC2 instance and Auto Scaling group ARNs are currently supported.
newScope :: Scope
-- | The name of the scope.
--
-- The following scopes are possible:
--
--
-- - Organization - Specifies that the recommendation
-- preference applies at the organization level, for all member accounts
-- of an organization.
-- - AccountId - Specifies that the recommendation preference
-- applies at the account level, for all resources of a given resource
-- type in an account.
-- - ResourceArn - Specifies that the recommendation
-- preference applies at the individual resource level.
--
scope_name :: Lens' Scope (Maybe ScopeName)
-- | The value of the scope.
--
-- If you specified the name of the scope as:
--
--
-- - Organization - The value must be
-- ALL_ACCOUNTS.
-- - AccountId - The value must be a 12-digit Amazon
-- Web Services account ID.
-- - ResourceArn - The value must be the Amazon
-- Resource Name (ARN) of an EC2 instance or an Auto Scaling group.
--
--
-- Only EC2 instance and Auto Scaling group ARNs are currently supported.
scope_value :: Lens' Scope (Maybe Text)
-- | The Amazon ECS service configurations used for recommendations.
--
-- See: newServiceConfiguration smart constructor.
data ServiceConfiguration
ServiceConfiguration' :: Maybe AutoScalingConfiguration -> Maybe [ContainerConfiguration] -> Maybe Int -> Maybe Int -> Maybe Text -> ServiceConfiguration
-- | Describes the Auto Scaling configuration methods for an Amazon ECS
-- service. This affects the generated recommendations. For example, if
-- Auto Scaling is configured on a ECS service’s CPU, then Compute
-- Optimizer doesn’t generate CPU size recommendations.
--
-- The Auto Scaling configuration methods include:
--
--
-- - TARGET_TRACKING_SCALING_CPU — If the ECS service is
-- configured to use target scaling on CPU, Compute Optimizer doesn't
-- generate CPU recommendations.
-- - TARGET_TRACKING_SCALING_MEMORY — If the ECS service is
-- configured to use target scaling on memory, Compute Optimizer doesn't
-- generate memory recommendations.
--
--
-- For more information about step scaling and target scaling, see
-- Step scaling policies for Application Auto Scaling and
-- Target tracking scaling policies for Application Auto Scaling
-- in the Application Auto Scaling User Guide.
[$sel:autoScalingConfiguration:ServiceConfiguration'] :: ServiceConfiguration -> Maybe AutoScalingConfiguration
-- | The container configurations within a task of an ECS service.
[$sel:containerConfigurations:ServiceConfiguration'] :: ServiceConfiguration -> Maybe [ContainerConfiguration]
-- | The number of CPU units used by the tasks in the ECS service.
[$sel:cpu:ServiceConfiguration'] :: ServiceConfiguration -> Maybe Int
-- | The amount of memory used by the tasks in the ECS service.
[$sel:memory:ServiceConfiguration'] :: ServiceConfiguration -> Maybe Int
-- | The task definition ARN used by the tasks in the ECS service.
[$sel:taskDefinitionArn:ServiceConfiguration'] :: ServiceConfiguration -> Maybe Text
-- | Create a value of ServiceConfiguration with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:autoScalingConfiguration:ServiceConfiguration',
-- serviceConfiguration_autoScalingConfiguration - Describes the
-- Auto Scaling configuration methods for an Amazon ECS service. This
-- affects the generated recommendations. For example, if Auto Scaling is
-- configured on a ECS service’s CPU, then Compute Optimizer doesn’t
-- generate CPU size recommendations.
--
-- The Auto Scaling configuration methods include:
--
--
-- - TARGET_TRACKING_SCALING_CPU — If the ECS service is
-- configured to use target scaling on CPU, Compute Optimizer doesn't
-- generate CPU recommendations.
-- - TARGET_TRACKING_SCALING_MEMORY — If the ECS service is
-- configured to use target scaling on memory, Compute Optimizer doesn't
-- generate memory recommendations.
--
--
-- For more information about step scaling and target scaling, see
-- Step scaling policies for Application Auto Scaling and
-- Target tracking scaling policies for Application Auto Scaling
-- in the Application Auto Scaling User Guide.
--
-- $sel:containerConfigurations:ServiceConfiguration',
-- serviceConfiguration_containerConfigurations - The container
-- configurations within a task of an ECS service.
--
-- ServiceConfiguration, serviceConfiguration_cpu - The
-- number of CPU units used by the tasks in the ECS service.
--
-- $sel:memory:ServiceConfiguration',
-- serviceConfiguration_memory - The amount of memory used by the
-- tasks in the ECS service.
--
-- $sel:taskDefinitionArn:ServiceConfiguration',
-- serviceConfiguration_taskDefinitionArn - The task definition
-- ARN used by the tasks in the ECS service.
newServiceConfiguration :: ServiceConfiguration
-- | Describes the Auto Scaling configuration methods for an Amazon ECS
-- service. This affects the generated recommendations. For example, if
-- Auto Scaling is configured on a ECS service’s CPU, then Compute
-- Optimizer doesn’t generate CPU size recommendations.
--
-- The Auto Scaling configuration methods include:
--
--
-- - TARGET_TRACKING_SCALING_CPU — If the ECS service is
-- configured to use target scaling on CPU, Compute Optimizer doesn't
-- generate CPU recommendations.
-- - TARGET_TRACKING_SCALING_MEMORY — If the ECS service is
-- configured to use target scaling on memory, Compute Optimizer doesn't
-- generate memory recommendations.
--
--
-- For more information about step scaling and target scaling, see
-- Step scaling policies for Application Auto Scaling and
-- Target tracking scaling policies for Application Auto Scaling
-- in the Application Auto Scaling User Guide.
serviceConfiguration_autoScalingConfiguration :: Lens' ServiceConfiguration (Maybe AutoScalingConfiguration)
-- | The container configurations within a task of an ECS service.
serviceConfiguration_containerConfigurations :: Lens' ServiceConfiguration (Maybe [ContainerConfiguration])
-- | The number of CPU units used by the tasks in the ECS service.
serviceConfiguration_cpu :: Lens' ServiceConfiguration (Maybe Int)
-- | The amount of memory used by the tasks in the ECS service.
serviceConfiguration_memory :: Lens' ServiceConfiguration (Maybe Int)
-- | The task definition ARN used by the tasks in the ECS service.
serviceConfiguration_taskDefinitionArn :: Lens' ServiceConfiguration (Maybe Text)
-- | The summary of a recommendation.
--
-- See: newSummary smart constructor.
data Summary
Summary' :: Maybe Finding -> Maybe [ReasonCodeSummary] -> Maybe Double -> Summary
-- | The finding classification of the recommendation.
[$sel:name:Summary'] :: Summary -> Maybe Finding
-- | An array of objects that summarize a finding reason code.
[$sel:reasonCodeSummaries:Summary'] :: Summary -> Maybe [ReasonCodeSummary]
-- | The value of the recommendation summary.
[$sel:value:Summary'] :: Summary -> Maybe Double
-- | Create a value of Summary with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- Summary, summary_name - The finding classification of
-- the recommendation.
--
-- $sel:reasonCodeSummaries:Summary',
-- summary_reasonCodeSummaries - An array of objects that
-- summarize a finding reason code.
--
-- Summary, summary_value - The value of the recommendation
-- summary.
newSummary :: Summary
-- | The finding classification of the recommendation.
summary_name :: Lens' Summary (Maybe Finding)
-- | An array of objects that summarize a finding reason code.
summary_reasonCodeSummaries :: Lens' Summary (Maybe [ReasonCodeSummary])
-- | The value of the recommendation summary.
summary_value :: Lens' Summary (Maybe Double)
-- | Describes a utilization metric of a resource, such as an Amazon EC2
-- instance.
--
-- Compare the utilization metric data of your resource against its
-- projected utilization metric data to determine the performance
-- difference between your current resource and the recommended option.
--
-- See: newUtilizationMetric smart constructor.
data UtilizationMetric
UtilizationMetric' :: Maybe MetricName -> Maybe MetricStatistic -> Maybe Double -> UtilizationMetric
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Cpu - The percentage of allocated EC2 compute units that
-- are currently in use on the instance. This metric identifies the
-- processing power required to run an application on the
-- instance.Depending on the instance type, tools in your operating
-- system can show a lower percentage than CloudWatch when the instance
-- is not allocated a full processor core.Units: Percent
-- - Memory - The percentage of memory that is currently in
-- use on the instance. This metric identifies the amount of memory
-- required to run an application on the instance.Units: PercentThe
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
-- - EBS_READ_OPS_PER_SECOND - The completed read operations
-- from all EBS volumes attached to the instance in a specified period of
-- time.Unit: Count
-- - EBS_WRITE_OPS_PER_SECOND - The completed write operations
-- to all EBS volumes attached to the instance in a specified period of
-- time.Unit: Count
-- - EBS_READ_BYTES_PER_SECOND - The bytes read from all EBS
-- volumes attached to the instance in a specified period of time.Unit:
-- Bytes
-- - EBS_WRITE_BYTES_PER_SECOND - The bytes written to all EBS
-- volumes attached to the instance in a specified period of time.Unit:
-- Bytes
-- - DISK_READ_OPS_PER_SECOND - The completed read operations
-- from all instance store volumes available to the instance in a
-- specified period of time.If there are no instance store volumes,
-- either the value is 0 or the metric is not reported.
-- - DISK_WRITE_OPS_PER_SECOND - The completed write
-- operations from all instance store volumes available to the instance
-- in a specified period of time.If there are no instance store volumes,
-- either the value is 0 or the metric is not reported.
-- - DISK_READ_BYTES_PER_SECOND - The bytes read from all
-- instance store volumes available to the instance. This metric is used
-- to determine the volume of the data the application reads from the
-- disk of the instance. This can be used to determine the speed of the
-- application.If there are no instance store volumes, either the value
-- is 0 or the metric is not reported.
-- - DISK_WRITE_BYTES_PER_SECOND - The bytes written to all
-- instance store volumes available to the instance. This metric is used
-- to determine the volume of the data the application writes onto the
-- disk of the instance. This can be used to determine the speed of the
-- application.If there are no instance store volumes, either the value
-- is 0 or the metric is not reported.
-- - NETWORK_IN_BYTES_PER_SECOND - The number of bytes
-- received by the instance on all network interfaces. This metric
-- identifies the volume of incoming network traffic to a single
-- instance.
-- - NETWORK_OUT_BYTES_PER_SECOND - The number of bytes sent
-- out by the instance on all network interfaces. This metric identifies
-- the volume of outgoing network traffic from a single instance.
-- - NETWORK_PACKETS_IN_PER_SECOND - The number of packets
-- received by the instance on all network interfaces. This metric
-- identifies the volume of incoming traffic in terms of the number of
-- packets on a single instance.
-- - NETWORK_PACKETS_OUT_PER_SECOND - The number of packets
-- sent out by the instance on all network interfaces. This metric
-- identifies the volume of outgoing traffic in terms of the number of
-- packets on a single instance.
--
[$sel:name:UtilizationMetric'] :: UtilizationMetric -> Maybe MetricName
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
[$sel:statistic:UtilizationMetric'] :: UtilizationMetric -> Maybe MetricStatistic
-- | The value of the utilization metric.
[$sel:value:UtilizationMetric'] :: UtilizationMetric -> Maybe Double
-- | Create a value of UtilizationMetric with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:UtilizationMetric', utilizationMetric_name -
-- The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Cpu - The percentage of allocated EC2 compute units that
-- are currently in use on the instance. This metric identifies the
-- processing power required to run an application on the
-- instance.Depending on the instance type, tools in your operating
-- system can show a lower percentage than CloudWatch when the instance
-- is not allocated a full processor core.Units: Percent
-- - Memory - The percentage of memory that is currently in
-- use on the instance. This metric identifies the amount of memory
-- required to run an application on the instance.Units: PercentThe
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
-- - EBS_READ_OPS_PER_SECOND - The completed read operations
-- from all EBS volumes attached to the instance in a specified period of
-- time.Unit: Count
-- - EBS_WRITE_OPS_PER_SECOND - The completed write operations
-- to all EBS volumes attached to the instance in a specified period of
-- time.Unit: Count
-- - EBS_READ_BYTES_PER_SECOND - The bytes read from all EBS
-- volumes attached to the instance in a specified period of time.Unit:
-- Bytes
-- - EBS_WRITE_BYTES_PER_SECOND - The bytes written to all EBS
-- volumes attached to the instance in a specified period of time.Unit:
-- Bytes
-- - DISK_READ_OPS_PER_SECOND - The completed read operations
-- from all instance store volumes available to the instance in a
-- specified period of time.If there are no instance store volumes,
-- either the value is 0 or the metric is not reported.
-- - DISK_WRITE_OPS_PER_SECOND - The completed write
-- operations from all instance store volumes available to the instance
-- in a specified period of time.If there are no instance store volumes,
-- either the value is 0 or the metric is not reported.
-- - DISK_READ_BYTES_PER_SECOND - The bytes read from all
-- instance store volumes available to the instance. This metric is used
-- to determine the volume of the data the application reads from the
-- disk of the instance. This can be used to determine the speed of the
-- application.If there are no instance store volumes, either the value
-- is 0 or the metric is not reported.
-- - DISK_WRITE_BYTES_PER_SECOND - The bytes written to all
-- instance store volumes available to the instance. This metric is used
-- to determine the volume of the data the application writes onto the
-- disk of the instance. This can be used to determine the speed of the
-- application.If there are no instance store volumes, either the value
-- is 0 or the metric is not reported.
-- - NETWORK_IN_BYTES_PER_SECOND - The number of bytes
-- received by the instance on all network interfaces. This metric
-- identifies the volume of incoming network traffic to a single
-- instance.
-- - NETWORK_OUT_BYTES_PER_SECOND - The number of bytes sent
-- out by the instance on all network interfaces. This metric identifies
-- the volume of outgoing network traffic from a single instance.
-- - NETWORK_PACKETS_IN_PER_SECOND - The number of packets
-- received by the instance on all network interfaces. This metric
-- identifies the volume of incoming traffic in terms of the number of
-- packets on a single instance.
-- - NETWORK_PACKETS_OUT_PER_SECOND - The number of packets
-- sent out by the instance on all network interfaces. This metric
-- identifies the volume of outgoing traffic in terms of the number of
-- packets on a single instance.
--
--
-- $sel:statistic:UtilizationMetric',
-- utilizationMetric_statistic - The statistic of the utilization
-- metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
--
-- $sel:value:UtilizationMetric', utilizationMetric_value -
-- The value of the utilization metric.
newUtilizationMetric :: UtilizationMetric
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Cpu - The percentage of allocated EC2 compute units that
-- are currently in use on the instance. This metric identifies the
-- processing power required to run an application on the
-- instance.Depending on the instance type, tools in your operating
-- system can show a lower percentage than CloudWatch when the instance
-- is not allocated a full processor core.Units: Percent
-- - Memory - The percentage of memory that is currently in
-- use on the instance. This metric identifies the amount of memory
-- required to run an application on the instance.Units: PercentThe
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
-- - EBS_READ_OPS_PER_SECOND - The completed read operations
-- from all EBS volumes attached to the instance in a specified period of
-- time.Unit: Count
-- - EBS_WRITE_OPS_PER_SECOND - The completed write operations
-- to all EBS volumes attached to the instance in a specified period of
-- time.Unit: Count
-- - EBS_READ_BYTES_PER_SECOND - The bytes read from all EBS
-- volumes attached to the instance in a specified period of time.Unit:
-- Bytes
-- - EBS_WRITE_BYTES_PER_SECOND - The bytes written to all EBS
-- volumes attached to the instance in a specified period of time.Unit:
-- Bytes
-- - DISK_READ_OPS_PER_SECOND - The completed read operations
-- from all instance store volumes available to the instance in a
-- specified period of time.If there are no instance store volumes,
-- either the value is 0 or the metric is not reported.
-- - DISK_WRITE_OPS_PER_SECOND - The completed write
-- operations from all instance store volumes available to the instance
-- in a specified period of time.If there are no instance store volumes,
-- either the value is 0 or the metric is not reported.
-- - DISK_READ_BYTES_PER_SECOND - The bytes read from all
-- instance store volumes available to the instance. This metric is used
-- to determine the volume of the data the application reads from the
-- disk of the instance. This can be used to determine the speed of the
-- application.If there are no instance store volumes, either the value
-- is 0 or the metric is not reported.
-- - DISK_WRITE_BYTES_PER_SECOND - The bytes written to all
-- instance store volumes available to the instance. This metric is used
-- to determine the volume of the data the application writes onto the
-- disk of the instance. This can be used to determine the speed of the
-- application.If there are no instance store volumes, either the value
-- is 0 or the metric is not reported.
-- - NETWORK_IN_BYTES_PER_SECOND - The number of bytes
-- received by the instance on all network interfaces. This metric
-- identifies the volume of incoming network traffic to a single
-- instance.
-- - NETWORK_OUT_BYTES_PER_SECOND - The number of bytes sent
-- out by the instance on all network interfaces. This metric identifies
-- the volume of outgoing network traffic from a single instance.
-- - NETWORK_PACKETS_IN_PER_SECOND - The number of packets
-- received by the instance on all network interfaces. This metric
-- identifies the volume of incoming traffic in terms of the number of
-- packets on a single instance.
-- - NETWORK_PACKETS_OUT_PER_SECOND - The number of packets
-- sent out by the instance on all network interfaces. This metric
-- identifies the volume of outgoing traffic in terms of the number of
-- packets on a single instance.
--
utilizationMetric_name :: Lens' UtilizationMetric (Maybe MetricName)
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
utilizationMetric_statistic :: Lens' UtilizationMetric (Maybe MetricStatistic)
-- | The value of the utilization metric.
utilizationMetric_value :: Lens' UtilizationMetric (Maybe Double)
-- | Describes the configuration of an Amazon Elastic Block Store (Amazon
-- EBS) volume.
--
-- See: newVolumeConfiguration smart constructor.
data VolumeConfiguration
VolumeConfiguration' :: Maybe Int -> Maybe Int -> Maybe Int -> Maybe Int -> Maybe Int -> Maybe Text -> VolumeConfiguration
-- | The baseline IOPS of the volume.
[$sel:volumeBaselineIOPS:VolumeConfiguration'] :: VolumeConfiguration -> Maybe Int
-- | The baseline throughput of the volume.
[$sel:volumeBaselineThroughput:VolumeConfiguration'] :: VolumeConfiguration -> Maybe Int
-- | The burst IOPS of the volume.
[$sel:volumeBurstIOPS:VolumeConfiguration'] :: VolumeConfiguration -> Maybe Int
-- | The burst throughput of the volume.
[$sel:volumeBurstThroughput:VolumeConfiguration'] :: VolumeConfiguration -> Maybe Int
-- | The size of the volume, in GiB.
[$sel:volumeSize:VolumeConfiguration'] :: VolumeConfiguration -> Maybe Int
-- | The volume type.
--
-- This can be gp2 for General Purpose SSD, io1 or
-- io2 for Provisioned IOPS SSD, st1 for Throughput
-- Optimized HDD, sc1 for Cold HDD, or standard for
-- Magnetic volumes.
[$sel:volumeType:VolumeConfiguration'] :: VolumeConfiguration -> Maybe Text
-- | Create a value of VolumeConfiguration with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:volumeBaselineIOPS:VolumeConfiguration',
-- volumeConfiguration_volumeBaselineIOPS - The baseline IOPS of
-- the volume.
--
-- $sel:volumeBaselineThroughput:VolumeConfiguration',
-- volumeConfiguration_volumeBaselineThroughput - The baseline
-- throughput of the volume.
--
-- $sel:volumeBurstIOPS:VolumeConfiguration',
-- volumeConfiguration_volumeBurstIOPS - The burst IOPS of the
-- volume.
--
-- $sel:volumeBurstThroughput:VolumeConfiguration',
-- volumeConfiguration_volumeBurstThroughput - The burst
-- throughput of the volume.
--
-- $sel:volumeSize:VolumeConfiguration',
-- volumeConfiguration_volumeSize - The size of the volume, in
-- GiB.
--
-- $sel:volumeType:VolumeConfiguration',
-- volumeConfiguration_volumeType - The volume type.
--
-- This can be gp2 for General Purpose SSD, io1 or
-- io2 for Provisioned IOPS SSD, st1 for Throughput
-- Optimized HDD, sc1 for Cold HDD, or standard for
-- Magnetic volumes.
newVolumeConfiguration :: VolumeConfiguration
-- | The baseline IOPS of the volume.
volumeConfiguration_volumeBaselineIOPS :: Lens' VolumeConfiguration (Maybe Int)
-- | The baseline throughput of the volume.
volumeConfiguration_volumeBaselineThroughput :: Lens' VolumeConfiguration (Maybe Int)
-- | The burst IOPS of the volume.
volumeConfiguration_volumeBurstIOPS :: Lens' VolumeConfiguration (Maybe Int)
-- | The burst throughput of the volume.
volumeConfiguration_volumeBurstThroughput :: Lens' VolumeConfiguration (Maybe Int)
-- | The size of the volume, in GiB.
volumeConfiguration_volumeSize :: Lens' VolumeConfiguration (Maybe Int)
-- | The volume type.
--
-- This can be gp2 for General Purpose SSD, io1 or
-- io2 for Provisioned IOPS SSD, st1 for Throughput
-- Optimized HDD, sc1 for Cold HDD, or standard for
-- Magnetic volumes.
volumeConfiguration_volumeType :: Lens' VolumeConfiguration (Maybe Text)
-- | Describes an Amazon Elastic Block Store (Amazon EBS) volume
-- recommendation.
--
-- See: newVolumeRecommendation smart constructor.
data VolumeRecommendation
VolumeRecommendation' :: Maybe Text -> Maybe VolumeConfiguration -> Maybe CurrentPerformanceRisk -> Maybe EBSFinding -> Maybe POSIX -> Maybe Double -> Maybe [EBSUtilizationMetric] -> Maybe Text -> Maybe [VolumeRecommendationOption] -> VolumeRecommendation
-- | The Amazon Web Services account ID of the volume.
[$sel:accountId:VolumeRecommendation'] :: VolumeRecommendation -> Maybe Text
-- | An array of objects that describe the current configuration of the
-- volume.
[$sel:currentConfiguration:VolumeRecommendation'] :: VolumeRecommendation -> Maybe VolumeConfiguration
-- | The risk of the current EBS volume not meeting the performance needs
-- of its workloads. The higher the risk, the more likely the current EBS
-- volume doesn't have sufficient capacity.
[$sel:currentPerformanceRisk:VolumeRecommendation'] :: VolumeRecommendation -> Maybe CurrentPerformanceRisk
-- | The finding classification of the volume.
--
-- Findings for volumes include:
--
--
-- - NotOptimized —A volume is considered not optimized
-- when Compute Optimizer identifies a recommendation that can provide
-- better performance for your workload.
-- - Optimized —An volume is considered optimized when
-- Compute Optimizer determines that the volume is correctly provisioned
-- to run your workload based on the chosen volume type. For optimized
-- resources, Compute Optimizer might recommend a new generation volume
-- type.
--
[$sel:finding:VolumeRecommendation'] :: VolumeRecommendation -> Maybe EBSFinding
-- | The timestamp of when the volume recommendation was last generated.
[$sel:lastRefreshTimestamp:VolumeRecommendation'] :: VolumeRecommendation -> Maybe POSIX
-- | The number of days for which utilization metrics were analyzed for the
-- volume.
[$sel:lookBackPeriodInDays:VolumeRecommendation'] :: VolumeRecommendation -> Maybe Double
-- | An array of objects that describe the utilization metrics of the
-- volume.
[$sel:utilizationMetrics:VolumeRecommendation'] :: VolumeRecommendation -> Maybe [EBSUtilizationMetric]
-- | The Amazon Resource Name (ARN) of the current volume.
[$sel:volumeArn:VolumeRecommendation'] :: VolumeRecommendation -> Maybe Text
-- | An array of objects that describe the recommendation options for the
-- volume.
[$sel:volumeRecommendationOptions:VolumeRecommendation'] :: VolumeRecommendation -> Maybe [VolumeRecommendationOption]
-- | Create a value of VolumeRecommendation with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:VolumeRecommendation',
-- volumeRecommendation_accountId - The Amazon Web Services
-- account ID of the volume.
--
-- $sel:currentConfiguration:VolumeRecommendation',
-- volumeRecommendation_currentConfiguration - An array of objects
-- that describe the current configuration of the volume.
--
-- $sel:currentPerformanceRisk:VolumeRecommendation',
-- volumeRecommendation_currentPerformanceRisk - The risk of the
-- current EBS volume not meeting the performance needs of its workloads.
-- The higher the risk, the more likely the current EBS volume doesn't
-- have sufficient capacity.
--
-- $sel:finding:VolumeRecommendation',
-- volumeRecommendation_finding - The finding classification of
-- the volume.
--
-- Findings for volumes include:
--
--
-- - NotOptimized —A volume is considered not optimized
-- when Compute Optimizer identifies a recommendation that can provide
-- better performance for your workload.
-- - Optimized —An volume is considered optimized when
-- Compute Optimizer determines that the volume is correctly provisioned
-- to run your workload based on the chosen volume type. For optimized
-- resources, Compute Optimizer might recommend a new generation volume
-- type.
--
--
-- $sel:lastRefreshTimestamp:VolumeRecommendation',
-- volumeRecommendation_lastRefreshTimestamp - The timestamp of
-- when the volume recommendation was last generated.
--
-- $sel:lookBackPeriodInDays:VolumeRecommendation',
-- volumeRecommendation_lookBackPeriodInDays - The number of days
-- for which utilization metrics were analyzed for the volume.
--
-- $sel:utilizationMetrics:VolumeRecommendation',
-- volumeRecommendation_utilizationMetrics - An array of objects
-- that describe the utilization metrics of the volume.
--
-- $sel:volumeArn:VolumeRecommendation',
-- volumeRecommendation_volumeArn - The Amazon Resource Name (ARN)
-- of the current volume.
--
-- $sel:volumeRecommendationOptions:VolumeRecommendation',
-- volumeRecommendation_volumeRecommendationOptions - An array of
-- objects that describe the recommendation options for the volume.
newVolumeRecommendation :: VolumeRecommendation
-- | The Amazon Web Services account ID of the volume.
volumeRecommendation_accountId :: Lens' VolumeRecommendation (Maybe Text)
-- | An array of objects that describe the current configuration of the
-- volume.
volumeRecommendation_currentConfiguration :: Lens' VolumeRecommendation (Maybe VolumeConfiguration)
-- | The risk of the current EBS volume not meeting the performance needs
-- of its workloads. The higher the risk, the more likely the current EBS
-- volume doesn't have sufficient capacity.
volumeRecommendation_currentPerformanceRisk :: Lens' VolumeRecommendation (Maybe CurrentPerformanceRisk)
-- | The finding classification of the volume.
--
-- Findings for volumes include:
--
--
-- - NotOptimized —A volume is considered not optimized
-- when Compute Optimizer identifies a recommendation that can provide
-- better performance for your workload.
-- - Optimized —An volume is considered optimized when
-- Compute Optimizer determines that the volume is correctly provisioned
-- to run your workload based on the chosen volume type. For optimized
-- resources, Compute Optimizer might recommend a new generation volume
-- type.
--
volumeRecommendation_finding :: Lens' VolumeRecommendation (Maybe EBSFinding)
-- | The timestamp of when the volume recommendation was last generated.
volumeRecommendation_lastRefreshTimestamp :: Lens' VolumeRecommendation (Maybe UTCTime)
-- | The number of days for which utilization metrics were analyzed for the
-- volume.
volumeRecommendation_lookBackPeriodInDays :: Lens' VolumeRecommendation (Maybe Double)
-- | An array of objects that describe the utilization metrics of the
-- volume.
volumeRecommendation_utilizationMetrics :: Lens' VolumeRecommendation (Maybe [EBSUtilizationMetric])
-- | The Amazon Resource Name (ARN) of the current volume.
volumeRecommendation_volumeArn :: Lens' VolumeRecommendation (Maybe Text)
-- | An array of objects that describe the recommendation options for the
-- volume.
volumeRecommendation_volumeRecommendationOptions :: Lens' VolumeRecommendation (Maybe [VolumeRecommendationOption])
-- | Describes a recommendation option for an Amazon Elastic Block Store
-- (Amazon EBS) instance.
--
-- See: newVolumeRecommendationOption smart constructor.
data VolumeRecommendationOption
VolumeRecommendationOption' :: Maybe VolumeConfiguration -> Maybe Double -> Maybe Int -> Maybe SavingsOpportunity -> VolumeRecommendationOption
-- | An array of objects that describe a volume configuration.
[$sel:configuration:VolumeRecommendationOption'] :: VolumeRecommendationOption -> Maybe VolumeConfiguration
-- | The performance risk of the volume recommendation option.
--
-- Performance risk is the likelihood of the recommended volume type
-- meeting the performance requirement of your workload.
--
-- 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.
[$sel:performanceRisk:VolumeRecommendationOption'] :: VolumeRecommendationOption -> Maybe Double
-- | The rank of the volume recommendation option.
--
-- The top recommendation option is ranked as 1.
[$sel:rank:VolumeRecommendationOption'] :: VolumeRecommendationOption -> Maybe Int
-- | An object that describes the savings opportunity for the EBS volume
-- recommendation option. Savings opportunity includes the estimated
-- monthly savings amount and percentage.
[$sel:savingsOpportunity:VolumeRecommendationOption'] :: VolumeRecommendationOption -> Maybe SavingsOpportunity
-- | Create a value of VolumeRecommendationOption with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:configuration:VolumeRecommendationOption',
-- volumeRecommendationOption_configuration - An array of objects
-- that describe a volume configuration.
--
-- $sel:performanceRisk:VolumeRecommendationOption',
-- volumeRecommendationOption_performanceRisk - The performance
-- risk of the volume recommendation option.
--
-- Performance risk is the likelihood of the recommended volume type
-- meeting the performance requirement of your workload.
--
-- 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.
--
-- $sel:rank:VolumeRecommendationOption',
-- volumeRecommendationOption_rank - The rank of the volume
-- recommendation option.
--
-- The top recommendation option is ranked as 1.
--
-- $sel:savingsOpportunity:VolumeRecommendationOption',
-- volumeRecommendationOption_savingsOpportunity - An object that
-- describes the savings opportunity for the EBS volume recommendation
-- option. Savings opportunity includes the estimated monthly savings
-- amount and percentage.
newVolumeRecommendationOption :: VolumeRecommendationOption
-- | An array of objects that describe a volume configuration.
volumeRecommendationOption_configuration :: Lens' VolumeRecommendationOption (Maybe VolumeConfiguration)
-- | The performance risk of the volume recommendation option.
--
-- Performance risk is the likelihood of the recommended volume type
-- meeting the performance requirement of your workload.
--
-- 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.
volumeRecommendationOption_performanceRisk :: Lens' VolumeRecommendationOption (Maybe Double)
-- | The rank of the volume recommendation option.
--
-- The top recommendation option is ranked as 1.
volumeRecommendationOption_rank :: Lens' VolumeRecommendationOption (Maybe Int)
-- | An object that describes the savings opportunity for the EBS volume
-- recommendation option. Savings opportunity includes the estimated
-- monthly savings amount and percentage.
volumeRecommendationOption_savingsOpportunity :: Lens' VolumeRecommendationOption (Maybe SavingsOpportunity)
-- | Creates a new recommendation preference or updates an existing
-- recommendation preference, such as enhanced infrastructure metrics.
--
-- For more information, see Activating enhanced infrastructure
-- metrics in the Compute Optimizer User Guide.
module Amazonka.ComputeOptimizer.PutRecommendationPreferences
-- | See: newPutRecommendationPreferences smart constructor.
data PutRecommendationPreferences
PutRecommendationPreferences' :: Maybe EnhancedInfrastructureMetrics -> Maybe ExternalMetricsPreference -> Maybe InferredWorkloadTypesPreference -> Maybe Scope -> ResourceType -> PutRecommendationPreferences
-- | The status of the enhanced infrastructure metrics recommendation
-- preference to create or update.
--
-- Specify the Active status to activate the preference, or
-- specify Inactive to deactivate the preference.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
[$sel:enhancedInfrastructureMetrics:PutRecommendationPreferences'] :: PutRecommendationPreferences -> Maybe EnhancedInfrastructureMetrics
-- | The provider of the external metrics recommendation preference to
-- create or update.
--
-- Specify a valid provider in the source field to activate the
-- preference. To delete this preference, see the
-- DeleteRecommendationPreferences action.
--
-- This preference can only be set for the Ec2Instance resource
-- type.
--
-- For more information, see External metrics ingestion in the
-- Compute Optimizer User Guide.
[$sel:externalMetricsPreference:PutRecommendationPreferences'] :: PutRecommendationPreferences -> Maybe ExternalMetricsPreference
-- | The status of the inferred workload types recommendation preference to
-- create or update.
--
-- The inferred workload type feature is active by default. To deactivate
-- it, create a recommendation preference.
--
-- Specify the Inactive status to deactivate the feature, or
-- specify Active to activate it.
--
-- For more information, see Inferred workload types in the
-- Compute Optimizer User Guide.
[$sel:inferredWorkloadTypes:PutRecommendationPreferences'] :: PutRecommendationPreferences -> Maybe InferredWorkloadTypesPreference
-- | An object that describes the scope of the recommendation preference to
-- create.
--
-- You can create recommendation preferences at the organization level
-- (for management accounts of an organization only), account level, and
-- resource level. For more information, see Activating enhanced
-- infrastructure metrics in the Compute Optimizer User Guide.
--
-- You cannot create recommendation preferences for Auto Scaling groups
-- at the organization and account levels. You can create recommendation
-- preferences for Auto Scaling groups only at the resource level by
-- specifying a scope name of ResourceArn and a scope value of
-- the Auto Scaling group Amazon Resource Name (ARN). This will configure
-- the preference for all instances that are part of the specified Auto
-- Scaling group. You also cannot create recommendation preferences at
-- the resource level for instances that are part of an Auto Scaling
-- group. You can create recommendation preferences at the resource level
-- only for standalone instances.
[$sel:scope:PutRecommendationPreferences'] :: PutRecommendationPreferences -> Maybe Scope
-- | The target resource type of the recommendation preference to create.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
--
-- The valid values for this parameter are Ec2Instance and
-- AutoScalingGroup.
[$sel:resourceType:PutRecommendationPreferences'] :: PutRecommendationPreferences -> ResourceType
-- | Create a value of PutRecommendationPreferences with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- PutRecommendationPreferences,
-- putRecommendationPreferences_enhancedInfrastructureMetrics -
-- The status of the enhanced infrastructure metrics recommendation
-- preference to create or update.
--
-- Specify the Active status to activate the preference, or
-- specify Inactive to deactivate the preference.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
--
-- PutRecommendationPreferences,
-- putRecommendationPreferences_externalMetricsPreference - The
-- provider of the external metrics recommendation preference to create
-- or update.
--
-- Specify a valid provider in the source field to activate the
-- preference. To delete this preference, see the
-- DeleteRecommendationPreferences action.
--
-- This preference can only be set for the Ec2Instance resource
-- type.
--
-- For more information, see External metrics ingestion in the
-- Compute Optimizer User Guide.
--
-- PutRecommendationPreferences,
-- putRecommendationPreferences_inferredWorkloadTypes - The status
-- of the inferred workload types recommendation preference to create or
-- update.
--
-- The inferred workload type feature is active by default. To deactivate
-- it, create a recommendation preference.
--
-- Specify the Inactive status to deactivate the feature, or
-- specify Active to activate it.
--
-- For more information, see Inferred workload types in the
-- Compute Optimizer User Guide.
--
-- PutRecommendationPreferences,
-- putRecommendationPreferences_scope - An object that describes
-- the scope of the recommendation preference to create.
--
-- You can create recommendation preferences at the organization level
-- (for management accounts of an organization only), account level, and
-- resource level. For more information, see Activating enhanced
-- infrastructure metrics in the Compute Optimizer User Guide.
--
-- You cannot create recommendation preferences for Auto Scaling groups
-- at the organization and account levels. You can create recommendation
-- preferences for Auto Scaling groups only at the resource level by
-- specifying a scope name of ResourceArn and a scope value of
-- the Auto Scaling group Amazon Resource Name (ARN). This will configure
-- the preference for all instances that are part of the specified Auto
-- Scaling group. You also cannot create recommendation preferences at
-- the resource level for instances that are part of an Auto Scaling
-- group. You can create recommendation preferences at the resource level
-- only for standalone instances.
--
-- PutRecommendationPreferences,
-- putRecommendationPreferences_resourceType - The target resource
-- type of the recommendation preference to create.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
--
-- The valid values for this parameter are Ec2Instance and
-- AutoScalingGroup.
newPutRecommendationPreferences :: ResourceType -> PutRecommendationPreferences
-- | The status of the enhanced infrastructure metrics recommendation
-- preference to create or update.
--
-- Specify the Active status to activate the preference, or
-- specify Inactive to deactivate the preference.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
putRecommendationPreferences_enhancedInfrastructureMetrics :: Lens' PutRecommendationPreferences (Maybe EnhancedInfrastructureMetrics)
-- | The provider of the external metrics recommendation preference to
-- create or update.
--
-- Specify a valid provider in the source field to activate the
-- preference. To delete this preference, see the
-- DeleteRecommendationPreferences action.
--
-- This preference can only be set for the Ec2Instance resource
-- type.
--
-- For more information, see External metrics ingestion in the
-- Compute Optimizer User Guide.
putRecommendationPreferences_externalMetricsPreference :: Lens' PutRecommendationPreferences (Maybe ExternalMetricsPreference)
-- | The status of the inferred workload types recommendation preference to
-- create or update.
--
-- The inferred workload type feature is active by default. To deactivate
-- it, create a recommendation preference.
--
-- Specify the Inactive status to deactivate the feature, or
-- specify Active to activate it.
--
-- For more information, see Inferred workload types in the
-- Compute Optimizer User Guide.
putRecommendationPreferences_inferredWorkloadTypes :: Lens' PutRecommendationPreferences (Maybe InferredWorkloadTypesPreference)
-- | An object that describes the scope of the recommendation preference to
-- create.
--
-- You can create recommendation preferences at the organization level
-- (for management accounts of an organization only), account level, and
-- resource level. For more information, see Activating enhanced
-- infrastructure metrics in the Compute Optimizer User Guide.
--
-- You cannot create recommendation preferences for Auto Scaling groups
-- at the organization and account levels. You can create recommendation
-- preferences for Auto Scaling groups only at the resource level by
-- specifying a scope name of ResourceArn and a scope value of
-- the Auto Scaling group Amazon Resource Name (ARN). This will configure
-- the preference for all instances that are part of the specified Auto
-- Scaling group. You also cannot create recommendation preferences at
-- the resource level for instances that are part of an Auto Scaling
-- group. You can create recommendation preferences at the resource level
-- only for standalone instances.
putRecommendationPreferences_scope :: Lens' PutRecommendationPreferences (Maybe Scope)
-- | The target resource type of the recommendation preference to create.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
--
-- The valid values for this parameter are Ec2Instance and
-- AutoScalingGroup.
putRecommendationPreferences_resourceType :: Lens' PutRecommendationPreferences ResourceType
-- | See: newPutRecommendationPreferencesResponse smart
-- constructor.
data PutRecommendationPreferencesResponse
PutRecommendationPreferencesResponse' :: Int -> PutRecommendationPreferencesResponse
-- | The response's http status code.
[$sel:httpStatus:PutRecommendationPreferencesResponse'] :: PutRecommendationPreferencesResponse -> Int
-- | Create a value of PutRecommendationPreferencesResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:PutRecommendationPreferencesResponse',
-- putRecommendationPreferencesResponse_httpStatus - The
-- response's http status code.
newPutRecommendationPreferencesResponse :: Int -> PutRecommendationPreferencesResponse
-- | The response's http status code.
putRecommendationPreferencesResponse_httpStatus :: Lens' PutRecommendationPreferencesResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.PutRecommendationPreferences.PutRecommendationPreferences
instance GHC.Show.Show Amazonka.ComputeOptimizer.PutRecommendationPreferences.PutRecommendationPreferences
instance GHC.Read.Read Amazonka.ComputeOptimizer.PutRecommendationPreferences.PutRecommendationPreferences
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.PutRecommendationPreferences.PutRecommendationPreferences
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.PutRecommendationPreferences.PutRecommendationPreferencesResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.PutRecommendationPreferences.PutRecommendationPreferencesResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.PutRecommendationPreferences.PutRecommendationPreferencesResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.PutRecommendationPreferences.PutRecommendationPreferencesResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.PutRecommendationPreferences.PutRecommendationPreferences
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.PutRecommendationPreferences.PutRecommendationPreferencesResponse
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.PutRecommendationPreferences.PutRecommendationPreferences
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.PutRecommendationPreferences.PutRecommendationPreferences
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.PutRecommendationPreferences.PutRecommendationPreferences
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.PutRecommendationPreferences.PutRecommendationPreferences
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.PutRecommendationPreferences.PutRecommendationPreferences
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.PutRecommendationPreferences.PutRecommendationPreferences
-- | Returns the optimization findings for an account.
--
-- It returns the number of:
--
--
-- - Amazon EC2 instances in an account that are
-- Underprovisioned, Overprovisioned, or
-- Optimized.
-- - Auto Scaling groups in an account that are NotOptimized,
-- or Optimized.
-- - Amazon EBS volumes in an account that are NotOptimized,
-- or Optimized.
-- - Lambda functions in an account that are NotOptimized, or
-- Optimized.
-- - Amazon ECS services in an account that are
-- Underprovisioned, Overprovisioned, or
-- Optimized.
--
--
-- This operation returns paginated results.
module Amazonka.ComputeOptimizer.GetRecommendationSummaries
-- | See: newGetRecommendationSummaries smart constructor.
data GetRecommendationSummaries
GetRecommendationSummaries' :: Maybe [Text] -> Maybe Natural -> Maybe Text -> GetRecommendationSummaries
-- | The ID of the Amazon Web Services account for which to return
-- recommendation summaries.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- recommendation summaries.
--
-- Only one account ID can be specified per request.
[$sel:accountIds:GetRecommendationSummaries'] :: GetRecommendationSummaries -> Maybe [Text]
-- | The maximum number of recommendation summaries to return with a single
-- request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
[$sel:maxResults:GetRecommendationSummaries'] :: GetRecommendationSummaries -> Maybe Natural
-- | The token to advance to the next page of recommendation summaries.
[$sel:nextToken:GetRecommendationSummaries'] :: GetRecommendationSummaries -> Maybe Text
-- | Create a value of GetRecommendationSummaries with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:GetRecommendationSummaries',
-- getRecommendationSummaries_accountIds - The ID of the Amazon
-- Web Services account for which to return recommendation summaries.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- recommendation summaries.
--
-- Only one account ID can be specified per request.
--
-- $sel:maxResults:GetRecommendationSummaries',
-- getRecommendationSummaries_maxResults - The maximum number of
-- recommendation summaries to return with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
--
-- GetRecommendationSummaries,
-- getRecommendationSummaries_nextToken - The token to advance to
-- the next page of recommendation summaries.
newGetRecommendationSummaries :: GetRecommendationSummaries
-- | The ID of the Amazon Web Services account for which to return
-- recommendation summaries.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- recommendation summaries.
--
-- Only one account ID can be specified per request.
getRecommendationSummaries_accountIds :: Lens' GetRecommendationSummaries (Maybe [Text])
-- | The maximum number of recommendation summaries to return with a single
-- request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
getRecommendationSummaries_maxResults :: Lens' GetRecommendationSummaries (Maybe Natural)
-- | The token to advance to the next page of recommendation summaries.
getRecommendationSummaries_nextToken :: Lens' GetRecommendationSummaries (Maybe Text)
-- | See: newGetRecommendationSummariesResponse smart
-- constructor.
data GetRecommendationSummariesResponse
GetRecommendationSummariesResponse' :: Maybe Text -> Maybe [RecommendationSummary] -> Int -> GetRecommendationSummariesResponse
-- | The token to use to advance to the next page of recommendation
-- summaries.
--
-- This value is null when there are no more pages of recommendation
-- summaries to return.
[$sel:nextToken:GetRecommendationSummariesResponse'] :: GetRecommendationSummariesResponse -> Maybe Text
-- | An array of objects that summarize a recommendation.
[$sel:recommendationSummaries:GetRecommendationSummariesResponse'] :: GetRecommendationSummariesResponse -> Maybe [RecommendationSummary]
-- | The response's http status code.
[$sel:httpStatus:GetRecommendationSummariesResponse'] :: GetRecommendationSummariesResponse -> Int
-- | Create a value of GetRecommendationSummariesResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetRecommendationSummaries,
-- getRecommendationSummariesResponse_nextToken - The token to use
-- to advance to the next page of recommendation summaries.
--
-- This value is null when there are no more pages of recommendation
-- summaries to return.
--
--
-- $sel:recommendationSummaries:GetRecommendationSummariesResponse',
-- getRecommendationSummariesResponse_recommendationSummaries - An
-- array of objects that summarize a recommendation.
--
-- $sel:httpStatus:GetRecommendationSummariesResponse',
-- getRecommendationSummariesResponse_httpStatus - The response's
-- http status code.
newGetRecommendationSummariesResponse :: Int -> GetRecommendationSummariesResponse
-- | The token to use to advance to the next page of recommendation
-- summaries.
--
-- This value is null when there are no more pages of recommendation
-- summaries to return.
getRecommendationSummariesResponse_nextToken :: Lens' GetRecommendationSummariesResponse (Maybe Text)
-- | An array of objects that summarize a recommendation.
getRecommendationSummariesResponse_recommendationSummaries :: Lens' GetRecommendationSummariesResponse (Maybe [RecommendationSummary])
-- | The response's http status code.
getRecommendationSummariesResponse_httpStatus :: Lens' GetRecommendationSummariesResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetRecommendationSummaries.GetRecommendationSummaries
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetRecommendationSummaries.GetRecommendationSummaries
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetRecommendationSummaries.GetRecommendationSummaries
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetRecommendationSummaries.GetRecommendationSummaries
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetRecommendationSummaries.GetRecommendationSummariesResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetRecommendationSummaries.GetRecommendationSummariesResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetRecommendationSummaries.GetRecommendationSummariesResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetRecommendationSummaries.GetRecommendationSummariesResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.GetRecommendationSummaries.GetRecommendationSummaries
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetRecommendationSummaries.GetRecommendationSummariesResponse
instance Amazonka.Pager.AWSPager Amazonka.ComputeOptimizer.GetRecommendationSummaries.GetRecommendationSummaries
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.GetRecommendationSummaries.GetRecommendationSummaries
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetRecommendationSummaries.GetRecommendationSummaries
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.GetRecommendationSummaries.GetRecommendationSummaries
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.GetRecommendationSummaries.GetRecommendationSummaries
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.GetRecommendationSummaries.GetRecommendationSummaries
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.GetRecommendationSummaries.GetRecommendationSummaries
-- | Returns existing recommendation preferences, such as enhanced
-- infrastructure metrics.
--
-- Use the scope parameter to specify which preferences to
-- return. You can specify to return preferences for an organization, a
-- specific account ID, or a specific EC2 instance or Auto Scaling group
-- Amazon Resource Name (ARN).
--
-- For more information, see Activating enhanced infrastructure
-- metrics in the Compute Optimizer User Guide.
--
-- This operation returns paginated results.
module Amazonka.ComputeOptimizer.GetRecommendationPreferences
-- | See: newGetRecommendationPreferences smart constructor.
data GetRecommendationPreferences
GetRecommendationPreferences' :: Maybe Natural -> Maybe Text -> Maybe Scope -> ResourceType -> GetRecommendationPreferences
-- | The maximum number of recommendation preferences to return with a
-- single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
[$sel:maxResults:GetRecommendationPreferences'] :: GetRecommendationPreferences -> Maybe Natural
-- | The token to advance to the next page of recommendation preferences.
[$sel:nextToken:GetRecommendationPreferences'] :: GetRecommendationPreferences -> Maybe Text
-- | An object that describes the scope of the recommendation preference to
-- return.
--
-- You can return recommendation preferences that are created at the
-- organization level (for management accounts of an organization only),
-- account level, and resource level. For more information, see
-- Activating enhanced infrastructure metrics in the Compute
-- Optimizer User Guide.
[$sel:scope:GetRecommendationPreferences'] :: GetRecommendationPreferences -> Maybe Scope
-- | The target resource type of the recommendation preference for which to
-- return preferences.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
--
-- The valid values for this parameter are Ec2Instance and
-- AutoScalingGroup.
[$sel:resourceType:GetRecommendationPreferences'] :: GetRecommendationPreferences -> ResourceType
-- | Create a value of GetRecommendationPreferences with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:GetRecommendationPreferences',
-- getRecommendationPreferences_maxResults - The maximum number of
-- recommendation preferences to return with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
--
-- GetRecommendationPreferences,
-- getRecommendationPreferences_nextToken - The token to advance
-- to the next page of recommendation preferences.
--
-- GetRecommendationPreferences,
-- getRecommendationPreferences_scope - An object that describes
-- the scope of the recommendation preference to return.
--
-- You can return recommendation preferences that are created at the
-- organization level (for management accounts of an organization only),
-- account level, and resource level. For more information, see
-- Activating enhanced infrastructure metrics in the Compute
-- Optimizer User Guide.
--
-- GetRecommendationPreferences,
-- getRecommendationPreferences_resourceType - The target resource
-- type of the recommendation preference for which to return preferences.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
--
-- The valid values for this parameter are Ec2Instance and
-- AutoScalingGroup.
newGetRecommendationPreferences :: ResourceType -> GetRecommendationPreferences
-- | The maximum number of recommendation preferences to return with a
-- single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
getRecommendationPreferences_maxResults :: Lens' GetRecommendationPreferences (Maybe Natural)
-- | The token to advance to the next page of recommendation preferences.
getRecommendationPreferences_nextToken :: Lens' GetRecommendationPreferences (Maybe Text)
-- | An object that describes the scope of the recommendation preference to
-- return.
--
-- You can return recommendation preferences that are created at the
-- organization level (for management accounts of an organization only),
-- account level, and resource level. For more information, see
-- Activating enhanced infrastructure metrics in the Compute
-- Optimizer User Guide.
getRecommendationPreferences_scope :: Lens' GetRecommendationPreferences (Maybe Scope)
-- | The target resource type of the recommendation preference for which to
-- return preferences.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
--
-- The valid values for this parameter are Ec2Instance and
-- AutoScalingGroup.
getRecommendationPreferences_resourceType :: Lens' GetRecommendationPreferences ResourceType
-- | See: newGetRecommendationPreferencesResponse smart
-- constructor.
data GetRecommendationPreferencesResponse
GetRecommendationPreferencesResponse' :: Maybe Text -> Maybe [RecommendationPreferencesDetail] -> Int -> GetRecommendationPreferencesResponse
-- | The token to use to advance to the next page of recommendation
-- preferences.
--
-- This value is null when there are no more pages of recommendation
-- preferences to return.
[$sel:nextToken:GetRecommendationPreferencesResponse'] :: GetRecommendationPreferencesResponse -> Maybe Text
-- | An array of objects that describe recommendation preferences.
[$sel:recommendationPreferencesDetails:GetRecommendationPreferencesResponse'] :: GetRecommendationPreferencesResponse -> Maybe [RecommendationPreferencesDetail]
-- | The response's http status code.
[$sel:httpStatus:GetRecommendationPreferencesResponse'] :: GetRecommendationPreferencesResponse -> Int
-- | Create a value of GetRecommendationPreferencesResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetRecommendationPreferences,
-- getRecommendationPreferencesResponse_nextToken - The token to
-- use to advance to the next page of recommendation preferences.
--
-- This value is null when there are no more pages of recommendation
-- preferences to return.
--
--
-- $sel:recommendationPreferencesDetails:GetRecommendationPreferencesResponse',
-- getRecommendationPreferencesResponse_recommendationPreferencesDetails
-- - An array of objects that describe recommendation preferences.
--
-- $sel:httpStatus:GetRecommendationPreferencesResponse',
-- getRecommendationPreferencesResponse_httpStatus - The
-- response's http status code.
newGetRecommendationPreferencesResponse :: Int -> GetRecommendationPreferencesResponse
-- | The token to use to advance to the next page of recommendation
-- preferences.
--
-- This value is null when there are no more pages of recommendation
-- preferences to return.
getRecommendationPreferencesResponse_nextToken :: Lens' GetRecommendationPreferencesResponse (Maybe Text)
-- | An array of objects that describe recommendation preferences.
getRecommendationPreferencesResponse_recommendationPreferencesDetails :: Lens' GetRecommendationPreferencesResponse (Maybe [RecommendationPreferencesDetail])
-- | The response's http status code.
getRecommendationPreferencesResponse_httpStatus :: Lens' GetRecommendationPreferencesResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetRecommendationPreferences.GetRecommendationPreferences
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetRecommendationPreferences.GetRecommendationPreferences
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetRecommendationPreferences.GetRecommendationPreferences
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetRecommendationPreferences.GetRecommendationPreferences
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetRecommendationPreferences.GetRecommendationPreferencesResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetRecommendationPreferences.GetRecommendationPreferencesResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetRecommendationPreferences.GetRecommendationPreferencesResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetRecommendationPreferences.GetRecommendationPreferencesResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.GetRecommendationPreferences.GetRecommendationPreferences
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetRecommendationPreferences.GetRecommendationPreferencesResponse
instance Amazonka.Pager.AWSPager Amazonka.ComputeOptimizer.GetRecommendationPreferences.GetRecommendationPreferences
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.GetRecommendationPreferences.GetRecommendationPreferences
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetRecommendationPreferences.GetRecommendationPreferences
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.GetRecommendationPreferences.GetRecommendationPreferences
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.GetRecommendationPreferences.GetRecommendationPreferences
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.GetRecommendationPreferences.GetRecommendationPreferences
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.GetRecommendationPreferences.GetRecommendationPreferences
-- | Returns Lambda function recommendations.
--
-- Compute Optimizer generates recommendations for functions that meet a
-- specific set of requirements. For more information, see the
-- Supported resources and requirements in the Compute
-- Optimizer User Guide.
--
-- This operation returns paginated results.
module Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations
-- | See: newGetLambdaFunctionRecommendations smart
-- constructor.
data GetLambdaFunctionRecommendations
GetLambdaFunctionRecommendations' :: Maybe [Text] -> Maybe [LambdaFunctionRecommendationFilter] -> Maybe [Text] -> Maybe Natural -> Maybe Text -> GetLambdaFunctionRecommendations
-- | The ID of the Amazon Web Services account for which to return function
-- recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- function recommendations.
--
-- Only one account ID can be specified per request.
[$sel:accountIds:GetLambdaFunctionRecommendations'] :: GetLambdaFunctionRecommendations -> Maybe [Text]
-- | An array of objects to specify a filter that returns a more specific
-- list of function recommendations.
[$sel:filters:GetLambdaFunctionRecommendations'] :: GetLambdaFunctionRecommendations -> Maybe [LambdaFunctionRecommendationFilter]
-- | The Amazon Resource Name (ARN) of the functions for which to return
-- recommendations.
--
-- You can specify a qualified or unqualified ARN. If you specify an
-- unqualified ARN without a function version suffix, Compute Optimizer
-- will return recommendations for the latest ($LATEST) version
-- of the function. If you specify a qualified ARN with a version suffix,
-- Compute Optimizer will return recommendations for the specified
-- function version. For more information about using function versions,
-- see Using versions in the Lambda Developer Guide.
[$sel:functionArns:GetLambdaFunctionRecommendations'] :: GetLambdaFunctionRecommendations -> Maybe [Text]
-- | The maximum number of function recommendations to return with a single
-- request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
[$sel:maxResults:GetLambdaFunctionRecommendations'] :: GetLambdaFunctionRecommendations -> Maybe Natural
-- | The token to advance to the next page of function recommendations.
[$sel:nextToken:GetLambdaFunctionRecommendations'] :: GetLambdaFunctionRecommendations -> Maybe Text
-- | Create a value of GetLambdaFunctionRecommendations with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:GetLambdaFunctionRecommendations',
-- getLambdaFunctionRecommendations_accountIds - The ID of the
-- Amazon Web Services account for which to return function
-- recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- function recommendations.
--
-- Only one account ID can be specified per request.
--
-- $sel:filters:GetLambdaFunctionRecommendations',
-- getLambdaFunctionRecommendations_filters - An array of objects
-- to specify a filter that returns a more specific list of function
-- recommendations.
--
-- $sel:functionArns:GetLambdaFunctionRecommendations',
-- getLambdaFunctionRecommendations_functionArns - The Amazon
-- Resource Name (ARN) of the functions for which to return
-- recommendations.
--
-- You can specify a qualified or unqualified ARN. If you specify an
-- unqualified ARN without a function version suffix, Compute Optimizer
-- will return recommendations for the latest ($LATEST) version
-- of the function. If you specify a qualified ARN with a version suffix,
-- Compute Optimizer will return recommendations for the specified
-- function version. For more information about using function versions,
-- see Using versions in the Lambda Developer Guide.
--
-- $sel:maxResults:GetLambdaFunctionRecommendations',
-- getLambdaFunctionRecommendations_maxResults - The maximum
-- number of function recommendations to return with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
--
-- GetLambdaFunctionRecommendations,
-- getLambdaFunctionRecommendations_nextToken - The token to
-- advance to the next page of function recommendations.
newGetLambdaFunctionRecommendations :: GetLambdaFunctionRecommendations
-- | The ID of the Amazon Web Services account for which to return function
-- recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- function recommendations.
--
-- Only one account ID can be specified per request.
getLambdaFunctionRecommendations_accountIds :: Lens' GetLambdaFunctionRecommendations (Maybe [Text])
-- | An array of objects to specify a filter that returns a more specific
-- list of function recommendations.
getLambdaFunctionRecommendations_filters :: Lens' GetLambdaFunctionRecommendations (Maybe [LambdaFunctionRecommendationFilter])
-- | The Amazon Resource Name (ARN) of the functions for which to return
-- recommendations.
--
-- You can specify a qualified or unqualified ARN. If you specify an
-- unqualified ARN without a function version suffix, Compute Optimizer
-- will return recommendations for the latest ($LATEST) version
-- of the function. If you specify a qualified ARN with a version suffix,
-- Compute Optimizer will return recommendations for the specified
-- function version. For more information about using function versions,
-- see Using versions in the Lambda Developer Guide.
getLambdaFunctionRecommendations_functionArns :: Lens' GetLambdaFunctionRecommendations (Maybe [Text])
-- | The maximum number of function recommendations to return with a single
-- request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
getLambdaFunctionRecommendations_maxResults :: Lens' GetLambdaFunctionRecommendations (Maybe Natural)
-- | The token to advance to the next page of function recommendations.
getLambdaFunctionRecommendations_nextToken :: Lens' GetLambdaFunctionRecommendations (Maybe Text)
-- | See: newGetLambdaFunctionRecommendationsResponse smart
-- constructor.
data GetLambdaFunctionRecommendationsResponse
GetLambdaFunctionRecommendationsResponse' :: Maybe [LambdaFunctionRecommendation] -> Maybe Text -> Int -> GetLambdaFunctionRecommendationsResponse
-- | An array of objects that describe function recommendations.
[$sel:lambdaFunctionRecommendations:GetLambdaFunctionRecommendationsResponse'] :: GetLambdaFunctionRecommendationsResponse -> Maybe [LambdaFunctionRecommendation]
-- | The token to use to advance to the next page of function
-- recommendations.
--
-- This value is null when there are no more pages of function
-- recommendations to return.
[$sel:nextToken:GetLambdaFunctionRecommendationsResponse'] :: GetLambdaFunctionRecommendationsResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:GetLambdaFunctionRecommendationsResponse'] :: GetLambdaFunctionRecommendationsResponse -> Int
-- | Create a value of GetLambdaFunctionRecommendationsResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:lambdaFunctionRecommendations:GetLambdaFunctionRecommendationsResponse',
-- getLambdaFunctionRecommendationsResponse_lambdaFunctionRecommendations
-- - An array of objects that describe function recommendations.
--
-- GetLambdaFunctionRecommendations,
-- getLambdaFunctionRecommendationsResponse_nextToken - The token
-- to use to advance to the next page of function recommendations.
--
-- This value is null when there are no more pages of function
-- recommendations to return.
--
-- $sel:httpStatus:GetLambdaFunctionRecommendationsResponse',
-- getLambdaFunctionRecommendationsResponse_httpStatus - The
-- response's http status code.
newGetLambdaFunctionRecommendationsResponse :: Int -> GetLambdaFunctionRecommendationsResponse
-- | An array of objects that describe function recommendations.
getLambdaFunctionRecommendationsResponse_lambdaFunctionRecommendations :: Lens' GetLambdaFunctionRecommendationsResponse (Maybe [LambdaFunctionRecommendation])
-- | The token to use to advance to the next page of function
-- recommendations.
--
-- This value is null when there are no more pages of function
-- recommendations to return.
getLambdaFunctionRecommendationsResponse_nextToken :: Lens' GetLambdaFunctionRecommendationsResponse (Maybe Text)
-- | The response's http status code.
getLambdaFunctionRecommendationsResponse_httpStatus :: Lens' GetLambdaFunctionRecommendationsResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations.GetLambdaFunctionRecommendations
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations.GetLambdaFunctionRecommendations
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations.GetLambdaFunctionRecommendations
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations.GetLambdaFunctionRecommendations
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations.GetLambdaFunctionRecommendationsResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations.GetLambdaFunctionRecommendationsResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations.GetLambdaFunctionRecommendationsResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations.GetLambdaFunctionRecommendationsResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations.GetLambdaFunctionRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations.GetLambdaFunctionRecommendationsResponse
instance Amazonka.Pager.AWSPager Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations.GetLambdaFunctionRecommendations
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations.GetLambdaFunctionRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations.GetLambdaFunctionRecommendations
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations.GetLambdaFunctionRecommendations
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations.GetLambdaFunctionRecommendations
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations.GetLambdaFunctionRecommendations
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations.GetLambdaFunctionRecommendations
-- | Returns the Compute Optimizer enrollment (opt-in) status of
-- organization member accounts, if your account is an organization
-- management account.
--
-- To get the enrollment status of standalone accounts, use the
-- GetEnrollmentStatus action.
--
-- This operation returns paginated results.
module Amazonka.ComputeOptimizer.GetEnrollmentStatusesForOrganization
-- | See: newGetEnrollmentStatusesForOrganization smart
-- constructor.
data GetEnrollmentStatusesForOrganization
GetEnrollmentStatusesForOrganization' :: Maybe [EnrollmentFilter] -> Maybe Natural -> Maybe Text -> GetEnrollmentStatusesForOrganization
-- | An array of objects to specify a filter that returns a more specific
-- list of account enrollment statuses.
[$sel:filters:GetEnrollmentStatusesForOrganization'] :: GetEnrollmentStatusesForOrganization -> Maybe [EnrollmentFilter]
-- | The maximum number of account enrollment statuses to return with a
-- single request. You can specify up to 100 statuses to return with each
-- request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
[$sel:maxResults:GetEnrollmentStatusesForOrganization'] :: GetEnrollmentStatusesForOrganization -> Maybe Natural
-- | The token to advance to the next page of account enrollment statuses.
[$sel:nextToken:GetEnrollmentStatusesForOrganization'] :: GetEnrollmentStatusesForOrganization -> Maybe Text
-- | Create a value of GetEnrollmentStatusesForOrganization with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:filters:GetEnrollmentStatusesForOrganization',
-- getEnrollmentStatusesForOrganization_filters - An array of
-- objects to specify a filter that returns a more specific list of
-- account enrollment statuses.
--
-- $sel:maxResults:GetEnrollmentStatusesForOrganization',
-- getEnrollmentStatusesForOrganization_maxResults - The maximum
-- number of account enrollment statuses to return with a single request.
-- You can specify up to 100 statuses to return with each request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
--
-- GetEnrollmentStatusesForOrganization,
-- getEnrollmentStatusesForOrganization_nextToken - The token to
-- advance to the next page of account enrollment statuses.
newGetEnrollmentStatusesForOrganization :: GetEnrollmentStatusesForOrganization
-- | An array of objects to specify a filter that returns a more specific
-- list of account enrollment statuses.
getEnrollmentStatusesForOrganization_filters :: Lens' GetEnrollmentStatusesForOrganization (Maybe [EnrollmentFilter])
-- | The maximum number of account enrollment statuses to return with a
-- single request. You can specify up to 100 statuses to return with each
-- request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
getEnrollmentStatusesForOrganization_maxResults :: Lens' GetEnrollmentStatusesForOrganization (Maybe Natural)
-- | The token to advance to the next page of account enrollment statuses.
getEnrollmentStatusesForOrganization_nextToken :: Lens' GetEnrollmentStatusesForOrganization (Maybe Text)
-- | See: newGetEnrollmentStatusesForOrganizationResponse
-- smart constructor.
data GetEnrollmentStatusesForOrganizationResponse
GetEnrollmentStatusesForOrganizationResponse' :: Maybe [AccountEnrollmentStatus] -> Maybe Text -> Int -> GetEnrollmentStatusesForOrganizationResponse
-- | An array of objects that describe the enrollment statuses of
-- organization member accounts.
[$sel:accountEnrollmentStatuses:GetEnrollmentStatusesForOrganizationResponse'] :: GetEnrollmentStatusesForOrganizationResponse -> Maybe [AccountEnrollmentStatus]
-- | The token to use to advance to the next page of account enrollment
-- statuses.
--
-- This value is null when there are no more pages of account enrollment
-- statuses to return.
[$sel:nextToken:GetEnrollmentStatusesForOrganizationResponse'] :: GetEnrollmentStatusesForOrganizationResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:GetEnrollmentStatusesForOrganizationResponse'] :: GetEnrollmentStatusesForOrganizationResponse -> Int
-- | Create a value of GetEnrollmentStatusesForOrganizationResponse
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:accountEnrollmentStatuses:GetEnrollmentStatusesForOrganizationResponse',
-- getEnrollmentStatusesForOrganizationResponse_accountEnrollmentStatuses
-- - An array of objects that describe the enrollment statuses of
-- organization member accounts.
--
-- GetEnrollmentStatusesForOrganization,
-- getEnrollmentStatusesForOrganizationResponse_nextToken - The
-- token to use to advance to the next page of account enrollment
-- statuses.
--
-- This value is null when there are no more pages of account enrollment
-- statuses to return.
--
-- $sel:httpStatus:GetEnrollmentStatusesForOrganizationResponse',
-- getEnrollmentStatusesForOrganizationResponse_httpStatus - The
-- response's http status code.
newGetEnrollmentStatusesForOrganizationResponse :: Int -> GetEnrollmentStatusesForOrganizationResponse
-- | An array of objects that describe the enrollment statuses of
-- organization member accounts.
getEnrollmentStatusesForOrganizationResponse_accountEnrollmentStatuses :: Lens' GetEnrollmentStatusesForOrganizationResponse (Maybe [AccountEnrollmentStatus])
-- | The token to use to advance to the next page of account enrollment
-- statuses.
--
-- This value is null when there are no more pages of account enrollment
-- statuses to return.
getEnrollmentStatusesForOrganizationResponse_nextToken :: Lens' GetEnrollmentStatusesForOrganizationResponse (Maybe Text)
-- | The response's http status code.
getEnrollmentStatusesForOrganizationResponse_httpStatus :: Lens' GetEnrollmentStatusesForOrganizationResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetEnrollmentStatusesForOrganization.GetEnrollmentStatusesForOrganization
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetEnrollmentStatusesForOrganization.GetEnrollmentStatusesForOrganization
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetEnrollmentStatusesForOrganization.GetEnrollmentStatusesForOrganization
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetEnrollmentStatusesForOrganization.GetEnrollmentStatusesForOrganization
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetEnrollmentStatusesForOrganization.GetEnrollmentStatusesForOrganizationResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetEnrollmentStatusesForOrganization.GetEnrollmentStatusesForOrganizationResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetEnrollmentStatusesForOrganization.GetEnrollmentStatusesForOrganizationResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetEnrollmentStatusesForOrganization.GetEnrollmentStatusesForOrganizationResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.GetEnrollmentStatusesForOrganization.GetEnrollmentStatusesForOrganization
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetEnrollmentStatusesForOrganization.GetEnrollmentStatusesForOrganizationResponse
instance Amazonka.Pager.AWSPager Amazonka.ComputeOptimizer.GetEnrollmentStatusesForOrganization.GetEnrollmentStatusesForOrganization
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.GetEnrollmentStatusesForOrganization.GetEnrollmentStatusesForOrganization
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetEnrollmentStatusesForOrganization.GetEnrollmentStatusesForOrganization
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.GetEnrollmentStatusesForOrganization.GetEnrollmentStatusesForOrganization
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.GetEnrollmentStatusesForOrganization.GetEnrollmentStatusesForOrganization
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.GetEnrollmentStatusesForOrganization.GetEnrollmentStatusesForOrganization
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.GetEnrollmentStatusesForOrganization.GetEnrollmentStatusesForOrganization
-- | Returns the enrollment (opt in) status of an account to the Compute
-- Optimizer service.
--
-- If the account is the management account of an organization, this
-- action also confirms the enrollment status of member accounts of the
-- organization. Use the GetEnrollmentStatusesForOrganization action to
-- get detailed information about the enrollment status of member
-- accounts of an organization.
module Amazonka.ComputeOptimizer.GetEnrollmentStatus
-- | See: newGetEnrollmentStatus smart constructor.
data GetEnrollmentStatus
GetEnrollmentStatus' :: GetEnrollmentStatus
-- | Create a value of GetEnrollmentStatus with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
newGetEnrollmentStatus :: GetEnrollmentStatus
-- | See: newGetEnrollmentStatusResponse smart constructor.
data GetEnrollmentStatusResponse
GetEnrollmentStatusResponse' :: Maybe POSIX -> Maybe Bool -> Maybe Int -> Maybe Status -> Maybe Text -> Int -> GetEnrollmentStatusResponse
-- | The Unix epoch timestamp, in seconds, of when the account enrollment
-- status was last updated.
[$sel:lastUpdatedTimestamp:GetEnrollmentStatusResponse'] :: GetEnrollmentStatusResponse -> Maybe POSIX
-- | Confirms the enrollment status of member accounts of the organization,
-- if the account is a management account of an organization.
[$sel:memberAccountsEnrolled:GetEnrollmentStatusResponse'] :: GetEnrollmentStatusResponse -> Maybe Bool
-- | The count of organization member accounts that are opted in to the
-- service, if your account is an organization management account.
[$sel:numberOfMemberAccountsOptedIn:GetEnrollmentStatusResponse'] :: GetEnrollmentStatusResponse -> Maybe Int
-- | The enrollment status of the account.
[$sel:status:GetEnrollmentStatusResponse'] :: GetEnrollmentStatusResponse -> Maybe Status
-- | The reason for the enrollment status of the account.
--
-- For example, an account might show a status of Pending
-- because member accounts of an organization require more time to be
-- enrolled in the service.
[$sel:statusReason:GetEnrollmentStatusResponse'] :: GetEnrollmentStatusResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:GetEnrollmentStatusResponse'] :: GetEnrollmentStatusResponse -> Int
-- | Create a value of GetEnrollmentStatusResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetEnrollmentStatusResponse,
-- getEnrollmentStatusResponse_lastUpdatedTimestamp - The Unix
-- epoch timestamp, in seconds, of when the account enrollment status was
-- last updated.
--
-- $sel:memberAccountsEnrolled:GetEnrollmentStatusResponse',
-- getEnrollmentStatusResponse_memberAccountsEnrolled - Confirms
-- the enrollment status of member accounts of the organization, if the
-- account is a management account of an organization.
--
--
-- $sel:numberOfMemberAccountsOptedIn:GetEnrollmentStatusResponse',
-- getEnrollmentStatusResponse_numberOfMemberAccountsOptedIn - The
-- count of organization member accounts that are opted in to the
-- service, if your account is an organization management account.
--
-- GetEnrollmentStatusResponse,
-- getEnrollmentStatusResponse_status - The enrollment status of
-- the account.
--
-- GetEnrollmentStatusResponse,
-- getEnrollmentStatusResponse_statusReason - The reason for the
-- enrollment status of the account.
--
-- For example, an account might show a status of Pending
-- because member accounts of an organization require more time to be
-- enrolled in the service.
--
-- $sel:httpStatus:GetEnrollmentStatusResponse',
-- getEnrollmentStatusResponse_httpStatus - The response's http
-- status code.
newGetEnrollmentStatusResponse :: Int -> GetEnrollmentStatusResponse
-- | The Unix epoch timestamp, in seconds, of when the account enrollment
-- status was last updated.
getEnrollmentStatusResponse_lastUpdatedTimestamp :: Lens' GetEnrollmentStatusResponse (Maybe UTCTime)
-- | Confirms the enrollment status of member accounts of the organization,
-- if the account is a management account of an organization.
getEnrollmentStatusResponse_memberAccountsEnrolled :: Lens' GetEnrollmentStatusResponse (Maybe Bool)
-- | The count of organization member accounts that are opted in to the
-- service, if your account is an organization management account.
getEnrollmentStatusResponse_numberOfMemberAccountsOptedIn :: Lens' GetEnrollmentStatusResponse (Maybe Int)
-- | The enrollment status of the account.
getEnrollmentStatusResponse_status :: Lens' GetEnrollmentStatusResponse (Maybe Status)
-- | The reason for the enrollment status of the account.
--
-- For example, an account might show a status of Pending
-- because member accounts of an organization require more time to be
-- enrolled in the service.
getEnrollmentStatusResponse_statusReason :: Lens' GetEnrollmentStatusResponse (Maybe Text)
-- | The response's http status code.
getEnrollmentStatusResponse_httpStatus :: Lens' GetEnrollmentStatusResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetEnrollmentStatus.GetEnrollmentStatus
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetEnrollmentStatus.GetEnrollmentStatus
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetEnrollmentStatus.GetEnrollmentStatus
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetEnrollmentStatus.GetEnrollmentStatus
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetEnrollmentStatus.GetEnrollmentStatusResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetEnrollmentStatus.GetEnrollmentStatusResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetEnrollmentStatus.GetEnrollmentStatusResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetEnrollmentStatus.GetEnrollmentStatusResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.GetEnrollmentStatus.GetEnrollmentStatus
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetEnrollmentStatus.GetEnrollmentStatusResponse
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.GetEnrollmentStatus.GetEnrollmentStatus
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetEnrollmentStatus.GetEnrollmentStatus
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.GetEnrollmentStatus.GetEnrollmentStatus
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.GetEnrollmentStatus.GetEnrollmentStatus
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.GetEnrollmentStatus.GetEnrollmentStatus
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.GetEnrollmentStatus.GetEnrollmentStatus
-- | Returns the recommendation preferences that are in effect for a given
-- resource, such as enhanced infrastructure metrics. Considers all
-- applicable preferences that you might have set at the resource,
-- account, and organization level.
--
-- When you create a recommendation preference, you can set its status to
-- Active or Inactive. Use this action to view the
-- recommendation preferences that are in effect, or Active.
module Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences
-- | See: newGetEffectiveRecommendationPreferences smart
-- constructor.
data GetEffectiveRecommendationPreferences
GetEffectiveRecommendationPreferences' :: Text -> GetEffectiveRecommendationPreferences
-- | The Amazon Resource Name (ARN) of the resource for which to confirm
-- effective recommendation preferences. Only EC2 instance and Auto
-- Scaling group ARNs are currently supported.
[$sel:resourceArn:GetEffectiveRecommendationPreferences'] :: GetEffectiveRecommendationPreferences -> Text
-- | Create a value of GetEffectiveRecommendationPreferences with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:resourceArn:GetEffectiveRecommendationPreferences',
-- getEffectiveRecommendationPreferences_resourceArn - The Amazon
-- Resource Name (ARN) of the resource for which to confirm effective
-- recommendation preferences. Only EC2 instance and Auto Scaling group
-- ARNs are currently supported.
newGetEffectiveRecommendationPreferences :: Text -> GetEffectiveRecommendationPreferences
-- | The Amazon Resource Name (ARN) of the resource for which to confirm
-- effective recommendation preferences. Only EC2 instance and Auto
-- Scaling group ARNs are currently supported.
getEffectiveRecommendationPreferences_resourceArn :: Lens' GetEffectiveRecommendationPreferences Text
-- | See: newGetEffectiveRecommendationPreferencesResponse
-- smart constructor.
data GetEffectiveRecommendationPreferencesResponse
GetEffectiveRecommendationPreferencesResponse' :: Maybe EnhancedInfrastructureMetrics -> Maybe ExternalMetricsPreference -> Int -> GetEffectiveRecommendationPreferencesResponse
-- | The status of the enhanced infrastructure metrics recommendation
-- preference. Considers all applicable preferences that you might have
-- set at the resource, account, and organization level.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh, and a status of Inactive
-- confirms that it's not yet applied to recommendations.
--
-- To validate whether the preference is applied to your last generated
-- set of recommendations, review the
-- effectiveRecommendationPreferences value in the response of
-- the GetAutoScalingGroupRecommendations and
-- GetEC2InstanceRecommendations actions.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
[$sel:enhancedInfrastructureMetrics:GetEffectiveRecommendationPreferencesResponse'] :: GetEffectiveRecommendationPreferencesResponse -> Maybe EnhancedInfrastructureMetrics
-- | The provider of the external metrics recommendation preference.
-- Considers all applicable preferences that you might have set at the
-- account and organization level.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
--
-- To validate whether the preference is applied to your last generated
-- set of recommendations, review the
-- effectiveRecommendationPreferences value in the response of
-- the GetEC2InstanceRecommendations actions.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
[$sel:externalMetricsPreference:GetEffectiveRecommendationPreferencesResponse'] :: GetEffectiveRecommendationPreferencesResponse -> Maybe ExternalMetricsPreference
-- | The response's http status code.
[$sel:httpStatus:GetEffectiveRecommendationPreferencesResponse'] :: GetEffectiveRecommendationPreferencesResponse -> Int
-- | Create a value of GetEffectiveRecommendationPreferencesResponse
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetEffectiveRecommendationPreferencesResponse,
-- getEffectiveRecommendationPreferencesResponse_enhancedInfrastructureMetrics
-- - The status of the enhanced infrastructure metrics recommendation
-- preference. Considers all applicable preferences that you might have
-- set at the resource, account, and organization level.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh, and a status of Inactive
-- confirms that it's not yet applied to recommendations.
--
-- To validate whether the preference is applied to your last generated
-- set of recommendations, review the
-- effectiveRecommendationPreferences value in the response of
-- the GetAutoScalingGroupRecommendations and
-- GetEC2InstanceRecommendations actions.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
--
-- GetEffectiveRecommendationPreferencesResponse,
-- getEffectiveRecommendationPreferencesResponse_externalMetricsPreference
-- - The provider of the external metrics recommendation preference.
-- Considers all applicable preferences that you might have set at the
-- account and organization level.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
--
-- To validate whether the preference is applied to your last generated
-- set of recommendations, review the
-- effectiveRecommendationPreferences value in the response of
-- the GetEC2InstanceRecommendations actions.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
--
-- $sel:httpStatus:GetEffectiveRecommendationPreferencesResponse',
-- getEffectiveRecommendationPreferencesResponse_httpStatus - The
-- response's http status code.
newGetEffectiveRecommendationPreferencesResponse :: Int -> GetEffectiveRecommendationPreferencesResponse
-- | The status of the enhanced infrastructure metrics recommendation
-- preference. Considers all applicable preferences that you might have
-- set at the resource, account, and organization level.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh, and a status of Inactive
-- confirms that it's not yet applied to recommendations.
--
-- To validate whether the preference is applied to your last generated
-- set of recommendations, review the
-- effectiveRecommendationPreferences value in the response of
-- the GetAutoScalingGroupRecommendations and
-- GetEC2InstanceRecommendations actions.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
getEffectiveRecommendationPreferencesResponse_enhancedInfrastructureMetrics :: Lens' GetEffectiveRecommendationPreferencesResponse (Maybe EnhancedInfrastructureMetrics)
-- | The provider of the external metrics recommendation preference.
-- Considers all applicable preferences that you might have set at the
-- account and organization level.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
--
-- To validate whether the preference is applied to your last generated
-- set of recommendations, review the
-- effectiveRecommendationPreferences value in the response of
-- the GetEC2InstanceRecommendations actions.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
getEffectiveRecommendationPreferencesResponse_externalMetricsPreference :: Lens' GetEffectiveRecommendationPreferencesResponse (Maybe ExternalMetricsPreference)
-- | The response's http status code.
getEffectiveRecommendationPreferencesResponse_httpStatus :: Lens' GetEffectiveRecommendationPreferencesResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences.GetEffectiveRecommendationPreferences
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences.GetEffectiveRecommendationPreferences
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences.GetEffectiveRecommendationPreferences
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences.GetEffectiveRecommendationPreferences
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences.GetEffectiveRecommendationPreferencesResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences.GetEffectiveRecommendationPreferencesResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences.GetEffectiveRecommendationPreferencesResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences.GetEffectiveRecommendationPreferencesResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences.GetEffectiveRecommendationPreferences
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences.GetEffectiveRecommendationPreferencesResponse
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences.GetEffectiveRecommendationPreferences
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences.GetEffectiveRecommendationPreferences
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences.GetEffectiveRecommendationPreferences
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences.GetEffectiveRecommendationPreferences
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences.GetEffectiveRecommendationPreferences
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences.GetEffectiveRecommendationPreferences
-- | Returns Amazon ECS service recommendations.
--
-- Compute Optimizer generates recommendations for Amazon ECS services on
-- Fargate that meet a specific set of requirements. For more
-- information, see the Supported resources and requirements in
-- the Compute Optimizer User Guide.
module Amazonka.ComputeOptimizer.GetECSServiceRecommendations
-- | See: newGetECSServiceRecommendations smart constructor.
data GetECSServiceRecommendations
GetECSServiceRecommendations' :: Maybe [Text] -> Maybe [ECSServiceRecommendationFilter] -> Maybe Natural -> Maybe Text -> Maybe [Text] -> GetECSServiceRecommendations
-- | Return the ECS service recommendations to the specified Amazon Web
-- Services account IDs.
--
-- If your account is the management account or the delegated
-- administrator of an organization, use this parameter to return the ECS
-- service recommendations to specific member accounts.
--
-- You can only specify one account ID per request.
[$sel:accountIds:GetECSServiceRecommendations'] :: GetECSServiceRecommendations -> Maybe [Text]
-- | An array of objects to specify a filter that returns a more specific
-- list of ECS service recommendations.
[$sel:filters:GetECSServiceRecommendations'] :: GetECSServiceRecommendations -> Maybe [ECSServiceRecommendationFilter]
-- | The maximum number of ECS service recommendations to return with a
-- single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
[$sel:maxResults:GetECSServiceRecommendations'] :: GetECSServiceRecommendations -> Maybe Natural
-- | The token to advance to the next page of ECS service recommendations.
[$sel:nextToken:GetECSServiceRecommendations'] :: GetECSServiceRecommendations -> Maybe Text
-- | The ARN that identifies the ECS service.
--
-- The following is the format of the ARN:
--
--
-- arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
--
[$sel:serviceArns:GetECSServiceRecommendations'] :: GetECSServiceRecommendations -> Maybe [Text]
-- | Create a value of GetECSServiceRecommendations with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:GetECSServiceRecommendations',
-- getECSServiceRecommendations_accountIds - Return the ECS
-- service recommendations to the specified Amazon Web Services account
-- IDs.
--
-- If your account is the management account or the delegated
-- administrator of an organization, use this parameter to return the ECS
-- service recommendations to specific member accounts.
--
-- You can only specify one account ID per request.
--
-- $sel:filters:GetECSServiceRecommendations',
-- getECSServiceRecommendations_filters - An array of objects to
-- specify a filter that returns a more specific list of ECS service
-- recommendations.
--
-- $sel:maxResults:GetECSServiceRecommendations',
-- getECSServiceRecommendations_maxResults - The maximum number of
-- ECS service recommendations to return with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
--
-- GetECSServiceRecommendations,
-- getECSServiceRecommendations_nextToken - The token to advance
-- to the next page of ECS service recommendations.
--
-- $sel:serviceArns:GetECSServiceRecommendations',
-- getECSServiceRecommendations_serviceArns - The ARN that
-- identifies the ECS service.
--
-- The following is the format of the ARN:
--
--
-- arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
--
newGetECSServiceRecommendations :: GetECSServiceRecommendations
-- | Return the ECS service recommendations to the specified Amazon Web
-- Services account IDs.
--
-- If your account is the management account or the delegated
-- administrator of an organization, use this parameter to return the ECS
-- service recommendations to specific member accounts.
--
-- You can only specify one account ID per request.
getECSServiceRecommendations_accountIds :: Lens' GetECSServiceRecommendations (Maybe [Text])
-- | An array of objects to specify a filter that returns a more specific
-- list of ECS service recommendations.
getECSServiceRecommendations_filters :: Lens' GetECSServiceRecommendations (Maybe [ECSServiceRecommendationFilter])
-- | The maximum number of ECS service recommendations to return with a
-- single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
getECSServiceRecommendations_maxResults :: Lens' GetECSServiceRecommendations (Maybe Natural)
-- | The token to advance to the next page of ECS service recommendations.
getECSServiceRecommendations_nextToken :: Lens' GetECSServiceRecommendations (Maybe Text)
-- | The ARN that identifies the ECS service.
--
-- The following is the format of the ARN:
--
--
-- arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
--
getECSServiceRecommendations_serviceArns :: Lens' GetECSServiceRecommendations (Maybe [Text])
-- | See: newGetECSServiceRecommendationsResponse smart
-- constructor.
data GetECSServiceRecommendationsResponse
GetECSServiceRecommendationsResponse' :: Maybe [ECSServiceRecommendation] -> Maybe [GetRecommendationError] -> Maybe Text -> Int -> GetECSServiceRecommendationsResponse
-- | An array of objects that describe the ECS service recommendations.
[$sel:ecsServiceRecommendations:GetECSServiceRecommendationsResponse'] :: GetECSServiceRecommendationsResponse -> Maybe [ECSServiceRecommendation]
-- | An array of objects that describe errors of the request.
[$sel:errors:GetECSServiceRecommendationsResponse'] :: GetECSServiceRecommendationsResponse -> Maybe [GetRecommendationError]
-- | The token to advance to the next page of ECS service recommendations.
[$sel:nextToken:GetECSServiceRecommendationsResponse'] :: GetECSServiceRecommendationsResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:GetECSServiceRecommendationsResponse'] :: GetECSServiceRecommendationsResponse -> Int
-- | Create a value of GetECSServiceRecommendationsResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:ecsServiceRecommendations:GetECSServiceRecommendationsResponse',
-- getECSServiceRecommendationsResponse_ecsServiceRecommendations
-- - An array of objects that describe the ECS service recommendations.
--
-- $sel:errors:GetECSServiceRecommendationsResponse',
-- getECSServiceRecommendationsResponse_errors - An array of
-- objects that describe errors of the request.
--
-- GetECSServiceRecommendations,
-- getECSServiceRecommendationsResponse_nextToken - The token to
-- advance to the next page of ECS service recommendations.
--
-- $sel:httpStatus:GetECSServiceRecommendationsResponse',
-- getECSServiceRecommendationsResponse_httpStatus - The
-- response's http status code.
newGetECSServiceRecommendationsResponse :: Int -> GetECSServiceRecommendationsResponse
-- | An array of objects that describe the ECS service recommendations.
getECSServiceRecommendationsResponse_ecsServiceRecommendations :: Lens' GetECSServiceRecommendationsResponse (Maybe [ECSServiceRecommendation])
-- | An array of objects that describe errors of the request.
getECSServiceRecommendationsResponse_errors :: Lens' GetECSServiceRecommendationsResponse (Maybe [GetRecommendationError])
-- | The token to advance to the next page of ECS service recommendations.
getECSServiceRecommendationsResponse_nextToken :: Lens' GetECSServiceRecommendationsResponse (Maybe Text)
-- | The response's http status code.
getECSServiceRecommendationsResponse_httpStatus :: Lens' GetECSServiceRecommendationsResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetECSServiceRecommendations.GetECSServiceRecommendations
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetECSServiceRecommendations.GetECSServiceRecommendations
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetECSServiceRecommendations.GetECSServiceRecommendations
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetECSServiceRecommendations.GetECSServiceRecommendations
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetECSServiceRecommendations.GetECSServiceRecommendationsResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetECSServiceRecommendations.GetECSServiceRecommendationsResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetECSServiceRecommendations.GetECSServiceRecommendationsResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetECSServiceRecommendations.GetECSServiceRecommendationsResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.GetECSServiceRecommendations.GetECSServiceRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetECSServiceRecommendations.GetECSServiceRecommendationsResponse
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.GetECSServiceRecommendations.GetECSServiceRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetECSServiceRecommendations.GetECSServiceRecommendations
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.GetECSServiceRecommendations.GetECSServiceRecommendations
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.GetECSServiceRecommendations.GetECSServiceRecommendations
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.GetECSServiceRecommendations.GetECSServiceRecommendations
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.GetECSServiceRecommendations.GetECSServiceRecommendations
-- | Returns the projected metrics of Amazon ECS service recommendations.
module Amazonka.ComputeOptimizer.GetECSServiceRecommendationProjectedMetrics
-- | See: newGetECSServiceRecommendationProjectedMetrics
-- smart constructor.
data GetECSServiceRecommendationProjectedMetrics
GetECSServiceRecommendationProjectedMetrics' :: Text -> MetricStatistic -> Int -> POSIX -> POSIX -> GetECSServiceRecommendationProjectedMetrics
-- | The ARN that identifies the ECS service.
--
-- The following is the format of the ARN:
--
--
-- arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
--
[$sel:serviceArn:GetECSServiceRecommendationProjectedMetrics'] :: GetECSServiceRecommendationProjectedMetrics -> Text
-- | The statistic of the projected metrics.
[$sel:stat:GetECSServiceRecommendationProjectedMetrics'] :: GetECSServiceRecommendationProjectedMetrics -> MetricStatistic
-- | The granularity, in seconds, of the projected metrics data points.
[$sel:period:GetECSServiceRecommendationProjectedMetrics'] :: GetECSServiceRecommendationProjectedMetrics -> Int
-- | The timestamp of the first projected metrics data point to return.
[$sel:startTime:GetECSServiceRecommendationProjectedMetrics'] :: GetECSServiceRecommendationProjectedMetrics -> POSIX
-- | The timestamp of the last projected metrics data point to return.
[$sel:endTime:GetECSServiceRecommendationProjectedMetrics'] :: GetECSServiceRecommendationProjectedMetrics -> POSIX
-- | Create a value of GetECSServiceRecommendationProjectedMetrics
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetECSServiceRecommendationProjectedMetrics,
-- getECSServiceRecommendationProjectedMetrics_serviceArn - The
-- ARN that identifies the ECS service.
--
-- The following is the format of the ARN:
--
--
-- arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
--
--
-- $sel:stat:GetECSServiceRecommendationProjectedMetrics',
-- getECSServiceRecommendationProjectedMetrics_stat - The
-- statistic of the projected metrics.
--
-- $sel:period:GetECSServiceRecommendationProjectedMetrics',
-- getECSServiceRecommendationProjectedMetrics_period - The
-- granularity, in seconds, of the projected metrics data points.
--
-- $sel:startTime:GetECSServiceRecommendationProjectedMetrics',
-- getECSServiceRecommendationProjectedMetrics_startTime - The
-- timestamp of the first projected metrics data point to return.
--
-- $sel:endTime:GetECSServiceRecommendationProjectedMetrics',
-- getECSServiceRecommendationProjectedMetrics_endTime - The
-- timestamp of the last projected metrics data point to return.
newGetECSServiceRecommendationProjectedMetrics :: Text -> MetricStatistic -> Int -> UTCTime -> UTCTime -> GetECSServiceRecommendationProjectedMetrics
-- | The ARN that identifies the ECS service.
--
-- The following is the format of the ARN:
--
--
-- arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
--
getECSServiceRecommendationProjectedMetrics_serviceArn :: Lens' GetECSServiceRecommendationProjectedMetrics Text
-- | The statistic of the projected metrics.
getECSServiceRecommendationProjectedMetrics_stat :: Lens' GetECSServiceRecommendationProjectedMetrics MetricStatistic
-- | The granularity, in seconds, of the projected metrics data points.
getECSServiceRecommendationProjectedMetrics_period :: Lens' GetECSServiceRecommendationProjectedMetrics Int
-- | The timestamp of the first projected metrics data point to return.
getECSServiceRecommendationProjectedMetrics_startTime :: Lens' GetECSServiceRecommendationProjectedMetrics UTCTime
-- | The timestamp of the last projected metrics data point to return.
getECSServiceRecommendationProjectedMetrics_endTime :: Lens' GetECSServiceRecommendationProjectedMetrics UTCTime
-- | See:
-- newGetECSServiceRecommendationProjectedMetricsResponse smart
-- constructor.
data GetECSServiceRecommendationProjectedMetricsResponse
GetECSServiceRecommendationProjectedMetricsResponse' :: Maybe [ECSServiceRecommendedOptionProjectedMetric] -> Int -> GetECSServiceRecommendationProjectedMetricsResponse
-- | An array of objects that describes the projected metrics.
[$sel:recommendedOptionProjectedMetrics:GetECSServiceRecommendationProjectedMetricsResponse'] :: GetECSServiceRecommendationProjectedMetricsResponse -> Maybe [ECSServiceRecommendedOptionProjectedMetric]
-- | The response's http status code.
[$sel:httpStatus:GetECSServiceRecommendationProjectedMetricsResponse'] :: GetECSServiceRecommendationProjectedMetricsResponse -> Int
-- | Create a value of
-- GetECSServiceRecommendationProjectedMetricsResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:recommendedOptionProjectedMetrics:GetECSServiceRecommendationProjectedMetricsResponse',
-- getECSServiceRecommendationProjectedMetricsResponse_recommendedOptionProjectedMetrics
-- - An array of objects that describes the projected metrics.
--
--
-- $sel:httpStatus:GetECSServiceRecommendationProjectedMetricsResponse',
-- getECSServiceRecommendationProjectedMetricsResponse_httpStatus
-- - The response's http status code.
newGetECSServiceRecommendationProjectedMetricsResponse :: Int -> GetECSServiceRecommendationProjectedMetricsResponse
-- | An array of objects that describes the projected metrics.
getECSServiceRecommendationProjectedMetricsResponse_recommendedOptionProjectedMetrics :: Lens' GetECSServiceRecommendationProjectedMetricsResponse (Maybe [ECSServiceRecommendedOptionProjectedMetric])
-- | The response's http status code.
getECSServiceRecommendationProjectedMetricsResponse_httpStatus :: Lens' GetECSServiceRecommendationProjectedMetricsResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetECSServiceRecommendationProjectedMetrics.GetECSServiceRecommendationProjectedMetrics
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetECSServiceRecommendationProjectedMetrics.GetECSServiceRecommendationProjectedMetrics
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetECSServiceRecommendationProjectedMetrics.GetECSServiceRecommendationProjectedMetrics
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetECSServiceRecommendationProjectedMetrics.GetECSServiceRecommendationProjectedMetrics
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetECSServiceRecommendationProjectedMetrics.GetECSServiceRecommendationProjectedMetricsResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetECSServiceRecommendationProjectedMetrics.GetECSServiceRecommendationProjectedMetricsResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetECSServiceRecommendationProjectedMetrics.GetECSServiceRecommendationProjectedMetricsResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetECSServiceRecommendationProjectedMetrics.GetECSServiceRecommendationProjectedMetricsResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.GetECSServiceRecommendationProjectedMetrics.GetECSServiceRecommendationProjectedMetrics
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetECSServiceRecommendationProjectedMetrics.GetECSServiceRecommendationProjectedMetricsResponse
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.GetECSServiceRecommendationProjectedMetrics.GetECSServiceRecommendationProjectedMetrics
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetECSServiceRecommendationProjectedMetrics.GetECSServiceRecommendationProjectedMetrics
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.GetECSServiceRecommendationProjectedMetrics.GetECSServiceRecommendationProjectedMetrics
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.GetECSServiceRecommendationProjectedMetrics.GetECSServiceRecommendationProjectedMetrics
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.GetECSServiceRecommendationProjectedMetrics.GetECSServiceRecommendationProjectedMetrics
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.GetECSServiceRecommendationProjectedMetrics.GetECSServiceRecommendationProjectedMetrics
-- | Returns the projected utilization metrics of Amazon EC2 instance
-- recommendations.
--
-- The Cpu and Memory metrics are the only projected
-- utilization metrics returned when you run this action. Additionally,
-- the Memory metric is returned only for resources that have
-- the unified CloudWatch agent installed on them. For more information,
-- see Enabling Memory Utilization with the CloudWatch Agent.
module Amazonka.ComputeOptimizer.GetEC2RecommendationProjectedMetrics
-- | See: newGetEC2RecommendationProjectedMetrics smart
-- constructor.
data GetEC2RecommendationProjectedMetrics
GetEC2RecommendationProjectedMetrics' :: Maybe RecommendationPreferences -> Text -> MetricStatistic -> Int -> POSIX -> POSIX -> GetEC2RecommendationProjectedMetrics
-- | An object to specify the preferences for the Amazon EC2 recommendation
-- projected metrics to return in the response.
[$sel:recommendationPreferences:GetEC2RecommendationProjectedMetrics'] :: GetEC2RecommendationProjectedMetrics -> Maybe RecommendationPreferences
-- | The Amazon Resource Name (ARN) of the instances for which to return
-- recommendation projected metrics.
[$sel:instanceArn:GetEC2RecommendationProjectedMetrics'] :: GetEC2RecommendationProjectedMetrics -> Text
-- | The statistic of the projected metrics.
[$sel:stat:GetEC2RecommendationProjectedMetrics'] :: GetEC2RecommendationProjectedMetrics -> MetricStatistic
-- | The granularity, in seconds, of the projected metrics data points.
[$sel:period:GetEC2RecommendationProjectedMetrics'] :: GetEC2RecommendationProjectedMetrics -> Int
-- | The timestamp of the first projected metrics data point to return.
[$sel:startTime:GetEC2RecommendationProjectedMetrics'] :: GetEC2RecommendationProjectedMetrics -> POSIX
-- | The timestamp of the last projected metrics data point to return.
[$sel:endTime:GetEC2RecommendationProjectedMetrics'] :: GetEC2RecommendationProjectedMetrics -> POSIX
-- | Create a value of GetEC2RecommendationProjectedMetrics with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:recommendationPreferences:GetEC2RecommendationProjectedMetrics',
-- getEC2RecommendationProjectedMetrics_recommendationPreferences
-- - An object to specify the preferences for the Amazon EC2
-- recommendation projected metrics to return in the response.
--
-- GetEC2RecommendationProjectedMetrics,
-- getEC2RecommendationProjectedMetrics_instanceArn - The Amazon
-- Resource Name (ARN) of the instances for which to return
-- recommendation projected metrics.
--
-- $sel:stat:GetEC2RecommendationProjectedMetrics',
-- getEC2RecommendationProjectedMetrics_stat - The statistic of
-- the projected metrics.
--
-- $sel:period:GetEC2RecommendationProjectedMetrics',
-- getEC2RecommendationProjectedMetrics_period - The granularity,
-- in seconds, of the projected metrics data points.
--
-- $sel:startTime:GetEC2RecommendationProjectedMetrics',
-- getEC2RecommendationProjectedMetrics_startTime - The timestamp
-- of the first projected metrics data point to return.
--
-- $sel:endTime:GetEC2RecommendationProjectedMetrics',
-- getEC2RecommendationProjectedMetrics_endTime - The timestamp of
-- the last projected metrics data point to return.
newGetEC2RecommendationProjectedMetrics :: Text -> MetricStatistic -> Int -> UTCTime -> UTCTime -> GetEC2RecommendationProjectedMetrics
-- | An object to specify the preferences for the Amazon EC2 recommendation
-- projected metrics to return in the response.
getEC2RecommendationProjectedMetrics_recommendationPreferences :: Lens' GetEC2RecommendationProjectedMetrics (Maybe RecommendationPreferences)
-- | The Amazon Resource Name (ARN) of the instances for which to return
-- recommendation projected metrics.
getEC2RecommendationProjectedMetrics_instanceArn :: Lens' GetEC2RecommendationProjectedMetrics Text
-- | The statistic of the projected metrics.
getEC2RecommendationProjectedMetrics_stat :: Lens' GetEC2RecommendationProjectedMetrics MetricStatistic
-- | The granularity, in seconds, of the projected metrics data points.
getEC2RecommendationProjectedMetrics_period :: Lens' GetEC2RecommendationProjectedMetrics Int
-- | The timestamp of the first projected metrics data point to return.
getEC2RecommendationProjectedMetrics_startTime :: Lens' GetEC2RecommendationProjectedMetrics UTCTime
-- | The timestamp of the last projected metrics data point to return.
getEC2RecommendationProjectedMetrics_endTime :: Lens' GetEC2RecommendationProjectedMetrics UTCTime
-- | See: newGetEC2RecommendationProjectedMetricsResponse
-- smart constructor.
data GetEC2RecommendationProjectedMetricsResponse
GetEC2RecommendationProjectedMetricsResponse' :: Maybe [RecommendedOptionProjectedMetric] -> Int -> GetEC2RecommendationProjectedMetricsResponse
-- | An array of objects that describes projected metrics.
[$sel:recommendedOptionProjectedMetrics:GetEC2RecommendationProjectedMetricsResponse'] :: GetEC2RecommendationProjectedMetricsResponse -> Maybe [RecommendedOptionProjectedMetric]
-- | The response's http status code.
[$sel:httpStatus:GetEC2RecommendationProjectedMetricsResponse'] :: GetEC2RecommendationProjectedMetricsResponse -> Int
-- | Create a value of GetEC2RecommendationProjectedMetricsResponse
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:recommendedOptionProjectedMetrics:GetEC2RecommendationProjectedMetricsResponse',
-- getEC2RecommendationProjectedMetricsResponse_recommendedOptionProjectedMetrics
-- - An array of objects that describes projected metrics.
--
-- $sel:httpStatus:GetEC2RecommendationProjectedMetricsResponse',
-- getEC2RecommendationProjectedMetricsResponse_httpStatus - The
-- response's http status code.
newGetEC2RecommendationProjectedMetricsResponse :: Int -> GetEC2RecommendationProjectedMetricsResponse
-- | An array of objects that describes projected metrics.
getEC2RecommendationProjectedMetricsResponse_recommendedOptionProjectedMetrics :: Lens' GetEC2RecommendationProjectedMetricsResponse (Maybe [RecommendedOptionProjectedMetric])
-- | The response's http status code.
getEC2RecommendationProjectedMetricsResponse_httpStatus :: Lens' GetEC2RecommendationProjectedMetricsResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetEC2RecommendationProjectedMetrics.GetEC2RecommendationProjectedMetrics
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetEC2RecommendationProjectedMetrics.GetEC2RecommendationProjectedMetrics
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetEC2RecommendationProjectedMetrics.GetEC2RecommendationProjectedMetrics
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetEC2RecommendationProjectedMetrics.GetEC2RecommendationProjectedMetrics
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetEC2RecommendationProjectedMetrics.GetEC2RecommendationProjectedMetricsResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetEC2RecommendationProjectedMetrics.GetEC2RecommendationProjectedMetricsResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetEC2RecommendationProjectedMetrics.GetEC2RecommendationProjectedMetricsResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetEC2RecommendationProjectedMetrics.GetEC2RecommendationProjectedMetricsResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.GetEC2RecommendationProjectedMetrics.GetEC2RecommendationProjectedMetrics
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetEC2RecommendationProjectedMetrics.GetEC2RecommendationProjectedMetricsResponse
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.GetEC2RecommendationProjectedMetrics.GetEC2RecommendationProjectedMetrics
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetEC2RecommendationProjectedMetrics.GetEC2RecommendationProjectedMetrics
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.GetEC2RecommendationProjectedMetrics.GetEC2RecommendationProjectedMetrics
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.GetEC2RecommendationProjectedMetrics.GetEC2RecommendationProjectedMetrics
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.GetEC2RecommendationProjectedMetrics.GetEC2RecommendationProjectedMetrics
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.GetEC2RecommendationProjectedMetrics.GetEC2RecommendationProjectedMetrics
-- | Returns Amazon EC2 instance recommendations.
--
-- Compute Optimizer generates recommendations for Amazon Elastic Compute
-- Cloud (Amazon EC2) instances that meet a specific set of requirements.
-- For more information, see the Supported resources and
-- requirements in the Compute Optimizer User Guide.
module Amazonka.ComputeOptimizer.GetEC2InstanceRecommendations
-- | See: newGetEC2InstanceRecommendations smart constructor.
data GetEC2InstanceRecommendations
GetEC2InstanceRecommendations' :: Maybe [Text] -> Maybe [Filter] -> Maybe [Text] -> Maybe Natural -> Maybe Text -> Maybe RecommendationPreferences -> GetEC2InstanceRecommendations
-- | The ID of the Amazon Web Services account for which to return instance
-- recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- instance recommendations.
--
-- Only one account ID can be specified per request.
[$sel:accountIds:GetEC2InstanceRecommendations'] :: GetEC2InstanceRecommendations -> Maybe [Text]
-- | An array of objects to specify a filter that returns a more specific
-- list of instance recommendations.
[$sel:filters:GetEC2InstanceRecommendations'] :: GetEC2InstanceRecommendations -> Maybe [Filter]
-- | The Amazon Resource Name (ARN) of the instances for which to return
-- recommendations.
[$sel:instanceArns:GetEC2InstanceRecommendations'] :: GetEC2InstanceRecommendations -> Maybe [Text]
-- | The maximum number of instance recommendations to return with a single
-- request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
[$sel:maxResults:GetEC2InstanceRecommendations'] :: GetEC2InstanceRecommendations -> Maybe Natural
-- | The token to advance to the next page of instance recommendations.
[$sel:nextToken:GetEC2InstanceRecommendations'] :: GetEC2InstanceRecommendations -> Maybe Text
-- | An object to specify the preferences for the Amazon EC2 instance
-- recommendations to return in the response.
[$sel:recommendationPreferences:GetEC2InstanceRecommendations'] :: GetEC2InstanceRecommendations -> Maybe RecommendationPreferences
-- | Create a value of GetEC2InstanceRecommendations with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:GetEC2InstanceRecommendations',
-- getEC2InstanceRecommendations_accountIds - The ID of the Amazon
-- Web Services account for which to return instance recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- instance recommendations.
--
-- Only one account ID can be specified per request.
--
-- $sel:filters:GetEC2InstanceRecommendations',
-- getEC2InstanceRecommendations_filters - An array of objects to
-- specify a filter that returns a more specific list of instance
-- recommendations.
--
-- $sel:instanceArns:GetEC2InstanceRecommendations',
-- getEC2InstanceRecommendations_instanceArns - The Amazon
-- Resource Name (ARN) of the instances for which to return
-- recommendations.
--
-- $sel:maxResults:GetEC2InstanceRecommendations',
-- getEC2InstanceRecommendations_maxResults - The maximum number
-- of instance recommendations to return with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
--
-- GetEC2InstanceRecommendations,
-- getEC2InstanceRecommendations_nextToken - The token to advance
-- to the next page of instance recommendations.
--
-- $sel:recommendationPreferences:GetEC2InstanceRecommendations',
-- getEC2InstanceRecommendations_recommendationPreferences - An
-- object to specify the preferences for the Amazon EC2 instance
-- recommendations to return in the response.
newGetEC2InstanceRecommendations :: GetEC2InstanceRecommendations
-- | The ID of the Amazon Web Services account for which to return instance
-- recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- instance recommendations.
--
-- Only one account ID can be specified per request.
getEC2InstanceRecommendations_accountIds :: Lens' GetEC2InstanceRecommendations (Maybe [Text])
-- | An array of objects to specify a filter that returns a more specific
-- list of instance recommendations.
getEC2InstanceRecommendations_filters :: Lens' GetEC2InstanceRecommendations (Maybe [Filter])
-- | The Amazon Resource Name (ARN) of the instances for which to return
-- recommendations.
getEC2InstanceRecommendations_instanceArns :: Lens' GetEC2InstanceRecommendations (Maybe [Text])
-- | The maximum number of instance recommendations to return with a single
-- request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
getEC2InstanceRecommendations_maxResults :: Lens' GetEC2InstanceRecommendations (Maybe Natural)
-- | The token to advance to the next page of instance recommendations.
getEC2InstanceRecommendations_nextToken :: Lens' GetEC2InstanceRecommendations (Maybe Text)
-- | An object to specify the preferences for the Amazon EC2 instance
-- recommendations to return in the response.
getEC2InstanceRecommendations_recommendationPreferences :: Lens' GetEC2InstanceRecommendations (Maybe RecommendationPreferences)
-- | See: newGetEC2InstanceRecommendationsResponse smart
-- constructor.
data GetEC2InstanceRecommendationsResponse
GetEC2InstanceRecommendationsResponse' :: Maybe [GetRecommendationError] -> Maybe [InstanceRecommendation] -> Maybe Text -> Int -> GetEC2InstanceRecommendationsResponse
-- | An array of objects that describe errors of the request.
--
-- For example, an error is returned if you request recommendations for
-- an instance of an unsupported instance family.
[$sel:errors:GetEC2InstanceRecommendationsResponse'] :: GetEC2InstanceRecommendationsResponse -> Maybe [GetRecommendationError]
-- | An array of objects that describe instance recommendations.
[$sel:instanceRecommendations:GetEC2InstanceRecommendationsResponse'] :: GetEC2InstanceRecommendationsResponse -> Maybe [InstanceRecommendation]
-- | The token to use to advance to the next page of instance
-- recommendations.
--
-- This value is null when there are no more pages of instance
-- recommendations to return.
[$sel:nextToken:GetEC2InstanceRecommendationsResponse'] :: GetEC2InstanceRecommendationsResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:GetEC2InstanceRecommendationsResponse'] :: GetEC2InstanceRecommendationsResponse -> Int
-- | Create a value of GetEC2InstanceRecommendationsResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:errors:GetEC2InstanceRecommendationsResponse',
-- getEC2InstanceRecommendationsResponse_errors - An array of
-- objects that describe errors of the request.
--
-- For example, an error is returned if you request recommendations for
-- an instance of an unsupported instance family.
--
--
-- $sel:instanceRecommendations:GetEC2InstanceRecommendationsResponse',
-- getEC2InstanceRecommendationsResponse_instanceRecommendations -
-- An array of objects that describe instance recommendations.
--
-- GetEC2InstanceRecommendations,
-- getEC2InstanceRecommendationsResponse_nextToken - The token to
-- use to advance to the next page of instance recommendations.
--
-- This value is null when there are no more pages of instance
-- recommendations to return.
--
-- $sel:httpStatus:GetEC2InstanceRecommendationsResponse',
-- getEC2InstanceRecommendationsResponse_httpStatus - The
-- response's http status code.
newGetEC2InstanceRecommendationsResponse :: Int -> GetEC2InstanceRecommendationsResponse
-- | An array of objects that describe errors of the request.
--
-- For example, an error is returned if you request recommendations for
-- an instance of an unsupported instance family.
getEC2InstanceRecommendationsResponse_errors :: Lens' GetEC2InstanceRecommendationsResponse (Maybe [GetRecommendationError])
-- | An array of objects that describe instance recommendations.
getEC2InstanceRecommendationsResponse_instanceRecommendations :: Lens' GetEC2InstanceRecommendationsResponse (Maybe [InstanceRecommendation])
-- | The token to use to advance to the next page of instance
-- recommendations.
--
-- This value is null when there are no more pages of instance
-- recommendations to return.
getEC2InstanceRecommendationsResponse_nextToken :: Lens' GetEC2InstanceRecommendationsResponse (Maybe Text)
-- | The response's http status code.
getEC2InstanceRecommendationsResponse_httpStatus :: Lens' GetEC2InstanceRecommendationsResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetEC2InstanceRecommendations.GetEC2InstanceRecommendations
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetEC2InstanceRecommendations.GetEC2InstanceRecommendations
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetEC2InstanceRecommendations.GetEC2InstanceRecommendations
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetEC2InstanceRecommendations.GetEC2InstanceRecommendations
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetEC2InstanceRecommendations.GetEC2InstanceRecommendationsResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetEC2InstanceRecommendations.GetEC2InstanceRecommendationsResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetEC2InstanceRecommendations.GetEC2InstanceRecommendationsResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetEC2InstanceRecommendations.GetEC2InstanceRecommendationsResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.GetEC2InstanceRecommendations.GetEC2InstanceRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetEC2InstanceRecommendations.GetEC2InstanceRecommendationsResponse
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.GetEC2InstanceRecommendations.GetEC2InstanceRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetEC2InstanceRecommendations.GetEC2InstanceRecommendations
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.GetEC2InstanceRecommendations.GetEC2InstanceRecommendations
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.GetEC2InstanceRecommendations.GetEC2InstanceRecommendations
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.GetEC2InstanceRecommendations.GetEC2InstanceRecommendations
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.GetEC2InstanceRecommendations.GetEC2InstanceRecommendations
-- | Returns Amazon Elastic Block Store (Amazon EBS) volume
-- recommendations.
--
-- Compute Optimizer generates recommendations for Amazon EBS volumes
-- that meet a specific set of requirements. For more information, see
-- the Supported resources and requirements in the Compute
-- Optimizer User Guide.
module Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations
-- | See: newGetEBSVolumeRecommendations smart constructor.
data GetEBSVolumeRecommendations
GetEBSVolumeRecommendations' :: Maybe [Text] -> Maybe [EBSFilter] -> Maybe Natural -> Maybe Text -> Maybe [Text] -> GetEBSVolumeRecommendations
-- | The ID of the Amazon Web Services account for which to return volume
-- recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- volume recommendations.
--
-- Only one account ID can be specified per request.
[$sel:accountIds:GetEBSVolumeRecommendations'] :: GetEBSVolumeRecommendations -> Maybe [Text]
-- | An array of objects to specify a filter that returns a more specific
-- list of volume recommendations.
[$sel:filters:GetEBSVolumeRecommendations'] :: GetEBSVolumeRecommendations -> Maybe [EBSFilter]
-- | The maximum number of volume recommendations to return with a single
-- request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
[$sel:maxResults:GetEBSVolumeRecommendations'] :: GetEBSVolumeRecommendations -> Maybe Natural
-- | The token to advance to the next page of volume recommendations.
[$sel:nextToken:GetEBSVolumeRecommendations'] :: GetEBSVolumeRecommendations -> Maybe Text
-- | The Amazon Resource Name (ARN) of the volumes for which to return
-- recommendations.
[$sel:volumeArns:GetEBSVolumeRecommendations'] :: GetEBSVolumeRecommendations -> Maybe [Text]
-- | Create a value of GetEBSVolumeRecommendations with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:GetEBSVolumeRecommendations',
-- getEBSVolumeRecommendations_accountIds - The ID of the Amazon
-- Web Services account for which to return volume recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- volume recommendations.
--
-- Only one account ID can be specified per request.
--
-- $sel:filters:GetEBSVolumeRecommendations',
-- getEBSVolumeRecommendations_filters - An array of objects to
-- specify a filter that returns a more specific list of volume
-- recommendations.
--
-- $sel:maxResults:GetEBSVolumeRecommendations',
-- getEBSVolumeRecommendations_maxResults - The maximum number of
-- volume recommendations to return with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
--
-- GetEBSVolumeRecommendations,
-- getEBSVolumeRecommendations_nextToken - The token to advance to
-- the next page of volume recommendations.
--
-- $sel:volumeArns:GetEBSVolumeRecommendations',
-- getEBSVolumeRecommendations_volumeArns - The Amazon Resource
-- Name (ARN) of the volumes for which to return recommendations.
newGetEBSVolumeRecommendations :: GetEBSVolumeRecommendations
-- | The ID of the Amazon Web Services account for which to return volume
-- recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- volume recommendations.
--
-- Only one account ID can be specified per request.
getEBSVolumeRecommendations_accountIds :: Lens' GetEBSVolumeRecommendations (Maybe [Text])
-- | An array of objects to specify a filter that returns a more specific
-- list of volume recommendations.
getEBSVolumeRecommendations_filters :: Lens' GetEBSVolumeRecommendations (Maybe [EBSFilter])
-- | The maximum number of volume recommendations to return with a single
-- request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
getEBSVolumeRecommendations_maxResults :: Lens' GetEBSVolumeRecommendations (Maybe Natural)
-- | The token to advance to the next page of volume recommendations.
getEBSVolumeRecommendations_nextToken :: Lens' GetEBSVolumeRecommendations (Maybe Text)
-- | The Amazon Resource Name (ARN) of the volumes for which to return
-- recommendations.
getEBSVolumeRecommendations_volumeArns :: Lens' GetEBSVolumeRecommendations (Maybe [Text])
-- | See: newGetEBSVolumeRecommendationsResponse smart
-- constructor.
data GetEBSVolumeRecommendationsResponse
GetEBSVolumeRecommendationsResponse' :: Maybe [GetRecommendationError] -> Maybe Text -> Maybe [VolumeRecommendation] -> Int -> GetEBSVolumeRecommendationsResponse
-- | An array of objects that describe errors of the request.
--
-- For example, an error is returned if you request recommendations for
-- an unsupported volume.
[$sel:errors:GetEBSVolumeRecommendationsResponse'] :: GetEBSVolumeRecommendationsResponse -> Maybe [GetRecommendationError]
-- | The token to use to advance to the next page of volume
-- recommendations.
--
-- This value is null when there are no more pages of volume
-- recommendations to return.
[$sel:nextToken:GetEBSVolumeRecommendationsResponse'] :: GetEBSVolumeRecommendationsResponse -> Maybe Text
-- | An array of objects that describe volume recommendations.
[$sel:volumeRecommendations:GetEBSVolumeRecommendationsResponse'] :: GetEBSVolumeRecommendationsResponse -> Maybe [VolumeRecommendation]
-- | The response's http status code.
[$sel:httpStatus:GetEBSVolumeRecommendationsResponse'] :: GetEBSVolumeRecommendationsResponse -> Int
-- | Create a value of GetEBSVolumeRecommendationsResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:errors:GetEBSVolumeRecommendationsResponse',
-- getEBSVolumeRecommendationsResponse_errors - An array of
-- objects that describe errors of the request.
--
-- For example, an error is returned if you request recommendations for
-- an unsupported volume.
--
-- GetEBSVolumeRecommendations,
-- getEBSVolumeRecommendationsResponse_nextToken - The token to
-- use to advance to the next page of volume recommendations.
--
-- This value is null when there are no more pages of volume
-- recommendations to return.
--
--
-- $sel:volumeRecommendations:GetEBSVolumeRecommendationsResponse',
-- getEBSVolumeRecommendationsResponse_volumeRecommendations - An
-- array of objects that describe volume recommendations.
--
-- $sel:httpStatus:GetEBSVolumeRecommendationsResponse',
-- getEBSVolumeRecommendationsResponse_httpStatus - The response's
-- http status code.
newGetEBSVolumeRecommendationsResponse :: Int -> GetEBSVolumeRecommendationsResponse
-- | An array of objects that describe errors of the request.
--
-- For example, an error is returned if you request recommendations for
-- an unsupported volume.
getEBSVolumeRecommendationsResponse_errors :: Lens' GetEBSVolumeRecommendationsResponse (Maybe [GetRecommendationError])
-- | The token to use to advance to the next page of volume
-- recommendations.
--
-- This value is null when there are no more pages of volume
-- recommendations to return.
getEBSVolumeRecommendationsResponse_nextToken :: Lens' GetEBSVolumeRecommendationsResponse (Maybe Text)
-- | An array of objects that describe volume recommendations.
getEBSVolumeRecommendationsResponse_volumeRecommendations :: Lens' GetEBSVolumeRecommendationsResponse (Maybe [VolumeRecommendation])
-- | The response's http status code.
getEBSVolumeRecommendationsResponse_httpStatus :: Lens' GetEBSVolumeRecommendationsResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations.GetEBSVolumeRecommendations
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations.GetEBSVolumeRecommendations
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations.GetEBSVolumeRecommendations
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations.GetEBSVolumeRecommendations
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations.GetEBSVolumeRecommendationsResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations.GetEBSVolumeRecommendationsResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations.GetEBSVolumeRecommendationsResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations.GetEBSVolumeRecommendationsResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations.GetEBSVolumeRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations.GetEBSVolumeRecommendationsResponse
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations.GetEBSVolumeRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations.GetEBSVolumeRecommendations
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations.GetEBSVolumeRecommendations
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations.GetEBSVolumeRecommendations
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations.GetEBSVolumeRecommendations
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations.GetEBSVolumeRecommendations
-- | Returns Auto Scaling group recommendations.
--
-- Compute Optimizer generates recommendations for Amazon EC2 Auto
-- Scaling groups that meet a specific set of requirements. For more
-- information, see the Supported resources and requirements in
-- the Compute Optimizer User Guide.
module Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations
-- | See: newGetAutoScalingGroupRecommendations smart
-- constructor.
data GetAutoScalingGroupRecommendations
GetAutoScalingGroupRecommendations' :: Maybe [Text] -> Maybe [Text] -> Maybe [Filter] -> Maybe Natural -> Maybe Text -> Maybe RecommendationPreferences -> GetAutoScalingGroupRecommendations
-- | The ID of the Amazon Web Services account for which to return Auto
-- Scaling group recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- Auto Scaling group recommendations.
--
-- Only one account ID can be specified per request.
[$sel:accountIds:GetAutoScalingGroupRecommendations'] :: GetAutoScalingGroupRecommendations -> Maybe [Text]
-- | The Amazon Resource Name (ARN) of the Auto Scaling groups for which to
-- return recommendations.
[$sel:autoScalingGroupArns:GetAutoScalingGroupRecommendations'] :: GetAutoScalingGroupRecommendations -> Maybe [Text]
-- | An array of objects to specify a filter that returns a more specific
-- list of Auto Scaling group recommendations.
[$sel:filters:GetAutoScalingGroupRecommendations'] :: GetAutoScalingGroupRecommendations -> Maybe [Filter]
-- | The maximum number of Auto Scaling group recommendations to return
-- with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
[$sel:maxResults:GetAutoScalingGroupRecommendations'] :: GetAutoScalingGroupRecommendations -> Maybe Natural
-- | The token to advance to the next page of Auto Scaling group
-- recommendations.
[$sel:nextToken:GetAutoScalingGroupRecommendations'] :: GetAutoScalingGroupRecommendations -> Maybe Text
-- | An object to specify the preferences for the Auto Scaling group
-- recommendations to return in the response.
[$sel:recommendationPreferences:GetAutoScalingGroupRecommendations'] :: GetAutoScalingGroupRecommendations -> Maybe RecommendationPreferences
-- | Create a value of GetAutoScalingGroupRecommendations with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:GetAutoScalingGroupRecommendations',
-- getAutoScalingGroupRecommendations_accountIds - The ID of the
-- Amazon Web Services account for which to return Auto Scaling group
-- recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- Auto Scaling group recommendations.
--
-- Only one account ID can be specified per request.
--
-- $sel:autoScalingGroupArns:GetAutoScalingGroupRecommendations',
-- getAutoScalingGroupRecommendations_autoScalingGroupArns - The
-- Amazon Resource Name (ARN) of the Auto Scaling groups for which to
-- return recommendations.
--
-- $sel:filters:GetAutoScalingGroupRecommendations',
-- getAutoScalingGroupRecommendations_filters - An array of
-- objects to specify a filter that returns a more specific list of Auto
-- Scaling group recommendations.
--
-- $sel:maxResults:GetAutoScalingGroupRecommendations',
-- getAutoScalingGroupRecommendations_maxResults - The maximum
-- number of Auto Scaling group recommendations to return with a single
-- request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
--
-- GetAutoScalingGroupRecommendations,
-- getAutoScalingGroupRecommendations_nextToken - The token to
-- advance to the next page of Auto Scaling group recommendations.
--
--
-- $sel:recommendationPreferences:GetAutoScalingGroupRecommendations',
-- getAutoScalingGroupRecommendations_recommendationPreferences -
-- An object to specify the preferences for the Auto Scaling group
-- recommendations to return in the response.
newGetAutoScalingGroupRecommendations :: GetAutoScalingGroupRecommendations
-- | The ID of the Amazon Web Services account for which to return Auto
-- Scaling group recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- Auto Scaling group recommendations.
--
-- Only one account ID can be specified per request.
getAutoScalingGroupRecommendations_accountIds :: Lens' GetAutoScalingGroupRecommendations (Maybe [Text])
-- | The Amazon Resource Name (ARN) of the Auto Scaling groups for which to
-- return recommendations.
getAutoScalingGroupRecommendations_autoScalingGroupArns :: Lens' GetAutoScalingGroupRecommendations (Maybe [Text])
-- | An array of objects to specify a filter that returns a more specific
-- list of Auto Scaling group recommendations.
getAutoScalingGroupRecommendations_filters :: Lens' GetAutoScalingGroupRecommendations (Maybe [Filter])
-- | The maximum number of Auto Scaling group recommendations to return
-- with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
getAutoScalingGroupRecommendations_maxResults :: Lens' GetAutoScalingGroupRecommendations (Maybe Natural)
-- | The token to advance to the next page of Auto Scaling group
-- recommendations.
getAutoScalingGroupRecommendations_nextToken :: Lens' GetAutoScalingGroupRecommendations (Maybe Text)
-- | An object to specify the preferences for the Auto Scaling group
-- recommendations to return in the response.
getAutoScalingGroupRecommendations_recommendationPreferences :: Lens' GetAutoScalingGroupRecommendations (Maybe RecommendationPreferences)
-- | See: newGetAutoScalingGroupRecommendationsResponse smart
-- constructor.
data GetAutoScalingGroupRecommendationsResponse
GetAutoScalingGroupRecommendationsResponse' :: Maybe [AutoScalingGroupRecommendation] -> Maybe [GetRecommendationError] -> Maybe Text -> Int -> GetAutoScalingGroupRecommendationsResponse
-- | An array of objects that describe Auto Scaling group recommendations.
[$sel:autoScalingGroupRecommendations:GetAutoScalingGroupRecommendationsResponse'] :: GetAutoScalingGroupRecommendationsResponse -> Maybe [AutoScalingGroupRecommendation]
-- | An array of objects that describe errors of the request.
--
-- For example, an error is returned if you request recommendations for
-- an unsupported Auto Scaling group.
[$sel:errors:GetAutoScalingGroupRecommendationsResponse'] :: GetAutoScalingGroupRecommendationsResponse -> Maybe [GetRecommendationError]
-- | The token to use to advance to the next page of Auto Scaling group
-- recommendations.
--
-- This value is null when there are no more pages of Auto Scaling group
-- recommendations to return.
[$sel:nextToken:GetAutoScalingGroupRecommendationsResponse'] :: GetAutoScalingGroupRecommendationsResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:GetAutoScalingGroupRecommendationsResponse'] :: GetAutoScalingGroupRecommendationsResponse -> Int
-- | Create a value of GetAutoScalingGroupRecommendationsResponse
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:autoScalingGroupRecommendations:GetAutoScalingGroupRecommendationsResponse',
-- getAutoScalingGroupRecommendationsResponse_autoScalingGroupRecommendations
-- - An array of objects that describe Auto Scaling group
-- recommendations.
--
-- $sel:errors:GetAutoScalingGroupRecommendationsResponse',
-- getAutoScalingGroupRecommendationsResponse_errors - An array of
-- objects that describe errors of the request.
--
-- For example, an error is returned if you request recommendations for
-- an unsupported Auto Scaling group.
--
-- GetAutoScalingGroupRecommendations,
-- getAutoScalingGroupRecommendationsResponse_nextToken - The
-- token to use to advance to the next page of Auto Scaling group
-- recommendations.
--
-- This value is null when there are no more pages of Auto Scaling group
-- recommendations to return.
--
-- $sel:httpStatus:GetAutoScalingGroupRecommendationsResponse',
-- getAutoScalingGroupRecommendationsResponse_httpStatus - The
-- response's http status code.
newGetAutoScalingGroupRecommendationsResponse :: Int -> GetAutoScalingGroupRecommendationsResponse
-- | An array of objects that describe Auto Scaling group recommendations.
getAutoScalingGroupRecommendationsResponse_autoScalingGroupRecommendations :: Lens' GetAutoScalingGroupRecommendationsResponse (Maybe [AutoScalingGroupRecommendation])
-- | An array of objects that describe errors of the request.
--
-- For example, an error is returned if you request recommendations for
-- an unsupported Auto Scaling group.
getAutoScalingGroupRecommendationsResponse_errors :: Lens' GetAutoScalingGroupRecommendationsResponse (Maybe [GetRecommendationError])
-- | The token to use to advance to the next page of Auto Scaling group
-- recommendations.
--
-- This value is null when there are no more pages of Auto Scaling group
-- recommendations to return.
getAutoScalingGroupRecommendationsResponse_nextToken :: Lens' GetAutoScalingGroupRecommendationsResponse (Maybe Text)
-- | The response's http status code.
getAutoScalingGroupRecommendationsResponse_httpStatus :: Lens' GetAutoScalingGroupRecommendationsResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations.GetAutoScalingGroupRecommendations
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations.GetAutoScalingGroupRecommendations
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations.GetAutoScalingGroupRecommendations
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations.GetAutoScalingGroupRecommendations
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations.GetAutoScalingGroupRecommendationsResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations.GetAutoScalingGroupRecommendationsResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations.GetAutoScalingGroupRecommendationsResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations.GetAutoScalingGroupRecommendationsResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations.GetAutoScalingGroupRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations.GetAutoScalingGroupRecommendationsResponse
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations.GetAutoScalingGroupRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations.GetAutoScalingGroupRecommendations
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations.GetAutoScalingGroupRecommendations
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations.GetAutoScalingGroupRecommendations
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations.GetAutoScalingGroupRecommendations
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations.GetAutoScalingGroupRecommendations
-- | Exports optimization recommendations for Lambda functions.
--
-- Recommendations are exported in a comma-separated values (.csv) file,
-- and its metadata in a JavaScript Object Notation (JSON) (.json) file,
-- to an existing Amazon Simple Storage Service (Amazon S3) bucket that
-- you specify. For more information, see Exporting
-- Recommendations in the Compute Optimizer User Guide.
--
-- You can have only one Lambda function export job in progress per
-- Amazon Web Services Region.
module Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations
-- | See: newExportLambdaFunctionRecommendations smart
-- constructor.
data ExportLambdaFunctionRecommendations
ExportLambdaFunctionRecommendations' :: Maybe [Text] -> Maybe [ExportableLambdaFunctionField] -> Maybe FileFormat -> Maybe [LambdaFunctionRecommendationFilter] -> Maybe Bool -> S3DestinationConfig -> ExportLambdaFunctionRecommendations
-- | The IDs of the Amazon Web Services accounts for which to export Lambda
-- function recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
[$sel:accountIds:ExportLambdaFunctionRecommendations'] :: ExportLambdaFunctionRecommendations -> Maybe [Text]
-- | The recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
[$sel:fieldsToExport:ExportLambdaFunctionRecommendations'] :: ExportLambdaFunctionRecommendations -> Maybe [ExportableLambdaFunctionField]
-- | The format of the export file.
--
-- The only export file format currently supported is Csv.
[$sel:fileFormat:ExportLambdaFunctionRecommendations'] :: ExportLambdaFunctionRecommendations -> Maybe FileFormat
-- | An array of objects to specify a filter that exports a more specific
-- set of Lambda function recommendations.
[$sel:filters:ExportLambdaFunctionRecommendations'] :: ExportLambdaFunctionRecommendations -> Maybe [LambdaFunctionRecommendationFilter]
-- | Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- This parameter cannot be specified together with the account IDs
-- parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
[$sel:includeMemberAccounts:ExportLambdaFunctionRecommendations'] :: ExportLambdaFunctionRecommendations -> Maybe Bool
[$sel:s3DestinationConfig:ExportLambdaFunctionRecommendations'] :: ExportLambdaFunctionRecommendations -> S3DestinationConfig
-- | Create a value of ExportLambdaFunctionRecommendations with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:ExportLambdaFunctionRecommendations',
-- exportLambdaFunctionRecommendations_accountIds - The IDs of the
-- Amazon Web Services accounts for which to export Lambda function
-- recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
--
-- $sel:fieldsToExport:ExportLambdaFunctionRecommendations',
-- exportLambdaFunctionRecommendations_fieldsToExport - The
-- recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
--
-- $sel:fileFormat:ExportLambdaFunctionRecommendations',
-- exportLambdaFunctionRecommendations_fileFormat - The format of
-- the export file.
--
-- The only export file format currently supported is Csv.
--
-- $sel:filters:ExportLambdaFunctionRecommendations',
-- exportLambdaFunctionRecommendations_filters - An array of
-- objects to specify a filter that exports a more specific set of Lambda
-- function recommendations.
--
--
-- $sel:includeMemberAccounts:ExportLambdaFunctionRecommendations',
-- exportLambdaFunctionRecommendations_includeMemberAccounts -
-- Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- This parameter cannot be specified together with the account IDs
-- parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
--
-- $sel:s3DestinationConfig:ExportLambdaFunctionRecommendations',
-- exportLambdaFunctionRecommendations_s3DestinationConfig -
-- Undocumented member.
newExportLambdaFunctionRecommendations :: S3DestinationConfig -> ExportLambdaFunctionRecommendations
-- | The IDs of the Amazon Web Services accounts for which to export Lambda
-- function recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
exportLambdaFunctionRecommendations_accountIds :: Lens' ExportLambdaFunctionRecommendations (Maybe [Text])
-- | The recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
exportLambdaFunctionRecommendations_fieldsToExport :: Lens' ExportLambdaFunctionRecommendations (Maybe [ExportableLambdaFunctionField])
-- | The format of the export file.
--
-- The only export file format currently supported is Csv.
exportLambdaFunctionRecommendations_fileFormat :: Lens' ExportLambdaFunctionRecommendations (Maybe FileFormat)
-- | An array of objects to specify a filter that exports a more specific
-- set of Lambda function recommendations.
exportLambdaFunctionRecommendations_filters :: Lens' ExportLambdaFunctionRecommendations (Maybe [LambdaFunctionRecommendationFilter])
-- | Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- This parameter cannot be specified together with the account IDs
-- parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
exportLambdaFunctionRecommendations_includeMemberAccounts :: Lens' ExportLambdaFunctionRecommendations (Maybe Bool)
-- | Undocumented member.
exportLambdaFunctionRecommendations_s3DestinationConfig :: Lens' ExportLambdaFunctionRecommendations S3DestinationConfig
-- | See: newExportLambdaFunctionRecommendationsResponse
-- smart constructor.
data ExportLambdaFunctionRecommendationsResponse
ExportLambdaFunctionRecommendationsResponse' :: Maybe Text -> Maybe S3Destination -> Int -> ExportLambdaFunctionRecommendationsResponse
-- | The identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
[$sel:jobId:ExportLambdaFunctionRecommendationsResponse'] :: ExportLambdaFunctionRecommendationsResponse -> Maybe Text
[$sel:s3Destination:ExportLambdaFunctionRecommendationsResponse'] :: ExportLambdaFunctionRecommendationsResponse -> Maybe S3Destination
-- | The response's http status code.
[$sel:httpStatus:ExportLambdaFunctionRecommendationsResponse'] :: ExportLambdaFunctionRecommendationsResponse -> Int
-- | Create a value of ExportLambdaFunctionRecommendationsResponse
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ExportLambdaFunctionRecommendationsResponse,
-- exportLambdaFunctionRecommendationsResponse_jobId - The
-- identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
--
--
-- $sel:s3Destination:ExportLambdaFunctionRecommendationsResponse',
-- exportLambdaFunctionRecommendationsResponse_s3Destination -
-- Undocumented member.
--
-- $sel:httpStatus:ExportLambdaFunctionRecommendationsResponse',
-- exportLambdaFunctionRecommendationsResponse_httpStatus - The
-- response's http status code.
newExportLambdaFunctionRecommendationsResponse :: Int -> ExportLambdaFunctionRecommendationsResponse
-- | The identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
exportLambdaFunctionRecommendationsResponse_jobId :: Lens' ExportLambdaFunctionRecommendationsResponse (Maybe Text)
-- | Undocumented member.
exportLambdaFunctionRecommendationsResponse_s3Destination :: Lens' ExportLambdaFunctionRecommendationsResponse (Maybe S3Destination)
-- | The response's http status code.
exportLambdaFunctionRecommendationsResponse_httpStatus :: Lens' ExportLambdaFunctionRecommendationsResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations.ExportLambdaFunctionRecommendations
instance GHC.Show.Show Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations.ExportLambdaFunctionRecommendations
instance GHC.Read.Read Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations.ExportLambdaFunctionRecommendations
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations.ExportLambdaFunctionRecommendations
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations.ExportLambdaFunctionRecommendationsResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations.ExportLambdaFunctionRecommendationsResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations.ExportLambdaFunctionRecommendationsResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations.ExportLambdaFunctionRecommendationsResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations.ExportLambdaFunctionRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations.ExportLambdaFunctionRecommendationsResponse
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations.ExportLambdaFunctionRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations.ExportLambdaFunctionRecommendations
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations.ExportLambdaFunctionRecommendations
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations.ExportLambdaFunctionRecommendations
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations.ExportLambdaFunctionRecommendations
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations.ExportLambdaFunctionRecommendations
-- | Exports optimization recommendations for Amazon ECS services on
-- Fargate.
--
-- Recommendations are exported in a CSV file, and its metadata in a JSON
-- file, to an existing Amazon Simple Storage Service (Amazon S3) bucket
-- that you specify. For more information, see Exporting
-- Recommendations in the Compute Optimizer User Guide.
--
-- You can only have one Amazon ECS service export job in progress per
-- Amazon Web Services Region.
module Amazonka.ComputeOptimizer.ExportECSServiceRecommendations
-- | See: newExportECSServiceRecommendations smart
-- constructor.
data ExportECSServiceRecommendations
ExportECSServiceRecommendations' :: Maybe [Text] -> Maybe [ExportableECSServiceField] -> Maybe FileFormat -> Maybe [ECSServiceRecommendationFilter] -> Maybe Bool -> S3DestinationConfig -> ExportECSServiceRecommendations
-- | The Amazon Web Services account IDs for the export ECS service
-- recommendations.
--
-- If your account is the management account or the delegated
-- administrator of an organization, use this parameter to specify the
-- member account you want to export recommendations to.
--
-- This parameter can't be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- If this parameter or the include member accounts parameter is omitted,
-- the recommendations for member accounts aren't included in the export.
--
-- You can specify multiple account IDs per request.
[$sel:accountIds:ExportECSServiceRecommendations'] :: ExportECSServiceRecommendations -> Maybe [Text]
-- | The recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
[$sel:fieldsToExport:ExportECSServiceRecommendations'] :: ExportECSServiceRecommendations -> Maybe [ExportableECSServiceField]
-- | The format of the export file.
--
-- The CSV file is the only export file format currently supported.
[$sel:fileFormat:ExportECSServiceRecommendations'] :: ExportECSServiceRecommendations -> Maybe FileFormat
-- | An array of objects to specify a filter that exports a more specific
-- set of ECS service recommendations.
[$sel:filters:ExportECSServiceRecommendations'] :: ExportECSServiceRecommendations -> Maybe [ECSServiceRecommendationFilter]
-- | If your account is the management account or the delegated
-- administrator of an organization, this parameter indicates whether to
-- include recommendations for resources in all member accounts of the
-- organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- If this parameter is omitted, recommendations for member accounts of
-- the organization aren't included in the export file.
--
-- If this parameter or the account ID parameter is omitted,
-- recommendations for member accounts aren't included in the export.
[$sel:includeMemberAccounts:ExportECSServiceRecommendations'] :: ExportECSServiceRecommendations -> Maybe Bool
[$sel:s3DestinationConfig:ExportECSServiceRecommendations'] :: ExportECSServiceRecommendations -> S3DestinationConfig
-- | Create a value of ExportECSServiceRecommendations with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:ExportECSServiceRecommendations',
-- exportECSServiceRecommendations_accountIds - The Amazon Web
-- Services account IDs for the export ECS service recommendations.
--
-- If your account is the management account or the delegated
-- administrator of an organization, use this parameter to specify the
-- member account you want to export recommendations to.
--
-- This parameter can't be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- If this parameter or the include member accounts parameter is omitted,
-- the recommendations for member accounts aren't included in the export.
--
-- You can specify multiple account IDs per request.
--
-- $sel:fieldsToExport:ExportECSServiceRecommendations',
-- exportECSServiceRecommendations_fieldsToExport - The
-- recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
--
-- $sel:fileFormat:ExportECSServiceRecommendations',
-- exportECSServiceRecommendations_fileFormat - The format of the
-- export file.
--
-- The CSV file is the only export file format currently supported.
--
-- $sel:filters:ExportECSServiceRecommendations',
-- exportECSServiceRecommendations_filters - An array of objects
-- to specify a filter that exports a more specific set of ECS service
-- recommendations.
--
-- $sel:includeMemberAccounts:ExportECSServiceRecommendations',
-- exportECSServiceRecommendations_includeMemberAccounts - If your
-- account is the management account or the delegated administrator of an
-- organization, this parameter indicates whether to include
-- recommendations for resources in all member accounts of the
-- organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- If this parameter is omitted, recommendations for member accounts of
-- the organization aren't included in the export file.
--
-- If this parameter or the account ID parameter is omitted,
-- recommendations for member accounts aren't included in the export.
--
-- $sel:s3DestinationConfig:ExportECSServiceRecommendations',
-- exportECSServiceRecommendations_s3DestinationConfig -
-- Undocumented member.
newExportECSServiceRecommendations :: S3DestinationConfig -> ExportECSServiceRecommendations
-- | The Amazon Web Services account IDs for the export ECS service
-- recommendations.
--
-- If your account is the management account or the delegated
-- administrator of an organization, use this parameter to specify the
-- member account you want to export recommendations to.
--
-- This parameter can't be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- If this parameter or the include member accounts parameter is omitted,
-- the recommendations for member accounts aren't included in the export.
--
-- You can specify multiple account IDs per request.
exportECSServiceRecommendations_accountIds :: Lens' ExportECSServiceRecommendations (Maybe [Text])
-- | The recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
exportECSServiceRecommendations_fieldsToExport :: Lens' ExportECSServiceRecommendations (Maybe [ExportableECSServiceField])
-- | The format of the export file.
--
-- The CSV file is the only export file format currently supported.
exportECSServiceRecommendations_fileFormat :: Lens' ExportECSServiceRecommendations (Maybe FileFormat)
-- | An array of objects to specify a filter that exports a more specific
-- set of ECS service recommendations.
exportECSServiceRecommendations_filters :: Lens' ExportECSServiceRecommendations (Maybe [ECSServiceRecommendationFilter])
-- | If your account is the management account or the delegated
-- administrator of an organization, this parameter indicates whether to
-- include recommendations for resources in all member accounts of the
-- organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- If this parameter is omitted, recommendations for member accounts of
-- the organization aren't included in the export file.
--
-- If this parameter or the account ID parameter is omitted,
-- recommendations for member accounts aren't included in the export.
exportECSServiceRecommendations_includeMemberAccounts :: Lens' ExportECSServiceRecommendations (Maybe Bool)
-- | Undocumented member.
exportECSServiceRecommendations_s3DestinationConfig :: Lens' ExportECSServiceRecommendations S3DestinationConfig
-- | See: newExportECSServiceRecommendationsResponse smart
-- constructor.
data ExportECSServiceRecommendationsResponse
ExportECSServiceRecommendationsResponse' :: Maybe Text -> Maybe S3Destination -> Int -> ExportECSServiceRecommendationsResponse
-- | The identification number of the export job.
--
-- To view the status of an export job, use the
-- DescribeRecommendationExportJobs action and specify the job ID.
[$sel:jobId:ExportECSServiceRecommendationsResponse'] :: ExportECSServiceRecommendationsResponse -> Maybe Text
[$sel:s3Destination:ExportECSServiceRecommendationsResponse'] :: ExportECSServiceRecommendationsResponse -> Maybe S3Destination
-- | The response's http status code.
[$sel:httpStatus:ExportECSServiceRecommendationsResponse'] :: ExportECSServiceRecommendationsResponse -> Int
-- | Create a value of ExportECSServiceRecommendationsResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ExportECSServiceRecommendationsResponse,
-- exportECSServiceRecommendationsResponse_jobId - The
-- identification number of the export job.
--
-- To view the status of an export job, use the
-- DescribeRecommendationExportJobs action and specify the job ID.
--
-- $sel:s3Destination:ExportECSServiceRecommendationsResponse',
-- exportECSServiceRecommendationsResponse_s3Destination -
-- Undocumented member.
--
-- $sel:httpStatus:ExportECSServiceRecommendationsResponse',
-- exportECSServiceRecommendationsResponse_httpStatus - The
-- response's http status code.
newExportECSServiceRecommendationsResponse :: Int -> ExportECSServiceRecommendationsResponse
-- | The identification number of the export job.
--
-- To view the status of an export job, use the
-- DescribeRecommendationExportJobs action and specify the job ID.
exportECSServiceRecommendationsResponse_jobId :: Lens' ExportECSServiceRecommendationsResponse (Maybe Text)
-- | Undocumented member.
exportECSServiceRecommendationsResponse_s3Destination :: Lens' ExportECSServiceRecommendationsResponse (Maybe S3Destination)
-- | The response's http status code.
exportECSServiceRecommendationsResponse_httpStatus :: Lens' ExportECSServiceRecommendationsResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.ExportECSServiceRecommendations.ExportECSServiceRecommendations
instance GHC.Show.Show Amazonka.ComputeOptimizer.ExportECSServiceRecommendations.ExportECSServiceRecommendations
instance GHC.Read.Read Amazonka.ComputeOptimizer.ExportECSServiceRecommendations.ExportECSServiceRecommendations
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.ExportECSServiceRecommendations.ExportECSServiceRecommendations
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.ExportECSServiceRecommendations.ExportECSServiceRecommendationsResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.ExportECSServiceRecommendations.ExportECSServiceRecommendationsResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.ExportECSServiceRecommendations.ExportECSServiceRecommendationsResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.ExportECSServiceRecommendations.ExportECSServiceRecommendationsResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.ExportECSServiceRecommendations.ExportECSServiceRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.ExportECSServiceRecommendations.ExportECSServiceRecommendationsResponse
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.ExportECSServiceRecommendations.ExportECSServiceRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.ExportECSServiceRecommendations.ExportECSServiceRecommendations
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.ExportECSServiceRecommendations.ExportECSServiceRecommendations
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.ExportECSServiceRecommendations.ExportECSServiceRecommendations
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.ExportECSServiceRecommendations.ExportECSServiceRecommendations
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.ExportECSServiceRecommendations.ExportECSServiceRecommendations
-- | Exports optimization recommendations for Amazon EC2 instances.
--
-- Recommendations are exported in a comma-separated values (.csv) file,
-- and its metadata in a JavaScript Object Notation (JSON) (.json) file,
-- to an existing Amazon Simple Storage Service (Amazon S3) bucket that
-- you specify. For more information, see Exporting
-- Recommendations in the Compute Optimizer User Guide.
--
-- You can have only one Amazon EC2 instance export job in progress per
-- Amazon Web Services Region.
module Amazonka.ComputeOptimizer.ExportEC2InstanceRecommendations
-- | See: newExportEC2InstanceRecommendations smart
-- constructor.
data ExportEC2InstanceRecommendations
ExportEC2InstanceRecommendations' :: Maybe [Text] -> Maybe [ExportableInstanceField] -> Maybe FileFormat -> Maybe [Filter] -> Maybe Bool -> Maybe RecommendationPreferences -> S3DestinationConfig -> ExportEC2InstanceRecommendations
-- | The IDs of the Amazon Web Services accounts for which to export
-- instance recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
[$sel:accountIds:ExportEC2InstanceRecommendations'] :: ExportEC2InstanceRecommendations -> Maybe [Text]
-- | The recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
[$sel:fieldsToExport:ExportEC2InstanceRecommendations'] :: ExportEC2InstanceRecommendations -> Maybe [ExportableInstanceField]
-- | The format of the export file.
--
-- The only export file format currently supported is Csv.
[$sel:fileFormat:ExportEC2InstanceRecommendations'] :: ExportEC2InstanceRecommendations -> Maybe FileFormat
-- | An array of objects to specify a filter that exports a more specific
-- set of instance recommendations.
[$sel:filters:ExportEC2InstanceRecommendations'] :: ExportEC2InstanceRecommendations -> Maybe [Filter]
-- | Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
[$sel:includeMemberAccounts:ExportEC2InstanceRecommendations'] :: ExportEC2InstanceRecommendations -> Maybe Bool
-- | An object to specify the preferences for the Amazon EC2 instance
-- recommendations to export.
[$sel:recommendationPreferences:ExportEC2InstanceRecommendations'] :: ExportEC2InstanceRecommendations -> Maybe RecommendationPreferences
-- | An object to specify the destination Amazon Simple Storage Service
-- (Amazon S3) bucket name and key prefix for the export job.
--
-- You must create the destination Amazon S3 bucket for your
-- recommendations export before you create the export job. Compute
-- Optimizer does not create the S3 bucket for you. After you create the
-- S3 bucket, ensure that it has the required permissions policy to allow
-- Compute Optimizer to write the export file to it. If you plan to
-- specify an object prefix when you create the export job, you must
-- include the object prefix in the policy that you add to the S3 bucket.
-- For more information, see Amazon S3 Bucket Policy for Compute
-- Optimizer in the Compute Optimizer User Guide.
[$sel:s3DestinationConfig:ExportEC2InstanceRecommendations'] :: ExportEC2InstanceRecommendations -> S3DestinationConfig
-- | Create a value of ExportEC2InstanceRecommendations with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:ExportEC2InstanceRecommendations',
-- exportEC2InstanceRecommendations_accountIds - The IDs of the
-- Amazon Web Services accounts for which to export instance
-- recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
--
-- $sel:fieldsToExport:ExportEC2InstanceRecommendations',
-- exportEC2InstanceRecommendations_fieldsToExport - The
-- recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
--
-- $sel:fileFormat:ExportEC2InstanceRecommendations',
-- exportEC2InstanceRecommendations_fileFormat - The format of the
-- export file.
--
-- The only export file format currently supported is Csv.
--
-- $sel:filters:ExportEC2InstanceRecommendations',
-- exportEC2InstanceRecommendations_filters - An array of objects
-- to specify a filter that exports a more specific set of instance
-- recommendations.
--
-- $sel:includeMemberAccounts:ExportEC2InstanceRecommendations',
-- exportEC2InstanceRecommendations_includeMemberAccounts -
-- Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
--
--
-- $sel:recommendationPreferences:ExportEC2InstanceRecommendations',
-- exportEC2InstanceRecommendations_recommendationPreferences - An
-- object to specify the preferences for the Amazon EC2 instance
-- recommendations to export.
--
-- $sel:s3DestinationConfig:ExportEC2InstanceRecommendations',
-- exportEC2InstanceRecommendations_s3DestinationConfig - An
-- object to specify the destination Amazon Simple Storage Service
-- (Amazon S3) bucket name and key prefix for the export job.
--
-- You must create the destination Amazon S3 bucket for your
-- recommendations export before you create the export job. Compute
-- Optimizer does not create the S3 bucket for you. After you create the
-- S3 bucket, ensure that it has the required permissions policy to allow
-- Compute Optimizer to write the export file to it. If you plan to
-- specify an object prefix when you create the export job, you must
-- include the object prefix in the policy that you add to the S3 bucket.
-- For more information, see Amazon S3 Bucket Policy for Compute
-- Optimizer in the Compute Optimizer User Guide.
newExportEC2InstanceRecommendations :: S3DestinationConfig -> ExportEC2InstanceRecommendations
-- | The IDs of the Amazon Web Services accounts for which to export
-- instance recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
exportEC2InstanceRecommendations_accountIds :: Lens' ExportEC2InstanceRecommendations (Maybe [Text])
-- | The recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
exportEC2InstanceRecommendations_fieldsToExport :: Lens' ExportEC2InstanceRecommendations (Maybe [ExportableInstanceField])
-- | The format of the export file.
--
-- The only export file format currently supported is Csv.
exportEC2InstanceRecommendations_fileFormat :: Lens' ExportEC2InstanceRecommendations (Maybe FileFormat)
-- | An array of objects to specify a filter that exports a more specific
-- set of instance recommendations.
exportEC2InstanceRecommendations_filters :: Lens' ExportEC2InstanceRecommendations (Maybe [Filter])
-- | Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
exportEC2InstanceRecommendations_includeMemberAccounts :: Lens' ExportEC2InstanceRecommendations (Maybe Bool)
-- | An object to specify the preferences for the Amazon EC2 instance
-- recommendations to export.
exportEC2InstanceRecommendations_recommendationPreferences :: Lens' ExportEC2InstanceRecommendations (Maybe RecommendationPreferences)
-- | An object to specify the destination Amazon Simple Storage Service
-- (Amazon S3) bucket name and key prefix for the export job.
--
-- You must create the destination Amazon S3 bucket for your
-- recommendations export before you create the export job. Compute
-- Optimizer does not create the S3 bucket for you. After you create the
-- S3 bucket, ensure that it has the required permissions policy to allow
-- Compute Optimizer to write the export file to it. If you plan to
-- specify an object prefix when you create the export job, you must
-- include the object prefix in the policy that you add to the S3 bucket.
-- For more information, see Amazon S3 Bucket Policy for Compute
-- Optimizer in the Compute Optimizer User Guide.
exportEC2InstanceRecommendations_s3DestinationConfig :: Lens' ExportEC2InstanceRecommendations S3DestinationConfig
-- | See: newExportEC2InstanceRecommendationsResponse smart
-- constructor.
data ExportEC2InstanceRecommendationsResponse
ExportEC2InstanceRecommendationsResponse' :: Maybe Text -> Maybe S3Destination -> Int -> ExportEC2InstanceRecommendationsResponse
-- | The identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
[$sel:jobId:ExportEC2InstanceRecommendationsResponse'] :: ExportEC2InstanceRecommendationsResponse -> Maybe Text
-- | An object that describes the destination Amazon S3 bucket of a
-- recommendations export file.
[$sel:s3Destination:ExportEC2InstanceRecommendationsResponse'] :: ExportEC2InstanceRecommendationsResponse -> Maybe S3Destination
-- | The response's http status code.
[$sel:httpStatus:ExportEC2InstanceRecommendationsResponse'] :: ExportEC2InstanceRecommendationsResponse -> Int
-- | Create a value of ExportEC2InstanceRecommendationsResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ExportEC2InstanceRecommendationsResponse,
-- exportEC2InstanceRecommendationsResponse_jobId - The
-- identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
--
-- $sel:s3Destination:ExportEC2InstanceRecommendationsResponse',
-- exportEC2InstanceRecommendationsResponse_s3Destination - An
-- object that describes the destination Amazon S3 bucket of a
-- recommendations export file.
--
-- $sel:httpStatus:ExportEC2InstanceRecommendationsResponse',
-- exportEC2InstanceRecommendationsResponse_httpStatus - The
-- response's http status code.
newExportEC2InstanceRecommendationsResponse :: Int -> ExportEC2InstanceRecommendationsResponse
-- | The identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
exportEC2InstanceRecommendationsResponse_jobId :: Lens' ExportEC2InstanceRecommendationsResponse (Maybe Text)
-- | An object that describes the destination Amazon S3 bucket of a
-- recommendations export file.
exportEC2InstanceRecommendationsResponse_s3Destination :: Lens' ExportEC2InstanceRecommendationsResponse (Maybe S3Destination)
-- | The response's http status code.
exportEC2InstanceRecommendationsResponse_httpStatus :: Lens' ExportEC2InstanceRecommendationsResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.ExportEC2InstanceRecommendations.ExportEC2InstanceRecommendations
instance GHC.Show.Show Amazonka.ComputeOptimizer.ExportEC2InstanceRecommendations.ExportEC2InstanceRecommendations
instance GHC.Read.Read Amazonka.ComputeOptimizer.ExportEC2InstanceRecommendations.ExportEC2InstanceRecommendations
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.ExportEC2InstanceRecommendations.ExportEC2InstanceRecommendations
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.ExportEC2InstanceRecommendations.ExportEC2InstanceRecommendationsResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.ExportEC2InstanceRecommendations.ExportEC2InstanceRecommendationsResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.ExportEC2InstanceRecommendations.ExportEC2InstanceRecommendationsResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.ExportEC2InstanceRecommendations.ExportEC2InstanceRecommendationsResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.ExportEC2InstanceRecommendations.ExportEC2InstanceRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.ExportEC2InstanceRecommendations.ExportEC2InstanceRecommendationsResponse
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.ExportEC2InstanceRecommendations.ExportEC2InstanceRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.ExportEC2InstanceRecommendations.ExportEC2InstanceRecommendations
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.ExportEC2InstanceRecommendations.ExportEC2InstanceRecommendations
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.ExportEC2InstanceRecommendations.ExportEC2InstanceRecommendations
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.ExportEC2InstanceRecommendations.ExportEC2InstanceRecommendations
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.ExportEC2InstanceRecommendations.ExportEC2InstanceRecommendations
-- | Exports optimization recommendations for Amazon EBS volumes.
--
-- Recommendations are exported in a comma-separated values (.csv) file,
-- and its metadata in a JavaScript Object Notation (JSON) (.json) file,
-- to an existing Amazon Simple Storage Service (Amazon S3) bucket that
-- you specify. For more information, see Exporting
-- Recommendations in the Compute Optimizer User Guide.
--
-- You can have only one Amazon EBS volume export job in progress per
-- Amazon Web Services Region.
module Amazonka.ComputeOptimizer.ExportEBSVolumeRecommendations
-- | See: newExportEBSVolumeRecommendations smart
-- constructor.
data ExportEBSVolumeRecommendations
ExportEBSVolumeRecommendations' :: Maybe [Text] -> Maybe [ExportableVolumeField] -> Maybe FileFormat -> Maybe [EBSFilter] -> Maybe Bool -> S3DestinationConfig -> ExportEBSVolumeRecommendations
-- | The IDs of the Amazon Web Services accounts for which to export Amazon
-- EBS volume recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
[$sel:accountIds:ExportEBSVolumeRecommendations'] :: ExportEBSVolumeRecommendations -> Maybe [Text]
-- | The recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
[$sel:fieldsToExport:ExportEBSVolumeRecommendations'] :: ExportEBSVolumeRecommendations -> Maybe [ExportableVolumeField]
-- | The format of the export file.
--
-- The only export file format currently supported is Csv.
[$sel:fileFormat:ExportEBSVolumeRecommendations'] :: ExportEBSVolumeRecommendations -> Maybe FileFormat
-- | An array of objects to specify a filter that exports a more specific
-- set of Amazon EBS volume recommendations.
[$sel:filters:ExportEBSVolumeRecommendations'] :: ExportEBSVolumeRecommendations -> Maybe [EBSFilter]
-- | Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- This parameter cannot be specified together with the account IDs
-- parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
[$sel:includeMemberAccounts:ExportEBSVolumeRecommendations'] :: ExportEBSVolumeRecommendations -> Maybe Bool
[$sel:s3DestinationConfig:ExportEBSVolumeRecommendations'] :: ExportEBSVolumeRecommendations -> S3DestinationConfig
-- | Create a value of ExportEBSVolumeRecommendations with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:ExportEBSVolumeRecommendations',
-- exportEBSVolumeRecommendations_accountIds - The IDs of the
-- Amazon Web Services accounts for which to export Amazon EBS volume
-- recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
--
-- $sel:fieldsToExport:ExportEBSVolumeRecommendations',
-- exportEBSVolumeRecommendations_fieldsToExport - The
-- recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
--
-- $sel:fileFormat:ExportEBSVolumeRecommendations',
-- exportEBSVolumeRecommendations_fileFormat - The format of the
-- export file.
--
-- The only export file format currently supported is Csv.
--
-- $sel:filters:ExportEBSVolumeRecommendations',
-- exportEBSVolumeRecommendations_filters - An array of objects to
-- specify a filter that exports a more specific set of Amazon EBS volume
-- recommendations.
--
-- $sel:includeMemberAccounts:ExportEBSVolumeRecommendations',
-- exportEBSVolumeRecommendations_includeMemberAccounts -
-- Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- This parameter cannot be specified together with the account IDs
-- parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
--
-- $sel:s3DestinationConfig:ExportEBSVolumeRecommendations',
-- exportEBSVolumeRecommendations_s3DestinationConfig -
-- Undocumented member.
newExportEBSVolumeRecommendations :: S3DestinationConfig -> ExportEBSVolumeRecommendations
-- | The IDs of the Amazon Web Services accounts for which to export Amazon
-- EBS volume recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
exportEBSVolumeRecommendations_accountIds :: Lens' ExportEBSVolumeRecommendations (Maybe [Text])
-- | The recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
exportEBSVolumeRecommendations_fieldsToExport :: Lens' ExportEBSVolumeRecommendations (Maybe [ExportableVolumeField])
-- | The format of the export file.
--
-- The only export file format currently supported is Csv.
exportEBSVolumeRecommendations_fileFormat :: Lens' ExportEBSVolumeRecommendations (Maybe FileFormat)
-- | An array of objects to specify a filter that exports a more specific
-- set of Amazon EBS volume recommendations.
exportEBSVolumeRecommendations_filters :: Lens' ExportEBSVolumeRecommendations (Maybe [EBSFilter])
-- | Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- This parameter cannot be specified together with the account IDs
-- parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
exportEBSVolumeRecommendations_includeMemberAccounts :: Lens' ExportEBSVolumeRecommendations (Maybe Bool)
-- | Undocumented member.
exportEBSVolumeRecommendations_s3DestinationConfig :: Lens' ExportEBSVolumeRecommendations S3DestinationConfig
-- | See: newExportEBSVolumeRecommendationsResponse smart
-- constructor.
data ExportEBSVolumeRecommendationsResponse
ExportEBSVolumeRecommendationsResponse' :: Maybe Text -> Maybe S3Destination -> Int -> ExportEBSVolumeRecommendationsResponse
-- | The identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
[$sel:jobId:ExportEBSVolumeRecommendationsResponse'] :: ExportEBSVolumeRecommendationsResponse -> Maybe Text
[$sel:s3Destination:ExportEBSVolumeRecommendationsResponse'] :: ExportEBSVolumeRecommendationsResponse -> Maybe S3Destination
-- | The response's http status code.
[$sel:httpStatus:ExportEBSVolumeRecommendationsResponse'] :: ExportEBSVolumeRecommendationsResponse -> Int
-- | Create a value of ExportEBSVolumeRecommendationsResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ExportEBSVolumeRecommendationsResponse,
-- exportEBSVolumeRecommendationsResponse_jobId - The
-- identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
--
-- $sel:s3Destination:ExportEBSVolumeRecommendationsResponse',
-- exportEBSVolumeRecommendationsResponse_s3Destination -
-- Undocumented member.
--
-- $sel:httpStatus:ExportEBSVolumeRecommendationsResponse',
-- exportEBSVolumeRecommendationsResponse_httpStatus - The
-- response's http status code.
newExportEBSVolumeRecommendationsResponse :: Int -> ExportEBSVolumeRecommendationsResponse
-- | The identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
exportEBSVolumeRecommendationsResponse_jobId :: Lens' ExportEBSVolumeRecommendationsResponse (Maybe Text)
-- | Undocumented member.
exportEBSVolumeRecommendationsResponse_s3Destination :: Lens' ExportEBSVolumeRecommendationsResponse (Maybe S3Destination)
-- | The response's http status code.
exportEBSVolumeRecommendationsResponse_httpStatus :: Lens' ExportEBSVolumeRecommendationsResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.ExportEBSVolumeRecommendations.ExportEBSVolumeRecommendations
instance GHC.Show.Show Amazonka.ComputeOptimizer.ExportEBSVolumeRecommendations.ExportEBSVolumeRecommendations
instance GHC.Read.Read Amazonka.ComputeOptimizer.ExportEBSVolumeRecommendations.ExportEBSVolumeRecommendations
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.ExportEBSVolumeRecommendations.ExportEBSVolumeRecommendations
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.ExportEBSVolumeRecommendations.ExportEBSVolumeRecommendationsResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.ExportEBSVolumeRecommendations.ExportEBSVolumeRecommendationsResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.ExportEBSVolumeRecommendations.ExportEBSVolumeRecommendationsResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.ExportEBSVolumeRecommendations.ExportEBSVolumeRecommendationsResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.ExportEBSVolumeRecommendations.ExportEBSVolumeRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.ExportEBSVolumeRecommendations.ExportEBSVolumeRecommendationsResponse
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.ExportEBSVolumeRecommendations.ExportEBSVolumeRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.ExportEBSVolumeRecommendations.ExportEBSVolumeRecommendations
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.ExportEBSVolumeRecommendations.ExportEBSVolumeRecommendations
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.ExportEBSVolumeRecommendations.ExportEBSVolumeRecommendations
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.ExportEBSVolumeRecommendations.ExportEBSVolumeRecommendations
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.ExportEBSVolumeRecommendations.ExportEBSVolumeRecommendations
-- | Exports optimization recommendations for Auto Scaling groups.
--
-- Recommendations are exported in a comma-separated values (.csv) file,
-- and its metadata in a JavaScript Object Notation (JSON) (.json) file,
-- to an existing Amazon Simple Storage Service (Amazon S3) bucket that
-- you specify. For more information, see Exporting
-- Recommendations in the Compute Optimizer User Guide.
--
-- You can have only one Auto Scaling group export job in progress per
-- Amazon Web Services Region.
module Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations
-- | See: newExportAutoScalingGroupRecommendations smart
-- constructor.
data ExportAutoScalingGroupRecommendations
ExportAutoScalingGroupRecommendations' :: Maybe [Text] -> Maybe [ExportableAutoScalingGroupField] -> Maybe FileFormat -> Maybe [Filter] -> Maybe Bool -> Maybe RecommendationPreferences -> S3DestinationConfig -> ExportAutoScalingGroupRecommendations
-- | The IDs of the Amazon Web Services accounts for which to export Auto
-- Scaling group recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
[$sel:accountIds:ExportAutoScalingGroupRecommendations'] :: ExportAutoScalingGroupRecommendations -> Maybe [Text]
-- | The recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
[$sel:fieldsToExport:ExportAutoScalingGroupRecommendations'] :: ExportAutoScalingGroupRecommendations -> Maybe [ExportableAutoScalingGroupField]
-- | The format of the export file.
--
-- The only export file format currently supported is Csv.
[$sel:fileFormat:ExportAutoScalingGroupRecommendations'] :: ExportAutoScalingGroupRecommendations -> Maybe FileFormat
-- | An array of objects to specify a filter that exports a more specific
-- set of Auto Scaling group recommendations.
[$sel:filters:ExportAutoScalingGroupRecommendations'] :: ExportAutoScalingGroupRecommendations -> Maybe [Filter]
-- | Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- This parameter cannot be specified together with the account IDs
-- parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
[$sel:includeMemberAccounts:ExportAutoScalingGroupRecommendations'] :: ExportAutoScalingGroupRecommendations -> Maybe Bool
-- | An object to specify the preferences for the Auto Scaling group
-- recommendations to export.
[$sel:recommendationPreferences:ExportAutoScalingGroupRecommendations'] :: ExportAutoScalingGroupRecommendations -> Maybe RecommendationPreferences
-- | An object to specify the destination Amazon Simple Storage Service
-- (Amazon S3) bucket name and key prefix for the export job.
--
-- You must create the destination Amazon S3 bucket for your
-- recommendations export before you create the export job. Compute
-- Optimizer does not create the S3 bucket for you. After you create the
-- S3 bucket, ensure that it has the required permissions policy to allow
-- Compute Optimizer to write the export file to it. If you plan to
-- specify an object prefix when you create the export job, you must
-- include the object prefix in the policy that you add to the S3 bucket.
-- For more information, see Amazon S3 Bucket Policy for Compute
-- Optimizer in the Compute Optimizer User Guide.
[$sel:s3DestinationConfig:ExportAutoScalingGroupRecommendations'] :: ExportAutoScalingGroupRecommendations -> S3DestinationConfig
-- | Create a value of ExportAutoScalingGroupRecommendations with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:ExportAutoScalingGroupRecommendations',
-- exportAutoScalingGroupRecommendations_accountIds - The IDs of
-- the Amazon Web Services accounts for which to export Auto Scaling
-- group recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
--
-- $sel:fieldsToExport:ExportAutoScalingGroupRecommendations',
-- exportAutoScalingGroupRecommendations_fieldsToExport - The
-- recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
--
-- $sel:fileFormat:ExportAutoScalingGroupRecommendations',
-- exportAutoScalingGroupRecommendations_fileFormat - The format
-- of the export file.
--
-- The only export file format currently supported is Csv.
--
-- $sel:filters:ExportAutoScalingGroupRecommendations',
-- exportAutoScalingGroupRecommendations_filters - An array of
-- objects to specify a filter that exports a more specific set of Auto
-- Scaling group recommendations.
--
--
-- $sel:includeMemberAccounts:ExportAutoScalingGroupRecommendations',
-- exportAutoScalingGroupRecommendations_includeMemberAccounts -
-- Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- This parameter cannot be specified together with the account IDs
-- parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
--
--
-- $sel:recommendationPreferences:ExportAutoScalingGroupRecommendations',
-- exportAutoScalingGroupRecommendations_recommendationPreferences
-- - An object to specify the preferences for the Auto Scaling group
-- recommendations to export.
--
--
-- $sel:s3DestinationConfig:ExportAutoScalingGroupRecommendations',
-- exportAutoScalingGroupRecommendations_s3DestinationConfig - An
-- object to specify the destination Amazon Simple Storage Service
-- (Amazon S3) bucket name and key prefix for the export job.
--
-- You must create the destination Amazon S3 bucket for your
-- recommendations export before you create the export job. Compute
-- Optimizer does not create the S3 bucket for you. After you create the
-- S3 bucket, ensure that it has the required permissions policy to allow
-- Compute Optimizer to write the export file to it. If you plan to
-- specify an object prefix when you create the export job, you must
-- include the object prefix in the policy that you add to the S3 bucket.
-- For more information, see Amazon S3 Bucket Policy for Compute
-- Optimizer in the Compute Optimizer User Guide.
newExportAutoScalingGroupRecommendations :: S3DestinationConfig -> ExportAutoScalingGroupRecommendations
-- | The IDs of the Amazon Web Services accounts for which to export Auto
-- Scaling group recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
exportAutoScalingGroupRecommendations_accountIds :: Lens' ExportAutoScalingGroupRecommendations (Maybe [Text])
-- | The recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
exportAutoScalingGroupRecommendations_fieldsToExport :: Lens' ExportAutoScalingGroupRecommendations (Maybe [ExportableAutoScalingGroupField])
-- | The format of the export file.
--
-- The only export file format currently supported is Csv.
exportAutoScalingGroupRecommendations_fileFormat :: Lens' ExportAutoScalingGroupRecommendations (Maybe FileFormat)
-- | An array of objects to specify a filter that exports a more specific
-- set of Auto Scaling group recommendations.
exportAutoScalingGroupRecommendations_filters :: Lens' ExportAutoScalingGroupRecommendations (Maybe [Filter])
-- | Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- This parameter cannot be specified together with the account IDs
-- parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
exportAutoScalingGroupRecommendations_includeMemberAccounts :: Lens' ExportAutoScalingGroupRecommendations (Maybe Bool)
-- | An object to specify the preferences for the Auto Scaling group
-- recommendations to export.
exportAutoScalingGroupRecommendations_recommendationPreferences :: Lens' ExportAutoScalingGroupRecommendations (Maybe RecommendationPreferences)
-- | An object to specify the destination Amazon Simple Storage Service
-- (Amazon S3) bucket name and key prefix for the export job.
--
-- You must create the destination Amazon S3 bucket for your
-- recommendations export before you create the export job. Compute
-- Optimizer does not create the S3 bucket for you. After you create the
-- S3 bucket, ensure that it has the required permissions policy to allow
-- Compute Optimizer to write the export file to it. If you plan to
-- specify an object prefix when you create the export job, you must
-- include the object prefix in the policy that you add to the S3 bucket.
-- For more information, see Amazon S3 Bucket Policy for Compute
-- Optimizer in the Compute Optimizer User Guide.
exportAutoScalingGroupRecommendations_s3DestinationConfig :: Lens' ExportAutoScalingGroupRecommendations S3DestinationConfig
-- | See: newExportAutoScalingGroupRecommendationsResponse
-- smart constructor.
data ExportAutoScalingGroupRecommendationsResponse
ExportAutoScalingGroupRecommendationsResponse' :: Maybe Text -> Maybe S3Destination -> Int -> ExportAutoScalingGroupRecommendationsResponse
-- | The identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
[$sel:jobId:ExportAutoScalingGroupRecommendationsResponse'] :: ExportAutoScalingGroupRecommendationsResponse -> Maybe Text
-- | An object that describes the destination Amazon S3 bucket of a
-- recommendations export file.
[$sel:s3Destination:ExportAutoScalingGroupRecommendationsResponse'] :: ExportAutoScalingGroupRecommendationsResponse -> Maybe S3Destination
-- | The response's http status code.
[$sel:httpStatus:ExportAutoScalingGroupRecommendationsResponse'] :: ExportAutoScalingGroupRecommendationsResponse -> Int
-- | Create a value of ExportAutoScalingGroupRecommendationsResponse
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ExportAutoScalingGroupRecommendationsResponse,
-- exportAutoScalingGroupRecommendationsResponse_jobId - The
-- identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
--
--
-- $sel:s3Destination:ExportAutoScalingGroupRecommendationsResponse',
-- exportAutoScalingGroupRecommendationsResponse_s3Destination -
-- An object that describes the destination Amazon S3 bucket of a
-- recommendations export file.
--
-- $sel:httpStatus:ExportAutoScalingGroupRecommendationsResponse',
-- exportAutoScalingGroupRecommendationsResponse_httpStatus - The
-- response's http status code.
newExportAutoScalingGroupRecommendationsResponse :: Int -> ExportAutoScalingGroupRecommendationsResponse
-- | The identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
exportAutoScalingGroupRecommendationsResponse_jobId :: Lens' ExportAutoScalingGroupRecommendationsResponse (Maybe Text)
-- | An object that describes the destination Amazon S3 bucket of a
-- recommendations export file.
exportAutoScalingGroupRecommendationsResponse_s3Destination :: Lens' ExportAutoScalingGroupRecommendationsResponse (Maybe S3Destination)
-- | The response's http status code.
exportAutoScalingGroupRecommendationsResponse_httpStatus :: Lens' ExportAutoScalingGroupRecommendationsResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations.ExportAutoScalingGroupRecommendations
instance GHC.Show.Show Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations.ExportAutoScalingGroupRecommendations
instance GHC.Read.Read Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations.ExportAutoScalingGroupRecommendations
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations.ExportAutoScalingGroupRecommendations
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations.ExportAutoScalingGroupRecommendationsResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations.ExportAutoScalingGroupRecommendationsResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations.ExportAutoScalingGroupRecommendationsResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations.ExportAutoScalingGroupRecommendationsResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations.ExportAutoScalingGroupRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations.ExportAutoScalingGroupRecommendationsResponse
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations.ExportAutoScalingGroupRecommendations
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations.ExportAutoScalingGroupRecommendations
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations.ExportAutoScalingGroupRecommendations
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations.ExportAutoScalingGroupRecommendations
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations.ExportAutoScalingGroupRecommendations
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations.ExportAutoScalingGroupRecommendations
-- | Describes recommendation export jobs created in the last seven days.
--
-- Use the ExportAutoScalingGroupRecommendations or
-- ExportEC2InstanceRecommendations actions to request an export of your
-- recommendations. Then use the DescribeRecommendationExportJobs action
-- to view your export jobs.
--
-- This operation returns paginated results.
module Amazonka.ComputeOptimizer.DescribeRecommendationExportJobs
-- | See: newDescribeRecommendationExportJobs smart
-- constructor.
data DescribeRecommendationExportJobs
DescribeRecommendationExportJobs' :: Maybe [JobFilter] -> Maybe [Text] -> Maybe Natural -> Maybe Text -> DescribeRecommendationExportJobs
-- | An array of objects to specify a filter that returns a more specific
-- list of export jobs.
[$sel:filters:DescribeRecommendationExportJobs'] :: DescribeRecommendationExportJobs -> Maybe [JobFilter]
-- | The identification numbers of the export jobs to return.
--
-- An export job ID is returned when you create an export using the
-- ExportAutoScalingGroupRecommendations or
-- ExportEC2InstanceRecommendations actions.
--
-- All export jobs created in the last seven days are returned if this
-- parameter is omitted.
[$sel:jobIds:DescribeRecommendationExportJobs'] :: DescribeRecommendationExportJobs -> Maybe [Text]
-- | The maximum number of export jobs to return with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
[$sel:maxResults:DescribeRecommendationExportJobs'] :: DescribeRecommendationExportJobs -> Maybe Natural
-- | The token to advance to the next page of export jobs.
[$sel:nextToken:DescribeRecommendationExportJobs'] :: DescribeRecommendationExportJobs -> Maybe Text
-- | Create a value of DescribeRecommendationExportJobs with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:filters:DescribeRecommendationExportJobs',
-- describeRecommendationExportJobs_filters - An array of objects
-- to specify a filter that returns a more specific list of export jobs.
--
-- $sel:jobIds:DescribeRecommendationExportJobs',
-- describeRecommendationExportJobs_jobIds - The identification
-- numbers of the export jobs to return.
--
-- An export job ID is returned when you create an export using the
-- ExportAutoScalingGroupRecommendations or
-- ExportEC2InstanceRecommendations actions.
--
-- All export jobs created in the last seven days are returned if this
-- parameter is omitted.
--
-- $sel:maxResults:DescribeRecommendationExportJobs',
-- describeRecommendationExportJobs_maxResults - The maximum
-- number of export jobs to return with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
--
-- DescribeRecommendationExportJobs,
-- describeRecommendationExportJobs_nextToken - The token to
-- advance to the next page of export jobs.
newDescribeRecommendationExportJobs :: DescribeRecommendationExportJobs
-- | An array of objects to specify a filter that returns a more specific
-- list of export jobs.
describeRecommendationExportJobs_filters :: Lens' DescribeRecommendationExportJobs (Maybe [JobFilter])
-- | The identification numbers of the export jobs to return.
--
-- An export job ID is returned when you create an export using the
-- ExportAutoScalingGroupRecommendations or
-- ExportEC2InstanceRecommendations actions.
--
-- All export jobs created in the last seven days are returned if this
-- parameter is omitted.
describeRecommendationExportJobs_jobIds :: Lens' DescribeRecommendationExportJobs (Maybe [Text])
-- | The maximum number of export jobs to return with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
describeRecommendationExportJobs_maxResults :: Lens' DescribeRecommendationExportJobs (Maybe Natural)
-- | The token to advance to the next page of export jobs.
describeRecommendationExportJobs_nextToken :: Lens' DescribeRecommendationExportJobs (Maybe Text)
-- | See: newDescribeRecommendationExportJobsResponse smart
-- constructor.
data DescribeRecommendationExportJobsResponse
DescribeRecommendationExportJobsResponse' :: Maybe Text -> Maybe [RecommendationExportJob] -> Int -> DescribeRecommendationExportJobsResponse
-- | The token to use to advance to the next page of export jobs.
--
-- This value is null when there are no more pages of export jobs to
-- return.
[$sel:nextToken:DescribeRecommendationExportJobsResponse'] :: DescribeRecommendationExportJobsResponse -> Maybe Text
-- | An array of objects that describe recommendation export jobs.
[$sel:recommendationExportJobs:DescribeRecommendationExportJobsResponse'] :: DescribeRecommendationExportJobsResponse -> Maybe [RecommendationExportJob]
-- | The response's http status code.
[$sel:httpStatus:DescribeRecommendationExportJobsResponse'] :: DescribeRecommendationExportJobsResponse -> Int
-- | Create a value of DescribeRecommendationExportJobsResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeRecommendationExportJobs,
-- describeRecommendationExportJobsResponse_nextToken - The token
-- to use to advance to the next page of export jobs.
--
-- This value is null when there are no more pages of export jobs to
-- return.
--
--
-- $sel:recommendationExportJobs:DescribeRecommendationExportJobsResponse',
-- describeRecommendationExportJobsResponse_recommendationExportJobs
-- - An array of objects that describe recommendation export jobs.
--
-- $sel:httpStatus:DescribeRecommendationExportJobsResponse',
-- describeRecommendationExportJobsResponse_httpStatus - The
-- response's http status code.
newDescribeRecommendationExportJobsResponse :: Int -> DescribeRecommendationExportJobsResponse
-- | The token to use to advance to the next page of export jobs.
--
-- This value is null when there are no more pages of export jobs to
-- return.
describeRecommendationExportJobsResponse_nextToken :: Lens' DescribeRecommendationExportJobsResponse (Maybe Text)
-- | An array of objects that describe recommendation export jobs.
describeRecommendationExportJobsResponse_recommendationExportJobs :: Lens' DescribeRecommendationExportJobsResponse (Maybe [RecommendationExportJob])
-- | The response's http status code.
describeRecommendationExportJobsResponse_httpStatus :: Lens' DescribeRecommendationExportJobsResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.DescribeRecommendationExportJobs.DescribeRecommendationExportJobs
instance GHC.Show.Show Amazonka.ComputeOptimizer.DescribeRecommendationExportJobs.DescribeRecommendationExportJobs
instance GHC.Read.Read Amazonka.ComputeOptimizer.DescribeRecommendationExportJobs.DescribeRecommendationExportJobs
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.DescribeRecommendationExportJobs.DescribeRecommendationExportJobs
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.DescribeRecommendationExportJobs.DescribeRecommendationExportJobsResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.DescribeRecommendationExportJobs.DescribeRecommendationExportJobsResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.DescribeRecommendationExportJobs.DescribeRecommendationExportJobsResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.DescribeRecommendationExportJobs.DescribeRecommendationExportJobsResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.DescribeRecommendationExportJobs.DescribeRecommendationExportJobs
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.DescribeRecommendationExportJobs.DescribeRecommendationExportJobsResponse
instance Amazonka.Pager.AWSPager Amazonka.ComputeOptimizer.DescribeRecommendationExportJobs.DescribeRecommendationExportJobs
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.DescribeRecommendationExportJobs.DescribeRecommendationExportJobs
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.DescribeRecommendationExportJobs.DescribeRecommendationExportJobs
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.DescribeRecommendationExportJobs.DescribeRecommendationExportJobs
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.DescribeRecommendationExportJobs.DescribeRecommendationExportJobs
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.DescribeRecommendationExportJobs.DescribeRecommendationExportJobs
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.DescribeRecommendationExportJobs.DescribeRecommendationExportJobs
-- | Deletes a recommendation preference, such as enhanced infrastructure
-- metrics.
--
-- For more information, see Activating enhanced infrastructure
-- metrics in the Compute Optimizer User Guide.
module Amazonka.ComputeOptimizer.DeleteRecommendationPreferences
-- | See: newDeleteRecommendationPreferences smart
-- constructor.
data DeleteRecommendationPreferences
DeleteRecommendationPreferences' :: Maybe Scope -> ResourceType -> [RecommendationPreferenceName] -> DeleteRecommendationPreferences
-- | An object that describes the scope of the recommendation preference to
-- delete.
--
-- You can delete recommendation preferences that are created at the
-- organization level (for management accounts of an organization only),
-- account level, and resource level. For more information, see
-- Activating enhanced infrastructure metrics in the Compute
-- Optimizer User Guide.
[$sel:scope:DeleteRecommendationPreferences'] :: DeleteRecommendationPreferences -> Maybe Scope
-- | The target resource type of the recommendation preference to delete.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
--
-- The valid values for this parameter are Ec2Instance and
-- AutoScalingGroup.
[$sel:resourceType:DeleteRecommendationPreferences'] :: DeleteRecommendationPreferences -> ResourceType
-- | The name of the recommendation preference to delete.
[$sel:recommendationPreferenceNames:DeleteRecommendationPreferences'] :: DeleteRecommendationPreferences -> [RecommendationPreferenceName]
-- | Create a value of DeleteRecommendationPreferences with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteRecommendationPreferences,
-- deleteRecommendationPreferences_scope - An object that
-- describes the scope of the recommendation preference to delete.
--
-- You can delete recommendation preferences that are created at the
-- organization level (for management accounts of an organization only),
-- account level, and resource level. For more information, see
-- Activating enhanced infrastructure metrics in the Compute
-- Optimizer User Guide.
--
-- DeleteRecommendationPreferences,
-- deleteRecommendationPreferences_resourceType - The target
-- resource type of the recommendation preference to delete.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
--
-- The valid values for this parameter are Ec2Instance and
-- AutoScalingGroup.
--
--
-- $sel:recommendationPreferenceNames:DeleteRecommendationPreferences',
-- deleteRecommendationPreferences_recommendationPreferenceNames -
-- The name of the recommendation preference to delete.
newDeleteRecommendationPreferences :: ResourceType -> DeleteRecommendationPreferences
-- | An object that describes the scope of the recommendation preference to
-- delete.
--
-- You can delete recommendation preferences that are created at the
-- organization level (for management accounts of an organization only),
-- account level, and resource level. For more information, see
-- Activating enhanced infrastructure metrics in the Compute
-- Optimizer User Guide.
deleteRecommendationPreferences_scope :: Lens' DeleteRecommendationPreferences (Maybe Scope)
-- | The target resource type of the recommendation preference to delete.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
--
-- The valid values for this parameter are Ec2Instance and
-- AutoScalingGroup.
deleteRecommendationPreferences_resourceType :: Lens' DeleteRecommendationPreferences ResourceType
-- | The name of the recommendation preference to delete.
deleteRecommendationPreferences_recommendationPreferenceNames :: Lens' DeleteRecommendationPreferences [RecommendationPreferenceName]
-- | See: newDeleteRecommendationPreferencesResponse smart
-- constructor.
data DeleteRecommendationPreferencesResponse
DeleteRecommendationPreferencesResponse' :: Int -> DeleteRecommendationPreferencesResponse
-- | The response's http status code.
[$sel:httpStatus:DeleteRecommendationPreferencesResponse'] :: DeleteRecommendationPreferencesResponse -> Int
-- | Create a value of DeleteRecommendationPreferencesResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteRecommendationPreferencesResponse',
-- deleteRecommendationPreferencesResponse_httpStatus - The
-- response's http status code.
newDeleteRecommendationPreferencesResponse :: Int -> DeleteRecommendationPreferencesResponse
-- | The response's http status code.
deleteRecommendationPreferencesResponse_httpStatus :: Lens' DeleteRecommendationPreferencesResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.DeleteRecommendationPreferences.DeleteRecommendationPreferences
instance GHC.Show.Show Amazonka.ComputeOptimizer.DeleteRecommendationPreferences.DeleteRecommendationPreferences
instance GHC.Read.Read Amazonka.ComputeOptimizer.DeleteRecommendationPreferences.DeleteRecommendationPreferences
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.DeleteRecommendationPreferences.DeleteRecommendationPreferences
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.DeleteRecommendationPreferences.DeleteRecommendationPreferencesResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.DeleteRecommendationPreferences.DeleteRecommendationPreferencesResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.DeleteRecommendationPreferences.DeleteRecommendationPreferencesResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.DeleteRecommendationPreferences.DeleteRecommendationPreferencesResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.DeleteRecommendationPreferences.DeleteRecommendationPreferences
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.DeleteRecommendationPreferences.DeleteRecommendationPreferencesResponse
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.DeleteRecommendationPreferences.DeleteRecommendationPreferences
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.DeleteRecommendationPreferences.DeleteRecommendationPreferences
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.DeleteRecommendationPreferences.DeleteRecommendationPreferences
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.DeleteRecommendationPreferences.DeleteRecommendationPreferences
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.DeleteRecommendationPreferences.DeleteRecommendationPreferences
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.DeleteRecommendationPreferences.DeleteRecommendationPreferences
-- | Updates the enrollment (opt in and opt out) status of an account to
-- the Compute Optimizer service.
--
-- If the account is a management account of an organization, this action
-- can also be used to enroll member accounts of the organization.
--
-- You must have the appropriate permissions to opt in to Compute
-- Optimizer, to view its recommendations, and to opt out. For more
-- information, see Controlling access with Amazon Web Services
-- Identity and Access Management in the Compute Optimizer User
-- Guide.
--
-- When you opt in, Compute Optimizer automatically creates a
-- service-linked role in your account to access its data. For more
-- information, see Using Service-Linked Roles for Compute
-- Optimizer in the Compute Optimizer User Guide.
module Amazonka.ComputeOptimizer.UpdateEnrollmentStatus
-- | See: newUpdateEnrollmentStatus smart constructor.
data UpdateEnrollmentStatus
UpdateEnrollmentStatus' :: Maybe Bool -> Status -> UpdateEnrollmentStatus
-- | Indicates whether to enroll member accounts of the organization if the
-- account is the management account of an organization.
[$sel:includeMemberAccounts:UpdateEnrollmentStatus'] :: UpdateEnrollmentStatus -> Maybe Bool
-- | The new enrollment status of the account.
--
-- The following status options are available:
--
--
-- - Active - Opts in your account to the Compute Optimizer
-- service. Compute Optimizer begins analyzing the configuration and
-- utilization metrics of your Amazon Web Services resources after you
-- opt in. For more information, see Metrics analyzed by Compute
-- Optimizer in the Compute Optimizer User Guide.
-- - Inactive - Opts out your account from the Compute
-- Optimizer service. Your account's recommendations and related metrics
-- data will be deleted from Compute Optimizer after you opt out.
--
--
-- The Pending and Failed options cannot be used to
-- update the enrollment status of an account. They are returned in the
-- response of a request to update the enrollment status of an account.
[$sel:status:UpdateEnrollmentStatus'] :: UpdateEnrollmentStatus -> Status
-- | Create a value of UpdateEnrollmentStatus with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:includeMemberAccounts:UpdateEnrollmentStatus',
-- updateEnrollmentStatus_includeMemberAccounts - Indicates
-- whether to enroll member accounts of the organization if the account
-- is the management account of an organization.
--
-- UpdateEnrollmentStatus, updateEnrollmentStatus_status -
-- The new enrollment status of the account.
--
-- The following status options are available:
--
--
-- - Active - Opts in your account to the Compute Optimizer
-- service. Compute Optimizer begins analyzing the configuration and
-- utilization metrics of your Amazon Web Services resources after you
-- opt in. For more information, see Metrics analyzed by Compute
-- Optimizer in the Compute Optimizer User Guide.
-- - Inactive - Opts out your account from the Compute
-- Optimizer service. Your account's recommendations and related metrics
-- data will be deleted from Compute Optimizer after you opt out.
--
--
-- The Pending and Failed options cannot be used to
-- update the enrollment status of an account. They are returned in the
-- response of a request to update the enrollment status of an account.
newUpdateEnrollmentStatus :: Status -> UpdateEnrollmentStatus
-- | Indicates whether to enroll member accounts of the organization if the
-- account is the management account of an organization.
updateEnrollmentStatus_includeMemberAccounts :: Lens' UpdateEnrollmentStatus (Maybe Bool)
-- | The new enrollment status of the account.
--
-- The following status options are available:
--
--
-- - Active - Opts in your account to the Compute Optimizer
-- service. Compute Optimizer begins analyzing the configuration and
-- utilization metrics of your Amazon Web Services resources after you
-- opt in. For more information, see Metrics analyzed by Compute
-- Optimizer in the Compute Optimizer User Guide.
-- - Inactive - Opts out your account from the Compute
-- Optimizer service. Your account's recommendations and related metrics
-- data will be deleted from Compute Optimizer after you opt out.
--
--
-- The Pending and Failed options cannot be used to
-- update the enrollment status of an account. They are returned in the
-- response of a request to update the enrollment status of an account.
updateEnrollmentStatus_status :: Lens' UpdateEnrollmentStatus Status
-- | See: newUpdateEnrollmentStatusResponse smart
-- constructor.
data UpdateEnrollmentStatusResponse
UpdateEnrollmentStatusResponse' :: Maybe Status -> Maybe Text -> Int -> UpdateEnrollmentStatusResponse
-- | The enrollment status of the account.
[$sel:status:UpdateEnrollmentStatusResponse'] :: UpdateEnrollmentStatusResponse -> Maybe Status
-- | The reason for the enrollment status of the account. For example, an
-- account might show a status of Pending because member
-- accounts of an organization require more time to be enrolled in the
-- service.
[$sel:statusReason:UpdateEnrollmentStatusResponse'] :: UpdateEnrollmentStatusResponse -> Maybe Text
-- | The response's http status code.
[$sel:httpStatus:UpdateEnrollmentStatusResponse'] :: UpdateEnrollmentStatusResponse -> Int
-- | Create a value of UpdateEnrollmentStatusResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- UpdateEnrollmentStatus,
-- updateEnrollmentStatusResponse_status - The enrollment status
-- of the account.
--
-- UpdateEnrollmentStatusResponse,
-- updateEnrollmentStatusResponse_statusReason - The reason for
-- the enrollment status of the account. For example, an account might
-- show a status of Pending because member accounts of an
-- organization require more time to be enrolled in the service.
--
-- $sel:httpStatus:UpdateEnrollmentStatusResponse',
-- updateEnrollmentStatusResponse_httpStatus - The response's http
-- status code.
newUpdateEnrollmentStatusResponse :: Int -> UpdateEnrollmentStatusResponse
-- | The enrollment status of the account.
updateEnrollmentStatusResponse_status :: Lens' UpdateEnrollmentStatusResponse (Maybe Status)
-- | The reason for the enrollment status of the account. For example, an
-- account might show a status of Pending because member
-- accounts of an organization require more time to be enrolled in the
-- service.
updateEnrollmentStatusResponse_statusReason :: Lens' UpdateEnrollmentStatusResponse (Maybe Text)
-- | The response's http status code.
updateEnrollmentStatusResponse_httpStatus :: Lens' UpdateEnrollmentStatusResponse Int
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.UpdateEnrollmentStatus.UpdateEnrollmentStatus
instance GHC.Show.Show Amazonka.ComputeOptimizer.UpdateEnrollmentStatus.UpdateEnrollmentStatus
instance GHC.Read.Read Amazonka.ComputeOptimizer.UpdateEnrollmentStatus.UpdateEnrollmentStatus
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.UpdateEnrollmentStatus.UpdateEnrollmentStatus
instance GHC.Generics.Generic Amazonka.ComputeOptimizer.UpdateEnrollmentStatus.UpdateEnrollmentStatusResponse
instance GHC.Show.Show Amazonka.ComputeOptimizer.UpdateEnrollmentStatus.UpdateEnrollmentStatusResponse
instance GHC.Read.Read Amazonka.ComputeOptimizer.UpdateEnrollmentStatus.UpdateEnrollmentStatusResponse
instance GHC.Classes.Eq Amazonka.ComputeOptimizer.UpdateEnrollmentStatus.UpdateEnrollmentStatusResponse
instance Amazonka.Types.AWSRequest Amazonka.ComputeOptimizer.UpdateEnrollmentStatus.UpdateEnrollmentStatus
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.UpdateEnrollmentStatus.UpdateEnrollmentStatusResponse
instance Data.Hashable.Class.Hashable Amazonka.ComputeOptimizer.UpdateEnrollmentStatus.UpdateEnrollmentStatus
instance Control.DeepSeq.NFData Amazonka.ComputeOptimizer.UpdateEnrollmentStatus.UpdateEnrollmentStatus
instance Amazonka.Data.Headers.ToHeaders Amazonka.ComputeOptimizer.UpdateEnrollmentStatus.UpdateEnrollmentStatus
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.ComputeOptimizer.UpdateEnrollmentStatus.UpdateEnrollmentStatus
instance Amazonka.Data.Path.ToPath Amazonka.ComputeOptimizer.UpdateEnrollmentStatus.UpdateEnrollmentStatus
instance Amazonka.Data.Query.ToQuery Amazonka.ComputeOptimizer.UpdateEnrollmentStatus.UpdateEnrollmentStatus
module Amazonka.ComputeOptimizer.Lens
-- | An object that describes the scope of the recommendation preference to
-- delete.
--
-- You can delete recommendation preferences that are created at the
-- organization level (for management accounts of an organization only),
-- account level, and resource level. For more information, see
-- Activating enhanced infrastructure metrics in the Compute
-- Optimizer User Guide.
deleteRecommendationPreferences_scope :: Lens' DeleteRecommendationPreferences (Maybe Scope)
-- | The target resource type of the recommendation preference to delete.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
--
-- The valid values for this parameter are Ec2Instance and
-- AutoScalingGroup.
deleteRecommendationPreferences_resourceType :: Lens' DeleteRecommendationPreferences ResourceType
-- | The name of the recommendation preference to delete.
deleteRecommendationPreferences_recommendationPreferenceNames :: Lens' DeleteRecommendationPreferences [RecommendationPreferenceName]
-- | The response's http status code.
deleteRecommendationPreferencesResponse_httpStatus :: Lens' DeleteRecommendationPreferencesResponse Int
-- | An array of objects to specify a filter that returns a more specific
-- list of export jobs.
describeRecommendationExportJobs_filters :: Lens' DescribeRecommendationExportJobs (Maybe [JobFilter])
-- | The identification numbers of the export jobs to return.
--
-- An export job ID is returned when you create an export using the
-- ExportAutoScalingGroupRecommendations or
-- ExportEC2InstanceRecommendations actions.
--
-- All export jobs created in the last seven days are returned if this
-- parameter is omitted.
describeRecommendationExportJobs_jobIds :: Lens' DescribeRecommendationExportJobs (Maybe [Text])
-- | The maximum number of export jobs to return with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
describeRecommendationExportJobs_maxResults :: Lens' DescribeRecommendationExportJobs (Maybe Natural)
-- | The token to advance to the next page of export jobs.
describeRecommendationExportJobs_nextToken :: Lens' DescribeRecommendationExportJobs (Maybe Text)
-- | The token to use to advance to the next page of export jobs.
--
-- This value is null when there are no more pages of export jobs to
-- return.
describeRecommendationExportJobsResponse_nextToken :: Lens' DescribeRecommendationExportJobsResponse (Maybe Text)
-- | An array of objects that describe recommendation export jobs.
describeRecommendationExportJobsResponse_recommendationExportJobs :: Lens' DescribeRecommendationExportJobsResponse (Maybe [RecommendationExportJob])
-- | The response's http status code.
describeRecommendationExportJobsResponse_httpStatus :: Lens' DescribeRecommendationExportJobsResponse Int
-- | The IDs of the Amazon Web Services accounts for which to export Auto
-- Scaling group recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
exportAutoScalingGroupRecommendations_accountIds :: Lens' ExportAutoScalingGroupRecommendations (Maybe [Text])
-- | The recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
exportAutoScalingGroupRecommendations_fieldsToExport :: Lens' ExportAutoScalingGroupRecommendations (Maybe [ExportableAutoScalingGroupField])
-- | The format of the export file.
--
-- The only export file format currently supported is Csv.
exportAutoScalingGroupRecommendations_fileFormat :: Lens' ExportAutoScalingGroupRecommendations (Maybe FileFormat)
-- | An array of objects to specify a filter that exports a more specific
-- set of Auto Scaling group recommendations.
exportAutoScalingGroupRecommendations_filters :: Lens' ExportAutoScalingGroupRecommendations (Maybe [Filter])
-- | Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- This parameter cannot be specified together with the account IDs
-- parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
exportAutoScalingGroupRecommendations_includeMemberAccounts :: Lens' ExportAutoScalingGroupRecommendations (Maybe Bool)
-- | An object to specify the preferences for the Auto Scaling group
-- recommendations to export.
exportAutoScalingGroupRecommendations_recommendationPreferences :: Lens' ExportAutoScalingGroupRecommendations (Maybe RecommendationPreferences)
-- | An object to specify the destination Amazon Simple Storage Service
-- (Amazon S3) bucket name and key prefix for the export job.
--
-- You must create the destination Amazon S3 bucket for your
-- recommendations export before you create the export job. Compute
-- Optimizer does not create the S3 bucket for you. After you create the
-- S3 bucket, ensure that it has the required permissions policy to allow
-- Compute Optimizer to write the export file to it. If you plan to
-- specify an object prefix when you create the export job, you must
-- include the object prefix in the policy that you add to the S3 bucket.
-- For more information, see Amazon S3 Bucket Policy for Compute
-- Optimizer in the Compute Optimizer User Guide.
exportAutoScalingGroupRecommendations_s3DestinationConfig :: Lens' ExportAutoScalingGroupRecommendations S3DestinationConfig
-- | The identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
exportAutoScalingGroupRecommendationsResponse_jobId :: Lens' ExportAutoScalingGroupRecommendationsResponse (Maybe Text)
-- | An object that describes the destination Amazon S3 bucket of a
-- recommendations export file.
exportAutoScalingGroupRecommendationsResponse_s3Destination :: Lens' ExportAutoScalingGroupRecommendationsResponse (Maybe S3Destination)
-- | The response's http status code.
exportAutoScalingGroupRecommendationsResponse_httpStatus :: Lens' ExportAutoScalingGroupRecommendationsResponse Int
-- | The IDs of the Amazon Web Services accounts for which to export Amazon
-- EBS volume recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
exportEBSVolumeRecommendations_accountIds :: Lens' ExportEBSVolumeRecommendations (Maybe [Text])
-- | The recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
exportEBSVolumeRecommendations_fieldsToExport :: Lens' ExportEBSVolumeRecommendations (Maybe [ExportableVolumeField])
-- | The format of the export file.
--
-- The only export file format currently supported is Csv.
exportEBSVolumeRecommendations_fileFormat :: Lens' ExportEBSVolumeRecommendations (Maybe FileFormat)
-- | An array of objects to specify a filter that exports a more specific
-- set of Amazon EBS volume recommendations.
exportEBSVolumeRecommendations_filters :: Lens' ExportEBSVolumeRecommendations (Maybe [EBSFilter])
-- | Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- This parameter cannot be specified together with the account IDs
-- parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
exportEBSVolumeRecommendations_includeMemberAccounts :: Lens' ExportEBSVolumeRecommendations (Maybe Bool)
-- | Undocumented member.
exportEBSVolumeRecommendations_s3DestinationConfig :: Lens' ExportEBSVolumeRecommendations S3DestinationConfig
-- | The identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
exportEBSVolumeRecommendationsResponse_jobId :: Lens' ExportEBSVolumeRecommendationsResponse (Maybe Text)
-- | Undocumented member.
exportEBSVolumeRecommendationsResponse_s3Destination :: Lens' ExportEBSVolumeRecommendationsResponse (Maybe S3Destination)
-- | The response's http status code.
exportEBSVolumeRecommendationsResponse_httpStatus :: Lens' ExportEBSVolumeRecommendationsResponse Int
-- | The IDs of the Amazon Web Services accounts for which to export
-- instance recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
exportEC2InstanceRecommendations_accountIds :: Lens' ExportEC2InstanceRecommendations (Maybe [Text])
-- | The recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
exportEC2InstanceRecommendations_fieldsToExport :: Lens' ExportEC2InstanceRecommendations (Maybe [ExportableInstanceField])
-- | The format of the export file.
--
-- The only export file format currently supported is Csv.
exportEC2InstanceRecommendations_fileFormat :: Lens' ExportEC2InstanceRecommendations (Maybe FileFormat)
-- | An array of objects to specify a filter that exports a more specific
-- set of instance recommendations.
exportEC2InstanceRecommendations_filters :: Lens' ExportEC2InstanceRecommendations (Maybe [Filter])
-- | Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
exportEC2InstanceRecommendations_includeMemberAccounts :: Lens' ExportEC2InstanceRecommendations (Maybe Bool)
-- | An object to specify the preferences for the Amazon EC2 instance
-- recommendations to export.
exportEC2InstanceRecommendations_recommendationPreferences :: Lens' ExportEC2InstanceRecommendations (Maybe RecommendationPreferences)
-- | An object to specify the destination Amazon Simple Storage Service
-- (Amazon S3) bucket name and key prefix for the export job.
--
-- You must create the destination Amazon S3 bucket for your
-- recommendations export before you create the export job. Compute
-- Optimizer does not create the S3 bucket for you. After you create the
-- S3 bucket, ensure that it has the required permissions policy to allow
-- Compute Optimizer to write the export file to it. If you plan to
-- specify an object prefix when you create the export job, you must
-- include the object prefix in the policy that you add to the S3 bucket.
-- For more information, see Amazon S3 Bucket Policy for Compute
-- Optimizer in the Compute Optimizer User Guide.
exportEC2InstanceRecommendations_s3DestinationConfig :: Lens' ExportEC2InstanceRecommendations S3DestinationConfig
-- | The identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
exportEC2InstanceRecommendationsResponse_jobId :: Lens' ExportEC2InstanceRecommendationsResponse (Maybe Text)
-- | An object that describes the destination Amazon S3 bucket of a
-- recommendations export file.
exportEC2InstanceRecommendationsResponse_s3Destination :: Lens' ExportEC2InstanceRecommendationsResponse (Maybe S3Destination)
-- | The response's http status code.
exportEC2InstanceRecommendationsResponse_httpStatus :: Lens' ExportEC2InstanceRecommendationsResponse Int
-- | The Amazon Web Services account IDs for the export ECS service
-- recommendations.
--
-- If your account is the management account or the delegated
-- administrator of an organization, use this parameter to specify the
-- member account you want to export recommendations to.
--
-- This parameter can't be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- If this parameter or the include member accounts parameter is omitted,
-- the recommendations for member accounts aren't included in the export.
--
-- You can specify multiple account IDs per request.
exportECSServiceRecommendations_accountIds :: Lens' ExportECSServiceRecommendations (Maybe [Text])
-- | The recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
exportECSServiceRecommendations_fieldsToExport :: Lens' ExportECSServiceRecommendations (Maybe [ExportableECSServiceField])
-- | The format of the export file.
--
-- The CSV file is the only export file format currently supported.
exportECSServiceRecommendations_fileFormat :: Lens' ExportECSServiceRecommendations (Maybe FileFormat)
-- | An array of objects to specify a filter that exports a more specific
-- set of ECS service recommendations.
exportECSServiceRecommendations_filters :: Lens' ExportECSServiceRecommendations (Maybe [ECSServiceRecommendationFilter])
-- | If your account is the management account or the delegated
-- administrator of an organization, this parameter indicates whether to
-- include recommendations for resources in all member accounts of the
-- organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- If this parameter is omitted, recommendations for member accounts of
-- the organization aren't included in the export file.
--
-- If this parameter or the account ID parameter is omitted,
-- recommendations for member accounts aren't included in the export.
exportECSServiceRecommendations_includeMemberAccounts :: Lens' ExportECSServiceRecommendations (Maybe Bool)
-- | Undocumented member.
exportECSServiceRecommendations_s3DestinationConfig :: Lens' ExportECSServiceRecommendations S3DestinationConfig
-- | The identification number of the export job.
--
-- To view the status of an export job, use the
-- DescribeRecommendationExportJobs action and specify the job ID.
exportECSServiceRecommendationsResponse_jobId :: Lens' ExportECSServiceRecommendationsResponse (Maybe Text)
-- | Undocumented member.
exportECSServiceRecommendationsResponse_s3Destination :: Lens' ExportECSServiceRecommendationsResponse (Maybe S3Destination)
-- | The response's http status code.
exportECSServiceRecommendationsResponse_httpStatus :: Lens' ExportECSServiceRecommendationsResponse Int
-- | The IDs of the Amazon Web Services accounts for which to export Lambda
-- function recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
exportLambdaFunctionRecommendations_accountIds :: Lens' ExportLambdaFunctionRecommendations (Maybe [Text])
-- | The recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
exportLambdaFunctionRecommendations_fieldsToExport :: Lens' ExportLambdaFunctionRecommendations (Maybe [ExportableLambdaFunctionField])
-- | The format of the export file.
--
-- The only export file format currently supported is Csv.
exportLambdaFunctionRecommendations_fileFormat :: Lens' ExportLambdaFunctionRecommendations (Maybe FileFormat)
-- | An array of objects to specify a filter that exports a more specific
-- set of Lambda function recommendations.
exportLambdaFunctionRecommendations_filters :: Lens' ExportLambdaFunctionRecommendations (Maybe [LambdaFunctionRecommendationFilter])
-- | Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- This parameter cannot be specified together with the account IDs
-- parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
exportLambdaFunctionRecommendations_includeMemberAccounts :: Lens' ExportLambdaFunctionRecommendations (Maybe Bool)
-- | Undocumented member.
exportLambdaFunctionRecommendations_s3DestinationConfig :: Lens' ExportLambdaFunctionRecommendations S3DestinationConfig
-- | The identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
exportLambdaFunctionRecommendationsResponse_jobId :: Lens' ExportLambdaFunctionRecommendationsResponse (Maybe Text)
-- | Undocumented member.
exportLambdaFunctionRecommendationsResponse_s3Destination :: Lens' ExportLambdaFunctionRecommendationsResponse (Maybe S3Destination)
-- | The response's http status code.
exportLambdaFunctionRecommendationsResponse_httpStatus :: Lens' ExportLambdaFunctionRecommendationsResponse Int
-- | The ID of the Amazon Web Services account for which to return Auto
-- Scaling group recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- Auto Scaling group recommendations.
--
-- Only one account ID can be specified per request.
getAutoScalingGroupRecommendations_accountIds :: Lens' GetAutoScalingGroupRecommendations (Maybe [Text])
-- | The Amazon Resource Name (ARN) of the Auto Scaling groups for which to
-- return recommendations.
getAutoScalingGroupRecommendations_autoScalingGroupArns :: Lens' GetAutoScalingGroupRecommendations (Maybe [Text])
-- | An array of objects to specify a filter that returns a more specific
-- list of Auto Scaling group recommendations.
getAutoScalingGroupRecommendations_filters :: Lens' GetAutoScalingGroupRecommendations (Maybe [Filter])
-- | The maximum number of Auto Scaling group recommendations to return
-- with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
getAutoScalingGroupRecommendations_maxResults :: Lens' GetAutoScalingGroupRecommendations (Maybe Natural)
-- | The token to advance to the next page of Auto Scaling group
-- recommendations.
getAutoScalingGroupRecommendations_nextToken :: Lens' GetAutoScalingGroupRecommendations (Maybe Text)
-- | An object to specify the preferences for the Auto Scaling group
-- recommendations to return in the response.
getAutoScalingGroupRecommendations_recommendationPreferences :: Lens' GetAutoScalingGroupRecommendations (Maybe RecommendationPreferences)
-- | An array of objects that describe Auto Scaling group recommendations.
getAutoScalingGroupRecommendationsResponse_autoScalingGroupRecommendations :: Lens' GetAutoScalingGroupRecommendationsResponse (Maybe [AutoScalingGroupRecommendation])
-- | An array of objects that describe errors of the request.
--
-- For example, an error is returned if you request recommendations for
-- an unsupported Auto Scaling group.
getAutoScalingGroupRecommendationsResponse_errors :: Lens' GetAutoScalingGroupRecommendationsResponse (Maybe [GetRecommendationError])
-- | The token to use to advance to the next page of Auto Scaling group
-- recommendations.
--
-- This value is null when there are no more pages of Auto Scaling group
-- recommendations to return.
getAutoScalingGroupRecommendationsResponse_nextToken :: Lens' GetAutoScalingGroupRecommendationsResponse (Maybe Text)
-- | The response's http status code.
getAutoScalingGroupRecommendationsResponse_httpStatus :: Lens' GetAutoScalingGroupRecommendationsResponse Int
-- | The ID of the Amazon Web Services account for which to return volume
-- recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- volume recommendations.
--
-- Only one account ID can be specified per request.
getEBSVolumeRecommendations_accountIds :: Lens' GetEBSVolumeRecommendations (Maybe [Text])
-- | An array of objects to specify a filter that returns a more specific
-- list of volume recommendations.
getEBSVolumeRecommendations_filters :: Lens' GetEBSVolumeRecommendations (Maybe [EBSFilter])
-- | The maximum number of volume recommendations to return with a single
-- request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
getEBSVolumeRecommendations_maxResults :: Lens' GetEBSVolumeRecommendations (Maybe Natural)
-- | The token to advance to the next page of volume recommendations.
getEBSVolumeRecommendations_nextToken :: Lens' GetEBSVolumeRecommendations (Maybe Text)
-- | The Amazon Resource Name (ARN) of the volumes for which to return
-- recommendations.
getEBSVolumeRecommendations_volumeArns :: Lens' GetEBSVolumeRecommendations (Maybe [Text])
-- | An array of objects that describe errors of the request.
--
-- For example, an error is returned if you request recommendations for
-- an unsupported volume.
getEBSVolumeRecommendationsResponse_errors :: Lens' GetEBSVolumeRecommendationsResponse (Maybe [GetRecommendationError])
-- | The token to use to advance to the next page of volume
-- recommendations.
--
-- This value is null when there are no more pages of volume
-- recommendations to return.
getEBSVolumeRecommendationsResponse_nextToken :: Lens' GetEBSVolumeRecommendationsResponse (Maybe Text)
-- | An array of objects that describe volume recommendations.
getEBSVolumeRecommendationsResponse_volumeRecommendations :: Lens' GetEBSVolumeRecommendationsResponse (Maybe [VolumeRecommendation])
-- | The response's http status code.
getEBSVolumeRecommendationsResponse_httpStatus :: Lens' GetEBSVolumeRecommendationsResponse Int
-- | The ID of the Amazon Web Services account for which to return instance
-- recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- instance recommendations.
--
-- Only one account ID can be specified per request.
getEC2InstanceRecommendations_accountIds :: Lens' GetEC2InstanceRecommendations (Maybe [Text])
-- | An array of objects to specify a filter that returns a more specific
-- list of instance recommendations.
getEC2InstanceRecommendations_filters :: Lens' GetEC2InstanceRecommendations (Maybe [Filter])
-- | The Amazon Resource Name (ARN) of the instances for which to return
-- recommendations.
getEC2InstanceRecommendations_instanceArns :: Lens' GetEC2InstanceRecommendations (Maybe [Text])
-- | The maximum number of instance recommendations to return with a single
-- request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
getEC2InstanceRecommendations_maxResults :: Lens' GetEC2InstanceRecommendations (Maybe Natural)
-- | The token to advance to the next page of instance recommendations.
getEC2InstanceRecommendations_nextToken :: Lens' GetEC2InstanceRecommendations (Maybe Text)
-- | An object to specify the preferences for the Amazon EC2 instance
-- recommendations to return in the response.
getEC2InstanceRecommendations_recommendationPreferences :: Lens' GetEC2InstanceRecommendations (Maybe RecommendationPreferences)
-- | An array of objects that describe errors of the request.
--
-- For example, an error is returned if you request recommendations for
-- an instance of an unsupported instance family.
getEC2InstanceRecommendationsResponse_errors :: Lens' GetEC2InstanceRecommendationsResponse (Maybe [GetRecommendationError])
-- | An array of objects that describe instance recommendations.
getEC2InstanceRecommendationsResponse_instanceRecommendations :: Lens' GetEC2InstanceRecommendationsResponse (Maybe [InstanceRecommendation])
-- | The token to use to advance to the next page of instance
-- recommendations.
--
-- This value is null when there are no more pages of instance
-- recommendations to return.
getEC2InstanceRecommendationsResponse_nextToken :: Lens' GetEC2InstanceRecommendationsResponse (Maybe Text)
-- | The response's http status code.
getEC2InstanceRecommendationsResponse_httpStatus :: Lens' GetEC2InstanceRecommendationsResponse Int
-- | An object to specify the preferences for the Amazon EC2 recommendation
-- projected metrics to return in the response.
getEC2RecommendationProjectedMetrics_recommendationPreferences :: Lens' GetEC2RecommendationProjectedMetrics (Maybe RecommendationPreferences)
-- | The Amazon Resource Name (ARN) of the instances for which to return
-- recommendation projected metrics.
getEC2RecommendationProjectedMetrics_instanceArn :: Lens' GetEC2RecommendationProjectedMetrics Text
-- | The statistic of the projected metrics.
getEC2RecommendationProjectedMetrics_stat :: Lens' GetEC2RecommendationProjectedMetrics MetricStatistic
-- | The granularity, in seconds, of the projected metrics data points.
getEC2RecommendationProjectedMetrics_period :: Lens' GetEC2RecommendationProjectedMetrics Int
-- | The timestamp of the first projected metrics data point to return.
getEC2RecommendationProjectedMetrics_startTime :: Lens' GetEC2RecommendationProjectedMetrics UTCTime
-- | The timestamp of the last projected metrics data point to return.
getEC2RecommendationProjectedMetrics_endTime :: Lens' GetEC2RecommendationProjectedMetrics UTCTime
-- | An array of objects that describes projected metrics.
getEC2RecommendationProjectedMetricsResponse_recommendedOptionProjectedMetrics :: Lens' GetEC2RecommendationProjectedMetricsResponse (Maybe [RecommendedOptionProjectedMetric])
-- | The response's http status code.
getEC2RecommendationProjectedMetricsResponse_httpStatus :: Lens' GetEC2RecommendationProjectedMetricsResponse Int
-- | The ARN that identifies the ECS service.
--
-- The following is the format of the ARN:
--
--
-- arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
--
getECSServiceRecommendationProjectedMetrics_serviceArn :: Lens' GetECSServiceRecommendationProjectedMetrics Text
-- | The statistic of the projected metrics.
getECSServiceRecommendationProjectedMetrics_stat :: Lens' GetECSServiceRecommendationProjectedMetrics MetricStatistic
-- | The granularity, in seconds, of the projected metrics data points.
getECSServiceRecommendationProjectedMetrics_period :: Lens' GetECSServiceRecommendationProjectedMetrics Int
-- | The timestamp of the first projected metrics data point to return.
getECSServiceRecommendationProjectedMetrics_startTime :: Lens' GetECSServiceRecommendationProjectedMetrics UTCTime
-- | The timestamp of the last projected metrics data point to return.
getECSServiceRecommendationProjectedMetrics_endTime :: Lens' GetECSServiceRecommendationProjectedMetrics UTCTime
-- | An array of objects that describes the projected metrics.
getECSServiceRecommendationProjectedMetricsResponse_recommendedOptionProjectedMetrics :: Lens' GetECSServiceRecommendationProjectedMetricsResponse (Maybe [ECSServiceRecommendedOptionProjectedMetric])
-- | The response's http status code.
getECSServiceRecommendationProjectedMetricsResponse_httpStatus :: Lens' GetECSServiceRecommendationProjectedMetricsResponse Int
-- | Return the ECS service recommendations to the specified Amazon Web
-- Services account IDs.
--
-- If your account is the management account or the delegated
-- administrator of an organization, use this parameter to return the ECS
-- service recommendations to specific member accounts.
--
-- You can only specify one account ID per request.
getECSServiceRecommendations_accountIds :: Lens' GetECSServiceRecommendations (Maybe [Text])
-- | An array of objects to specify a filter that returns a more specific
-- list of ECS service recommendations.
getECSServiceRecommendations_filters :: Lens' GetECSServiceRecommendations (Maybe [ECSServiceRecommendationFilter])
-- | The maximum number of ECS service recommendations to return with a
-- single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
getECSServiceRecommendations_maxResults :: Lens' GetECSServiceRecommendations (Maybe Natural)
-- | The token to advance to the next page of ECS service recommendations.
getECSServiceRecommendations_nextToken :: Lens' GetECSServiceRecommendations (Maybe Text)
-- | The ARN that identifies the ECS service.
--
-- The following is the format of the ARN:
--
--
-- arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
--
getECSServiceRecommendations_serviceArns :: Lens' GetECSServiceRecommendations (Maybe [Text])
-- | An array of objects that describe the ECS service recommendations.
getECSServiceRecommendationsResponse_ecsServiceRecommendations :: Lens' GetECSServiceRecommendationsResponse (Maybe [ECSServiceRecommendation])
-- | An array of objects that describe errors of the request.
getECSServiceRecommendationsResponse_errors :: Lens' GetECSServiceRecommendationsResponse (Maybe [GetRecommendationError])
-- | The token to advance to the next page of ECS service recommendations.
getECSServiceRecommendationsResponse_nextToken :: Lens' GetECSServiceRecommendationsResponse (Maybe Text)
-- | The response's http status code.
getECSServiceRecommendationsResponse_httpStatus :: Lens' GetECSServiceRecommendationsResponse Int
-- | The Amazon Resource Name (ARN) of the resource for which to confirm
-- effective recommendation preferences. Only EC2 instance and Auto
-- Scaling group ARNs are currently supported.
getEffectiveRecommendationPreferences_resourceArn :: Lens' GetEffectiveRecommendationPreferences Text
-- | The status of the enhanced infrastructure metrics recommendation
-- preference. Considers all applicable preferences that you might have
-- set at the resource, account, and organization level.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh, and a status of Inactive
-- confirms that it's not yet applied to recommendations.
--
-- To validate whether the preference is applied to your last generated
-- set of recommendations, review the
-- effectiveRecommendationPreferences value in the response of
-- the GetAutoScalingGroupRecommendations and
-- GetEC2InstanceRecommendations actions.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
getEffectiveRecommendationPreferencesResponse_enhancedInfrastructureMetrics :: Lens' GetEffectiveRecommendationPreferencesResponse (Maybe EnhancedInfrastructureMetrics)
-- | The provider of the external metrics recommendation preference.
-- Considers all applicable preferences that you might have set at the
-- account and organization level.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
--
-- To validate whether the preference is applied to your last generated
-- set of recommendations, review the
-- effectiveRecommendationPreferences value in the response of
-- the GetEC2InstanceRecommendations actions.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
getEffectiveRecommendationPreferencesResponse_externalMetricsPreference :: Lens' GetEffectiveRecommendationPreferencesResponse (Maybe ExternalMetricsPreference)
-- | The response's http status code.
getEffectiveRecommendationPreferencesResponse_httpStatus :: Lens' GetEffectiveRecommendationPreferencesResponse Int
-- | The Unix epoch timestamp, in seconds, of when the account enrollment
-- status was last updated.
getEnrollmentStatusResponse_lastUpdatedTimestamp :: Lens' GetEnrollmentStatusResponse (Maybe UTCTime)
-- | Confirms the enrollment status of member accounts of the organization,
-- if the account is a management account of an organization.
getEnrollmentStatusResponse_memberAccountsEnrolled :: Lens' GetEnrollmentStatusResponse (Maybe Bool)
-- | The count of organization member accounts that are opted in to the
-- service, if your account is an organization management account.
getEnrollmentStatusResponse_numberOfMemberAccountsOptedIn :: Lens' GetEnrollmentStatusResponse (Maybe Int)
-- | The enrollment status of the account.
getEnrollmentStatusResponse_status :: Lens' GetEnrollmentStatusResponse (Maybe Status)
-- | The reason for the enrollment status of the account.
--
-- For example, an account might show a status of Pending
-- because member accounts of an organization require more time to be
-- enrolled in the service.
getEnrollmentStatusResponse_statusReason :: Lens' GetEnrollmentStatusResponse (Maybe Text)
-- | The response's http status code.
getEnrollmentStatusResponse_httpStatus :: Lens' GetEnrollmentStatusResponse Int
-- | An array of objects to specify a filter that returns a more specific
-- list of account enrollment statuses.
getEnrollmentStatusesForOrganization_filters :: Lens' GetEnrollmentStatusesForOrganization (Maybe [EnrollmentFilter])
-- | The maximum number of account enrollment statuses to return with a
-- single request. You can specify up to 100 statuses to return with each
-- request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
getEnrollmentStatusesForOrganization_maxResults :: Lens' GetEnrollmentStatusesForOrganization (Maybe Natural)
-- | The token to advance to the next page of account enrollment statuses.
getEnrollmentStatusesForOrganization_nextToken :: Lens' GetEnrollmentStatusesForOrganization (Maybe Text)
-- | An array of objects that describe the enrollment statuses of
-- organization member accounts.
getEnrollmentStatusesForOrganizationResponse_accountEnrollmentStatuses :: Lens' GetEnrollmentStatusesForOrganizationResponse (Maybe [AccountEnrollmentStatus])
-- | The token to use to advance to the next page of account enrollment
-- statuses.
--
-- This value is null when there are no more pages of account enrollment
-- statuses to return.
getEnrollmentStatusesForOrganizationResponse_nextToken :: Lens' GetEnrollmentStatusesForOrganizationResponse (Maybe Text)
-- | The response's http status code.
getEnrollmentStatusesForOrganizationResponse_httpStatus :: Lens' GetEnrollmentStatusesForOrganizationResponse Int
-- | The ID of the Amazon Web Services account for which to return function
-- recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- function recommendations.
--
-- Only one account ID can be specified per request.
getLambdaFunctionRecommendations_accountIds :: Lens' GetLambdaFunctionRecommendations (Maybe [Text])
-- | An array of objects to specify a filter that returns a more specific
-- list of function recommendations.
getLambdaFunctionRecommendations_filters :: Lens' GetLambdaFunctionRecommendations (Maybe [LambdaFunctionRecommendationFilter])
-- | The Amazon Resource Name (ARN) of the functions for which to return
-- recommendations.
--
-- You can specify a qualified or unqualified ARN. If you specify an
-- unqualified ARN without a function version suffix, Compute Optimizer
-- will return recommendations for the latest ($LATEST) version
-- of the function. If you specify a qualified ARN with a version suffix,
-- Compute Optimizer will return recommendations for the specified
-- function version. For more information about using function versions,
-- see Using versions in the Lambda Developer Guide.
getLambdaFunctionRecommendations_functionArns :: Lens' GetLambdaFunctionRecommendations (Maybe [Text])
-- | The maximum number of function recommendations to return with a single
-- request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
getLambdaFunctionRecommendations_maxResults :: Lens' GetLambdaFunctionRecommendations (Maybe Natural)
-- | The token to advance to the next page of function recommendations.
getLambdaFunctionRecommendations_nextToken :: Lens' GetLambdaFunctionRecommendations (Maybe Text)
-- | An array of objects that describe function recommendations.
getLambdaFunctionRecommendationsResponse_lambdaFunctionRecommendations :: Lens' GetLambdaFunctionRecommendationsResponse (Maybe [LambdaFunctionRecommendation])
-- | The token to use to advance to the next page of function
-- recommendations.
--
-- This value is null when there are no more pages of function
-- recommendations to return.
getLambdaFunctionRecommendationsResponse_nextToken :: Lens' GetLambdaFunctionRecommendationsResponse (Maybe Text)
-- | The response's http status code.
getLambdaFunctionRecommendationsResponse_httpStatus :: Lens' GetLambdaFunctionRecommendationsResponse Int
-- | The maximum number of recommendation preferences to return with a
-- single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
getRecommendationPreferences_maxResults :: Lens' GetRecommendationPreferences (Maybe Natural)
-- | The token to advance to the next page of recommendation preferences.
getRecommendationPreferences_nextToken :: Lens' GetRecommendationPreferences (Maybe Text)
-- | An object that describes the scope of the recommendation preference to
-- return.
--
-- You can return recommendation preferences that are created at the
-- organization level (for management accounts of an organization only),
-- account level, and resource level. For more information, see
-- Activating enhanced infrastructure metrics in the Compute
-- Optimizer User Guide.
getRecommendationPreferences_scope :: Lens' GetRecommendationPreferences (Maybe Scope)
-- | The target resource type of the recommendation preference for which to
-- return preferences.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
--
-- The valid values for this parameter are Ec2Instance and
-- AutoScalingGroup.
getRecommendationPreferences_resourceType :: Lens' GetRecommendationPreferences ResourceType
-- | The token to use to advance to the next page of recommendation
-- preferences.
--
-- This value is null when there are no more pages of recommendation
-- preferences to return.
getRecommendationPreferencesResponse_nextToken :: Lens' GetRecommendationPreferencesResponse (Maybe Text)
-- | An array of objects that describe recommendation preferences.
getRecommendationPreferencesResponse_recommendationPreferencesDetails :: Lens' GetRecommendationPreferencesResponse (Maybe [RecommendationPreferencesDetail])
-- | The response's http status code.
getRecommendationPreferencesResponse_httpStatus :: Lens' GetRecommendationPreferencesResponse Int
-- | The ID of the Amazon Web Services account for which to return
-- recommendation summaries.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- recommendation summaries.
--
-- Only one account ID can be specified per request.
getRecommendationSummaries_accountIds :: Lens' GetRecommendationSummaries (Maybe [Text])
-- | The maximum number of recommendation summaries to return with a single
-- request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
getRecommendationSummaries_maxResults :: Lens' GetRecommendationSummaries (Maybe Natural)
-- | The token to advance to the next page of recommendation summaries.
getRecommendationSummaries_nextToken :: Lens' GetRecommendationSummaries (Maybe Text)
-- | The token to use to advance to the next page of recommendation
-- summaries.
--
-- This value is null when there are no more pages of recommendation
-- summaries to return.
getRecommendationSummariesResponse_nextToken :: Lens' GetRecommendationSummariesResponse (Maybe Text)
-- | An array of objects that summarize a recommendation.
getRecommendationSummariesResponse_recommendationSummaries :: Lens' GetRecommendationSummariesResponse (Maybe [RecommendationSummary])
-- | The response's http status code.
getRecommendationSummariesResponse_httpStatus :: Lens' GetRecommendationSummariesResponse Int
-- | The status of the enhanced infrastructure metrics recommendation
-- preference to create or update.
--
-- Specify the Active status to activate the preference, or
-- specify Inactive to deactivate the preference.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
putRecommendationPreferences_enhancedInfrastructureMetrics :: Lens' PutRecommendationPreferences (Maybe EnhancedInfrastructureMetrics)
-- | The provider of the external metrics recommendation preference to
-- create or update.
--
-- Specify a valid provider in the source field to activate the
-- preference. To delete this preference, see the
-- DeleteRecommendationPreferences action.
--
-- This preference can only be set for the Ec2Instance resource
-- type.
--
-- For more information, see External metrics ingestion in the
-- Compute Optimizer User Guide.
putRecommendationPreferences_externalMetricsPreference :: Lens' PutRecommendationPreferences (Maybe ExternalMetricsPreference)
-- | The status of the inferred workload types recommendation preference to
-- create or update.
--
-- The inferred workload type feature is active by default. To deactivate
-- it, create a recommendation preference.
--
-- Specify the Inactive status to deactivate the feature, or
-- specify Active to activate it.
--
-- For more information, see Inferred workload types in the
-- Compute Optimizer User Guide.
putRecommendationPreferences_inferredWorkloadTypes :: Lens' PutRecommendationPreferences (Maybe InferredWorkloadTypesPreference)
-- | An object that describes the scope of the recommendation preference to
-- create.
--
-- You can create recommendation preferences at the organization level
-- (for management accounts of an organization only), account level, and
-- resource level. For more information, see Activating enhanced
-- infrastructure metrics in the Compute Optimizer User Guide.
--
-- You cannot create recommendation preferences for Auto Scaling groups
-- at the organization and account levels. You can create recommendation
-- preferences for Auto Scaling groups only at the resource level by
-- specifying a scope name of ResourceArn and a scope value of
-- the Auto Scaling group Amazon Resource Name (ARN). This will configure
-- the preference for all instances that are part of the specified Auto
-- Scaling group. You also cannot create recommendation preferences at
-- the resource level for instances that are part of an Auto Scaling
-- group. You can create recommendation preferences at the resource level
-- only for standalone instances.
putRecommendationPreferences_scope :: Lens' PutRecommendationPreferences (Maybe Scope)
-- | The target resource type of the recommendation preference to create.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
--
-- The valid values for this parameter are Ec2Instance and
-- AutoScalingGroup.
putRecommendationPreferences_resourceType :: Lens' PutRecommendationPreferences ResourceType
-- | The response's http status code.
putRecommendationPreferencesResponse_httpStatus :: Lens' PutRecommendationPreferencesResponse Int
-- | Indicates whether to enroll member accounts of the organization if the
-- account is the management account of an organization.
updateEnrollmentStatus_includeMemberAccounts :: Lens' UpdateEnrollmentStatus (Maybe Bool)
-- | The new enrollment status of the account.
--
-- The following status options are available:
--
--
-- - Active - Opts in your account to the Compute Optimizer
-- service. Compute Optimizer begins analyzing the configuration and
-- utilization metrics of your Amazon Web Services resources after you
-- opt in. For more information, see Metrics analyzed by Compute
-- Optimizer in the Compute Optimizer User Guide.
-- - Inactive - Opts out your account from the Compute
-- Optimizer service. Your account's recommendations and related metrics
-- data will be deleted from Compute Optimizer after you opt out.
--
--
-- The Pending and Failed options cannot be used to
-- update the enrollment status of an account. They are returned in the
-- response of a request to update the enrollment status of an account.
updateEnrollmentStatus_status :: Lens' UpdateEnrollmentStatus Status
-- | The enrollment status of the account.
updateEnrollmentStatusResponse_status :: Lens' UpdateEnrollmentStatusResponse (Maybe Status)
-- | The reason for the enrollment status of the account. For example, an
-- account might show a status of Pending because member
-- accounts of an organization require more time to be enrolled in the
-- service.
updateEnrollmentStatusResponse_statusReason :: Lens' UpdateEnrollmentStatusResponse (Maybe Text)
-- | The response's http status code.
updateEnrollmentStatusResponse_httpStatus :: Lens' UpdateEnrollmentStatusResponse Int
-- | The Amazon Web Services account ID.
accountEnrollmentStatus_accountId :: Lens' AccountEnrollmentStatus (Maybe Text)
-- | The Unix epoch timestamp, in seconds, of when the account enrollment
-- status was last updated.
accountEnrollmentStatus_lastUpdatedTimestamp :: Lens' AccountEnrollmentStatus (Maybe UTCTime)
-- | The account enrollment status.
accountEnrollmentStatus_status :: Lens' AccountEnrollmentStatus (Maybe Status)
-- | The reason for the account enrollment status.
--
-- For example, an account might show a status of Pending
-- because member accounts of an organization require more time to be
-- enrolled in the service.
accountEnrollmentStatus_statusReason :: Lens' AccountEnrollmentStatus (Maybe Text)
-- | The desired capacity, or number of instances, for the Auto Scaling
-- group.
autoScalingGroupConfiguration_desiredCapacity :: Lens' AutoScalingGroupConfiguration (Maybe Int)
-- | The instance type for the Auto Scaling group.
autoScalingGroupConfiguration_instanceType :: Lens' AutoScalingGroupConfiguration (Maybe Text)
-- | The maximum size, or maximum number of instances, for the Auto Scaling
-- group.
autoScalingGroupConfiguration_maxSize :: Lens' AutoScalingGroupConfiguration (Maybe Int)
-- | The minimum size, or minimum number of instances, for the Auto Scaling
-- group.
autoScalingGroupConfiguration_minSize :: Lens' AutoScalingGroupConfiguration (Maybe Int)
-- | The Amazon Web Services account ID of the Auto Scaling group.
autoScalingGroupRecommendation_accountId :: Lens' AutoScalingGroupRecommendation (Maybe Text)
-- | The Amazon Resource Name (ARN) of the Auto Scaling group.
autoScalingGroupRecommendation_autoScalingGroupArn :: Lens' AutoScalingGroupRecommendation (Maybe Text)
-- | The name of the Auto Scaling group.
autoScalingGroupRecommendation_autoScalingGroupName :: Lens' AutoScalingGroupRecommendation (Maybe Text)
-- | An array of objects that describe the current configuration of the
-- Auto Scaling group.
autoScalingGroupRecommendation_currentConfiguration :: Lens' AutoScalingGroupRecommendation (Maybe AutoScalingGroupConfiguration)
-- | The risk of the current Auto Scaling group not meeting the performance
-- needs of its workloads. The higher the risk, the more likely the
-- current Auto Scaling group configuration has insufficient capacity and
-- cannot meet workload requirements.
autoScalingGroupRecommendation_currentPerformanceRisk :: Lens' AutoScalingGroupRecommendation (Maybe CurrentPerformanceRisk)
-- | An object that describes the effective recommendation preferences for
-- the Auto Scaling group.
autoScalingGroupRecommendation_effectiveRecommendationPreferences :: Lens' AutoScalingGroupRecommendation (Maybe EffectiveRecommendationPreferences)
-- | The finding classification of the Auto Scaling group.
--
-- Findings for Auto Scaling groups include:
--
--
-- - NotOptimized —An Auto Scaling group is considered
-- not optimized when Compute Optimizer identifies a recommendation that
-- can provide better performance for your workload.
-- - Optimized —An Auto Scaling group is considered
-- optimized when Compute Optimizer determines that the group is
-- correctly provisioned to run your workload based on the chosen
-- instance type. For optimized resources, Compute Optimizer might
-- recommend a new generation instance type.
--
autoScalingGroupRecommendation_finding :: Lens' AutoScalingGroupRecommendation (Maybe Finding)
-- | The applications that might be running on the instances in the Auto
-- Scaling group as inferred by Compute Optimizer.
--
-- Compute Optimizer can infer if one of the following applications might
-- be running on the instances:
--
--
-- - AmazonEmr - Infers that Amazon EMR might be running on
-- the instances.
-- - ApacheCassandra - Infers that Apache Cassandra might be
-- running on the instances.
-- - ApacheHadoop - Infers that Apache Hadoop might be running
-- on the instances.
-- - Memcached - Infers that Memcached might be running on the
-- instances.
-- - NGINX - Infers that NGINX might be running on the
-- instances.
-- - PostgreSql - Infers that PostgreSQL might be running on
-- the instances.
-- - Redis - Infers that Redis might be running on the
-- instances.
--
autoScalingGroupRecommendation_inferredWorkloadTypes :: Lens' AutoScalingGroupRecommendation (Maybe [InferredWorkloadType])
-- | The timestamp of when the Auto Scaling group recommendation was last
-- generated.
autoScalingGroupRecommendation_lastRefreshTimestamp :: Lens' AutoScalingGroupRecommendation (Maybe UTCTime)
-- | The number of days for which utilization metrics were analyzed for the
-- Auto Scaling group.
autoScalingGroupRecommendation_lookBackPeriodInDays :: Lens' AutoScalingGroupRecommendation (Maybe Double)
-- | An array of objects that describe the recommendation options for the
-- Auto Scaling group.
autoScalingGroupRecommendation_recommendationOptions :: Lens' AutoScalingGroupRecommendation (Maybe [AutoScalingGroupRecommendationOption])
-- | An array of objects that describe the utilization metrics of the Auto
-- Scaling group.
autoScalingGroupRecommendation_utilizationMetrics :: Lens' AutoScalingGroupRecommendation (Maybe [UtilizationMetric])
-- | An array of objects that describe an Auto Scaling group configuration.
autoScalingGroupRecommendationOption_configuration :: Lens' AutoScalingGroupRecommendationOption (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_migrationEffort :: Lens' AutoScalingGroupRecommendationOption (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_performanceRisk :: Lens' AutoScalingGroupRecommendationOption (Maybe 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 Enabling Memory
-- Utilization with the CloudWatch Agent.
autoScalingGroupRecommendationOption_projectedUtilizationMetrics :: Lens' AutoScalingGroupRecommendationOption (Maybe [UtilizationMetric])
-- | The rank of the Auto Scaling group recommendation option.
--
-- The top recommendation option is ranked as 1.
autoScalingGroupRecommendationOption_rank :: Lens' AutoScalingGroupRecommendationOption (Maybe 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_savingsOpportunity :: Lens' AutoScalingGroupRecommendationOption (Maybe SavingsOpportunity)
-- | The name of the container.
containerConfiguration_containerName :: Lens' ContainerConfiguration (Maybe Text)
-- | The number of CPU units reserved for the container.
containerConfiguration_cpu :: Lens' ContainerConfiguration (Maybe Int)
-- | The memory size configurations for the container.
containerConfiguration_memorySizeConfiguration :: Lens' ContainerConfiguration (Maybe MemorySizeConfiguration)
-- | The name of the container.
containerRecommendation_containerName :: Lens' ContainerRecommendation (Maybe Text)
-- | The recommended number of CPU units reserved for the container.
containerRecommendation_cpu :: Lens' ContainerRecommendation (Maybe Int)
-- | The recommended memory size configurations for the container.
containerRecommendation_memorySizeConfiguration :: Lens' ContainerRecommendation (Maybe MemorySizeConfiguration)
-- | A count of the applicable resource types with a high performance risk
-- rating.
currentPerformanceRiskRatings_high :: Lens' CurrentPerformanceRiskRatings (Maybe Integer)
-- | A count of the applicable resource types with a low performance risk
-- rating.
currentPerformanceRiskRatings_low :: Lens' CurrentPerformanceRiskRatings (Maybe Integer)
-- | A count of the applicable resource types with a medium performance
-- risk rating.
currentPerformanceRiskRatings_medium :: Lens' CurrentPerformanceRiskRatings (Maybe Integer)
-- | A count of the applicable resource types with a very low performance
-- risk rating.
currentPerformanceRiskRatings_veryLow :: Lens' CurrentPerformanceRiskRatings (Maybe Integer)
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, NotOptimized).
eBSFilter_name :: Lens' EBSFilter (Maybe EBSFilterName)
-- | The value of the filter.
--
-- The valid values are Optimized, or NotOptimized.
eBSFilter_values :: Lens' EBSFilter (Maybe [Text])
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - VolumeReadOpsPerSecond - The completed read operations
-- per second from the volume in a specified period of time.Unit:
-- Count
-- - VolumeWriteOpsPerSecond - The completed write operations
-- per second to the volume in a specified period of time.Unit:
-- Count
-- - VolumeReadBytesPerSecond - The bytes read per second from
-- the volume in a specified period of time.Unit: Bytes
-- - VolumeWriteBytesPerSecond - The bytes written to the
-- volume in a specified period of time.Unit: Bytes
--
eBSUtilizationMetric_name :: Lens' EBSUtilizationMetric (Maybe EBSMetricName)
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
eBSUtilizationMetric_statistic :: Lens' EBSUtilizationMetric (Maybe MetricStatistic)
-- | The value of the utilization metric.
eBSUtilizationMetric_value :: Lens' EBSUtilizationMetric (Maybe Double)
-- | The lower bound values for the projected metric.
eCSServiceProjectedMetric_lowerBoundValues :: Lens' ECSServiceProjectedMetric (Maybe [Double])
-- | The name of the projected metric.
--
-- The following metrics are available:
--
--
-- - CPU — The percentage of allocated compute units that are
-- currently in use on the ECS service tasks.
-- - Memory — The percentage of memory that is currently in
-- use on the ECS service tasks.
--
eCSServiceProjectedMetric_name :: Lens' ECSServiceProjectedMetric (Maybe ECSServiceMetricName)
-- | The timestamps of the projected metric.
eCSServiceProjectedMetric_timestamps :: Lens' ECSServiceProjectedMetric (Maybe [UTCTime])
-- | The upper bound values for the projected metric.
eCSServiceProjectedMetric_upperBoundValues :: Lens' ECSServiceProjectedMetric (Maybe [Double])
-- | The lower bound values for the projected utilization metrics.
eCSServiceProjectedUtilizationMetric_lowerBoundValue :: Lens' ECSServiceProjectedUtilizationMetric (Maybe Double)
-- | The name of the projected utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - CPU — The percentage of allocated compute units that are
-- currently in use on the ECS service tasks.
-- - Memory — The percentage of memory that is currently in
-- use on the ECS service tasks.
--
eCSServiceProjectedUtilizationMetric_name :: Lens' ECSServiceProjectedUtilizationMetric (Maybe ECSServiceMetricName)
-- | The statistic of the projected utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
eCSServiceProjectedUtilizationMetric_statistic :: Lens' ECSServiceProjectedUtilizationMetric (Maybe ECSServiceMetricStatistic)
-- | The upper bound values for the projected utilization metrics.
eCSServiceProjectedUtilizationMetric_upperBoundValue :: Lens' ECSServiceProjectedUtilizationMetric (Maybe Double)
-- | The Amazon Web Services account ID of the ECS service.
eCSServiceRecommendation_accountId :: Lens' ECSServiceRecommendation (Maybe Text)
-- | The risk of the current ECS service not meeting the performance needs
-- of its workloads. The higher the risk, the more likely the current
-- service can't meet the performance requirements of its workload.
eCSServiceRecommendation_currentPerformanceRisk :: Lens' ECSServiceRecommendation (Maybe CurrentPerformanceRisk)
-- | The configuration of the current ECS service.
eCSServiceRecommendation_currentServiceConfiguration :: Lens' ECSServiceRecommendation (Maybe ServiceConfiguration)
-- | The finding classification of an ECS service.
--
-- Findings for ECS services include:
--
--
-- - Underprovisioned — When Compute Optimizer detects
-- that there’s not enough memory or CPU, an ECS service is considered
-- under-provisioned. An under-provisioned ECS service might result in
-- poor application performance.
-- - Overprovisioned — When Compute Optimizer detects
-- that there’s excessive memory or CPU, an ECS service is considered
-- over-provisioned. An over-provisioned ECS service might result in
-- additional infrastructure costs.
-- - Optimized — When both the CPU and memory of your
-- ECS service meet the performance requirements of your workload, the
-- service is considered optimized.
--
eCSServiceRecommendation_finding :: Lens' ECSServiceRecommendation (Maybe ECSServiceRecommendationFinding)
-- | The reason for the finding classification of an ECS service.
--
-- Finding reason codes for ECS services include:
--
--
-- - CPUUnderprovisioned — The ECS service CPU
-- configuration can be sized up to enhance the performance of your
-- workload. This is identified by analyzing the CPUUtilization
-- metric of the current service during the look-back period.
-- - CPUOverprovisioned — The ECS service CPU
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- CPUUtilization metric of the current service during the
-- look-back period.
-- - MemoryUnderprovisioned — The ECS service memory
-- configuration can be sized up to enhance the performance of your
-- workload. This is identified by analyzing the
-- MemoryUtilization metric of the current service during the
-- look-back period.
-- - MemoryOverprovisioned — The ECS service memory
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- MemoryUtilization metric of the current service during the
-- look-back period.
--
eCSServiceRecommendation_findingReasonCodes :: Lens' ECSServiceRecommendation (Maybe [ECSServiceRecommendationFindingReasonCode])
-- | The timestamp of when the ECS service recommendation was last
-- generated.
eCSServiceRecommendation_lastRefreshTimestamp :: Lens' ECSServiceRecommendation (Maybe UTCTime)
-- | The launch type the ECS service is using.
--
-- Compute Optimizer only supports the Fargate launch type.
eCSServiceRecommendation_launchType :: Lens' ECSServiceRecommendation (Maybe ECSServiceLaunchType)
-- | The number of days the ECS service utilization metrics were analyzed.
eCSServiceRecommendation_lookbackPeriodInDays :: Lens' ECSServiceRecommendation (Maybe Double)
-- | The Amazon Resource Name (ARN) of the current ECS service.
--
-- The following is the format of the ARN:
--
--
-- arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
--
eCSServiceRecommendation_serviceArn :: Lens' ECSServiceRecommendation (Maybe Text)
-- | An array of objects that describe the recommendation options for the
-- ECS service.
eCSServiceRecommendation_serviceRecommendationOptions :: Lens' ECSServiceRecommendation (Maybe [ECSServiceRecommendationOption])
-- | An array of objects that describe the utilization metrics of the ECS
-- service.
eCSServiceRecommendation_utilizationMetrics :: Lens' ECSServiceRecommendation (Maybe [ECSServiceUtilizationMetric])
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification.
--
-- Specify FindingReasonCode to return recommendations with a
-- specific finding reason code.
eCSServiceRecommendationFilter_name :: Lens' ECSServiceRecommendationFilter (Maybe ECSServiceRecommendationFilterName)
-- | The value of the filter.
--
-- The valid values for this parameter are as follows:
--
--
-- - If you specify the name parameter as Finding,
-- specify Optimized, NotOptimized, or
-- Unavailable.
-- - If you specify the name parameter as
-- FindingReasonCode, specify CPUUnderprovisioned,
-- CPUOverprovisioned, MemoryUnderprovisioned, or
-- MemoryOverprovisioned.
--
eCSServiceRecommendationFilter_values :: Lens' ECSServiceRecommendationFilter (Maybe [Text])
-- | The CPU and memory size recommendations for the containers within the
-- task of your ECS service.
eCSServiceRecommendationOption_containerRecommendations :: Lens' ECSServiceRecommendationOption (Maybe [ContainerRecommendation])
-- | The CPU size of the ECS service recommendation option.
eCSServiceRecommendationOption_cpu :: Lens' ECSServiceRecommendationOption (Maybe Int)
-- | The memory size of the ECS service recommendation option.
eCSServiceRecommendationOption_memory :: Lens' ECSServiceRecommendationOption (Maybe Int)
-- | An array of objects that describe the projected utilization metrics of
-- the ECS service recommendation option.
eCSServiceRecommendationOption_projectedUtilizationMetrics :: Lens' ECSServiceRecommendationOption (Maybe [ECSServiceProjectedUtilizationMetric])
-- | Undocumented member.
eCSServiceRecommendationOption_savingsOpportunity :: Lens' ECSServiceRecommendationOption (Maybe SavingsOpportunity)
-- | An array of objects that describe the projected metric.
eCSServiceRecommendedOptionProjectedMetric_projectedMetrics :: Lens' ECSServiceRecommendedOptionProjectedMetric (Maybe [ECSServiceProjectedMetric])
-- | The recommended CPU size for the ECS service.
eCSServiceRecommendedOptionProjectedMetric_recommendedCpuUnits :: Lens' ECSServiceRecommendedOptionProjectedMetric (Maybe Int)
-- | The recommended memory size for the ECS service.
eCSServiceRecommendedOptionProjectedMetric_recommendedMemorySize :: Lens' ECSServiceRecommendedOptionProjectedMetric (Maybe Int)
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Cpu — The amount of CPU units that are used in the
-- service.
-- - Memory — The amount of memory that is used in the
-- service.
--
eCSServiceUtilizationMetric_name :: Lens' ECSServiceUtilizationMetric (Maybe ECSServiceMetricName)
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
eCSServiceUtilizationMetric_statistic :: Lens' ECSServiceUtilizationMetric (Maybe ECSServiceMetricStatistic)
-- | The value of the utilization metric.
eCSServiceUtilizationMetric_value :: Lens' ECSServiceUtilizationMetric (Maybe Double)
-- | Describes the CPU vendor and architecture for an instance or Auto
-- Scaling group recommendations.
--
-- For example, when you specify AWS_ARM64 with:
--
--
-- - A GetEC2InstanceRecommendations or
-- GetAutoScalingGroupRecommendations request, Compute Optimizer returns
-- recommendations that consist of Graviton2 instance types only.
-- - A GetEC2RecommendationProjectedMetrics request, Compute Optimizer
-- returns projected utilization metrics for Graviton2 instance type
-- recommendations only.
-- - A ExportEC2InstanceRecommendations or
-- ExportAutoScalingGroupRecommendations request, Compute Optimizer
-- exports recommendations that consist of Graviton2 instance types
-- only.
--
effectiveRecommendationPreferences_cpuVendorArchitectures :: Lens' EffectiveRecommendationPreferences (Maybe [CpuVendorArchitecture])
-- | Describes the activation status of the enhanced infrastructure metrics
-- preference.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh, and a status of Inactive
-- confirms that it's not yet applied to recommendations.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
effectiveRecommendationPreferences_enhancedInfrastructureMetrics :: Lens' EffectiveRecommendationPreferences (Maybe EnhancedInfrastructureMetrics)
-- | An object that describes the external metrics recommendation
-- preference.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
effectiveRecommendationPreferences_externalMetricsPreference :: Lens' EffectiveRecommendationPreferences (Maybe ExternalMetricsPreference)
-- | Describes the activation status of the inferred workload types
-- preference.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh. A status of Inactive
-- confirms that it's not yet applied to recommendations.
effectiveRecommendationPreferences_inferredWorkloadTypes :: Lens' EffectiveRecommendationPreferences (Maybe InferredWorkloadTypesPreference)
-- | The name of the filter.
--
-- Specify Status to return accounts with a specific enrollment
-- status (for example, Active).
enrollmentFilter_name :: Lens' EnrollmentFilter (Maybe EnrollmentFilterName)
-- | The value of the filter.
--
-- The valid values are Active, Inactive,
-- Pending, and Failed.
enrollmentFilter_values :: Lens' EnrollmentFilter (Maybe [Text])
-- | The currency of the estimated monthly savings.
estimatedMonthlySavings_currency :: Lens' EstimatedMonthlySavings (Maybe Currency)
-- | The value of the estimated monthly savings.
estimatedMonthlySavings_value :: Lens' EstimatedMonthlySavings (Maybe Double)
-- | An object that describes the destination Amazon Simple Storage Service
-- (Amazon S3) bucket name and object keys of a recommendations export
-- file, and its associated metadata file.
exportDestination_s3 :: Lens' ExportDestination (Maybe S3Destination)
-- | Contains the source options for external metrics preferences.
externalMetricsPreference_source :: Lens' ExternalMetricsPreference (Maybe ExternalMetricsSource)
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, Underprovisioned).
--
-- Specify RecommendationSourceType to return recommendations of
-- a specific resource type (for example, Ec2Instance).
--
-- Specify FindingReasonCodes to return recommendations with a
-- specific finding reason code (for example,
-- CPUUnderprovisioned).
filter_name :: Lens' Filter (Maybe FilterName)
-- | The value of the filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter and the resource type that
-- you wish to filter results for:
--
--
-- - Specify Optimized or NotOptimized if you specify
-- the name parameter as Finding and you want to filter
-- results for Auto Scaling groups.
-- - Specify Underprovisioned, Overprovisioned, or
-- Optimized if you specify the name parameter as
-- Finding and you want to filter results for EC2
-- instances.
-- - Specify Ec2Instance or AutoScalingGroup if you
-- specify the name parameter as
-- RecommendationSourceType.
-- - Specify one of the following options if you specify the
-- name parameter as
-- FindingReasonCodes:
- CPUOverprovisioned
-- — The instance’s CPU configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- CPUUnderprovisioned — The instance’s
-- CPU configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better CPU performance.
- MemoryOverprovisioned
-- — The instance’s memory configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- MemoryUnderprovisioned — The
-- instance’s memory configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better memory
-- performance.
- EBSThroughputOverprovisioned —
-- The instance’s EBS throughput configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- EBSThroughputUnderprovisioned — The
-- instance’s EBS throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better EBS throughput
-- performance.
- EBSIOPSOverprovisioned — The
-- instance’s EBS IOPS configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- EBSIOPSUnderprovisioned — The
-- instance’s EBS IOPS configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better EBS IOPS
-- performance.
- NetworkBandwidthOverprovisioned —
-- The instance’s network bandwidth configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- NetworkBandwidthUnderprovisioned —
-- The instance’s network bandwidth configuration doesn't meet the
-- performance requirements of your workload and there is an alternative
-- instance type that provides better network bandwidth performance. This
-- finding reason happens when the NetworkIn or
-- NetworkOut performance of an instance is
-- impacted.
- NetworkPPSOverprovisioned — The
-- instance’s network PPS (packets per second) configuration can be sized
-- down while still meeting the performance requirements of your
-- workload.
- NetworkPPSUnderprovisioned — The
-- instance’s network PPS (packets per second) configuration doesn't meet
-- the performance requirements of your workload and there is an
-- alternative instance type that provides better network PPS
-- performance.
- DiskIOPSOverprovisioned — The
-- instance’s disk IOPS configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- DiskIOPSUnderprovisioned — The
-- instance’s disk IOPS configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk IOPS
-- performance.
- DiskThroughputOverprovisioned —
-- The instance’s disk throughput configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- DiskThroughputUnderprovisioned — The
-- instance’s disk throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk throughput performance.
--
filter_values :: Lens' Filter (Maybe [Text])
-- | The error code.
getRecommendationError_code :: Lens' GetRecommendationError (Maybe Text)
-- | The ID of the error.
getRecommendationError_identifier :: Lens' GetRecommendationError (Maybe Text)
-- | The message, or reason, for the error.
getRecommendationError_message :: Lens' GetRecommendationError (Maybe Text)
-- | The Amazon Web Services account ID of the instance.
instanceRecommendation_accountId :: Lens' InstanceRecommendation (Maybe Text)
-- | The instance type of the current instance.
instanceRecommendation_currentInstanceType :: Lens' InstanceRecommendation (Maybe Text)
-- | The risk of the current instance not meeting the performance needs of
-- its workloads. The higher the risk, the more likely the current
-- instance cannot meet the performance requirements of its workload.
instanceRecommendation_currentPerformanceRisk :: Lens' InstanceRecommendation (Maybe CurrentPerformanceRisk)
-- | An object that describes the effective recommendation preferences for
-- the instance.
instanceRecommendation_effectiveRecommendationPreferences :: Lens' InstanceRecommendation (Maybe EffectiveRecommendationPreferences)
-- | The finding classification of the instance.
--
-- Findings for instances include:
--
--
-- - Underprovisioned —An instance is considered
-- under-provisioned when at least one specification of your instance,
-- such as CPU, memory, or network, does not meet the performance
-- requirements of your workload. Under-provisioned instances may lead to
-- poor application performance.
-- - Overprovisioned —An instance is considered
-- over-provisioned when at least one specification of your instance,
-- such as CPU, memory, or network, can be sized down while still meeting
-- the performance requirements of your workload, and no specification is
-- under-provisioned. Over-provisioned instances may lead to unnecessary
-- infrastructure cost.
-- - Optimized —An instance is considered optimized
-- when all specifications of your instance, such as CPU, memory, and
-- network, meet the performance requirements of your workload and is not
-- over provisioned. For optimized resources, Compute Optimizer might
-- recommend a new generation instance type.
--
instanceRecommendation_finding :: Lens' InstanceRecommendation (Maybe Finding)
-- | The reason for the finding classification of the instance.
--
-- Finding reason codes for instances include:
--
--
-- - CPUOverprovisioned — The instance’s CPU
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- CPUUtilization metric of the current instance during the
-- look-back period.
-- - CPUUnderprovisioned — The instance’s CPU
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better CPU performance. This is identified by analyzing the
-- CPUUtilization metric of the current instance during the
-- look-back period.
-- - MemoryOverprovisioned — The instance’s memory
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- memory utilization metric of the current instance during the look-back
-- period.
-- - MemoryUnderprovisioned — The instance’s memory
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better memory performance. This is identified by analyzing the memory
-- utilization metric of the current instance during the look-back
-- period.Memory utilization is analyzed only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling memory utilization with the Amazon CloudWatch Agent in
-- the Compute Optimizer User Guide. On Linux instances, Compute
-- Optimizer analyses the mem_used_percent metric in the
-- CWAgent namespace, or the legacy MemoryUtilization
-- metric in the System/Linux namespace. On Windows instances,
-- Compute Optimizer analyses the Memory % Committed Bytes In
-- Use metric in the CWAgent namespace.
-- - EBSThroughputOverprovisioned — The instance’s EBS
-- throughput configuration can be sized down while still meeting the
-- performance requirements of your workload. This is identified by
-- analyzing the VolumeReadOps and VolumeWriteOps
-- metrics of EBS volumes attached to the current instance during the
-- look-back period.
-- - EBSThroughputUnderprovisioned — The instance’s EBS
-- throughput configuration doesn't meet the performance requirements of
-- your workload and there is an alternative instance type that provides
-- better EBS throughput performance. This is identified by analyzing the
-- VolumeReadOps and VolumeWriteOps metrics of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - EBSIOPSOverprovisioned — The instance’s EBS IOPS
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- VolumeReadBytes and VolumeWriteBytes metric of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - EBSIOPSUnderprovisioned — The instance’s EBS IOPS
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better EBS IOPS performance. This is identified by analyzing the
-- VolumeReadBytes and VolumeWriteBytes metric of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - NetworkBandwidthOverprovisioned — The instance’s
-- network bandwidth configuration can be sized down while still meeting
-- the performance requirements of your workload. This is identified by
-- analyzing the NetworkIn and NetworkOut metrics of
-- the current instance during the look-back period.
-- - NetworkBandwidthUnderprovisioned — The instance’s
-- network bandwidth configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better network bandwidth performance. This is
-- identified by analyzing the NetworkIn and NetworkOut
-- metrics of the current instance during the look-back period. This
-- finding reason happens when the NetworkIn or
-- NetworkOut performance of an instance is impacted.
-- - NetworkPPSOverprovisioned — The instance’s network
-- PPS (packets per second) configuration can be sized down while still
-- meeting the performance requirements of your workload. This is
-- identified by analyzing the NetworkPacketsIn and
-- NetworkPacketsIn metrics of the current instance during the
-- look-back period.
-- - NetworkPPSUnderprovisioned — The instance’s
-- network PPS (packets per second) configuration doesn't meet the
-- performance requirements of your workload and there is an alternative
-- instance type that provides better network PPS performance. This is
-- identified by analyzing the NetworkPacketsIn and
-- NetworkPacketsIn metrics of the current instance during the
-- look-back period.
-- - DiskIOPSOverprovisioned — The instance’s disk IOPS
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- DiskReadOps and DiskWriteOps metrics of the current
-- instance during the look-back period.
-- - DiskIOPSUnderprovisioned — The instance’s disk
-- IOPS configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better disk IOPS performance. This is identified by analyzing the
-- DiskReadOps and DiskWriteOps metrics of the current
-- instance during the look-back period.
-- - DiskThroughputOverprovisioned — The instance’s
-- disk throughput configuration can be sized down while still meeting
-- the performance requirements of your workload. This is identified by
-- analyzing the DiskReadBytes and DiskWriteBytes
-- metrics of the current instance during the look-back period.
-- - DiskThroughputUnderprovisioned — The instance’s
-- disk throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk throughput performance. This is
-- identified by analyzing the DiskReadBytes and
-- DiskWriteBytes metrics of the current instance during the
-- look-back period.
--
--
-- For more information about instance metrics, see List the available
-- CloudWatch metrics for your instances in the Amazon Elastic
-- Compute Cloud User Guide. For more information about EBS volume
-- metrics, see Amazon CloudWatch metrics for Amazon EBS in the
-- Amazon Elastic Compute Cloud User Guide.
instanceRecommendation_findingReasonCodes :: Lens' InstanceRecommendation (Maybe [InstanceRecommendationFindingReasonCode])
-- | The applications that might be running on the instance as inferred by
-- Compute Optimizer.
--
-- Compute Optimizer can infer if one of the following applications might
-- be running on the instance:
--
--
-- - AmazonEmr - Infers that Amazon EMR might be running on
-- the instance.
-- - ApacheCassandra - Infers that Apache Cassandra might be
-- running on the instance.
-- - ApacheHadoop - Infers that Apache Hadoop might be running
-- on the instance.
-- - Memcached - Infers that Memcached might be running on the
-- instance.
-- - NGINX - Infers that NGINX might be running on the
-- instance.
-- - PostgreSql - Infers that PostgreSQL might be running on
-- the instance.
-- - Redis - Infers that Redis might be running on the
-- instance.
--
instanceRecommendation_inferredWorkloadTypes :: Lens' InstanceRecommendation (Maybe [InferredWorkloadType])
-- | The Amazon Resource Name (ARN) of the current instance.
instanceRecommendation_instanceArn :: Lens' InstanceRecommendation (Maybe Text)
-- | The name of the current instance.
instanceRecommendation_instanceName :: Lens' InstanceRecommendation (Maybe Text)
-- | The timestamp of when the instance recommendation was last generated.
instanceRecommendation_lastRefreshTimestamp :: Lens' InstanceRecommendation (Maybe UTCTime)
-- | The number of days for which utilization metrics were analyzed for the
-- instance.
instanceRecommendation_lookBackPeriodInDays :: Lens' InstanceRecommendation (Maybe Double)
-- | An array of objects that describe the recommendation options for the
-- instance.
instanceRecommendation_recommendationOptions :: Lens' InstanceRecommendation (Maybe [InstanceRecommendationOption])
-- | An array of objects that describe the source resource of the
-- recommendation.
instanceRecommendation_recommendationSources :: Lens' InstanceRecommendation (Maybe [RecommendationSource])
-- | An array of objects that describe the utilization metrics of the
-- instance.
instanceRecommendation_utilizationMetrics :: Lens' InstanceRecommendation (Maybe [UtilizationMetric])
-- | The instance type of the instance recommendation.
instanceRecommendationOption_instanceType :: Lens' InstanceRecommendationOption (Maybe Text)
-- | 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.
instanceRecommendationOption_migrationEffort :: Lens' InstanceRecommendationOption (Maybe MigrationEffort)
-- | The performance risk of the instance recommendation option.
--
-- 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.
instanceRecommendationOption_performanceRisk :: Lens' InstanceRecommendationOption (Maybe Double)
-- | Describes the configuration differences between the current instance
-- and the recommended instance type. You should consider the
-- configuration differences before migrating your workloads from the
-- current instance to the recommended instance type. The Change the
-- instance type guide for Linux and Change the instance type
-- guide for Windows provide general guidance for getting started
-- with an instance migration.
--
-- Platform differences include:
--
--
-- - Hypervisor — The hypervisor of the recommended
-- instance type is different than that of the current instance. For
-- example, the recommended instance type uses a Nitro hypervisor and the
-- current instance uses a Xen hypervisor. The differences that you
-- should consider between these hypervisors are covered in the Nitro
-- Hypervisor section of the Amazon EC2 frequently asked questions.
-- For more information, see Instances built on the Nitro System
-- in the Amazon EC2 User Guide for Linux, or Instances built
-- on the Nitro System in the Amazon EC2 User Guide for
-- Windows.
-- - NetworkInterface — The network interface of the
-- recommended instance type is different than that of the current
-- instance. For example, the recommended instance type supports enhanced
-- networking and the current instance might not. To enable enhanced
-- networking for the recommended instance type, you must install the
-- Elastic Network Adapter (ENA) driver or the Intel 82599 Virtual
-- Function driver. For more information, see Networking and storage
-- features and Enhanced networking on Linux in the Amazon
-- EC2 User Guide for Linux, or Networking and storage
-- features and Enhanced networking on Windows in the
-- Amazon EC2 User Guide for Windows.
-- - StorageInterface — The storage interface of the
-- recommended instance type is different than that of the current
-- instance. For example, the recommended instance type uses an NVMe
-- storage interface and the current instance does not. To access NVMe
-- volumes for the recommended instance type, you will need to install or
-- upgrade the NVMe driver. For more information, see Networking and
-- storage features and Amazon EBS and NVMe on Linux instances
-- in the Amazon EC2 User Guide for Linux, or Networking and
-- storage features and Amazon EBS and NVMe on Windows
-- instances in the Amazon EC2 User Guide for Windows.
-- - InstanceStoreAvailability — The recommended
-- instance type does not support instance store volumes and the current
-- instance does. Before migrating, you might need to back up the data on
-- your instance store volumes if you want to preserve them. For more
-- information, see How do I back up an instance store volume on my
-- Amazon EC2 instance to Amazon EBS? in the Amazon Web Services
-- Premium Support Knowledge Base. For more information, see
-- Networking and storage features and Amazon EC2 instance
-- store in the Amazon EC2 User Guide for Linux, or see
-- Networking and storage features and Amazon EC2 instance
-- store in the Amazon EC2 User Guide for Windows.
-- - VirtualizationType — The recommended instance type
-- uses the hardware virtual machine (HVM) virtualization type and the
-- current instance uses the paravirtual (PV) virtualization type. For
-- more information about the differences between these virtualization
-- types, see Linux AMI virtualization types in the Amazon EC2
-- User Guide for Linux, or Windows AMI virtualization types
-- in the Amazon EC2 User Guide for Windows.
-- - Architecture — The CPU architecture between the
-- recommended instance type and the current instance is different. For
-- example, the recommended instance type might use an Arm CPU
-- architecture and the current instance type might use a different one,
-- such as x86. Before migrating, you should consider recompiling the
-- software on your instance for the new architecture. Alternatively, you
-- might switch to an Amazon Machine Image (AMI) that supports the new
-- architecture. For more information about the CPU architecture for each
-- instance type, see Amazon EC2 Instance Types.
--
instanceRecommendationOption_platformDifferences :: Lens' InstanceRecommendationOption (Maybe [PlatformDifference])
-- | An array of objects that describe the projected utilization metrics of
-- the instance 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 Enabling Memory
-- Utilization with the CloudWatch Agent.
instanceRecommendationOption_projectedUtilizationMetrics :: Lens' InstanceRecommendationOption (Maybe [UtilizationMetric])
-- | The rank of the instance recommendation option.
--
-- The top recommendation option is ranked as 1.
instanceRecommendationOption_rank :: Lens' InstanceRecommendationOption (Maybe Int)
-- | An object that describes the savings opportunity for the instance
-- recommendation option. Savings opportunity includes the estimated
-- monthly savings amount and percentage.
instanceRecommendationOption_savingsOpportunity :: Lens' InstanceRecommendationOption (Maybe SavingsOpportunity)
-- | The name of the filter.
--
-- Specify ResourceType to return export jobs of a specific
-- resource type (for example, Ec2Instance).
--
-- Specify JobStatus to return export jobs with a specific
-- status (e.g, Complete).
jobFilter_name :: Lens' JobFilter (Maybe JobFilterName)
-- | The value of the filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter:
--
--
-- - Specify Ec2Instance or AutoScalingGroup if you
-- specify the name parameter as ResourceType. There is
-- no filter for EBS volumes because volume recommendations cannot be
-- exported at this time.
-- - Specify Queued, InProgress, Complete,
-- or Failed if you specify the name parameter as
-- JobStatus.
--
jobFilter_values :: Lens' JobFilter (Maybe [Text])
-- | The name of the projected utilization metric.
lambdaFunctionMemoryProjectedMetric_name :: Lens' LambdaFunctionMemoryProjectedMetric (Maybe LambdaFunctionMemoryMetricName)
-- | The statistic of the projected utilization metric.
lambdaFunctionMemoryProjectedMetric_statistic :: Lens' LambdaFunctionMemoryProjectedMetric (Maybe LambdaFunctionMemoryMetricStatistic)
-- | The values of the projected utilization metrics.
lambdaFunctionMemoryProjectedMetric_value :: Lens' LambdaFunctionMemoryProjectedMetric (Maybe Double)
-- | The memory size, in MB, of the function recommendation option.
lambdaFunctionMemoryRecommendationOption_memorySize :: Lens' LambdaFunctionMemoryRecommendationOption (Maybe Int)
-- | An array of objects that describe the projected utilization metrics of
-- the function recommendation option.
lambdaFunctionMemoryRecommendationOption_projectedUtilizationMetrics :: Lens' LambdaFunctionMemoryRecommendationOption (Maybe [LambdaFunctionMemoryProjectedMetric])
-- | The rank of the function recommendation option.
--
-- The top recommendation option is ranked as 1.
lambdaFunctionMemoryRecommendationOption_rank :: Lens' LambdaFunctionMemoryRecommendationOption (Maybe Int)
-- | An object that describes the savings opportunity for the Lambda
-- function recommendation option. Savings opportunity includes the
-- estimated monthly savings amount and percentage.
lambdaFunctionMemoryRecommendationOption_savingsOpportunity :: Lens' LambdaFunctionMemoryRecommendationOption (Maybe SavingsOpportunity)
-- | The Amazon Web Services account ID of the function.
lambdaFunctionRecommendation_accountId :: Lens' LambdaFunctionRecommendation (Maybe Text)
-- | The amount of memory, in MB, that's allocated to the current function.
lambdaFunctionRecommendation_currentMemorySize :: Lens' LambdaFunctionRecommendation (Maybe Int)
-- | The risk of the current Lambda function not meeting the performance
-- needs of its workloads. The higher the risk, the more likely the
-- current Lambda function requires more memory.
lambdaFunctionRecommendation_currentPerformanceRisk :: Lens' LambdaFunctionRecommendation (Maybe CurrentPerformanceRisk)
-- | The finding classification of the function.
--
-- Findings for functions include:
--
--
-- - Optimized — The function is correctly provisioned
-- to run your workload based on its current configuration and its
-- utilization history. This finding classification does not include
-- finding reason codes.
-- - NotOptimized — The function is performing at a
-- higher level (over-provisioned) or at a lower level
-- (under-provisioned) than required for your workload because its
-- current configuration is not optimal. Over-provisioned resources might
-- lead to unnecessary infrastructure cost, and under-provisioned
-- resources might lead to poor application performance. This finding
-- classification can include the MemoryUnderprovisioned and
-- MemoryUnderprovisioned finding reason codes.
-- - Unavailable — Compute Optimizer was unable to
-- generate a recommendation for the function. This could be because the
-- function has not accumulated sufficient metric data, or the function
-- does not qualify for a recommendation. This finding classification can
-- include the InsufficientData and Inconclusive
-- finding reason codes.Functions with a finding of unavailable are not
-- returned unless you specify the filter parameter with a value
-- of Unavailable in your
-- GetLambdaFunctionRecommendations request.
--
lambdaFunctionRecommendation_finding :: Lens' LambdaFunctionRecommendation (Maybe LambdaFunctionRecommendationFinding)
-- | The reason for the finding classification of the function.
--
-- Functions that have a finding classification of Optimized
-- don't have a finding reason code.
--
-- Finding reason codes for functions include:
--
--
-- - MemoryOverprovisioned — The function is
-- over-provisioned when its memory configuration can be sized down while
-- still meeting the performance requirements of your workload. An
-- over-provisioned function might lead to unnecessary infrastructure
-- cost. This finding reason code is part of the NotOptimized
-- finding classification.
-- - MemoryUnderprovisioned — The function is
-- under-provisioned when its memory configuration doesn't meet the
-- performance requirements of the workload. An under-provisioned
-- function might lead to poor application performance. This finding
-- reason code is part of the NotOptimized finding
-- classification.
-- - InsufficientData — The function does not have
-- sufficient metric data for Compute Optimizer to generate a
-- recommendation. For more information, see the Supported resources
-- and requirements in the Compute Optimizer User Guide. This
-- finding reason code is part of the Unavailable finding
-- classification.
-- - Inconclusive — The function does not qualify for a
-- recommendation because Compute Optimizer cannot generate a
-- recommendation with a high degree of confidence. This finding reason
-- code is part of the Unavailable finding classification.
--
lambdaFunctionRecommendation_findingReasonCodes :: Lens' LambdaFunctionRecommendation (Maybe [LambdaFunctionRecommendationFindingReasonCode])
-- | The Amazon Resource Name (ARN) of the current function.
lambdaFunctionRecommendation_functionArn :: Lens' LambdaFunctionRecommendation (Maybe Text)
-- | The version number of the current function.
lambdaFunctionRecommendation_functionVersion :: Lens' LambdaFunctionRecommendation (Maybe Text)
-- | The timestamp of when the function recommendation was last generated.
lambdaFunctionRecommendation_lastRefreshTimestamp :: Lens' LambdaFunctionRecommendation (Maybe UTCTime)
-- | The number of days for which utilization metrics were analyzed for the
-- function.
lambdaFunctionRecommendation_lookbackPeriodInDays :: Lens' LambdaFunctionRecommendation (Maybe Double)
-- | An array of objects that describe the memory configuration
-- recommendation options for the function.
lambdaFunctionRecommendation_memorySizeRecommendationOptions :: Lens' LambdaFunctionRecommendation (Maybe [LambdaFunctionMemoryRecommendationOption])
-- | The number of times your function code was applied during the
-- look-back period.
lambdaFunctionRecommendation_numberOfInvocations :: Lens' LambdaFunctionRecommendation (Maybe Integer)
-- | An array of objects that describe the utilization metrics of the
-- function.
lambdaFunctionRecommendation_utilizationMetrics :: Lens' LambdaFunctionRecommendation (Maybe [LambdaFunctionUtilizationMetric])
-- | The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, NotOptimized).
--
-- Specify FindingReasonCode to return recommendations with a
-- specific finding reason code (for example,
-- MemoryUnderprovisioned).
lambdaFunctionRecommendationFilter_name :: Lens' LambdaFunctionRecommendationFilter (Maybe LambdaFunctionRecommendationFilterName)
-- | The value of the filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter:
--
--
-- - Specify Optimized, NotOptimized, or
-- Unavailable if you specify the name parameter as
-- Finding.
-- - Specify MemoryOverprovisioned,
-- MemoryUnderprovisioned, InsufficientData, or
-- Inconclusive if you specify the name parameter as
-- FindingReasonCode.
--
lambdaFunctionRecommendationFilter_values :: Lens' LambdaFunctionRecommendationFilter (Maybe [Text])
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Duration - The amount of time that your function code
-- spends processing an event.
-- - Memory - The amount of memory used per invocation.
--
lambdaFunctionUtilizationMetric_name :: Lens' LambdaFunctionUtilizationMetric (Maybe LambdaFunctionMetricName)
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
lambdaFunctionUtilizationMetric_statistic :: Lens' LambdaFunctionUtilizationMetric (Maybe LambdaFunctionMetricStatistic)
-- | The value of the utilization metric.
lambdaFunctionUtilizationMetric_value :: Lens' LambdaFunctionUtilizationMetric (Maybe Double)
-- | The amount of memory in the container.
memorySizeConfiguration_memory :: Lens' MemorySizeConfiguration (Maybe Int)
-- | The limit of memory reserve for the container.
memorySizeConfiguration_memoryReservation :: Lens' MemorySizeConfiguration (Maybe Int)
-- | The name of the projected utilization metric.
--
-- The following projected utilization metrics are returned:
--
--
-- - Cpu - The projected percentage of allocated EC2 compute
-- units that would be in use on the recommendation option had you used
-- that resource during the analyzed period. This metric identifies the
-- processing power required to run an application on the recommendation
-- option.Depending on the instance type, tools in your operating system
-- can show a lower percentage than CloudWatch when the instance is not
-- allocated a full processor core.Units: Percent
-- - Memory - The percentage of memory that would be in use on
-- the recommendation option had you used that resource during the
-- analyzed period. This metric identifies the amount of memory required
-- to run an application on the recommendation option.Units: PercentThe
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
--
projectedMetric_name :: Lens' ProjectedMetric (Maybe MetricName)
-- | The timestamps of the projected utilization metric.
projectedMetric_timestamps :: Lens' ProjectedMetric (Maybe [UTCTime])
-- | The values of the projected utilization metrics.
projectedMetric_values :: Lens' ProjectedMetric (Maybe [Double])
-- | The name of the finding reason code.
reasonCodeSummary_name :: Lens' ReasonCodeSummary (Maybe FindingReasonCode)
-- | The value of the finding reason code summary.
reasonCodeSummary_value :: Lens' ReasonCodeSummary (Maybe Double)
-- | The timestamp of when the export job was created.
recommendationExportJob_creationTimestamp :: Lens' RecommendationExportJob (Maybe UTCTime)
-- | An object that describes the destination of the export file.
recommendationExportJob_destination :: Lens' RecommendationExportJob (Maybe ExportDestination)
-- | The reason for an export job failure.
recommendationExportJob_failureReason :: Lens' RecommendationExportJob (Maybe Text)
-- | The identification number of the export job.
recommendationExportJob_jobId :: Lens' RecommendationExportJob (Maybe Text)
-- | The timestamp of when the export job was last updated.
recommendationExportJob_lastUpdatedTimestamp :: Lens' RecommendationExportJob (Maybe UTCTime)
-- | The resource type of the exported recommendations.
recommendationExportJob_resourceType :: Lens' RecommendationExportJob (Maybe ResourceType)
-- | The status of the export job.
recommendationExportJob_status :: Lens' RecommendationExportJob (Maybe JobStatus)
-- | Specifies the CPU vendor and architecture for Amazon EC2 instance and
-- Auto Scaling group recommendations.
--
-- For example, when you specify AWS_ARM64 with:
--
--
-- - A GetEC2InstanceRecommendations or
-- GetAutoScalingGroupRecommendations request, Compute Optimizer returns
-- recommendations that consist of Graviton2 instance types only.
-- - A GetEC2RecommendationProjectedMetrics request, Compute Optimizer
-- returns projected utilization metrics for Graviton2 instance type
-- recommendations only.
-- - A ExportEC2InstanceRecommendations or
-- ExportAutoScalingGroupRecommendations request, Compute Optimizer
-- exports recommendations that consist of Graviton2 instance types
-- only.
--
recommendationPreferences_cpuVendorArchitectures :: Lens' RecommendationPreferences (Maybe [CpuVendorArchitecture])
-- | The status of the enhanced infrastructure metrics recommendation
-- preference.
--
-- When the recommendations page is refreshed, a status of
-- Active confirms that the preference is applied to the
-- recommendations, and a status of Inactive confirms that the
-- preference isn't yet applied to recommendations.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
recommendationPreferencesDetail_enhancedInfrastructureMetrics :: Lens' RecommendationPreferencesDetail (Maybe EnhancedInfrastructureMetrics)
-- | An object that describes the external metrics recommendation
-- preference.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
recommendationPreferencesDetail_externalMetricsPreference :: Lens' RecommendationPreferencesDetail (Maybe ExternalMetricsPreference)
-- | The status of the inferred workload types recommendation preference.
--
-- When the recommendations page is refreshed, a status of
-- Active confirms that the preference is applied to the
-- recommendations, and a status of Inactive confirms that the
-- preference isn't yet applied to recommendations.
recommendationPreferencesDetail_inferredWorkloadTypes :: Lens' RecommendationPreferencesDetail (Maybe InferredWorkloadTypesPreference)
-- | The target resource type of the recommendation preference to create.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
recommendationPreferencesDetail_resourceType :: Lens' RecommendationPreferencesDetail (Maybe ResourceType)
-- | An object that describes the scope of the recommendation preference.
--
-- Recommendation preferences can be created at the organization level
-- (for management accounts of an organization only), account level, and
-- resource level. For more information, see Activating enhanced
-- infrastructure metrics in the Compute Optimizer User Guide.
recommendationPreferencesDetail_scope :: Lens' RecommendationPreferencesDetail (Maybe Scope)
-- | The Amazon Resource Name (ARN) of the recommendation source.
recommendationSource_recommendationSourceArn :: Lens' RecommendationSource (Maybe Text)
-- | The resource type of the recommendation source.
recommendationSource_recommendationSourceType :: Lens' RecommendationSource (Maybe RecommendationSourceType)
-- | The Amazon Web Services account ID of the recommendation summary.
recommendationSummary_accountId :: Lens' RecommendationSummary (Maybe Text)
-- | An object that describes the performance risk ratings for a given
-- resource type.
recommendationSummary_currentPerformanceRiskRatings :: Lens' RecommendationSummary (Maybe CurrentPerformanceRiskRatings)
-- | The resource type that the recommendation summary applies to.
recommendationSummary_recommendationResourceType :: Lens' RecommendationSummary (Maybe RecommendationSourceType)
-- | An object that describes the savings opportunity for a given resource
-- type. Savings opportunity includes the estimated monthly savings
-- amount and percentage.
recommendationSummary_savingsOpportunity :: Lens' RecommendationSummary (Maybe SavingsOpportunity)
-- | An array of objects that describe a recommendation summary.
recommendationSummary_summaries :: Lens' RecommendationSummary (Maybe [Summary])
-- | An array of objects that describe a projected utilization metric.
recommendedOptionProjectedMetric_projectedMetrics :: Lens' RecommendedOptionProjectedMetric (Maybe [ProjectedMetric])
-- | The rank of the recommendation option projected metric.
--
-- The top recommendation option is ranked as 1.
--
-- The projected metric rank correlates to the recommendation option
-- rank. For example, the projected metric ranked as 1 is
-- related to the recommendation option that is also ranked as 1
-- in the same response.
recommendedOptionProjectedMetric_rank :: Lens' RecommendedOptionProjectedMetric (Maybe Int)
-- | The recommended instance type.
recommendedOptionProjectedMetric_recommendedInstanceType :: Lens' RecommendedOptionProjectedMetric (Maybe Text)
-- | The name of the Amazon S3 bucket used as the destination of an export
-- file.
s3Destination_bucket :: Lens' S3Destination (Maybe Text)
-- | The Amazon S3 bucket key of an export file.
--
-- The key uniquely identifies the object, or export file, in the S3
-- bucket.
s3Destination_key :: Lens' S3Destination (Maybe Text)
-- | The Amazon S3 bucket key of a metadata file.
--
-- The key uniquely identifies the object, or metadata file, in the S3
-- bucket.
s3Destination_metadataKey :: Lens' S3Destination (Maybe Text)
-- | The name of the Amazon S3 bucket to use as the destination for an
-- export job.
s3DestinationConfig_bucket :: Lens' S3DestinationConfig (Maybe Text)
-- | The Amazon S3 bucket prefix for an export job.
s3DestinationConfig_keyPrefix :: Lens' S3DestinationConfig (Maybe Text)
-- | An object that describes the estimated monthly savings amount
-- possible, based on On-Demand instance pricing, by adopting Compute
-- Optimizer recommendations for a given resource.
savingsOpportunity_estimatedMonthlySavings :: Lens' SavingsOpportunity (Maybe EstimatedMonthlySavings)
-- | The estimated monthly savings possible as a percentage of monthly cost
-- by adopting Compute Optimizer recommendations for a given resource.
savingsOpportunity_savingsOpportunityPercentage :: Lens' SavingsOpportunity (Maybe Double)
-- | The name of the scope.
--
-- The following scopes are possible:
--
--
-- - Organization - Specifies that the recommendation
-- preference applies at the organization level, for all member accounts
-- of an organization.
-- - AccountId - Specifies that the recommendation preference
-- applies at the account level, for all resources of a given resource
-- type in an account.
-- - ResourceArn - Specifies that the recommendation
-- preference applies at the individual resource level.
--
scope_name :: Lens' Scope (Maybe ScopeName)
-- | The value of the scope.
--
-- If you specified the name of the scope as:
--
--
-- - Organization - The value must be
-- ALL_ACCOUNTS.
-- - AccountId - The value must be a 12-digit Amazon
-- Web Services account ID.
-- - ResourceArn - The value must be the Amazon
-- Resource Name (ARN) of an EC2 instance or an Auto Scaling group.
--
--
-- Only EC2 instance and Auto Scaling group ARNs are currently supported.
scope_value :: Lens' Scope (Maybe Text)
-- | Describes the Auto Scaling configuration methods for an Amazon ECS
-- service. This affects the generated recommendations. For example, if
-- Auto Scaling is configured on a ECS service’s CPU, then Compute
-- Optimizer doesn’t generate CPU size recommendations.
--
-- The Auto Scaling configuration methods include:
--
--
-- - TARGET_TRACKING_SCALING_CPU — If the ECS service is
-- configured to use target scaling on CPU, Compute Optimizer doesn't
-- generate CPU recommendations.
-- - TARGET_TRACKING_SCALING_MEMORY — If the ECS service is
-- configured to use target scaling on memory, Compute Optimizer doesn't
-- generate memory recommendations.
--
--
-- For more information about step scaling and target scaling, see
-- Step scaling policies for Application Auto Scaling and
-- Target tracking scaling policies for Application Auto Scaling
-- in the Application Auto Scaling User Guide.
serviceConfiguration_autoScalingConfiguration :: Lens' ServiceConfiguration (Maybe AutoScalingConfiguration)
-- | The container configurations within a task of an ECS service.
serviceConfiguration_containerConfigurations :: Lens' ServiceConfiguration (Maybe [ContainerConfiguration])
-- | The number of CPU units used by the tasks in the ECS service.
serviceConfiguration_cpu :: Lens' ServiceConfiguration (Maybe Int)
-- | The amount of memory used by the tasks in the ECS service.
serviceConfiguration_memory :: Lens' ServiceConfiguration (Maybe Int)
-- | The task definition ARN used by the tasks in the ECS service.
serviceConfiguration_taskDefinitionArn :: Lens' ServiceConfiguration (Maybe Text)
-- | The finding classification of the recommendation.
summary_name :: Lens' Summary (Maybe Finding)
-- | An array of objects that summarize a finding reason code.
summary_reasonCodeSummaries :: Lens' Summary (Maybe [ReasonCodeSummary])
-- | The value of the recommendation summary.
summary_value :: Lens' Summary (Maybe Double)
-- | The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Cpu - The percentage of allocated EC2 compute units that
-- are currently in use on the instance. This metric identifies the
-- processing power required to run an application on the
-- instance.Depending on the instance type, tools in your operating
-- system can show a lower percentage than CloudWatch when the instance
-- is not allocated a full processor core.Units: Percent
-- - Memory - The percentage of memory that is currently in
-- use on the instance. This metric identifies the amount of memory
-- required to run an application on the instance.Units: PercentThe
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
-- - EBS_READ_OPS_PER_SECOND - The completed read operations
-- from all EBS volumes attached to the instance in a specified period of
-- time.Unit: Count
-- - EBS_WRITE_OPS_PER_SECOND - The completed write operations
-- to all EBS volumes attached to the instance in a specified period of
-- time.Unit: Count
-- - EBS_READ_BYTES_PER_SECOND - The bytes read from all EBS
-- volumes attached to the instance in a specified period of time.Unit:
-- Bytes
-- - EBS_WRITE_BYTES_PER_SECOND - The bytes written to all EBS
-- volumes attached to the instance in a specified period of time.Unit:
-- Bytes
-- - DISK_READ_OPS_PER_SECOND - The completed read operations
-- from all instance store volumes available to the instance in a
-- specified period of time.If there are no instance store volumes,
-- either the value is 0 or the metric is not reported.
-- - DISK_WRITE_OPS_PER_SECOND - The completed write
-- operations from all instance store volumes available to the instance
-- in a specified period of time.If there are no instance store volumes,
-- either the value is 0 or the metric is not reported.
-- - DISK_READ_BYTES_PER_SECOND - The bytes read from all
-- instance store volumes available to the instance. This metric is used
-- to determine the volume of the data the application reads from the
-- disk of the instance. This can be used to determine the speed of the
-- application.If there are no instance store volumes, either the value
-- is 0 or the metric is not reported.
-- - DISK_WRITE_BYTES_PER_SECOND - The bytes written to all
-- instance store volumes available to the instance. This metric is used
-- to determine the volume of the data the application writes onto the
-- disk of the instance. This can be used to determine the speed of the
-- application.If there are no instance store volumes, either the value
-- is 0 or the metric is not reported.
-- - NETWORK_IN_BYTES_PER_SECOND - The number of bytes
-- received by the instance on all network interfaces. This metric
-- identifies the volume of incoming network traffic to a single
-- instance.
-- - NETWORK_OUT_BYTES_PER_SECOND - The number of bytes sent
-- out by the instance on all network interfaces. This metric identifies
-- the volume of outgoing network traffic from a single instance.
-- - NETWORK_PACKETS_IN_PER_SECOND - The number of packets
-- received by the instance on all network interfaces. This metric
-- identifies the volume of incoming traffic in terms of the number of
-- packets on a single instance.
-- - NETWORK_PACKETS_OUT_PER_SECOND - The number of packets
-- sent out by the instance on all network interfaces. This metric
-- identifies the volume of outgoing traffic in terms of the number of
-- packets on a single instance.
--
utilizationMetric_name :: Lens' UtilizationMetric (Maybe MetricName)
-- | The statistic of the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
utilizationMetric_statistic :: Lens' UtilizationMetric (Maybe MetricStatistic)
-- | The value of the utilization metric.
utilizationMetric_value :: Lens' UtilizationMetric (Maybe Double)
-- | The baseline IOPS of the volume.
volumeConfiguration_volumeBaselineIOPS :: Lens' VolumeConfiguration (Maybe Int)
-- | The baseline throughput of the volume.
volumeConfiguration_volumeBaselineThroughput :: Lens' VolumeConfiguration (Maybe Int)
-- | The burst IOPS of the volume.
volumeConfiguration_volumeBurstIOPS :: Lens' VolumeConfiguration (Maybe Int)
-- | The burst throughput of the volume.
volumeConfiguration_volumeBurstThroughput :: Lens' VolumeConfiguration (Maybe Int)
-- | The size of the volume, in GiB.
volumeConfiguration_volumeSize :: Lens' VolumeConfiguration (Maybe Int)
-- | The volume type.
--
-- This can be gp2 for General Purpose SSD, io1 or
-- io2 for Provisioned IOPS SSD, st1 for Throughput
-- Optimized HDD, sc1 for Cold HDD, or standard for
-- Magnetic volumes.
volumeConfiguration_volumeType :: Lens' VolumeConfiguration (Maybe Text)
-- | The Amazon Web Services account ID of the volume.
volumeRecommendation_accountId :: Lens' VolumeRecommendation (Maybe Text)
-- | An array of objects that describe the current configuration of the
-- volume.
volumeRecommendation_currentConfiguration :: Lens' VolumeRecommendation (Maybe VolumeConfiguration)
-- | The risk of the current EBS volume not meeting the performance needs
-- of its workloads. The higher the risk, the more likely the current EBS
-- volume doesn't have sufficient capacity.
volumeRecommendation_currentPerformanceRisk :: Lens' VolumeRecommendation (Maybe CurrentPerformanceRisk)
-- | The finding classification of the volume.
--
-- Findings for volumes include:
--
--
-- - NotOptimized —A volume is considered not optimized
-- when Compute Optimizer identifies a recommendation that can provide
-- better performance for your workload.
-- - Optimized —An volume is considered optimized when
-- Compute Optimizer determines that the volume is correctly provisioned
-- to run your workload based on the chosen volume type. For optimized
-- resources, Compute Optimizer might recommend a new generation volume
-- type.
--
volumeRecommendation_finding :: Lens' VolumeRecommendation (Maybe EBSFinding)
-- | The timestamp of when the volume recommendation was last generated.
volumeRecommendation_lastRefreshTimestamp :: Lens' VolumeRecommendation (Maybe UTCTime)
-- | The number of days for which utilization metrics were analyzed for the
-- volume.
volumeRecommendation_lookBackPeriodInDays :: Lens' VolumeRecommendation (Maybe Double)
-- | An array of objects that describe the utilization metrics of the
-- volume.
volumeRecommendation_utilizationMetrics :: Lens' VolumeRecommendation (Maybe [EBSUtilizationMetric])
-- | The Amazon Resource Name (ARN) of the current volume.
volumeRecommendation_volumeArn :: Lens' VolumeRecommendation (Maybe Text)
-- | An array of objects that describe the recommendation options for the
-- volume.
volumeRecommendation_volumeRecommendationOptions :: Lens' VolumeRecommendation (Maybe [VolumeRecommendationOption])
-- | An array of objects that describe a volume configuration.
volumeRecommendationOption_configuration :: Lens' VolumeRecommendationOption (Maybe VolumeConfiguration)
-- | The performance risk of the volume recommendation option.
--
-- Performance risk is the likelihood of the recommended volume type
-- meeting the performance requirement of your workload.
--
-- 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.
volumeRecommendationOption_performanceRisk :: Lens' VolumeRecommendationOption (Maybe Double)
-- | The rank of the volume recommendation option.
--
-- The top recommendation option is ranked as 1.
volumeRecommendationOption_rank :: Lens' VolumeRecommendationOption (Maybe Int)
-- | An object that describes the savings opportunity for the EBS volume
-- recommendation option. Savings opportunity includes the estimated
-- monthly savings amount and percentage.
volumeRecommendationOption_savingsOpportunity :: Lens' VolumeRecommendationOption (Maybe SavingsOpportunity)
module Amazonka.ComputeOptimizer.Waiters
-- | Derived from API version 2019-11-01 of the AWS service
-- descriptions, licensed under Apache 2.0.
--
-- Compute Optimizer is a service that analyzes the configuration and
-- utilization metrics of your Amazon Web Services compute resources,
-- such as Amazon EC2 instances, Amazon EC2 Auto Scaling groups, Lambda
-- functions, Amazon EBS volumes, and Amazon ECS services on Fargate. It
-- reports whether your resources are optimal, and generates optimization
-- recommendations to reduce the cost and improve the performance of your
-- workloads. Compute Optimizer also provides recent utilization metric
-- data, in addition to projected utilization metric data for the
-- recommendations, which you can use to evaluate which recommendation
-- provides the best price-performance trade-off. The analysis of your
-- usage patterns can help you decide when to move or resize your running
-- resources, and still meet your performance and capacity requirements.
-- For more information about Compute Optimizer, including the required
-- permissions to use the service, see the Compute Optimizer User
-- Guide.
module Amazonka.ComputeOptimizer
-- | API version 2019-11-01 of the Amazon Compute Optimizer SDK
-- configuration.
defaultService :: Service
-- | You do not have sufficient access to perform this action.
_AccessDeniedException :: AsError a => Fold a ServiceError
-- | An internal error has occurred. Try your call again.
_InternalServerException :: AsError a => Fold a ServiceError
-- | The value supplied for the input parameter is out of range or not
-- valid.
_InvalidParameterValueException :: AsError a => Fold a ServiceError
-- | The request exceeds a limit of the service.
_LimitExceededException :: AsError a => Fold a ServiceError
-- | The request must contain either a valid (registered) Amazon Web
-- Services access key ID or X.509 certificate.
_MissingAuthenticationToken :: AsError a => Fold a ServiceError
-- | The account is not opted in to Compute Optimizer.
_OptInRequiredException :: AsError a => Fold a ServiceError
-- | A resource that is required for the action doesn't exist.
_ResourceNotFoundException :: AsError a => Fold a ServiceError
-- | The request has failed due to a temporary failure of the server.
_ServiceUnavailableException :: AsError a => Fold a ServiceError
-- | The request was denied due to request throttling.
_ThrottlingException :: AsError a => Fold a ServiceError
-- | See: newDeleteRecommendationPreferences smart
-- constructor.
data DeleteRecommendationPreferences
DeleteRecommendationPreferences' :: Maybe Scope -> ResourceType -> [RecommendationPreferenceName] -> DeleteRecommendationPreferences
-- | Create a value of DeleteRecommendationPreferences with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DeleteRecommendationPreferences,
-- deleteRecommendationPreferences_scope - An object that
-- describes the scope of the recommendation preference to delete.
--
-- You can delete recommendation preferences that are created at the
-- organization level (for management accounts of an organization only),
-- account level, and resource level. For more information, see
-- Activating enhanced infrastructure metrics in the Compute
-- Optimizer User Guide.
--
-- DeleteRecommendationPreferences,
-- deleteRecommendationPreferences_resourceType - The target
-- resource type of the recommendation preference to delete.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
--
-- The valid values for this parameter are Ec2Instance and
-- AutoScalingGroup.
--
--
-- $sel:recommendationPreferenceNames:DeleteRecommendationPreferences',
-- deleteRecommendationPreferences_recommendationPreferenceNames -
-- The name of the recommendation preference to delete.
newDeleteRecommendationPreferences :: ResourceType -> DeleteRecommendationPreferences
-- | See: newDeleteRecommendationPreferencesResponse smart
-- constructor.
data DeleteRecommendationPreferencesResponse
DeleteRecommendationPreferencesResponse' :: Int -> DeleteRecommendationPreferencesResponse
-- | Create a value of DeleteRecommendationPreferencesResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:DeleteRecommendationPreferencesResponse',
-- deleteRecommendationPreferencesResponse_httpStatus - The
-- response's http status code.
newDeleteRecommendationPreferencesResponse :: Int -> DeleteRecommendationPreferencesResponse
-- | See: newDescribeRecommendationExportJobs smart
-- constructor.
data DescribeRecommendationExportJobs
DescribeRecommendationExportJobs' :: Maybe [JobFilter] -> Maybe [Text] -> Maybe Natural -> Maybe Text -> DescribeRecommendationExportJobs
-- | Create a value of DescribeRecommendationExportJobs with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:filters:DescribeRecommendationExportJobs',
-- describeRecommendationExportJobs_filters - An array of objects
-- to specify a filter that returns a more specific list of export jobs.
--
-- $sel:jobIds:DescribeRecommendationExportJobs',
-- describeRecommendationExportJobs_jobIds - The identification
-- numbers of the export jobs to return.
--
-- An export job ID is returned when you create an export using the
-- ExportAutoScalingGroupRecommendations or
-- ExportEC2InstanceRecommendations actions.
--
-- All export jobs created in the last seven days are returned if this
-- parameter is omitted.
--
-- $sel:maxResults:DescribeRecommendationExportJobs',
-- describeRecommendationExportJobs_maxResults - The maximum
-- number of export jobs to return with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
--
-- DescribeRecommendationExportJobs,
-- describeRecommendationExportJobs_nextToken - The token to
-- advance to the next page of export jobs.
newDescribeRecommendationExportJobs :: DescribeRecommendationExportJobs
-- | See: newDescribeRecommendationExportJobsResponse smart
-- constructor.
data DescribeRecommendationExportJobsResponse
DescribeRecommendationExportJobsResponse' :: Maybe Text -> Maybe [RecommendationExportJob] -> Int -> DescribeRecommendationExportJobsResponse
-- | Create a value of DescribeRecommendationExportJobsResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- DescribeRecommendationExportJobs,
-- describeRecommendationExportJobsResponse_nextToken - The token
-- to use to advance to the next page of export jobs.
--
-- This value is null when there are no more pages of export jobs to
-- return.
--
--
-- $sel:recommendationExportJobs:DescribeRecommendationExportJobsResponse',
-- describeRecommendationExportJobsResponse_recommendationExportJobs
-- - An array of objects that describe recommendation export jobs.
--
-- $sel:httpStatus:DescribeRecommendationExportJobsResponse',
-- describeRecommendationExportJobsResponse_httpStatus - The
-- response's http status code.
newDescribeRecommendationExportJobsResponse :: Int -> DescribeRecommendationExportJobsResponse
-- | See: newExportAutoScalingGroupRecommendations smart
-- constructor.
data ExportAutoScalingGroupRecommendations
ExportAutoScalingGroupRecommendations' :: Maybe [Text] -> Maybe [ExportableAutoScalingGroupField] -> Maybe FileFormat -> Maybe [Filter] -> Maybe Bool -> Maybe RecommendationPreferences -> S3DestinationConfig -> ExportAutoScalingGroupRecommendations
-- | Create a value of ExportAutoScalingGroupRecommendations with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:ExportAutoScalingGroupRecommendations',
-- exportAutoScalingGroupRecommendations_accountIds - The IDs of
-- the Amazon Web Services accounts for which to export Auto Scaling
-- group recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
--
-- $sel:fieldsToExport:ExportAutoScalingGroupRecommendations',
-- exportAutoScalingGroupRecommendations_fieldsToExport - The
-- recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
--
-- $sel:fileFormat:ExportAutoScalingGroupRecommendations',
-- exportAutoScalingGroupRecommendations_fileFormat - The format
-- of the export file.
--
-- The only export file format currently supported is Csv.
--
-- $sel:filters:ExportAutoScalingGroupRecommendations',
-- exportAutoScalingGroupRecommendations_filters - An array of
-- objects to specify a filter that exports a more specific set of Auto
-- Scaling group recommendations.
--
--
-- $sel:includeMemberAccounts:ExportAutoScalingGroupRecommendations',
-- exportAutoScalingGroupRecommendations_includeMemberAccounts -
-- Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- This parameter cannot be specified together with the account IDs
-- parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
--
--
-- $sel:recommendationPreferences:ExportAutoScalingGroupRecommendations',
-- exportAutoScalingGroupRecommendations_recommendationPreferences
-- - An object to specify the preferences for the Auto Scaling group
-- recommendations to export.
--
--
-- $sel:s3DestinationConfig:ExportAutoScalingGroupRecommendations',
-- exportAutoScalingGroupRecommendations_s3DestinationConfig - An
-- object to specify the destination Amazon Simple Storage Service
-- (Amazon S3) bucket name and key prefix for the export job.
--
-- You must create the destination Amazon S3 bucket for your
-- recommendations export before you create the export job. Compute
-- Optimizer does not create the S3 bucket for you. After you create the
-- S3 bucket, ensure that it has the required permissions policy to allow
-- Compute Optimizer to write the export file to it. If you plan to
-- specify an object prefix when you create the export job, you must
-- include the object prefix in the policy that you add to the S3 bucket.
-- For more information, see Amazon S3 Bucket Policy for Compute
-- Optimizer in the Compute Optimizer User Guide.
newExportAutoScalingGroupRecommendations :: S3DestinationConfig -> ExportAutoScalingGroupRecommendations
-- | See: newExportAutoScalingGroupRecommendationsResponse
-- smart constructor.
data ExportAutoScalingGroupRecommendationsResponse
ExportAutoScalingGroupRecommendationsResponse' :: Maybe Text -> Maybe S3Destination -> Int -> ExportAutoScalingGroupRecommendationsResponse
-- | Create a value of ExportAutoScalingGroupRecommendationsResponse
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ExportAutoScalingGroupRecommendationsResponse,
-- exportAutoScalingGroupRecommendationsResponse_jobId - The
-- identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
--
--
-- $sel:s3Destination:ExportAutoScalingGroupRecommendationsResponse',
-- exportAutoScalingGroupRecommendationsResponse_s3Destination -
-- An object that describes the destination Amazon S3 bucket of a
-- recommendations export file.
--
-- $sel:httpStatus:ExportAutoScalingGroupRecommendationsResponse',
-- exportAutoScalingGroupRecommendationsResponse_httpStatus - The
-- response's http status code.
newExportAutoScalingGroupRecommendationsResponse :: Int -> ExportAutoScalingGroupRecommendationsResponse
-- | See: newExportEBSVolumeRecommendations smart
-- constructor.
data ExportEBSVolumeRecommendations
ExportEBSVolumeRecommendations' :: Maybe [Text] -> Maybe [ExportableVolumeField] -> Maybe FileFormat -> Maybe [EBSFilter] -> Maybe Bool -> S3DestinationConfig -> ExportEBSVolumeRecommendations
-- | Create a value of ExportEBSVolumeRecommendations with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:ExportEBSVolumeRecommendations',
-- exportEBSVolumeRecommendations_accountIds - The IDs of the
-- Amazon Web Services accounts for which to export Amazon EBS volume
-- recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
--
-- $sel:fieldsToExport:ExportEBSVolumeRecommendations',
-- exportEBSVolumeRecommendations_fieldsToExport - The
-- recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
--
-- $sel:fileFormat:ExportEBSVolumeRecommendations',
-- exportEBSVolumeRecommendations_fileFormat - The format of the
-- export file.
--
-- The only export file format currently supported is Csv.
--
-- $sel:filters:ExportEBSVolumeRecommendations',
-- exportEBSVolumeRecommendations_filters - An array of objects to
-- specify a filter that exports a more specific set of Amazon EBS volume
-- recommendations.
--
-- $sel:includeMemberAccounts:ExportEBSVolumeRecommendations',
-- exportEBSVolumeRecommendations_includeMemberAccounts -
-- Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- This parameter cannot be specified together with the account IDs
-- parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
--
-- $sel:s3DestinationConfig:ExportEBSVolumeRecommendations',
-- exportEBSVolumeRecommendations_s3DestinationConfig -
-- Undocumented member.
newExportEBSVolumeRecommendations :: S3DestinationConfig -> ExportEBSVolumeRecommendations
-- | See: newExportEBSVolumeRecommendationsResponse smart
-- constructor.
data ExportEBSVolumeRecommendationsResponse
ExportEBSVolumeRecommendationsResponse' :: Maybe Text -> Maybe S3Destination -> Int -> ExportEBSVolumeRecommendationsResponse
-- | Create a value of ExportEBSVolumeRecommendationsResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ExportEBSVolumeRecommendationsResponse,
-- exportEBSVolumeRecommendationsResponse_jobId - The
-- identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
--
-- $sel:s3Destination:ExportEBSVolumeRecommendationsResponse',
-- exportEBSVolumeRecommendationsResponse_s3Destination -
-- Undocumented member.
--
-- $sel:httpStatus:ExportEBSVolumeRecommendationsResponse',
-- exportEBSVolumeRecommendationsResponse_httpStatus - The
-- response's http status code.
newExportEBSVolumeRecommendationsResponse :: Int -> ExportEBSVolumeRecommendationsResponse
-- | See: newExportEC2InstanceRecommendations smart
-- constructor.
data ExportEC2InstanceRecommendations
ExportEC2InstanceRecommendations' :: Maybe [Text] -> Maybe [ExportableInstanceField] -> Maybe FileFormat -> Maybe [Filter] -> Maybe Bool -> Maybe RecommendationPreferences -> S3DestinationConfig -> ExportEC2InstanceRecommendations
-- | Create a value of ExportEC2InstanceRecommendations with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:ExportEC2InstanceRecommendations',
-- exportEC2InstanceRecommendations_accountIds - The IDs of the
-- Amazon Web Services accounts for which to export instance
-- recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
--
-- $sel:fieldsToExport:ExportEC2InstanceRecommendations',
-- exportEC2InstanceRecommendations_fieldsToExport - The
-- recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
--
-- $sel:fileFormat:ExportEC2InstanceRecommendations',
-- exportEC2InstanceRecommendations_fileFormat - The format of the
-- export file.
--
-- The only export file format currently supported is Csv.
--
-- $sel:filters:ExportEC2InstanceRecommendations',
-- exportEC2InstanceRecommendations_filters - An array of objects
-- to specify a filter that exports a more specific set of instance
-- recommendations.
--
-- $sel:includeMemberAccounts:ExportEC2InstanceRecommendations',
-- exportEC2InstanceRecommendations_includeMemberAccounts -
-- Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
--
--
-- $sel:recommendationPreferences:ExportEC2InstanceRecommendations',
-- exportEC2InstanceRecommendations_recommendationPreferences - An
-- object to specify the preferences for the Amazon EC2 instance
-- recommendations to export.
--
-- $sel:s3DestinationConfig:ExportEC2InstanceRecommendations',
-- exportEC2InstanceRecommendations_s3DestinationConfig - An
-- object to specify the destination Amazon Simple Storage Service
-- (Amazon S3) bucket name and key prefix for the export job.
--
-- You must create the destination Amazon S3 bucket for your
-- recommendations export before you create the export job. Compute
-- Optimizer does not create the S3 bucket for you. After you create the
-- S3 bucket, ensure that it has the required permissions policy to allow
-- Compute Optimizer to write the export file to it. If you plan to
-- specify an object prefix when you create the export job, you must
-- include the object prefix in the policy that you add to the S3 bucket.
-- For more information, see Amazon S3 Bucket Policy for Compute
-- Optimizer in the Compute Optimizer User Guide.
newExportEC2InstanceRecommendations :: S3DestinationConfig -> ExportEC2InstanceRecommendations
-- | See: newExportEC2InstanceRecommendationsResponse smart
-- constructor.
data ExportEC2InstanceRecommendationsResponse
ExportEC2InstanceRecommendationsResponse' :: Maybe Text -> Maybe S3Destination -> Int -> ExportEC2InstanceRecommendationsResponse
-- | Create a value of ExportEC2InstanceRecommendationsResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ExportEC2InstanceRecommendationsResponse,
-- exportEC2InstanceRecommendationsResponse_jobId - The
-- identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
--
-- $sel:s3Destination:ExportEC2InstanceRecommendationsResponse',
-- exportEC2InstanceRecommendationsResponse_s3Destination - An
-- object that describes the destination Amazon S3 bucket of a
-- recommendations export file.
--
-- $sel:httpStatus:ExportEC2InstanceRecommendationsResponse',
-- exportEC2InstanceRecommendationsResponse_httpStatus - The
-- response's http status code.
newExportEC2InstanceRecommendationsResponse :: Int -> ExportEC2InstanceRecommendationsResponse
-- | See: newExportECSServiceRecommendations smart
-- constructor.
data ExportECSServiceRecommendations
ExportECSServiceRecommendations' :: Maybe [Text] -> Maybe [ExportableECSServiceField] -> Maybe FileFormat -> Maybe [ECSServiceRecommendationFilter] -> Maybe Bool -> S3DestinationConfig -> ExportECSServiceRecommendations
-- | Create a value of ExportECSServiceRecommendations with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:ExportECSServiceRecommendations',
-- exportECSServiceRecommendations_accountIds - The Amazon Web
-- Services account IDs for the export ECS service recommendations.
--
-- If your account is the management account or the delegated
-- administrator of an organization, use this parameter to specify the
-- member account you want to export recommendations to.
--
-- This parameter can't be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- If this parameter or the include member accounts parameter is omitted,
-- the recommendations for member accounts aren't included in the export.
--
-- You can specify multiple account IDs per request.
--
-- $sel:fieldsToExport:ExportECSServiceRecommendations',
-- exportECSServiceRecommendations_fieldsToExport - The
-- recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
--
-- $sel:fileFormat:ExportECSServiceRecommendations',
-- exportECSServiceRecommendations_fileFormat - The format of the
-- export file.
--
-- The CSV file is the only export file format currently supported.
--
-- $sel:filters:ExportECSServiceRecommendations',
-- exportECSServiceRecommendations_filters - An array of objects
-- to specify a filter that exports a more specific set of ECS service
-- recommendations.
--
-- $sel:includeMemberAccounts:ExportECSServiceRecommendations',
-- exportECSServiceRecommendations_includeMemberAccounts - If your
-- account is the management account or the delegated administrator of an
-- organization, this parameter indicates whether to include
-- recommendations for resources in all member accounts of the
-- organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- If this parameter is omitted, recommendations for member accounts of
-- the organization aren't included in the export file.
--
-- If this parameter or the account ID parameter is omitted,
-- recommendations for member accounts aren't included in the export.
--
-- $sel:s3DestinationConfig:ExportECSServiceRecommendations',
-- exportECSServiceRecommendations_s3DestinationConfig -
-- Undocumented member.
newExportECSServiceRecommendations :: S3DestinationConfig -> ExportECSServiceRecommendations
-- | See: newExportECSServiceRecommendationsResponse smart
-- constructor.
data ExportECSServiceRecommendationsResponse
ExportECSServiceRecommendationsResponse' :: Maybe Text -> Maybe S3Destination -> Int -> ExportECSServiceRecommendationsResponse
-- | Create a value of ExportECSServiceRecommendationsResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ExportECSServiceRecommendationsResponse,
-- exportECSServiceRecommendationsResponse_jobId - The
-- identification number of the export job.
--
-- To view the status of an export job, use the
-- DescribeRecommendationExportJobs action and specify the job ID.
--
-- $sel:s3Destination:ExportECSServiceRecommendationsResponse',
-- exportECSServiceRecommendationsResponse_s3Destination -
-- Undocumented member.
--
-- $sel:httpStatus:ExportECSServiceRecommendationsResponse',
-- exportECSServiceRecommendationsResponse_httpStatus - The
-- response's http status code.
newExportECSServiceRecommendationsResponse :: Int -> ExportECSServiceRecommendationsResponse
-- | See: newExportLambdaFunctionRecommendations smart
-- constructor.
data ExportLambdaFunctionRecommendations
ExportLambdaFunctionRecommendations' :: Maybe [Text] -> Maybe [ExportableLambdaFunctionField] -> Maybe FileFormat -> Maybe [LambdaFunctionRecommendationFilter] -> Maybe Bool -> S3DestinationConfig -> ExportLambdaFunctionRecommendations
-- | Create a value of ExportLambdaFunctionRecommendations with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:ExportLambdaFunctionRecommendations',
-- exportLambdaFunctionRecommendations_accountIds - The IDs of the
-- Amazon Web Services accounts for which to export Lambda function
-- recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to export
-- recommendations.
--
-- This parameter cannot be specified together with the include member
-- accounts parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the include member accounts parameter, is omitted.
--
-- You can specify multiple account IDs per request.
--
-- $sel:fieldsToExport:ExportLambdaFunctionRecommendations',
-- exportLambdaFunctionRecommendations_fieldsToExport - The
-- recommendations data to include in the export file. For more
-- information about the fields that can be exported, see Exported
-- files in the Compute Optimizer User Guide.
--
-- $sel:fileFormat:ExportLambdaFunctionRecommendations',
-- exportLambdaFunctionRecommendations_fileFormat - The format of
-- the export file.
--
-- The only export file format currently supported is Csv.
--
-- $sel:filters:ExportLambdaFunctionRecommendations',
-- exportLambdaFunctionRecommendations_filters - An array of
-- objects to specify a filter that exports a more specific set of Lambda
-- function recommendations.
--
--
-- $sel:includeMemberAccounts:ExportLambdaFunctionRecommendations',
-- exportLambdaFunctionRecommendations_includeMemberAccounts -
-- Indicates whether to include recommendations for resources in all
-- member accounts of the organization if your account is the management
-- account of an organization.
--
-- The member accounts must also be opted in to Compute Optimizer, and
-- trusted access for Compute Optimizer must be enabled in the
-- organization account. For more information, see Compute Optimizer
-- and Amazon Web Services Organizations trusted access in the
-- Compute Optimizer User Guide.
--
-- Recommendations for member accounts of the organization are not
-- included in the export file if this parameter is omitted.
--
-- This parameter cannot be specified together with the account IDs
-- parameter. The parameters are mutually exclusive.
--
-- Recommendations for member accounts are not included in the export if
-- this parameter, or the account IDs parameter, is omitted.
--
-- $sel:s3DestinationConfig:ExportLambdaFunctionRecommendations',
-- exportLambdaFunctionRecommendations_s3DestinationConfig -
-- Undocumented member.
newExportLambdaFunctionRecommendations :: S3DestinationConfig -> ExportLambdaFunctionRecommendations
-- | See: newExportLambdaFunctionRecommendationsResponse
-- smart constructor.
data ExportLambdaFunctionRecommendationsResponse
ExportLambdaFunctionRecommendationsResponse' :: Maybe Text -> Maybe S3Destination -> Int -> ExportLambdaFunctionRecommendationsResponse
-- | Create a value of ExportLambdaFunctionRecommendationsResponse
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- ExportLambdaFunctionRecommendationsResponse,
-- exportLambdaFunctionRecommendationsResponse_jobId - The
-- identification number of the export job.
--
-- Use the DescribeRecommendationExportJobs action, and specify the job
-- ID to view the status of an export job.
--
--
-- $sel:s3Destination:ExportLambdaFunctionRecommendationsResponse',
-- exportLambdaFunctionRecommendationsResponse_s3Destination -
-- Undocumented member.
--
-- $sel:httpStatus:ExportLambdaFunctionRecommendationsResponse',
-- exportLambdaFunctionRecommendationsResponse_httpStatus - The
-- response's http status code.
newExportLambdaFunctionRecommendationsResponse :: Int -> ExportLambdaFunctionRecommendationsResponse
-- | See: newGetAutoScalingGroupRecommendations smart
-- constructor.
data GetAutoScalingGroupRecommendations
GetAutoScalingGroupRecommendations' :: Maybe [Text] -> Maybe [Text] -> Maybe [Filter] -> Maybe Natural -> Maybe Text -> Maybe RecommendationPreferences -> GetAutoScalingGroupRecommendations
-- | Create a value of GetAutoScalingGroupRecommendations with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:GetAutoScalingGroupRecommendations',
-- getAutoScalingGroupRecommendations_accountIds - The ID of the
-- Amazon Web Services account for which to return Auto Scaling group
-- recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- Auto Scaling group recommendations.
--
-- Only one account ID can be specified per request.
--
-- $sel:autoScalingGroupArns:GetAutoScalingGroupRecommendations',
-- getAutoScalingGroupRecommendations_autoScalingGroupArns - The
-- Amazon Resource Name (ARN) of the Auto Scaling groups for which to
-- return recommendations.
--
-- $sel:filters:GetAutoScalingGroupRecommendations',
-- getAutoScalingGroupRecommendations_filters - An array of
-- objects to specify a filter that returns a more specific list of Auto
-- Scaling group recommendations.
--
-- $sel:maxResults:GetAutoScalingGroupRecommendations',
-- getAutoScalingGroupRecommendations_maxResults - The maximum
-- number of Auto Scaling group recommendations to return with a single
-- request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
--
-- GetAutoScalingGroupRecommendations,
-- getAutoScalingGroupRecommendations_nextToken - The token to
-- advance to the next page of Auto Scaling group recommendations.
--
--
-- $sel:recommendationPreferences:GetAutoScalingGroupRecommendations',
-- getAutoScalingGroupRecommendations_recommendationPreferences -
-- An object to specify the preferences for the Auto Scaling group
-- recommendations to return in the response.
newGetAutoScalingGroupRecommendations :: GetAutoScalingGroupRecommendations
-- | See: newGetAutoScalingGroupRecommendationsResponse smart
-- constructor.
data GetAutoScalingGroupRecommendationsResponse
GetAutoScalingGroupRecommendationsResponse' :: Maybe [AutoScalingGroupRecommendation] -> Maybe [GetRecommendationError] -> Maybe Text -> Int -> GetAutoScalingGroupRecommendationsResponse
-- | Create a value of GetAutoScalingGroupRecommendationsResponse
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:autoScalingGroupRecommendations:GetAutoScalingGroupRecommendationsResponse',
-- getAutoScalingGroupRecommendationsResponse_autoScalingGroupRecommendations
-- - An array of objects that describe Auto Scaling group
-- recommendations.
--
-- $sel:errors:GetAutoScalingGroupRecommendationsResponse',
-- getAutoScalingGroupRecommendationsResponse_errors - An array of
-- objects that describe errors of the request.
--
-- For example, an error is returned if you request recommendations for
-- an unsupported Auto Scaling group.
--
-- GetAutoScalingGroupRecommendations,
-- getAutoScalingGroupRecommendationsResponse_nextToken - The
-- token to use to advance to the next page of Auto Scaling group
-- recommendations.
--
-- This value is null when there are no more pages of Auto Scaling group
-- recommendations to return.
--
-- $sel:httpStatus:GetAutoScalingGroupRecommendationsResponse',
-- getAutoScalingGroupRecommendationsResponse_httpStatus - The
-- response's http status code.
newGetAutoScalingGroupRecommendationsResponse :: Int -> GetAutoScalingGroupRecommendationsResponse
-- | See: newGetEBSVolumeRecommendations smart constructor.
data GetEBSVolumeRecommendations
GetEBSVolumeRecommendations' :: Maybe [Text] -> Maybe [EBSFilter] -> Maybe Natural -> Maybe Text -> Maybe [Text] -> GetEBSVolumeRecommendations
-- | Create a value of GetEBSVolumeRecommendations with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:GetEBSVolumeRecommendations',
-- getEBSVolumeRecommendations_accountIds - The ID of the Amazon
-- Web Services account for which to return volume recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- volume recommendations.
--
-- Only one account ID can be specified per request.
--
-- $sel:filters:GetEBSVolumeRecommendations',
-- getEBSVolumeRecommendations_filters - An array of objects to
-- specify a filter that returns a more specific list of volume
-- recommendations.
--
-- $sel:maxResults:GetEBSVolumeRecommendations',
-- getEBSVolumeRecommendations_maxResults - The maximum number of
-- volume recommendations to return with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
--
-- GetEBSVolumeRecommendations,
-- getEBSVolumeRecommendations_nextToken - The token to advance to
-- the next page of volume recommendations.
--
-- $sel:volumeArns:GetEBSVolumeRecommendations',
-- getEBSVolumeRecommendations_volumeArns - The Amazon Resource
-- Name (ARN) of the volumes for which to return recommendations.
newGetEBSVolumeRecommendations :: GetEBSVolumeRecommendations
-- | See: newGetEBSVolumeRecommendationsResponse smart
-- constructor.
data GetEBSVolumeRecommendationsResponse
GetEBSVolumeRecommendationsResponse' :: Maybe [GetRecommendationError] -> Maybe Text -> Maybe [VolumeRecommendation] -> Int -> GetEBSVolumeRecommendationsResponse
-- | Create a value of GetEBSVolumeRecommendationsResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:errors:GetEBSVolumeRecommendationsResponse',
-- getEBSVolumeRecommendationsResponse_errors - An array of
-- objects that describe errors of the request.
--
-- For example, an error is returned if you request recommendations for
-- an unsupported volume.
--
-- GetEBSVolumeRecommendations,
-- getEBSVolumeRecommendationsResponse_nextToken - The token to
-- use to advance to the next page of volume recommendations.
--
-- This value is null when there are no more pages of volume
-- recommendations to return.
--
--
-- $sel:volumeRecommendations:GetEBSVolumeRecommendationsResponse',
-- getEBSVolumeRecommendationsResponse_volumeRecommendations - An
-- array of objects that describe volume recommendations.
--
-- $sel:httpStatus:GetEBSVolumeRecommendationsResponse',
-- getEBSVolumeRecommendationsResponse_httpStatus - The response's
-- http status code.
newGetEBSVolumeRecommendationsResponse :: Int -> GetEBSVolumeRecommendationsResponse
-- | See: newGetEC2InstanceRecommendations smart constructor.
data GetEC2InstanceRecommendations
GetEC2InstanceRecommendations' :: Maybe [Text] -> Maybe [Filter] -> Maybe [Text] -> Maybe Natural -> Maybe Text -> Maybe RecommendationPreferences -> GetEC2InstanceRecommendations
-- | Create a value of GetEC2InstanceRecommendations with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:GetEC2InstanceRecommendations',
-- getEC2InstanceRecommendations_accountIds - The ID of the Amazon
-- Web Services account for which to return instance recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- instance recommendations.
--
-- Only one account ID can be specified per request.
--
-- $sel:filters:GetEC2InstanceRecommendations',
-- getEC2InstanceRecommendations_filters - An array of objects to
-- specify a filter that returns a more specific list of instance
-- recommendations.
--
-- $sel:instanceArns:GetEC2InstanceRecommendations',
-- getEC2InstanceRecommendations_instanceArns - The Amazon
-- Resource Name (ARN) of the instances for which to return
-- recommendations.
--
-- $sel:maxResults:GetEC2InstanceRecommendations',
-- getEC2InstanceRecommendations_maxResults - The maximum number
-- of instance recommendations to return with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
--
-- GetEC2InstanceRecommendations,
-- getEC2InstanceRecommendations_nextToken - The token to advance
-- to the next page of instance recommendations.
--
-- $sel:recommendationPreferences:GetEC2InstanceRecommendations',
-- getEC2InstanceRecommendations_recommendationPreferences - An
-- object to specify the preferences for the Amazon EC2 instance
-- recommendations to return in the response.
newGetEC2InstanceRecommendations :: GetEC2InstanceRecommendations
-- | See: newGetEC2InstanceRecommendationsResponse smart
-- constructor.
data GetEC2InstanceRecommendationsResponse
GetEC2InstanceRecommendationsResponse' :: Maybe [GetRecommendationError] -> Maybe [InstanceRecommendation] -> Maybe Text -> Int -> GetEC2InstanceRecommendationsResponse
-- | Create a value of GetEC2InstanceRecommendationsResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:errors:GetEC2InstanceRecommendationsResponse',
-- getEC2InstanceRecommendationsResponse_errors - An array of
-- objects that describe errors of the request.
--
-- For example, an error is returned if you request recommendations for
-- an instance of an unsupported instance family.
--
--
-- $sel:instanceRecommendations:GetEC2InstanceRecommendationsResponse',
-- getEC2InstanceRecommendationsResponse_instanceRecommendations -
-- An array of objects that describe instance recommendations.
--
-- GetEC2InstanceRecommendations,
-- getEC2InstanceRecommendationsResponse_nextToken - The token to
-- use to advance to the next page of instance recommendations.
--
-- This value is null when there are no more pages of instance
-- recommendations to return.
--
-- $sel:httpStatus:GetEC2InstanceRecommendationsResponse',
-- getEC2InstanceRecommendationsResponse_httpStatus - The
-- response's http status code.
newGetEC2InstanceRecommendationsResponse :: Int -> GetEC2InstanceRecommendationsResponse
-- | See: newGetEC2RecommendationProjectedMetrics smart
-- constructor.
data GetEC2RecommendationProjectedMetrics
GetEC2RecommendationProjectedMetrics' :: Maybe RecommendationPreferences -> Text -> MetricStatistic -> Int -> POSIX -> POSIX -> GetEC2RecommendationProjectedMetrics
-- | Create a value of GetEC2RecommendationProjectedMetrics with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:recommendationPreferences:GetEC2RecommendationProjectedMetrics',
-- getEC2RecommendationProjectedMetrics_recommendationPreferences
-- - An object to specify the preferences for the Amazon EC2
-- recommendation projected metrics to return in the response.
--
-- GetEC2RecommendationProjectedMetrics,
-- getEC2RecommendationProjectedMetrics_instanceArn - The Amazon
-- Resource Name (ARN) of the instances for which to return
-- recommendation projected metrics.
--
-- $sel:stat:GetEC2RecommendationProjectedMetrics',
-- getEC2RecommendationProjectedMetrics_stat - The statistic of
-- the projected metrics.
--
-- $sel:period:GetEC2RecommendationProjectedMetrics',
-- getEC2RecommendationProjectedMetrics_period - The granularity,
-- in seconds, of the projected metrics data points.
--
-- $sel:startTime:GetEC2RecommendationProjectedMetrics',
-- getEC2RecommendationProjectedMetrics_startTime - The timestamp
-- of the first projected metrics data point to return.
--
-- $sel:endTime:GetEC2RecommendationProjectedMetrics',
-- getEC2RecommendationProjectedMetrics_endTime - The timestamp of
-- the last projected metrics data point to return.
newGetEC2RecommendationProjectedMetrics :: Text -> MetricStatistic -> Int -> UTCTime -> UTCTime -> GetEC2RecommendationProjectedMetrics
-- | See: newGetEC2RecommendationProjectedMetricsResponse
-- smart constructor.
data GetEC2RecommendationProjectedMetricsResponse
GetEC2RecommendationProjectedMetricsResponse' :: Maybe [RecommendedOptionProjectedMetric] -> Int -> GetEC2RecommendationProjectedMetricsResponse
-- | Create a value of GetEC2RecommendationProjectedMetricsResponse
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:recommendedOptionProjectedMetrics:GetEC2RecommendationProjectedMetricsResponse',
-- getEC2RecommendationProjectedMetricsResponse_recommendedOptionProjectedMetrics
-- - An array of objects that describes projected metrics.
--
-- $sel:httpStatus:GetEC2RecommendationProjectedMetricsResponse',
-- getEC2RecommendationProjectedMetricsResponse_httpStatus - The
-- response's http status code.
newGetEC2RecommendationProjectedMetricsResponse :: Int -> GetEC2RecommendationProjectedMetricsResponse
-- | See: newGetECSServiceRecommendationProjectedMetrics
-- smart constructor.
data GetECSServiceRecommendationProjectedMetrics
GetECSServiceRecommendationProjectedMetrics' :: Text -> MetricStatistic -> Int -> POSIX -> POSIX -> GetECSServiceRecommendationProjectedMetrics
-- | Create a value of GetECSServiceRecommendationProjectedMetrics
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetECSServiceRecommendationProjectedMetrics,
-- getECSServiceRecommendationProjectedMetrics_serviceArn - The
-- ARN that identifies the ECS service.
--
-- The following is the format of the ARN:
--
--
-- arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
--
--
-- $sel:stat:GetECSServiceRecommendationProjectedMetrics',
-- getECSServiceRecommendationProjectedMetrics_stat - The
-- statistic of the projected metrics.
--
-- $sel:period:GetECSServiceRecommendationProjectedMetrics',
-- getECSServiceRecommendationProjectedMetrics_period - The
-- granularity, in seconds, of the projected metrics data points.
--
-- $sel:startTime:GetECSServiceRecommendationProjectedMetrics',
-- getECSServiceRecommendationProjectedMetrics_startTime - The
-- timestamp of the first projected metrics data point to return.
--
-- $sel:endTime:GetECSServiceRecommendationProjectedMetrics',
-- getECSServiceRecommendationProjectedMetrics_endTime - The
-- timestamp of the last projected metrics data point to return.
newGetECSServiceRecommendationProjectedMetrics :: Text -> MetricStatistic -> Int -> UTCTime -> UTCTime -> GetECSServiceRecommendationProjectedMetrics
-- | See:
-- newGetECSServiceRecommendationProjectedMetricsResponse smart
-- constructor.
data GetECSServiceRecommendationProjectedMetricsResponse
GetECSServiceRecommendationProjectedMetricsResponse' :: Maybe [ECSServiceRecommendedOptionProjectedMetric] -> Int -> GetECSServiceRecommendationProjectedMetricsResponse
-- | Create a value of
-- GetECSServiceRecommendationProjectedMetricsResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:recommendedOptionProjectedMetrics:GetECSServiceRecommendationProjectedMetricsResponse',
-- getECSServiceRecommendationProjectedMetricsResponse_recommendedOptionProjectedMetrics
-- - An array of objects that describes the projected metrics.
--
--
-- $sel:httpStatus:GetECSServiceRecommendationProjectedMetricsResponse',
-- getECSServiceRecommendationProjectedMetricsResponse_httpStatus
-- - The response's http status code.
newGetECSServiceRecommendationProjectedMetricsResponse :: Int -> GetECSServiceRecommendationProjectedMetricsResponse
-- | See: newGetECSServiceRecommendations smart constructor.
data GetECSServiceRecommendations
GetECSServiceRecommendations' :: Maybe [Text] -> Maybe [ECSServiceRecommendationFilter] -> Maybe Natural -> Maybe Text -> Maybe [Text] -> GetECSServiceRecommendations
-- | Create a value of GetECSServiceRecommendations with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:GetECSServiceRecommendations',
-- getECSServiceRecommendations_accountIds - Return the ECS
-- service recommendations to the specified Amazon Web Services account
-- IDs.
--
-- If your account is the management account or the delegated
-- administrator of an organization, use this parameter to return the ECS
-- service recommendations to specific member accounts.
--
-- You can only specify one account ID per request.
--
-- $sel:filters:GetECSServiceRecommendations',
-- getECSServiceRecommendations_filters - An array of objects to
-- specify a filter that returns a more specific list of ECS service
-- recommendations.
--
-- $sel:maxResults:GetECSServiceRecommendations',
-- getECSServiceRecommendations_maxResults - The maximum number of
-- ECS service recommendations to return with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
--
-- GetECSServiceRecommendations,
-- getECSServiceRecommendations_nextToken - The token to advance
-- to the next page of ECS service recommendations.
--
-- $sel:serviceArns:GetECSServiceRecommendations',
-- getECSServiceRecommendations_serviceArns - The ARN that
-- identifies the ECS service.
--
-- The following is the format of the ARN:
--
--
-- arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
--
newGetECSServiceRecommendations :: GetECSServiceRecommendations
-- | See: newGetECSServiceRecommendationsResponse smart
-- constructor.
data GetECSServiceRecommendationsResponse
GetECSServiceRecommendationsResponse' :: Maybe [ECSServiceRecommendation] -> Maybe [GetRecommendationError] -> Maybe Text -> Int -> GetECSServiceRecommendationsResponse
-- | Create a value of GetECSServiceRecommendationsResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:ecsServiceRecommendations:GetECSServiceRecommendationsResponse',
-- getECSServiceRecommendationsResponse_ecsServiceRecommendations
-- - An array of objects that describe the ECS service recommendations.
--
-- $sel:errors:GetECSServiceRecommendationsResponse',
-- getECSServiceRecommendationsResponse_errors - An array of
-- objects that describe errors of the request.
--
-- GetECSServiceRecommendations,
-- getECSServiceRecommendationsResponse_nextToken - The token to
-- advance to the next page of ECS service recommendations.
--
-- $sel:httpStatus:GetECSServiceRecommendationsResponse',
-- getECSServiceRecommendationsResponse_httpStatus - The
-- response's http status code.
newGetECSServiceRecommendationsResponse :: Int -> GetECSServiceRecommendationsResponse
-- | See: newGetEffectiveRecommendationPreferences smart
-- constructor.
data GetEffectiveRecommendationPreferences
GetEffectiveRecommendationPreferences' :: Text -> GetEffectiveRecommendationPreferences
-- | Create a value of GetEffectiveRecommendationPreferences with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:resourceArn:GetEffectiveRecommendationPreferences',
-- getEffectiveRecommendationPreferences_resourceArn - The Amazon
-- Resource Name (ARN) of the resource for which to confirm effective
-- recommendation preferences. Only EC2 instance and Auto Scaling group
-- ARNs are currently supported.
newGetEffectiveRecommendationPreferences :: Text -> GetEffectiveRecommendationPreferences
-- | See: newGetEffectiveRecommendationPreferencesResponse
-- smart constructor.
data GetEffectiveRecommendationPreferencesResponse
GetEffectiveRecommendationPreferencesResponse' :: Maybe EnhancedInfrastructureMetrics -> Maybe ExternalMetricsPreference -> Int -> GetEffectiveRecommendationPreferencesResponse
-- | Create a value of GetEffectiveRecommendationPreferencesResponse
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetEffectiveRecommendationPreferencesResponse,
-- getEffectiveRecommendationPreferencesResponse_enhancedInfrastructureMetrics
-- - The status of the enhanced infrastructure metrics recommendation
-- preference. Considers all applicable preferences that you might have
-- set at the resource, account, and organization level.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh, and a status of Inactive
-- confirms that it's not yet applied to recommendations.
--
-- To validate whether the preference is applied to your last generated
-- set of recommendations, review the
-- effectiveRecommendationPreferences value in the response of
-- the GetAutoScalingGroupRecommendations and
-- GetEC2InstanceRecommendations actions.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
--
-- GetEffectiveRecommendationPreferencesResponse,
-- getEffectiveRecommendationPreferencesResponse_externalMetricsPreference
-- - The provider of the external metrics recommendation preference.
-- Considers all applicable preferences that you might have set at the
-- account and organization level.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
--
-- To validate whether the preference is applied to your last generated
-- set of recommendations, review the
-- effectiveRecommendationPreferences value in the response of
-- the GetEC2InstanceRecommendations actions.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
--
-- $sel:httpStatus:GetEffectiveRecommendationPreferencesResponse',
-- getEffectiveRecommendationPreferencesResponse_httpStatus - The
-- response's http status code.
newGetEffectiveRecommendationPreferencesResponse :: Int -> GetEffectiveRecommendationPreferencesResponse
-- | See: newGetEnrollmentStatus smart constructor.
data GetEnrollmentStatus
GetEnrollmentStatus' :: GetEnrollmentStatus
-- | Create a value of GetEnrollmentStatus with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
newGetEnrollmentStatus :: GetEnrollmentStatus
-- | See: newGetEnrollmentStatusResponse smart constructor.
data GetEnrollmentStatusResponse
GetEnrollmentStatusResponse' :: Maybe POSIX -> Maybe Bool -> Maybe Int -> Maybe Status -> Maybe Text -> Int -> GetEnrollmentStatusResponse
-- | Create a value of GetEnrollmentStatusResponse with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetEnrollmentStatusResponse,
-- getEnrollmentStatusResponse_lastUpdatedTimestamp - The Unix
-- epoch timestamp, in seconds, of when the account enrollment status was
-- last updated.
--
-- $sel:memberAccountsEnrolled:GetEnrollmentStatusResponse',
-- getEnrollmentStatusResponse_memberAccountsEnrolled - Confirms
-- the enrollment status of member accounts of the organization, if the
-- account is a management account of an organization.
--
--
-- $sel:numberOfMemberAccountsOptedIn:GetEnrollmentStatusResponse',
-- getEnrollmentStatusResponse_numberOfMemberAccountsOptedIn - The
-- count of organization member accounts that are opted in to the
-- service, if your account is an organization management account.
--
-- GetEnrollmentStatusResponse,
-- getEnrollmentStatusResponse_status - The enrollment status of
-- the account.
--
-- GetEnrollmentStatusResponse,
-- getEnrollmentStatusResponse_statusReason - The reason for the
-- enrollment status of the account.
--
-- For example, an account might show a status of Pending
-- because member accounts of an organization require more time to be
-- enrolled in the service.
--
-- $sel:httpStatus:GetEnrollmentStatusResponse',
-- getEnrollmentStatusResponse_httpStatus - The response's http
-- status code.
newGetEnrollmentStatusResponse :: Int -> GetEnrollmentStatusResponse
-- | See: newGetEnrollmentStatusesForOrganization smart
-- constructor.
data GetEnrollmentStatusesForOrganization
GetEnrollmentStatusesForOrganization' :: Maybe [EnrollmentFilter] -> Maybe Natural -> Maybe Text -> GetEnrollmentStatusesForOrganization
-- | Create a value of GetEnrollmentStatusesForOrganization with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:filters:GetEnrollmentStatusesForOrganization',
-- getEnrollmentStatusesForOrganization_filters - An array of
-- objects to specify a filter that returns a more specific list of
-- account enrollment statuses.
--
-- $sel:maxResults:GetEnrollmentStatusesForOrganization',
-- getEnrollmentStatusesForOrganization_maxResults - The maximum
-- number of account enrollment statuses to return with a single request.
-- You can specify up to 100 statuses to return with each request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
--
-- GetEnrollmentStatusesForOrganization,
-- getEnrollmentStatusesForOrganization_nextToken - The token to
-- advance to the next page of account enrollment statuses.
newGetEnrollmentStatusesForOrganization :: GetEnrollmentStatusesForOrganization
-- | See: newGetEnrollmentStatusesForOrganizationResponse
-- smart constructor.
data GetEnrollmentStatusesForOrganizationResponse
GetEnrollmentStatusesForOrganizationResponse' :: Maybe [AccountEnrollmentStatus] -> Maybe Text -> Int -> GetEnrollmentStatusesForOrganizationResponse
-- | Create a value of GetEnrollmentStatusesForOrganizationResponse
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:accountEnrollmentStatuses:GetEnrollmentStatusesForOrganizationResponse',
-- getEnrollmentStatusesForOrganizationResponse_accountEnrollmentStatuses
-- - An array of objects that describe the enrollment statuses of
-- organization member accounts.
--
-- GetEnrollmentStatusesForOrganization,
-- getEnrollmentStatusesForOrganizationResponse_nextToken - The
-- token to use to advance to the next page of account enrollment
-- statuses.
--
-- This value is null when there are no more pages of account enrollment
-- statuses to return.
--
-- $sel:httpStatus:GetEnrollmentStatusesForOrganizationResponse',
-- getEnrollmentStatusesForOrganizationResponse_httpStatus - The
-- response's http status code.
newGetEnrollmentStatusesForOrganizationResponse :: Int -> GetEnrollmentStatusesForOrganizationResponse
-- | See: newGetLambdaFunctionRecommendations smart
-- constructor.
data GetLambdaFunctionRecommendations
GetLambdaFunctionRecommendations' :: Maybe [Text] -> Maybe [LambdaFunctionRecommendationFilter] -> Maybe [Text] -> Maybe Natural -> Maybe Text -> GetLambdaFunctionRecommendations
-- | Create a value of GetLambdaFunctionRecommendations with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:GetLambdaFunctionRecommendations',
-- getLambdaFunctionRecommendations_accountIds - The ID of the
-- Amazon Web Services account for which to return function
-- recommendations.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- function recommendations.
--
-- Only one account ID can be specified per request.
--
-- $sel:filters:GetLambdaFunctionRecommendations',
-- getLambdaFunctionRecommendations_filters - An array of objects
-- to specify a filter that returns a more specific list of function
-- recommendations.
--
-- $sel:functionArns:GetLambdaFunctionRecommendations',
-- getLambdaFunctionRecommendations_functionArns - The Amazon
-- Resource Name (ARN) of the functions for which to return
-- recommendations.
--
-- You can specify a qualified or unqualified ARN. If you specify an
-- unqualified ARN without a function version suffix, Compute Optimizer
-- will return recommendations for the latest ($LATEST) version
-- of the function. If you specify a qualified ARN with a version suffix,
-- Compute Optimizer will return recommendations for the specified
-- function version. For more information about using function versions,
-- see Using versions in the Lambda Developer Guide.
--
-- $sel:maxResults:GetLambdaFunctionRecommendations',
-- getLambdaFunctionRecommendations_maxResults - The maximum
-- number of function recommendations to return with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
--
-- GetLambdaFunctionRecommendations,
-- getLambdaFunctionRecommendations_nextToken - The token to
-- advance to the next page of function recommendations.
newGetLambdaFunctionRecommendations :: GetLambdaFunctionRecommendations
-- | See: newGetLambdaFunctionRecommendationsResponse smart
-- constructor.
data GetLambdaFunctionRecommendationsResponse
GetLambdaFunctionRecommendationsResponse' :: Maybe [LambdaFunctionRecommendation] -> Maybe Text -> Int -> GetLambdaFunctionRecommendationsResponse
-- | Create a value of GetLambdaFunctionRecommendationsResponse with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:lambdaFunctionRecommendations:GetLambdaFunctionRecommendationsResponse',
-- getLambdaFunctionRecommendationsResponse_lambdaFunctionRecommendations
-- - An array of objects that describe function recommendations.
--
-- GetLambdaFunctionRecommendations,
-- getLambdaFunctionRecommendationsResponse_nextToken - The token
-- to use to advance to the next page of function recommendations.
--
-- This value is null when there are no more pages of function
-- recommendations to return.
--
-- $sel:httpStatus:GetLambdaFunctionRecommendationsResponse',
-- getLambdaFunctionRecommendationsResponse_httpStatus - The
-- response's http status code.
newGetLambdaFunctionRecommendationsResponse :: Int -> GetLambdaFunctionRecommendationsResponse
-- | See: newGetRecommendationPreferences smart constructor.
data GetRecommendationPreferences
GetRecommendationPreferences' :: Maybe Natural -> Maybe Text -> Maybe Scope -> ResourceType -> GetRecommendationPreferences
-- | Create a value of GetRecommendationPreferences with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:maxResults:GetRecommendationPreferences',
-- getRecommendationPreferences_maxResults - The maximum number of
-- recommendation preferences to return with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
--
-- GetRecommendationPreferences,
-- getRecommendationPreferences_nextToken - The token to advance
-- to the next page of recommendation preferences.
--
-- GetRecommendationPreferences,
-- getRecommendationPreferences_scope - An object that describes
-- the scope of the recommendation preference to return.
--
-- You can return recommendation preferences that are created at the
-- organization level (for management accounts of an organization only),
-- account level, and resource level. For more information, see
-- Activating enhanced infrastructure metrics in the Compute
-- Optimizer User Guide.
--
-- GetRecommendationPreferences,
-- getRecommendationPreferences_resourceType - The target resource
-- type of the recommendation preference for which to return preferences.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
--
-- The valid values for this parameter are Ec2Instance and
-- AutoScalingGroup.
newGetRecommendationPreferences :: ResourceType -> GetRecommendationPreferences
-- | See: newGetRecommendationPreferencesResponse smart
-- constructor.
data GetRecommendationPreferencesResponse
GetRecommendationPreferencesResponse' :: Maybe Text -> Maybe [RecommendationPreferencesDetail] -> Int -> GetRecommendationPreferencesResponse
-- | Create a value of GetRecommendationPreferencesResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetRecommendationPreferences,
-- getRecommendationPreferencesResponse_nextToken - The token to
-- use to advance to the next page of recommendation preferences.
--
-- This value is null when there are no more pages of recommendation
-- preferences to return.
--
--
-- $sel:recommendationPreferencesDetails:GetRecommendationPreferencesResponse',
-- getRecommendationPreferencesResponse_recommendationPreferencesDetails
-- - An array of objects that describe recommendation preferences.
--
-- $sel:httpStatus:GetRecommendationPreferencesResponse',
-- getRecommendationPreferencesResponse_httpStatus - The
-- response's http status code.
newGetRecommendationPreferencesResponse :: Int -> GetRecommendationPreferencesResponse
-- | See: newGetRecommendationSummaries smart constructor.
data GetRecommendationSummaries
GetRecommendationSummaries' :: Maybe [Text] -> Maybe Natural -> Maybe Text -> GetRecommendationSummaries
-- | Create a value of GetRecommendationSummaries with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountIds:GetRecommendationSummaries',
-- getRecommendationSummaries_accountIds - The ID of the Amazon
-- Web Services account for which to return recommendation summaries.
--
-- If your account is the management account of an organization, use this
-- parameter to specify the member account for which you want to return
-- recommendation summaries.
--
-- Only one account ID can be specified per request.
--
-- $sel:maxResults:GetRecommendationSummaries',
-- getRecommendationSummaries_maxResults - The maximum number of
-- recommendation summaries to return with a single request.
--
-- To retrieve the remaining results, make another request with the
-- returned nextToken value.
--
-- GetRecommendationSummaries,
-- getRecommendationSummaries_nextToken - The token to advance to
-- the next page of recommendation summaries.
newGetRecommendationSummaries :: GetRecommendationSummaries
-- | See: newGetRecommendationSummariesResponse smart
-- constructor.
data GetRecommendationSummariesResponse
GetRecommendationSummariesResponse' :: Maybe Text -> Maybe [RecommendationSummary] -> Int -> GetRecommendationSummariesResponse
-- | Create a value of GetRecommendationSummariesResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- GetRecommendationSummaries,
-- getRecommendationSummariesResponse_nextToken - The token to use
-- to advance to the next page of recommendation summaries.
--
-- This value is null when there are no more pages of recommendation
-- summaries to return.
--
--
-- $sel:recommendationSummaries:GetRecommendationSummariesResponse',
-- getRecommendationSummariesResponse_recommendationSummaries - An
-- array of objects that summarize a recommendation.
--
-- $sel:httpStatus:GetRecommendationSummariesResponse',
-- getRecommendationSummariesResponse_httpStatus - The response's
-- http status code.
newGetRecommendationSummariesResponse :: Int -> GetRecommendationSummariesResponse
-- | See: newPutRecommendationPreferences smart constructor.
data PutRecommendationPreferences
PutRecommendationPreferences' :: Maybe EnhancedInfrastructureMetrics -> Maybe ExternalMetricsPreference -> Maybe InferredWorkloadTypesPreference -> Maybe Scope -> ResourceType -> PutRecommendationPreferences
-- | Create a value of PutRecommendationPreferences with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- PutRecommendationPreferences,
-- putRecommendationPreferences_enhancedInfrastructureMetrics -
-- The status of the enhanced infrastructure metrics recommendation
-- preference to create or update.
--
-- Specify the Active status to activate the preference, or
-- specify Inactive to deactivate the preference.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
--
-- PutRecommendationPreferences,
-- putRecommendationPreferences_externalMetricsPreference - The
-- provider of the external metrics recommendation preference to create
-- or update.
--
-- Specify a valid provider in the source field to activate the
-- preference. To delete this preference, see the
-- DeleteRecommendationPreferences action.
--
-- This preference can only be set for the Ec2Instance resource
-- type.
--
-- For more information, see External metrics ingestion in the
-- Compute Optimizer User Guide.
--
-- PutRecommendationPreferences,
-- putRecommendationPreferences_inferredWorkloadTypes - The status
-- of the inferred workload types recommendation preference to create or
-- update.
--
-- The inferred workload type feature is active by default. To deactivate
-- it, create a recommendation preference.
--
-- Specify the Inactive status to deactivate the feature, or
-- specify Active to activate it.
--
-- For more information, see Inferred workload types in the
-- Compute Optimizer User Guide.
--
-- PutRecommendationPreferences,
-- putRecommendationPreferences_scope - An object that describes
-- the scope of the recommendation preference to create.
--
-- You can create recommendation preferences at the organization level
-- (for management accounts of an organization only), account level, and
-- resource level. For more information, see Activating enhanced
-- infrastructure metrics in the Compute Optimizer User Guide.
--
-- You cannot create recommendation preferences for Auto Scaling groups
-- at the organization and account levels. You can create recommendation
-- preferences for Auto Scaling groups only at the resource level by
-- specifying a scope name of ResourceArn and a scope value of
-- the Auto Scaling group Amazon Resource Name (ARN). This will configure
-- the preference for all instances that are part of the specified Auto
-- Scaling group. You also cannot create recommendation preferences at
-- the resource level for instances that are part of an Auto Scaling
-- group. You can create recommendation preferences at the resource level
-- only for standalone instances.
--
-- PutRecommendationPreferences,
-- putRecommendationPreferences_resourceType - The target resource
-- type of the recommendation preference to create.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
--
-- The valid values for this parameter are Ec2Instance and
-- AutoScalingGroup.
newPutRecommendationPreferences :: ResourceType -> PutRecommendationPreferences
-- | See: newPutRecommendationPreferencesResponse smart
-- constructor.
data PutRecommendationPreferencesResponse
PutRecommendationPreferencesResponse' :: Int -> PutRecommendationPreferencesResponse
-- | Create a value of PutRecommendationPreferencesResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:httpStatus:PutRecommendationPreferencesResponse',
-- putRecommendationPreferencesResponse_httpStatus - The
-- response's http status code.
newPutRecommendationPreferencesResponse :: Int -> PutRecommendationPreferencesResponse
-- | See: newUpdateEnrollmentStatus smart constructor.
data UpdateEnrollmentStatus
UpdateEnrollmentStatus' :: Maybe Bool -> Status -> UpdateEnrollmentStatus
-- | Create a value of UpdateEnrollmentStatus with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:includeMemberAccounts:UpdateEnrollmentStatus',
-- updateEnrollmentStatus_includeMemberAccounts - Indicates
-- whether to enroll member accounts of the organization if the account
-- is the management account of an organization.
--
-- UpdateEnrollmentStatus, updateEnrollmentStatus_status -
-- The new enrollment status of the account.
--
-- The following status options are available:
--
--
-- - Active - Opts in your account to the Compute Optimizer
-- service. Compute Optimizer begins analyzing the configuration and
-- utilization metrics of your Amazon Web Services resources after you
-- opt in. For more information, see Metrics analyzed by Compute
-- Optimizer in the Compute Optimizer User Guide.
-- - Inactive - Opts out your account from the Compute
-- Optimizer service. Your account's recommendations and related metrics
-- data will be deleted from Compute Optimizer after you opt out.
--
--
-- The Pending and Failed options cannot be used to
-- update the enrollment status of an account. They are returned in the
-- response of a request to update the enrollment status of an account.
newUpdateEnrollmentStatus :: Status -> UpdateEnrollmentStatus
-- | See: newUpdateEnrollmentStatusResponse smart
-- constructor.
data UpdateEnrollmentStatusResponse
UpdateEnrollmentStatusResponse' :: Maybe Status -> Maybe Text -> Int -> UpdateEnrollmentStatusResponse
-- | Create a value of UpdateEnrollmentStatusResponse with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- UpdateEnrollmentStatus,
-- updateEnrollmentStatusResponse_status - The enrollment status
-- of the account.
--
-- UpdateEnrollmentStatusResponse,
-- updateEnrollmentStatusResponse_statusReason - The reason for
-- the enrollment status of the account. For example, an account might
-- show a status of Pending because member accounts of an
-- organization require more time to be enrolled in the service.
--
-- $sel:httpStatus:UpdateEnrollmentStatusResponse',
-- updateEnrollmentStatusResponse_httpStatus - The response's http
-- status code.
newUpdateEnrollmentStatusResponse :: Int -> UpdateEnrollmentStatusResponse
newtype AutoScalingConfiguration
AutoScalingConfiguration' :: Text -> AutoScalingConfiguration
[fromAutoScalingConfiguration] :: AutoScalingConfiguration -> Text
pattern AutoScalingConfiguration_TargetTrackingScalingCpu :: AutoScalingConfiguration
pattern AutoScalingConfiguration_TargetTrackingScalingMemory :: AutoScalingConfiguration
newtype CpuVendorArchitecture
CpuVendorArchitecture' :: Text -> CpuVendorArchitecture
[fromCpuVendorArchitecture] :: CpuVendorArchitecture -> Text
pattern CpuVendorArchitecture_AWS_ARM64 :: CpuVendorArchitecture
pattern CpuVendorArchitecture_CURRENT :: CpuVendorArchitecture
newtype Currency
Currency' :: Text -> Currency
[fromCurrency] :: Currency -> Text
pattern Currency_CNY :: Currency
pattern Currency_USD :: Currency
newtype CurrentPerformanceRisk
CurrentPerformanceRisk' :: Text -> CurrentPerformanceRisk
[fromCurrentPerformanceRisk] :: CurrentPerformanceRisk -> Text
pattern CurrentPerformanceRisk_High :: CurrentPerformanceRisk
pattern CurrentPerformanceRisk_Low :: CurrentPerformanceRisk
pattern CurrentPerformanceRisk_Medium :: CurrentPerformanceRisk
pattern CurrentPerformanceRisk_VeryLow :: CurrentPerformanceRisk
newtype EBSFilterName
EBSFilterName' :: Text -> EBSFilterName
[fromEBSFilterName] :: EBSFilterName -> Text
pattern EBSFilterName_Finding :: EBSFilterName
newtype EBSFinding
EBSFinding' :: Text -> EBSFinding
[fromEBSFinding] :: EBSFinding -> Text
pattern EBSFinding_NotOptimized :: EBSFinding
pattern EBSFinding_Optimized :: EBSFinding
newtype EBSMetricName
EBSMetricName' :: Text -> EBSMetricName
[fromEBSMetricName] :: EBSMetricName -> Text
pattern EBSMetricName_VolumeReadBytesPerSecond :: EBSMetricName
pattern EBSMetricName_VolumeReadOpsPerSecond :: EBSMetricName
pattern EBSMetricName_VolumeWriteBytesPerSecond :: EBSMetricName
pattern EBSMetricName_VolumeWriteOpsPerSecond :: EBSMetricName
newtype ECSServiceLaunchType
ECSServiceLaunchType' :: Text -> ECSServiceLaunchType
[fromECSServiceLaunchType] :: ECSServiceLaunchType -> Text
pattern ECSServiceLaunchType_EC2 :: ECSServiceLaunchType
pattern ECSServiceLaunchType_Fargate :: ECSServiceLaunchType
newtype ECSServiceMetricName
ECSServiceMetricName' :: Text -> ECSServiceMetricName
[fromECSServiceMetricName] :: ECSServiceMetricName -> Text
pattern ECSServiceMetricName_Cpu :: ECSServiceMetricName
pattern ECSServiceMetricName_Memory :: ECSServiceMetricName
newtype ECSServiceMetricStatistic
ECSServiceMetricStatistic' :: Text -> ECSServiceMetricStatistic
[fromECSServiceMetricStatistic] :: ECSServiceMetricStatistic -> Text
pattern ECSServiceMetricStatistic_Average :: ECSServiceMetricStatistic
pattern ECSServiceMetricStatistic_Maximum :: ECSServiceMetricStatistic
newtype ECSServiceRecommendationFilterName
ECSServiceRecommendationFilterName' :: Text -> ECSServiceRecommendationFilterName
[fromECSServiceRecommendationFilterName] :: ECSServiceRecommendationFilterName -> Text
pattern ECSServiceRecommendationFilterName_Finding :: ECSServiceRecommendationFilterName
pattern ECSServiceRecommendationFilterName_FindingReasonCode :: ECSServiceRecommendationFilterName
newtype ECSServiceRecommendationFinding
ECSServiceRecommendationFinding' :: Text -> ECSServiceRecommendationFinding
[fromECSServiceRecommendationFinding] :: ECSServiceRecommendationFinding -> Text
pattern ECSServiceRecommendationFinding_Optimized :: ECSServiceRecommendationFinding
pattern ECSServiceRecommendationFinding_Overprovisioned :: ECSServiceRecommendationFinding
pattern ECSServiceRecommendationFinding_Underprovisioned :: ECSServiceRecommendationFinding
newtype ECSServiceRecommendationFindingReasonCode
ECSServiceRecommendationFindingReasonCode' :: Text -> ECSServiceRecommendationFindingReasonCode
[fromECSServiceRecommendationFindingReasonCode] :: ECSServiceRecommendationFindingReasonCode -> Text
pattern ECSServiceRecommendationFindingReasonCode_CPUOverprovisioned :: ECSServiceRecommendationFindingReasonCode
pattern ECSServiceRecommendationFindingReasonCode_CPUUnderprovisioned :: ECSServiceRecommendationFindingReasonCode
pattern ECSServiceRecommendationFindingReasonCode_MemoryOverprovisioned :: ECSServiceRecommendationFindingReasonCode
pattern ECSServiceRecommendationFindingReasonCode_MemoryUnderprovisioned :: ECSServiceRecommendationFindingReasonCode
newtype EnhancedInfrastructureMetrics
EnhancedInfrastructureMetrics' :: Text -> EnhancedInfrastructureMetrics
[fromEnhancedInfrastructureMetrics] :: EnhancedInfrastructureMetrics -> Text
pattern EnhancedInfrastructureMetrics_Active :: EnhancedInfrastructureMetrics
pattern EnhancedInfrastructureMetrics_Inactive :: EnhancedInfrastructureMetrics
newtype EnrollmentFilterName
EnrollmentFilterName' :: Text -> EnrollmentFilterName
[fromEnrollmentFilterName] :: EnrollmentFilterName -> Text
pattern EnrollmentFilterName_Status :: EnrollmentFilterName
newtype ExportableAutoScalingGroupField
ExportableAutoScalingGroupField' :: Text -> ExportableAutoScalingGroupField
[fromExportableAutoScalingGroupField] :: ExportableAutoScalingGroupField -> Text
pattern ExportableAutoScalingGroupField_AccountId :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_AutoScalingGroupArn :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_AutoScalingGroupName :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentConfigurationDesiredCapacity :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentConfigurationInstanceType :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentConfigurationMaxSize :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentConfigurationMinSize :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentMemory :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentNetwork :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentOnDemandPrice :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentPerformanceRisk :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentStandardOneYearNoUpfrontReservedPrice :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentStandardThreeYearNoUpfrontReservedPrice :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentStorage :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_CurrentVCpus :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_EffectiveRecommendationPreferencesCpuVendorArchitectures :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_EffectiveRecommendationPreferencesInferredWorkloadTypes :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_Finding :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_InferredWorkloadTypes :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_LastRefreshTimestamp :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_LookbackPeriodInDays :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsConfigurationDesiredCapacity :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsConfigurationInstanceType :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsConfigurationMaxSize :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsConfigurationMinSize :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsEstimatedMonthlySavingsCurrency :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsEstimatedMonthlySavingsValue :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsMemory :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsMigrationEffort :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsNetwork :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsOnDemandPrice :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsPerformanceRisk :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsProjectedUtilizationMetricsCpuMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsSavingsOpportunityPercentage :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsStandardOneYearNoUpfrontReservedPrice :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsStorage :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_RecommendationOptionsVcpus :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsCpuMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsDiskReadBytesPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsDiskReadOpsPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsDiskWriteBytesPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsDiskWriteOpsPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsEbsReadBytesPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsEbsReadOpsPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsEbsWriteBytesPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsEbsWriteOpsPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsMemoryMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsNetworkInBytesPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsNetworkOutBytesPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsNetworkPacketsInPerSecondMaximum :: ExportableAutoScalingGroupField
pattern ExportableAutoScalingGroupField_UtilizationMetricsNetworkPacketsOutPerSecondMaximum :: ExportableAutoScalingGroupField
newtype ExportableECSServiceField
ExportableECSServiceField' :: Text -> ExportableECSServiceField
[fromExportableECSServiceField] :: ExportableECSServiceField -> Text
pattern ExportableECSServiceField_AccountId :: ExportableECSServiceField
pattern ExportableECSServiceField_CurrentPerformanceRisk :: ExportableECSServiceField
pattern ExportableECSServiceField_CurrentServiceConfigurationAutoScalingConfiguration :: ExportableECSServiceField
pattern ExportableECSServiceField_CurrentServiceConfigurationCpu :: ExportableECSServiceField
pattern ExportableECSServiceField_CurrentServiceConfigurationMemory :: ExportableECSServiceField
pattern ExportableECSServiceField_CurrentServiceConfigurationTaskDefinitionArn :: ExportableECSServiceField
pattern ExportableECSServiceField_CurrentServiceContainerConfigurations :: ExportableECSServiceField
pattern ExportableECSServiceField_Finding :: ExportableECSServiceField
pattern ExportableECSServiceField_FindingReasonCodes :: ExportableECSServiceField
pattern ExportableECSServiceField_LastRefreshTimestamp :: ExportableECSServiceField
pattern ExportableECSServiceField_LaunchType :: ExportableECSServiceField
pattern ExportableECSServiceField_LookbackPeriodInDays :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsContainerRecommendations :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsCpu :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsEstimatedMonthlySavingsCurrency :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsEstimatedMonthlySavingsValue :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsMemory :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsProjectedUtilizationMetricsCpuMaximum :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum :: ExportableECSServiceField
pattern ExportableECSServiceField_RecommendationOptionsSavingsOpportunityPercentage :: ExportableECSServiceField
pattern ExportableECSServiceField_ServiceArn :: ExportableECSServiceField
pattern ExportableECSServiceField_UtilizationMetricsCpuMaximum :: ExportableECSServiceField
pattern ExportableECSServiceField_UtilizationMetricsMemoryMaximum :: ExportableECSServiceField
newtype ExportableInstanceField
ExportableInstanceField' :: Text -> ExportableInstanceField
[fromExportableInstanceField] :: ExportableInstanceField -> Text
pattern ExportableInstanceField_AccountId :: ExportableInstanceField
pattern ExportableInstanceField_CurrentInstanceType :: ExportableInstanceField
pattern ExportableInstanceField_CurrentMemory :: ExportableInstanceField
pattern ExportableInstanceField_CurrentNetwork :: ExportableInstanceField
pattern ExportableInstanceField_CurrentOnDemandPrice :: ExportableInstanceField
pattern ExportableInstanceField_CurrentPerformanceRisk :: ExportableInstanceField
pattern ExportableInstanceField_CurrentStandardOneYearNoUpfrontReservedPrice :: ExportableInstanceField
pattern ExportableInstanceField_CurrentStandardThreeYearNoUpfrontReservedPrice :: ExportableInstanceField
pattern ExportableInstanceField_CurrentStorage :: ExportableInstanceField
pattern ExportableInstanceField_CurrentVCpus :: ExportableInstanceField
pattern ExportableInstanceField_EffectiveRecommendationPreferencesCpuVendorArchitectures :: ExportableInstanceField
pattern ExportableInstanceField_EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics :: ExportableInstanceField
pattern ExportableInstanceField_EffectiveRecommendationPreferencesExternalMetricsSource :: ExportableInstanceField
pattern ExportableInstanceField_EffectiveRecommendationPreferencesInferredWorkloadTypes :: ExportableInstanceField
pattern ExportableInstanceField_Finding :: ExportableInstanceField
pattern ExportableInstanceField_FindingReasonCodes :: ExportableInstanceField
pattern ExportableInstanceField_InferredWorkloadTypes :: ExportableInstanceField
pattern ExportableInstanceField_InstanceArn :: ExportableInstanceField
pattern ExportableInstanceField_InstanceName :: ExportableInstanceField
pattern ExportableInstanceField_LastRefreshTimestamp :: ExportableInstanceField
pattern ExportableInstanceField_LookbackPeriodInDays :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsEstimatedMonthlySavingsCurrency :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsEstimatedMonthlySavingsValue :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsInstanceType :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsMemory :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsMigrationEffort :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsNetwork :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsOnDemandPrice :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsPerformanceRisk :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsPlatformDifferences :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsProjectedUtilizationMetricsCpuMaximum :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsSavingsOpportunityPercentage :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsStandardOneYearNoUpfrontReservedPrice :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsStorage :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationOptionsVcpus :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationsSourcesRecommendationSourceArn :: ExportableInstanceField
pattern ExportableInstanceField_RecommendationsSourcesRecommendationSourceType :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsCpuMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsDiskReadBytesPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsDiskReadOpsPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsDiskWriteBytesPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsDiskWriteOpsPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsEbsReadBytesPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsEbsReadOpsPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsEbsWriteBytesPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsEbsWriteOpsPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsMemoryMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsNetworkInBytesPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsNetworkOutBytesPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsNetworkPacketsInPerSecondMaximum :: ExportableInstanceField
pattern ExportableInstanceField_UtilizationMetricsNetworkPacketsOutPerSecondMaximum :: ExportableInstanceField
newtype ExportableLambdaFunctionField
ExportableLambdaFunctionField' :: Text -> ExportableLambdaFunctionField
[fromExportableLambdaFunctionField] :: ExportableLambdaFunctionField -> Text
pattern ExportableLambdaFunctionField_AccountId :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_CurrentConfigurationMemorySize :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_CurrentConfigurationTimeout :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_CurrentCostAverage :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_CurrentCostTotal :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_CurrentPerformanceRisk :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_Finding :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_FindingReasonCodes :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_FunctionArn :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_FunctionVersion :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_LastRefreshTimestamp :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_LookbackPeriodInDays :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_NumberOfInvocations :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsConfigurationMemorySize :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsCostHigh :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsCostLow :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsEstimatedMonthlySavingsCurrency :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsEstimatedMonthlySavingsValue :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsProjectedUtilizationMetricsDurationExpected :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsProjectedUtilizationMetricsDurationLowerBound :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsProjectedUtilizationMetricsDurationUpperBound :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_RecommendationOptionsSavingsOpportunityPercentage :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_UtilizationMetricsDurationAverage :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_UtilizationMetricsDurationMaximum :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_UtilizationMetricsMemoryAverage :: ExportableLambdaFunctionField
pattern ExportableLambdaFunctionField_UtilizationMetricsMemoryMaximum :: ExportableLambdaFunctionField
newtype ExportableVolumeField
ExportableVolumeField' :: Text -> ExportableVolumeField
[fromExportableVolumeField] :: ExportableVolumeField -> Text
pattern ExportableVolumeField_AccountId :: ExportableVolumeField
pattern ExportableVolumeField_CurrentConfigurationVolumeBaselineIOPS :: ExportableVolumeField
pattern ExportableVolumeField_CurrentConfigurationVolumeBaselineThroughput :: ExportableVolumeField
pattern ExportableVolumeField_CurrentConfigurationVolumeBurstIOPS :: ExportableVolumeField
pattern ExportableVolumeField_CurrentConfigurationVolumeBurstThroughput :: ExportableVolumeField
pattern ExportableVolumeField_CurrentConfigurationVolumeSize :: ExportableVolumeField
pattern ExportableVolumeField_CurrentConfigurationVolumeType :: ExportableVolumeField
pattern ExportableVolumeField_CurrentMonthlyPrice :: ExportableVolumeField
pattern ExportableVolumeField_CurrentPerformanceRisk :: ExportableVolumeField
pattern ExportableVolumeField_Finding :: ExportableVolumeField
pattern ExportableVolumeField_LastRefreshTimestamp :: ExportableVolumeField
pattern ExportableVolumeField_LookbackPeriodInDays :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsConfigurationVolumeBaselineIOPS :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsConfigurationVolumeBaselineThroughput :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsConfigurationVolumeBurstIOPS :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsConfigurationVolumeBurstThroughput :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsConfigurationVolumeSize :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsConfigurationVolumeType :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsEstimatedMonthlySavingsCurrency :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsEstimatedMonthlySavingsValue :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsMonthlyPrice :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsPerformanceRisk :: ExportableVolumeField
pattern ExportableVolumeField_RecommendationOptionsSavingsOpportunityPercentage :: ExportableVolumeField
pattern ExportableVolumeField_UtilizationMetricsVolumeReadBytesPerSecondMaximum :: ExportableVolumeField
pattern ExportableVolumeField_UtilizationMetricsVolumeReadOpsPerSecondMaximum :: ExportableVolumeField
pattern ExportableVolumeField_UtilizationMetricsVolumeWriteBytesPerSecondMaximum :: ExportableVolumeField
pattern ExportableVolumeField_UtilizationMetricsVolumeWriteOpsPerSecondMaximum :: ExportableVolumeField
pattern ExportableVolumeField_VolumeArn :: ExportableVolumeField
newtype ExternalMetricsSource
ExternalMetricsSource' :: Text -> ExternalMetricsSource
[fromExternalMetricsSource] :: ExternalMetricsSource -> Text
pattern ExternalMetricsSource_Datadog :: ExternalMetricsSource
pattern ExternalMetricsSource_Dynatrace :: ExternalMetricsSource
pattern ExternalMetricsSource_Instana :: ExternalMetricsSource
pattern ExternalMetricsSource_NewRelic :: ExternalMetricsSource
newtype FileFormat
FileFormat' :: Text -> FileFormat
[fromFileFormat] :: FileFormat -> Text
pattern FileFormat_Csv :: FileFormat
newtype FilterName
FilterName' :: Text -> FilterName
[fromFilterName] :: FilterName -> Text
pattern FilterName_Finding :: FilterName
pattern FilterName_FindingReasonCodes :: FilterName
pattern FilterName_RecommendationSourceType :: FilterName
newtype Finding
Finding' :: Text -> Finding
[fromFinding] :: Finding -> Text
pattern Finding_NotOptimized :: Finding
pattern Finding_Optimized :: Finding
pattern Finding_Overprovisioned :: Finding
pattern Finding_Underprovisioned :: Finding
newtype FindingReasonCode
FindingReasonCode' :: Text -> FindingReasonCode
[fromFindingReasonCode] :: FindingReasonCode -> Text
pattern FindingReasonCode_MemoryOverprovisioned :: FindingReasonCode
pattern FindingReasonCode_MemoryUnderprovisioned :: FindingReasonCode
newtype InferredWorkloadType
InferredWorkloadType' :: Text -> InferredWorkloadType
[fromInferredWorkloadType] :: InferredWorkloadType -> Text
pattern InferredWorkloadType_AmazonEmr :: InferredWorkloadType
pattern InferredWorkloadType_ApacheCassandra :: InferredWorkloadType
pattern InferredWorkloadType_ApacheHadoop :: InferredWorkloadType
pattern InferredWorkloadType_Memcached :: InferredWorkloadType
pattern InferredWorkloadType_Nginx :: InferredWorkloadType
pattern InferredWorkloadType_PostgreSql :: InferredWorkloadType
pattern InferredWorkloadType_Redis :: InferredWorkloadType
newtype InferredWorkloadTypesPreference
InferredWorkloadTypesPreference' :: Text -> InferredWorkloadTypesPreference
[fromInferredWorkloadTypesPreference] :: InferredWorkloadTypesPreference -> Text
pattern InferredWorkloadTypesPreference_Active :: InferredWorkloadTypesPreference
pattern InferredWorkloadTypesPreference_Inactive :: InferredWorkloadTypesPreference
newtype InstanceRecommendationFindingReasonCode
InstanceRecommendationFindingReasonCode' :: Text -> InstanceRecommendationFindingReasonCode
[fromInstanceRecommendationFindingReasonCode] :: InstanceRecommendationFindingReasonCode -> Text
pattern InstanceRecommendationFindingReasonCode_CPUOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_CPUUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_DiskIOPSOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_DiskIOPSUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_DiskThroughputOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_DiskThroughputUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_EBSIOPSOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_EBSIOPSUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_EBSThroughputOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_EBSThroughputUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_MemoryOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_MemoryUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_NetworkBandwidthOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_NetworkBandwidthUnderprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_NetworkPPSOverprovisioned :: InstanceRecommendationFindingReasonCode
pattern InstanceRecommendationFindingReasonCode_NetworkPPSUnderprovisioned :: InstanceRecommendationFindingReasonCode
newtype JobFilterName
JobFilterName' :: Text -> JobFilterName
[fromJobFilterName] :: JobFilterName -> Text
pattern JobFilterName_JobStatus :: JobFilterName
pattern JobFilterName_ResourceType :: JobFilterName
newtype JobStatus
JobStatus' :: Text -> JobStatus
[fromJobStatus] :: JobStatus -> Text
pattern JobStatus_Complete :: JobStatus
pattern JobStatus_Failed :: JobStatus
pattern JobStatus_InProgress :: JobStatus
pattern JobStatus_Queued :: JobStatus
newtype LambdaFunctionMemoryMetricName
LambdaFunctionMemoryMetricName' :: Text -> LambdaFunctionMemoryMetricName
[fromLambdaFunctionMemoryMetricName] :: LambdaFunctionMemoryMetricName -> Text
pattern LambdaFunctionMemoryMetricName_Duration :: LambdaFunctionMemoryMetricName
newtype LambdaFunctionMemoryMetricStatistic
LambdaFunctionMemoryMetricStatistic' :: Text -> LambdaFunctionMemoryMetricStatistic
[fromLambdaFunctionMemoryMetricStatistic] :: LambdaFunctionMemoryMetricStatistic -> Text
pattern LambdaFunctionMemoryMetricStatistic_Expected :: LambdaFunctionMemoryMetricStatistic
pattern LambdaFunctionMemoryMetricStatistic_LowerBound :: LambdaFunctionMemoryMetricStatistic
pattern LambdaFunctionMemoryMetricStatistic_UpperBound :: LambdaFunctionMemoryMetricStatistic
newtype LambdaFunctionMetricName
LambdaFunctionMetricName' :: Text -> LambdaFunctionMetricName
[fromLambdaFunctionMetricName] :: LambdaFunctionMetricName -> Text
pattern LambdaFunctionMetricName_Duration :: LambdaFunctionMetricName
pattern LambdaFunctionMetricName_Memory :: LambdaFunctionMetricName
newtype LambdaFunctionMetricStatistic
LambdaFunctionMetricStatistic' :: Text -> LambdaFunctionMetricStatistic
[fromLambdaFunctionMetricStatistic] :: LambdaFunctionMetricStatistic -> Text
pattern LambdaFunctionMetricStatistic_Average :: LambdaFunctionMetricStatistic
pattern LambdaFunctionMetricStatistic_Maximum :: LambdaFunctionMetricStatistic
newtype LambdaFunctionRecommendationFilterName
LambdaFunctionRecommendationFilterName' :: Text -> LambdaFunctionRecommendationFilterName
[fromLambdaFunctionRecommendationFilterName] :: LambdaFunctionRecommendationFilterName -> Text
pattern LambdaFunctionRecommendationFilterName_Finding :: LambdaFunctionRecommendationFilterName
pattern LambdaFunctionRecommendationFilterName_FindingReasonCode :: LambdaFunctionRecommendationFilterName
newtype LambdaFunctionRecommendationFinding
LambdaFunctionRecommendationFinding' :: Text -> LambdaFunctionRecommendationFinding
[fromLambdaFunctionRecommendationFinding] :: LambdaFunctionRecommendationFinding -> Text
pattern LambdaFunctionRecommendationFinding_NotOptimized :: LambdaFunctionRecommendationFinding
pattern LambdaFunctionRecommendationFinding_Optimized :: LambdaFunctionRecommendationFinding
pattern LambdaFunctionRecommendationFinding_Unavailable :: LambdaFunctionRecommendationFinding
newtype LambdaFunctionRecommendationFindingReasonCode
LambdaFunctionRecommendationFindingReasonCode' :: Text -> LambdaFunctionRecommendationFindingReasonCode
[fromLambdaFunctionRecommendationFindingReasonCode] :: LambdaFunctionRecommendationFindingReasonCode -> Text
pattern LambdaFunctionRecommendationFindingReasonCode_Inconclusive :: LambdaFunctionRecommendationFindingReasonCode
pattern LambdaFunctionRecommendationFindingReasonCode_InsufficientData :: LambdaFunctionRecommendationFindingReasonCode
pattern LambdaFunctionRecommendationFindingReasonCode_MemoryOverprovisioned :: LambdaFunctionRecommendationFindingReasonCode
pattern LambdaFunctionRecommendationFindingReasonCode_MemoryUnderprovisioned :: LambdaFunctionRecommendationFindingReasonCode
newtype MetricName
MetricName' :: Text -> MetricName
[fromMetricName] :: MetricName -> Text
pattern MetricName_Cpu :: MetricName
pattern MetricName_DISK_READ_BYTES_PER_SECOND :: MetricName
pattern MetricName_DISK_READ_OPS_PER_SECOND :: MetricName
pattern MetricName_DISK_WRITE_BYTES_PER_SECOND :: MetricName
pattern MetricName_DISK_WRITE_OPS_PER_SECOND :: MetricName
pattern MetricName_EBS_READ_BYTES_PER_SECOND :: MetricName
pattern MetricName_EBS_READ_OPS_PER_SECOND :: MetricName
pattern MetricName_EBS_WRITE_BYTES_PER_SECOND :: MetricName
pattern MetricName_EBS_WRITE_OPS_PER_SECOND :: MetricName
pattern MetricName_Memory :: MetricName
pattern MetricName_NETWORK_IN_BYTES_PER_SECOND :: MetricName
pattern MetricName_NETWORK_OUT_BYTES_PER_SECOND :: MetricName
pattern MetricName_NETWORK_PACKETS_IN_PER_SECOND :: MetricName
pattern MetricName_NETWORK_PACKETS_OUT_PER_SECOND :: MetricName
newtype MetricStatistic
MetricStatistic' :: Text -> MetricStatistic
[fromMetricStatistic] :: MetricStatistic -> Text
pattern MetricStatistic_Average :: MetricStatistic
pattern MetricStatistic_Maximum :: MetricStatistic
newtype MigrationEffort
MigrationEffort' :: Text -> MigrationEffort
[fromMigrationEffort] :: MigrationEffort -> Text
pattern MigrationEffort_High :: MigrationEffort
pattern MigrationEffort_Low :: MigrationEffort
pattern MigrationEffort_Medium :: MigrationEffort
pattern MigrationEffort_VeryLow :: MigrationEffort
newtype PlatformDifference
PlatformDifference' :: Text -> PlatformDifference
[fromPlatformDifference] :: PlatformDifference -> Text
pattern PlatformDifference_Architecture :: PlatformDifference
pattern PlatformDifference_Hypervisor :: PlatformDifference
pattern PlatformDifference_InstanceStoreAvailability :: PlatformDifference
pattern PlatformDifference_NetworkInterface :: PlatformDifference
pattern PlatformDifference_StorageInterface :: PlatformDifference
pattern PlatformDifference_VirtualizationType :: PlatformDifference
newtype RecommendationPreferenceName
RecommendationPreferenceName' :: Text -> RecommendationPreferenceName
[fromRecommendationPreferenceName] :: RecommendationPreferenceName -> Text
pattern RecommendationPreferenceName_EnhancedInfrastructureMetrics :: RecommendationPreferenceName
pattern RecommendationPreferenceName_ExternalMetricsPreference :: RecommendationPreferenceName
pattern RecommendationPreferenceName_InferredWorkloadTypes :: RecommendationPreferenceName
newtype RecommendationSourceType
RecommendationSourceType' :: Text -> RecommendationSourceType
[fromRecommendationSourceType] :: RecommendationSourceType -> Text
pattern RecommendationSourceType_AutoScalingGroup :: RecommendationSourceType
pattern RecommendationSourceType_EbsVolume :: RecommendationSourceType
pattern RecommendationSourceType_Ec2Instance :: RecommendationSourceType
pattern RecommendationSourceType_EcsService :: RecommendationSourceType
pattern RecommendationSourceType_LambdaFunction :: RecommendationSourceType
newtype ResourceType
ResourceType' :: Text -> ResourceType
[fromResourceType] :: ResourceType -> Text
pattern ResourceType_AutoScalingGroup :: ResourceType
pattern ResourceType_EbsVolume :: ResourceType
pattern ResourceType_Ec2Instance :: ResourceType
pattern ResourceType_EcsService :: ResourceType
pattern ResourceType_LambdaFunction :: ResourceType
pattern ResourceType_NotApplicable :: ResourceType
newtype ScopeName
ScopeName' :: Text -> ScopeName
[fromScopeName] :: ScopeName -> Text
pattern ScopeName_AccountId :: ScopeName
pattern ScopeName_Organization :: ScopeName
pattern ScopeName_ResourceArn :: ScopeName
newtype Status
Status' :: Text -> Status
[fromStatus] :: Status -> Text
pattern Status_Active :: Status
pattern Status_Failed :: Status
pattern Status_Inactive :: Status
pattern Status_Pending :: Status
-- | Describes the enrollment status of an organization's member accounts
-- in Compute Optimizer.
--
-- See: newAccountEnrollmentStatus smart constructor.
data AccountEnrollmentStatus
AccountEnrollmentStatus' :: Maybe Text -> Maybe POSIX -> Maybe Status -> Maybe Text -> AccountEnrollmentStatus
-- | Create a value of AccountEnrollmentStatus with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:AccountEnrollmentStatus',
-- accountEnrollmentStatus_accountId - The Amazon Web Services
-- account ID.
--
-- $sel:lastUpdatedTimestamp:AccountEnrollmentStatus',
-- accountEnrollmentStatus_lastUpdatedTimestamp - The Unix epoch
-- timestamp, in seconds, of when the account enrollment status was last
-- updated.
--
-- $sel:status:AccountEnrollmentStatus',
-- accountEnrollmentStatus_status - The account enrollment status.
--
-- $sel:statusReason:AccountEnrollmentStatus',
-- accountEnrollmentStatus_statusReason - The reason for the
-- account enrollment status.
--
-- For example, an account might show a status of Pending
-- because member accounts of an organization require more time to be
-- enrolled in the service.
newAccountEnrollmentStatus :: AccountEnrollmentStatus
-- | Describes the configuration of an Auto Scaling group.
--
-- See: newAutoScalingGroupConfiguration smart constructor.
data AutoScalingGroupConfiguration
AutoScalingGroupConfiguration' :: Maybe Int -> Maybe Text -> Maybe Int -> Maybe Int -> AutoScalingGroupConfiguration
-- | Create a value of AutoScalingGroupConfiguration with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:desiredCapacity:AutoScalingGroupConfiguration',
-- autoScalingGroupConfiguration_desiredCapacity - The desired
-- capacity, or number of instances, for the Auto Scaling group.
--
-- $sel:instanceType:AutoScalingGroupConfiguration',
-- autoScalingGroupConfiguration_instanceType - The instance type
-- for the Auto Scaling group.
--
-- $sel:maxSize:AutoScalingGroupConfiguration',
-- autoScalingGroupConfiguration_maxSize - The maximum size, or
-- maximum number of instances, for the Auto Scaling group.
--
-- $sel:minSize:AutoScalingGroupConfiguration',
-- autoScalingGroupConfiguration_minSize - The minimum size, or
-- minimum number of instances, for the Auto Scaling group.
newAutoScalingGroupConfiguration :: AutoScalingGroupConfiguration
-- | Describes an Auto Scaling group recommendation.
--
-- See: newAutoScalingGroupRecommendation smart
-- constructor.
data AutoScalingGroupRecommendation
AutoScalingGroupRecommendation' :: Maybe Text -> Maybe Text -> Maybe Text -> Maybe AutoScalingGroupConfiguration -> Maybe CurrentPerformanceRisk -> Maybe EffectiveRecommendationPreferences -> Maybe Finding -> Maybe [InferredWorkloadType] -> Maybe POSIX -> Maybe Double -> Maybe [AutoScalingGroupRecommendationOption] -> Maybe [UtilizationMetric] -> AutoScalingGroupRecommendation
-- | Create a value of AutoScalingGroupRecommendation with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_accountId - The Amazon Web
-- Services account ID of the Auto Scaling group.
--
-- $sel:autoScalingGroupArn:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_autoScalingGroupArn - The Amazon
-- Resource Name (ARN) of the Auto Scaling group.
--
-- $sel:autoScalingGroupName:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_autoScalingGroupName - The name
-- of the Auto Scaling group.
--
-- $sel:currentConfiguration:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_currentConfiguration - An array
-- of objects that describe the current configuration of the Auto Scaling
-- group.
--
-- $sel:currentPerformanceRisk:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_currentPerformanceRisk - The
-- risk of the current Auto Scaling group not meeting the performance
-- needs of its workloads. The higher the risk, the more likely the
-- current Auto Scaling group configuration has insufficient capacity and
-- cannot meet workload requirements.
--
--
-- $sel:effectiveRecommendationPreferences:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_effectiveRecommendationPreferences
-- - An object that describes the effective recommendation preferences
-- for the Auto Scaling group.
--
-- $sel:finding:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_finding - The finding
-- classification of the Auto Scaling group.
--
-- Findings for Auto Scaling groups include:
--
--
-- - NotOptimized —An Auto Scaling group is considered
-- not optimized when Compute Optimizer identifies a recommendation that
-- can provide better performance for your workload.
-- - Optimized —An Auto Scaling group is considered
-- optimized when Compute Optimizer determines that the group is
-- correctly provisioned to run your workload based on the chosen
-- instance type. For optimized resources, Compute Optimizer might
-- recommend a new generation instance type.
--
--
-- AutoScalingGroupRecommendation,
-- autoScalingGroupRecommendation_inferredWorkloadTypes - The
-- applications that might be running on the instances in the Auto
-- Scaling group as inferred by Compute Optimizer.
--
-- Compute Optimizer can infer if one of the following applications might
-- be running on the instances:
--
--
-- - AmazonEmr - Infers that Amazon EMR might be running on
-- the instances.
-- - ApacheCassandra - Infers that Apache Cassandra might be
-- running on the instances.
-- - ApacheHadoop - Infers that Apache Hadoop might be running
-- on the instances.
-- - Memcached - Infers that Memcached might be running on the
-- instances.
-- - NGINX - Infers that NGINX might be running on the
-- instances.
-- - PostgreSql - Infers that PostgreSQL might be running on
-- the instances.
-- - Redis - Infers that Redis might be running on the
-- instances.
--
--
-- $sel:lastRefreshTimestamp:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_lastRefreshTimestamp - The
-- timestamp of when the Auto Scaling group recommendation was last
-- generated.
--
-- $sel:lookBackPeriodInDays:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_lookBackPeriodInDays - The
-- number of days for which utilization metrics were analyzed for the
-- Auto Scaling group.
--
-- $sel:recommendationOptions:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_recommendationOptions - An array
-- of objects that describe the recommendation options for the Auto
-- Scaling group.
--
-- $sel:utilizationMetrics:AutoScalingGroupRecommendation',
-- autoScalingGroupRecommendation_utilizationMetrics - An array of
-- objects that describe the utilization metrics of the Auto Scaling
-- group.
newAutoScalingGroupRecommendation :: AutoScalingGroupRecommendation
-- | Describes a recommendation option for an Auto Scaling group.
--
-- See: newAutoScalingGroupRecommendationOption smart
-- constructor.
data AutoScalingGroupRecommendationOption
AutoScalingGroupRecommendationOption' :: Maybe AutoScalingGroupConfiguration -> Maybe MigrationEffort -> Maybe Double -> Maybe [UtilizationMetric] -> Maybe Int -> Maybe SavingsOpportunity -> AutoScalingGroupRecommendationOption
-- | Create a value of AutoScalingGroupRecommendationOption with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:configuration:AutoScalingGroupRecommendationOption',
-- autoScalingGroupRecommendationOption_configuration - An array
-- of objects that describe an Auto Scaling group configuration.
--
-- $sel:migrationEffort:AutoScalingGroupRecommendationOption',
-- 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.
--
-- $sel:performanceRisk:AutoScalingGroupRecommendationOption',
-- 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.
--
--
-- $sel:projectedUtilizationMetrics:AutoScalingGroupRecommendationOption',
-- 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 Enabling Memory
-- Utilization with the CloudWatch Agent.
--
-- $sel:rank:AutoScalingGroupRecommendationOption',
-- autoScalingGroupRecommendationOption_rank - The rank of the
-- Auto Scaling group recommendation option.
--
-- The top recommendation option is ranked as 1.
--
-- $sel:savingsOpportunity:AutoScalingGroupRecommendationOption',
-- 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
-- | Describes the container configurations within the tasks of your Amazon
-- ECS service.
--
-- See: newContainerConfiguration smart constructor.
data ContainerConfiguration
ContainerConfiguration' :: Maybe Text -> Maybe Int -> Maybe MemorySizeConfiguration -> ContainerConfiguration
-- | Create a value of ContainerConfiguration with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:containerName:ContainerConfiguration',
-- containerConfiguration_containerName - The name of the
-- container.
--
-- $sel:cpu:ContainerConfiguration',
-- containerConfiguration_cpu - The number of CPU units reserved
-- for the container.
--
-- $sel:memorySizeConfiguration:ContainerConfiguration',
-- containerConfiguration_memorySizeConfiguration - The memory
-- size configurations for the container.
newContainerConfiguration :: ContainerConfiguration
-- | The CPU and memory recommendations for a container within the tasks of
-- your Amazon ECS service.
--
-- See: newContainerRecommendation smart constructor.
data ContainerRecommendation
ContainerRecommendation' :: Maybe Text -> Maybe Int -> Maybe MemorySizeConfiguration -> ContainerRecommendation
-- | Create a value of ContainerRecommendation with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:containerName:ContainerRecommendation',
-- containerRecommendation_containerName - The name of the
-- container.
--
-- $sel:cpu:ContainerRecommendation',
-- containerRecommendation_cpu - The recommended number of CPU
-- units reserved for the container.
--
-- $sel:memorySizeConfiguration:ContainerRecommendation',
-- containerRecommendation_memorySizeConfiguration - The
-- recommended memory size configurations for the container.
newContainerRecommendation :: ContainerRecommendation
-- | Describes the performance risk ratings for a given resource type.
--
-- Resources with a high or medium rating are at risk
-- of not meeting the performance needs of their workloads, while
-- resources with a low rating are performing well in their
-- workloads.
--
-- See: newCurrentPerformanceRiskRatings smart constructor.
data CurrentPerformanceRiskRatings
CurrentPerformanceRiskRatings' :: Maybe Integer -> Maybe Integer -> Maybe Integer -> Maybe Integer -> CurrentPerformanceRiskRatings
-- | Create a value of CurrentPerformanceRiskRatings with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:high:CurrentPerformanceRiskRatings',
-- currentPerformanceRiskRatings_high - A count of the applicable
-- resource types with a high performance risk rating.
--
-- $sel:low:CurrentPerformanceRiskRatings',
-- currentPerformanceRiskRatings_low - A count of the applicable
-- resource types with a low performance risk rating.
--
-- $sel:medium:CurrentPerformanceRiskRatings',
-- currentPerformanceRiskRatings_medium - A count of the
-- applicable resource types with a medium performance risk rating.
--
-- $sel:veryLow:CurrentPerformanceRiskRatings',
-- currentPerformanceRiskRatings_veryLow - A count of the
-- applicable resource types with a very low performance risk rating.
newCurrentPerformanceRiskRatings :: CurrentPerformanceRiskRatings
-- | Describes a filter that returns a more specific list of Amazon Elastic
-- Block Store (Amazon EBS) volume recommendations. Use this filter with
-- the GetEBSVolumeRecommendations action.
--
-- You can use LambdaFunctionRecommendationFilter with the
-- GetLambdaFunctionRecommendations action, JobFilter with the
-- DescribeRecommendationExportJobs action, and Filter with the
-- GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations
-- actions.
--
-- See: newEBSFilter smart constructor.
data EBSFilter
EBSFilter' :: Maybe EBSFilterName -> Maybe [Text] -> EBSFilter
-- | Create a value of EBSFilter with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:EBSFilter', eBSFilter_name - The name of the
-- filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, NotOptimized).
--
-- $sel:values:EBSFilter', eBSFilter_values - The value of
-- the filter.
--
-- The valid values are Optimized, or NotOptimized.
newEBSFilter :: EBSFilter
-- | Describes a utilization metric of an Amazon Elastic Block Store
-- (Amazon EBS) volume.
--
-- Compare the utilization metric data of your resource against its
-- projected utilization metric data to determine the performance
-- difference between your current resource and the recommended option.
--
-- See: newEBSUtilizationMetric smart constructor.
data EBSUtilizationMetric
EBSUtilizationMetric' :: Maybe EBSMetricName -> Maybe MetricStatistic -> Maybe Double -> EBSUtilizationMetric
-- | Create a value of EBSUtilizationMetric with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:EBSUtilizationMetric',
-- eBSUtilizationMetric_name - The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - VolumeReadOpsPerSecond - The completed read operations
-- per second from the volume in a specified period of time.Unit:
-- Count
-- - VolumeWriteOpsPerSecond - The completed write operations
-- per second to the volume in a specified period of time.Unit:
-- Count
-- - VolumeReadBytesPerSecond - The bytes read per second from
-- the volume in a specified period of time.Unit: Bytes
-- - VolumeWriteBytesPerSecond - The bytes written to the
-- volume in a specified period of time.Unit: Bytes
--
--
-- $sel:statistic:EBSUtilizationMetric',
-- eBSUtilizationMetric_statistic - The statistic of the
-- utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
--
-- $sel:value:EBSUtilizationMetric',
-- eBSUtilizationMetric_value - The value of the utilization
-- metric.
newEBSUtilizationMetric :: EBSUtilizationMetric
-- | Describes the projected metrics of an Amazon ECS service
-- recommendation option.
--
-- To determine the performance difference between your current ECS
-- service and the recommended option, compare the metric data of your
-- service against its projected metric data.
--
-- See: newECSServiceProjectedMetric smart constructor.
data ECSServiceProjectedMetric
ECSServiceProjectedMetric' :: Maybe [Double] -> Maybe ECSServiceMetricName -> Maybe [POSIX] -> Maybe [Double] -> ECSServiceProjectedMetric
-- | Create a value of ECSServiceProjectedMetric with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:lowerBoundValues:ECSServiceProjectedMetric',
-- eCSServiceProjectedMetric_lowerBoundValues - The lower bound
-- values for the projected metric.
--
-- $sel:name:ECSServiceProjectedMetric',
-- eCSServiceProjectedMetric_name - The name of the projected
-- metric.
--
-- The following metrics are available:
--
--
-- - CPU — The percentage of allocated compute units that are
-- currently in use on the ECS service tasks.
-- - Memory — The percentage of memory that is currently in
-- use on the ECS service tasks.
--
--
-- $sel:timestamps:ECSServiceProjectedMetric',
-- eCSServiceProjectedMetric_timestamps - The timestamps of the
-- projected metric.
--
-- $sel:upperBoundValues:ECSServiceProjectedMetric',
-- eCSServiceProjectedMetric_upperBoundValues - The upper bound
-- values for the projected metric.
newECSServiceProjectedMetric :: ECSServiceProjectedMetric
-- | Describes the projected utilization metrics of an Amazon ECS service
-- recommendation option.
--
-- To determine the performance difference between your current ECS
-- service and the recommended option, compare the utilization metric
-- data of your service against its projected utilization metric data.
--
-- See: newECSServiceProjectedUtilizationMetric smart
-- constructor.
data ECSServiceProjectedUtilizationMetric
ECSServiceProjectedUtilizationMetric' :: Maybe Double -> Maybe ECSServiceMetricName -> Maybe ECSServiceMetricStatistic -> Maybe Double -> ECSServiceProjectedUtilizationMetric
-- | Create a value of ECSServiceProjectedUtilizationMetric with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:lowerBoundValue:ECSServiceProjectedUtilizationMetric',
-- eCSServiceProjectedUtilizationMetric_lowerBoundValue - The
-- lower bound values for the projected utilization metrics.
--
-- $sel:name:ECSServiceProjectedUtilizationMetric',
-- eCSServiceProjectedUtilizationMetric_name - The name of the
-- projected utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - CPU — The percentage of allocated compute units that are
-- currently in use on the ECS service tasks.
-- - Memory — The percentage of memory that is currently in
-- use on the ECS service tasks.
--
--
-- $sel:statistic:ECSServiceProjectedUtilizationMetric',
-- eCSServiceProjectedUtilizationMetric_statistic - The statistic
-- of the projected utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
--
-- $sel:upperBoundValue:ECSServiceProjectedUtilizationMetric',
-- eCSServiceProjectedUtilizationMetric_upperBoundValue - The
-- upper bound values for the projected utilization metrics.
newECSServiceProjectedUtilizationMetric :: ECSServiceProjectedUtilizationMetric
-- | Describes an Amazon ECS service recommendation.
--
-- See: newECSServiceRecommendation smart constructor.
data ECSServiceRecommendation
ECSServiceRecommendation' :: Maybe Text -> Maybe CurrentPerformanceRisk -> Maybe ServiceConfiguration -> Maybe ECSServiceRecommendationFinding -> Maybe [ECSServiceRecommendationFindingReasonCode] -> Maybe POSIX -> Maybe ECSServiceLaunchType -> Maybe Double -> Maybe Text -> Maybe [ECSServiceRecommendationOption] -> Maybe [ECSServiceUtilizationMetric] -> ECSServiceRecommendation
-- | Create a value of ECSServiceRecommendation with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:ECSServiceRecommendation',
-- eCSServiceRecommendation_accountId - The Amazon Web Services
-- account ID of the ECS service.
--
-- $sel:currentPerformanceRisk:ECSServiceRecommendation',
-- eCSServiceRecommendation_currentPerformanceRisk - The risk of
-- the current ECS service not meeting the performance needs of its
-- workloads. The higher the risk, the more likely the current service
-- can't meet the performance requirements of its workload.
--
-- $sel:currentServiceConfiguration:ECSServiceRecommendation',
-- eCSServiceRecommendation_currentServiceConfiguration - The
-- configuration of the current ECS service.
--
-- $sel:finding:ECSServiceRecommendation',
-- eCSServiceRecommendation_finding - The finding classification
-- of an ECS service.
--
-- Findings for ECS services include:
--
--
-- - Underprovisioned — When Compute Optimizer detects
-- that there’s not enough memory or CPU, an ECS service is considered
-- under-provisioned. An under-provisioned ECS service might result in
-- poor application performance.
-- - Overprovisioned — When Compute Optimizer detects
-- that there’s excessive memory or CPU, an ECS service is considered
-- over-provisioned. An over-provisioned ECS service might result in
-- additional infrastructure costs.
-- - Optimized — When both the CPU and memory of your
-- ECS service meet the performance requirements of your workload, the
-- service is considered optimized.
--
--
-- $sel:findingReasonCodes:ECSServiceRecommendation',
-- eCSServiceRecommendation_findingReasonCodes - The reason for
-- the finding classification of an ECS service.
--
-- Finding reason codes for ECS services include:
--
--
-- - CPUUnderprovisioned — The ECS service CPU
-- configuration can be sized up to enhance the performance of your
-- workload. This is identified by analyzing the CPUUtilization
-- metric of the current service during the look-back period.
-- - CPUOverprovisioned — The ECS service CPU
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- CPUUtilization metric of the current service during the
-- look-back period.
-- - MemoryUnderprovisioned — The ECS service memory
-- configuration can be sized up to enhance the performance of your
-- workload. This is identified by analyzing the
-- MemoryUtilization metric of the current service during the
-- look-back period.
-- - MemoryOverprovisioned — The ECS service memory
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- MemoryUtilization metric of the current service during the
-- look-back period.
--
--
-- $sel:lastRefreshTimestamp:ECSServiceRecommendation',
-- eCSServiceRecommendation_lastRefreshTimestamp - The timestamp
-- of when the ECS service recommendation was last generated.
--
-- $sel:launchType:ECSServiceRecommendation',
-- eCSServiceRecommendation_launchType - The launch type the ECS
-- service is using.
--
-- Compute Optimizer only supports the Fargate launch type.
--
-- $sel:lookbackPeriodInDays:ECSServiceRecommendation',
-- eCSServiceRecommendation_lookbackPeriodInDays - The number of
-- days the ECS service utilization metrics were analyzed.
--
-- $sel:serviceArn:ECSServiceRecommendation',
-- eCSServiceRecommendation_serviceArn - The Amazon Resource Name
-- (ARN) of the current ECS service.
--
-- The following is the format of the ARN:
--
--
-- arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
--
--
-- $sel:serviceRecommendationOptions:ECSServiceRecommendation',
-- eCSServiceRecommendation_serviceRecommendationOptions - An
-- array of objects that describe the recommendation options for the ECS
-- service.
--
-- $sel:utilizationMetrics:ECSServiceRecommendation',
-- eCSServiceRecommendation_utilizationMetrics - An array of
-- objects that describe the utilization metrics of the ECS service.
newECSServiceRecommendation :: ECSServiceRecommendation
-- | Describes a filter that returns a more specific list of Amazon ECS
-- service recommendations. Use this filter with the
-- GetECSServiceRecommendations action.
--
-- See: newECSServiceRecommendationFilter smart
-- constructor.
data ECSServiceRecommendationFilter
ECSServiceRecommendationFilter' :: Maybe ECSServiceRecommendationFilterName -> Maybe [Text] -> ECSServiceRecommendationFilter
-- | Create a value of ECSServiceRecommendationFilter with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:ECSServiceRecommendationFilter',
-- eCSServiceRecommendationFilter_name - The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification.
--
-- Specify FindingReasonCode to return recommendations with a
-- specific finding reason code.
--
-- $sel:values:ECSServiceRecommendationFilter',
-- eCSServiceRecommendationFilter_values - The value of the
-- filter.
--
-- The valid values for this parameter are as follows:
--
--
-- - If you specify the name parameter as Finding,
-- specify Optimized, NotOptimized, or
-- Unavailable.
-- - If you specify the name parameter as
-- FindingReasonCode, specify CPUUnderprovisioned,
-- CPUOverprovisioned, MemoryUnderprovisioned, or
-- MemoryOverprovisioned.
--
newECSServiceRecommendationFilter :: ECSServiceRecommendationFilter
-- | Describes the recommendation options for an Amazon ECS service.
--
-- See: newECSServiceRecommendationOption smart
-- constructor.
data ECSServiceRecommendationOption
ECSServiceRecommendationOption' :: Maybe [ContainerRecommendation] -> Maybe Int -> Maybe Int -> Maybe [ECSServiceProjectedUtilizationMetric] -> Maybe SavingsOpportunity -> ECSServiceRecommendationOption
-- | Create a value of ECSServiceRecommendationOption with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:containerRecommendations:ECSServiceRecommendationOption',
-- eCSServiceRecommendationOption_containerRecommendations - The
-- CPU and memory size recommendations for the containers within the task
-- of your ECS service.
--
-- ECSServiceRecommendationOption,
-- eCSServiceRecommendationOption_cpu - The CPU size of the ECS
-- service recommendation option.
--
-- $sel:memory:ECSServiceRecommendationOption',
-- eCSServiceRecommendationOption_memory - The memory size of the
-- ECS service recommendation option.
--
--
-- $sel:projectedUtilizationMetrics:ECSServiceRecommendationOption',
-- eCSServiceRecommendationOption_projectedUtilizationMetrics - An
-- array of objects that describe the projected utilization metrics of
-- the ECS service recommendation option.
--
-- $sel:savingsOpportunity:ECSServiceRecommendationOption',
-- eCSServiceRecommendationOption_savingsOpportunity -
-- Undocumented member.
newECSServiceRecommendationOption :: ECSServiceRecommendationOption
-- | Describes the projected metrics of an Amazon ECS service
-- recommendation option.
--
-- To determine the performance difference between your current ECS
-- service and the recommended option, compare the metric data of your
-- service against its projected metric data.
--
-- See: newECSServiceRecommendedOptionProjectedMetric smart
-- constructor.
data ECSServiceRecommendedOptionProjectedMetric
ECSServiceRecommendedOptionProjectedMetric' :: Maybe [ECSServiceProjectedMetric] -> Maybe Int -> Maybe Int -> ECSServiceRecommendedOptionProjectedMetric
-- | Create a value of ECSServiceRecommendedOptionProjectedMetric
-- with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:projectedMetrics:ECSServiceRecommendedOptionProjectedMetric',
-- eCSServiceRecommendedOptionProjectedMetric_projectedMetrics -
-- An array of objects that describe the projected metric.
--
--
-- $sel:recommendedCpuUnits:ECSServiceRecommendedOptionProjectedMetric',
-- eCSServiceRecommendedOptionProjectedMetric_recommendedCpuUnits
-- - The recommended CPU size for the ECS service.
--
--
-- $sel:recommendedMemorySize:ECSServiceRecommendedOptionProjectedMetric',
-- eCSServiceRecommendedOptionProjectedMetric_recommendedMemorySize
-- - The recommended memory size for the ECS service.
newECSServiceRecommendedOptionProjectedMetric :: ECSServiceRecommendedOptionProjectedMetric
-- | Describes the utilization metric of an Amazon ECS service.
--
-- To determine the performance difference between your current ECS
-- service and the recommended option, compare the utilization metric
-- data of your service against its projected utilization metric data.
--
-- See: newECSServiceUtilizationMetric smart constructor.
data ECSServiceUtilizationMetric
ECSServiceUtilizationMetric' :: Maybe ECSServiceMetricName -> Maybe ECSServiceMetricStatistic -> Maybe Double -> ECSServiceUtilizationMetric
-- | Create a value of ECSServiceUtilizationMetric with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:ECSServiceUtilizationMetric',
-- eCSServiceUtilizationMetric_name - The name of the utilization
-- metric.
--
-- The following utilization metrics are available:
--
--
-- - Cpu — The amount of CPU units that are used in the
-- service.
-- - Memory — The amount of memory that is used in the
-- service.
--
--
-- $sel:statistic:ECSServiceUtilizationMetric',
-- eCSServiceUtilizationMetric_statistic - The statistic of the
-- utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
--
-- $sel:value:ECSServiceUtilizationMetric',
-- eCSServiceUtilizationMetric_value - The value of the
-- utilization metric.
newECSServiceUtilizationMetric :: ECSServiceUtilizationMetric
-- | Describes the effective recommendation preferences for a resource.
--
-- See: newEffectiveRecommendationPreferences smart
-- constructor.
data EffectiveRecommendationPreferences
EffectiveRecommendationPreferences' :: Maybe [CpuVendorArchitecture] -> Maybe EnhancedInfrastructureMetrics -> Maybe ExternalMetricsPreference -> Maybe InferredWorkloadTypesPreference -> EffectiveRecommendationPreferences
-- | Create a value of EffectiveRecommendationPreferences with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:cpuVendorArchitectures:EffectiveRecommendationPreferences',
-- effectiveRecommendationPreferences_cpuVendorArchitectures -
-- Describes the CPU vendor and architecture for an instance or Auto
-- Scaling group recommendations.
--
-- For example, when you specify AWS_ARM64 with:
--
--
-- - A GetEC2InstanceRecommendations or
-- GetAutoScalingGroupRecommendations request, Compute Optimizer returns
-- recommendations that consist of Graviton2 instance types only.
-- - A GetEC2RecommendationProjectedMetrics request, Compute Optimizer
-- returns projected utilization metrics for Graviton2 instance type
-- recommendations only.
-- - A ExportEC2InstanceRecommendations or
-- ExportAutoScalingGroupRecommendations request, Compute Optimizer
-- exports recommendations that consist of Graviton2 instance types
-- only.
--
--
--
-- $sel:enhancedInfrastructureMetrics:EffectiveRecommendationPreferences',
-- effectiveRecommendationPreferences_enhancedInfrastructureMetrics
-- - Describes the activation status of the enhanced infrastructure
-- metrics preference.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh, and a status of Inactive
-- confirms that it's not yet applied to recommendations.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
--
--
-- $sel:externalMetricsPreference:EffectiveRecommendationPreferences',
-- effectiveRecommendationPreferences_externalMetricsPreference -
-- An object that describes the external metrics recommendation
-- preference.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
--
-- $sel:inferredWorkloadTypes:EffectiveRecommendationPreferences',
-- effectiveRecommendationPreferences_inferredWorkloadTypes -
-- Describes the activation status of the inferred workload types
-- preference.
--
-- A status of Active confirms that the preference is applied in
-- the latest recommendation refresh. A status of Inactive
-- confirms that it's not yet applied to recommendations.
newEffectiveRecommendationPreferences :: EffectiveRecommendationPreferences
-- | Describes a filter that returns a more specific list of account
-- enrollment statuses. Use this filter with the
-- GetEnrollmentStatusesForOrganization action.
--
-- See: newEnrollmentFilter smart constructor.
data EnrollmentFilter
EnrollmentFilter' :: Maybe EnrollmentFilterName -> Maybe [Text] -> EnrollmentFilter
-- | Create a value of EnrollmentFilter with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:EnrollmentFilter', enrollmentFilter_name - The
-- name of the filter.
--
-- Specify Status to return accounts with a specific enrollment
-- status (for example, Active).
--
-- $sel:values:EnrollmentFilter', enrollmentFilter_values -
-- The value of the filter.
--
-- The valid values are Active, Inactive,
-- Pending, and Failed.
newEnrollmentFilter :: EnrollmentFilter
-- | Describes the estimated monthly savings amount possible, based on
-- On-Demand instance pricing, by adopting Compute Optimizer
-- recommendations for a given resource.
--
-- For more information, see Estimated monthly savings and savings
-- opportunities in the Compute Optimizer User Guide.
--
-- See: newEstimatedMonthlySavings smart constructor.
data EstimatedMonthlySavings
EstimatedMonthlySavings' :: Maybe Currency -> Maybe Double -> EstimatedMonthlySavings
-- | Create a value of EstimatedMonthlySavings with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:currency:EstimatedMonthlySavings',
-- estimatedMonthlySavings_currency - The currency of the
-- estimated monthly savings.
--
-- $sel:value:EstimatedMonthlySavings',
-- estimatedMonthlySavings_value - The value of the estimated
-- monthly savings.
newEstimatedMonthlySavings :: EstimatedMonthlySavings
-- | Describes the destination of the recommendations export and metadata
-- files.
--
-- See: newExportDestination smart constructor.
data ExportDestination
ExportDestination' :: Maybe S3Destination -> ExportDestination
-- | Create a value of ExportDestination with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:s3:ExportDestination', exportDestination_s3 - An
-- object that describes the destination Amazon Simple Storage Service
-- (Amazon S3) bucket name and object keys of a recommendations export
-- file, and its associated metadata file.
newExportDestination :: ExportDestination
-- | Describes the external metrics preferences for EC2 rightsizing
-- recommendations.
--
-- See: newExternalMetricsPreference smart constructor.
data ExternalMetricsPreference
ExternalMetricsPreference' :: Maybe ExternalMetricsSource -> ExternalMetricsPreference
-- | Create a value of ExternalMetricsPreference with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:source:ExternalMetricsPreference',
-- externalMetricsPreference_source - Contains the source options
-- for external metrics preferences.
newExternalMetricsPreference :: ExternalMetricsPreference
-- | Describes a filter that returns a more specific list of
-- recommendations. Use this filter with the
-- GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations
-- actions.
--
-- You can use EBSFilter with the GetEBSVolumeRecommendations
-- action, LambdaFunctionRecommendationFilter with the
-- GetLambdaFunctionRecommendations action, and JobFilter with
-- the DescribeRecommendationExportJobs action.
--
-- See: newFilter smart constructor.
data Filter
Filter' :: Maybe FilterName -> Maybe [Text] -> Filter
-- | Create a value of Filter with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:Filter', filter_name - The name of the filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, Underprovisioned).
--
-- Specify RecommendationSourceType to return recommendations of
-- a specific resource type (for example, Ec2Instance).
--
-- Specify FindingReasonCodes to return recommendations with a
-- specific finding reason code (for example,
-- CPUUnderprovisioned).
--
-- $sel:values:Filter', filter_values - The value of the
-- filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter and the resource type that
-- you wish to filter results for:
--
--
-- - Specify Optimized or NotOptimized if you specify
-- the name parameter as Finding and you want to filter
-- results for Auto Scaling groups.
-- - Specify Underprovisioned, Overprovisioned, or
-- Optimized if you specify the name parameter as
-- Finding and you want to filter results for EC2
-- instances.
-- - Specify Ec2Instance or AutoScalingGroup if you
-- specify the name parameter as
-- RecommendationSourceType.
-- - Specify one of the following options if you specify the
-- name parameter as
-- FindingReasonCodes:
- CPUOverprovisioned
-- — The instance’s CPU configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- CPUUnderprovisioned — The instance’s
-- CPU configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better CPU performance.
- MemoryOverprovisioned
-- — The instance’s memory configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- MemoryUnderprovisioned — The
-- instance’s memory configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better memory
-- performance.
- EBSThroughputOverprovisioned —
-- The instance’s EBS throughput configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- EBSThroughputUnderprovisioned — The
-- instance’s EBS throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better EBS throughput
-- performance.
- EBSIOPSOverprovisioned — The
-- instance’s EBS IOPS configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- EBSIOPSUnderprovisioned — The
-- instance’s EBS IOPS configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better EBS IOPS
-- performance.
- NetworkBandwidthOverprovisioned —
-- The instance’s network bandwidth configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- NetworkBandwidthUnderprovisioned —
-- The instance’s network bandwidth configuration doesn't meet the
-- performance requirements of your workload and there is an alternative
-- instance type that provides better network bandwidth performance. This
-- finding reason happens when the NetworkIn or
-- NetworkOut performance of an instance is
-- impacted.
- NetworkPPSOverprovisioned — The
-- instance’s network PPS (packets per second) configuration can be sized
-- down while still meeting the performance requirements of your
-- workload.
- NetworkPPSUnderprovisioned — The
-- instance’s network PPS (packets per second) configuration doesn't meet
-- the performance requirements of your workload and there is an
-- alternative instance type that provides better network PPS
-- performance.
- DiskIOPSOverprovisioned — The
-- instance’s disk IOPS configuration can be sized down while still
-- meeting the performance requirements of your
-- workload.
- DiskIOPSUnderprovisioned — The
-- instance’s disk IOPS configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk IOPS
-- performance.
- DiskThroughputOverprovisioned —
-- The instance’s disk throughput configuration can be sized down while
-- still meeting the performance requirements of your
-- workload.
- DiskThroughputUnderprovisioned — The
-- instance’s disk throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk throughput performance.
--
newFilter :: Filter
-- | Describes an error experienced when getting recommendations.
--
-- For example, an error is returned if you request recommendations for
-- an unsupported Auto Scaling group, or if you request recommendations
-- for an instance of an unsupported instance family.
--
-- See: newGetRecommendationError smart constructor.
data GetRecommendationError
GetRecommendationError' :: Maybe Text -> Maybe Text -> Maybe Text -> GetRecommendationError
-- | Create a value of GetRecommendationError with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:code:GetRecommendationError',
-- getRecommendationError_code - The error code.
--
-- $sel:identifier:GetRecommendationError',
-- getRecommendationError_identifier - The ID of the error.
--
-- $sel:message:GetRecommendationError',
-- getRecommendationError_message - The message, or reason, for
-- the error.
newGetRecommendationError :: GetRecommendationError
-- | Describes an Amazon EC2 instance recommendation.
--
-- See: newInstanceRecommendation smart constructor.
data InstanceRecommendation
InstanceRecommendation' :: Maybe Text -> Maybe Text -> Maybe CurrentPerformanceRisk -> Maybe EffectiveRecommendationPreferences -> Maybe Finding -> Maybe [InstanceRecommendationFindingReasonCode] -> Maybe [InferredWorkloadType] -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Double -> Maybe [InstanceRecommendationOption] -> Maybe [RecommendationSource] -> Maybe [UtilizationMetric] -> InstanceRecommendation
-- | Create a value of InstanceRecommendation with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:InstanceRecommendation',
-- instanceRecommendation_accountId - The Amazon Web Services
-- account ID of the instance.
--
-- $sel:currentInstanceType:InstanceRecommendation',
-- instanceRecommendation_currentInstanceType - The instance type
-- of the current instance.
--
-- $sel:currentPerformanceRisk:InstanceRecommendation',
-- instanceRecommendation_currentPerformanceRisk - The risk of the
-- current instance not meeting the performance needs of its workloads.
-- The higher the risk, the more likely the current instance cannot meet
-- the performance requirements of its workload.
--
--
-- $sel:effectiveRecommendationPreferences:InstanceRecommendation',
-- instanceRecommendation_effectiveRecommendationPreferences - An
-- object that describes the effective recommendation preferences for the
-- instance.
--
-- $sel:finding:InstanceRecommendation',
-- instanceRecommendation_finding - The finding classification of
-- the instance.
--
-- Findings for instances include:
--
--
-- - Underprovisioned —An instance is considered
-- under-provisioned when at least one specification of your instance,
-- such as CPU, memory, or network, does not meet the performance
-- requirements of your workload. Under-provisioned instances may lead to
-- poor application performance.
-- - Overprovisioned —An instance is considered
-- over-provisioned when at least one specification of your instance,
-- such as CPU, memory, or network, can be sized down while still meeting
-- the performance requirements of your workload, and no specification is
-- under-provisioned. Over-provisioned instances may lead to unnecessary
-- infrastructure cost.
-- - Optimized —An instance is considered optimized
-- when all specifications of your instance, such as CPU, memory, and
-- network, meet the performance requirements of your workload and is not
-- over provisioned. For optimized resources, Compute Optimizer might
-- recommend a new generation instance type.
--
--
-- $sel:findingReasonCodes:InstanceRecommendation',
-- instanceRecommendation_findingReasonCodes - The reason for the
-- finding classification of the instance.
--
-- Finding reason codes for instances include:
--
--
-- - CPUOverprovisioned — The instance’s CPU
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- CPUUtilization metric of the current instance during the
-- look-back period.
-- - CPUUnderprovisioned — The instance’s CPU
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better CPU performance. This is identified by analyzing the
-- CPUUtilization metric of the current instance during the
-- look-back period.
-- - MemoryOverprovisioned — The instance’s memory
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- memory utilization metric of the current instance during the look-back
-- period.
-- - MemoryUnderprovisioned — The instance’s memory
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better memory performance. This is identified by analyzing the memory
-- utilization metric of the current instance during the look-back
-- period.Memory utilization is analyzed only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling memory utilization with the Amazon CloudWatch Agent in
-- the Compute Optimizer User Guide. On Linux instances, Compute
-- Optimizer analyses the mem_used_percent metric in the
-- CWAgent namespace, or the legacy MemoryUtilization
-- metric in the System/Linux namespace. On Windows instances,
-- Compute Optimizer analyses the Memory % Committed Bytes In
-- Use metric in the CWAgent namespace.
-- - EBSThroughputOverprovisioned — The instance’s EBS
-- throughput configuration can be sized down while still meeting the
-- performance requirements of your workload. This is identified by
-- analyzing the VolumeReadOps and VolumeWriteOps
-- metrics of EBS volumes attached to the current instance during the
-- look-back period.
-- - EBSThroughputUnderprovisioned — The instance’s EBS
-- throughput configuration doesn't meet the performance requirements of
-- your workload and there is an alternative instance type that provides
-- better EBS throughput performance. This is identified by analyzing the
-- VolumeReadOps and VolumeWriteOps metrics of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - EBSIOPSOverprovisioned — The instance’s EBS IOPS
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- VolumeReadBytes and VolumeWriteBytes metric of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - EBSIOPSUnderprovisioned — The instance’s EBS IOPS
-- configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better EBS IOPS performance. This is identified by analyzing the
-- VolumeReadBytes and VolumeWriteBytes metric of EBS
-- volumes attached to the current instance during the look-back
-- period.
-- - NetworkBandwidthOverprovisioned — The instance’s
-- network bandwidth configuration can be sized down while still meeting
-- the performance requirements of your workload. This is identified by
-- analyzing the NetworkIn and NetworkOut metrics of
-- the current instance during the look-back period.
-- - NetworkBandwidthUnderprovisioned — The instance’s
-- network bandwidth configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better network bandwidth performance. This is
-- identified by analyzing the NetworkIn and NetworkOut
-- metrics of the current instance during the look-back period. This
-- finding reason happens when the NetworkIn or
-- NetworkOut performance of an instance is impacted.
-- - NetworkPPSOverprovisioned — The instance’s network
-- PPS (packets per second) configuration can be sized down while still
-- meeting the performance requirements of your workload. This is
-- identified by analyzing the NetworkPacketsIn and
-- NetworkPacketsIn metrics of the current instance during the
-- look-back period.
-- - NetworkPPSUnderprovisioned — The instance’s
-- network PPS (packets per second) configuration doesn't meet the
-- performance requirements of your workload and there is an alternative
-- instance type that provides better network PPS performance. This is
-- identified by analyzing the NetworkPacketsIn and
-- NetworkPacketsIn metrics of the current instance during the
-- look-back period.
-- - DiskIOPSOverprovisioned — The instance’s disk IOPS
-- configuration can be sized down while still meeting the performance
-- requirements of your workload. This is identified by analyzing the
-- DiskReadOps and DiskWriteOps metrics of the current
-- instance during the look-back period.
-- - DiskIOPSUnderprovisioned — The instance’s disk
-- IOPS configuration doesn't meet the performance requirements of your
-- workload and there is an alternative instance type that provides
-- better disk IOPS performance. This is identified by analyzing the
-- DiskReadOps and DiskWriteOps metrics of the current
-- instance during the look-back period.
-- - DiskThroughputOverprovisioned — The instance’s
-- disk throughput configuration can be sized down while still meeting
-- the performance requirements of your workload. This is identified by
-- analyzing the DiskReadBytes and DiskWriteBytes
-- metrics of the current instance during the look-back period.
-- - DiskThroughputUnderprovisioned — The instance’s
-- disk throughput configuration doesn't meet the performance
-- requirements of your workload and there is an alternative instance
-- type that provides better disk throughput performance. This is
-- identified by analyzing the DiskReadBytes and
-- DiskWriteBytes metrics of the current instance during the
-- look-back period.
--
--
-- For more information about instance metrics, see List the available
-- CloudWatch metrics for your instances in the Amazon Elastic
-- Compute Cloud User Guide. For more information about EBS volume
-- metrics, see Amazon CloudWatch metrics for Amazon EBS in the
-- Amazon Elastic Compute Cloud User Guide.
--
-- InstanceRecommendation,
-- instanceRecommendation_inferredWorkloadTypes - The applications
-- that might be running on the instance as inferred by Compute
-- Optimizer.
--
-- Compute Optimizer can infer if one of the following applications might
-- be running on the instance:
--
--
-- - AmazonEmr - Infers that Amazon EMR might be running on
-- the instance.
-- - ApacheCassandra - Infers that Apache Cassandra might be
-- running on the instance.
-- - ApacheHadoop - Infers that Apache Hadoop might be running
-- on the instance.
-- - Memcached - Infers that Memcached might be running on the
-- instance.
-- - NGINX - Infers that NGINX might be running on the
-- instance.
-- - PostgreSql - Infers that PostgreSQL might be running on
-- the instance.
-- - Redis - Infers that Redis might be running on the
-- instance.
--
--
-- $sel:instanceArn:InstanceRecommendation',
-- instanceRecommendation_instanceArn - The Amazon Resource Name
-- (ARN) of the current instance.
--
-- $sel:instanceName:InstanceRecommendation',
-- instanceRecommendation_instanceName - The name of the current
-- instance.
--
-- $sel:lastRefreshTimestamp:InstanceRecommendation',
-- instanceRecommendation_lastRefreshTimestamp - The timestamp of
-- when the instance recommendation was last generated.
--
-- $sel:lookBackPeriodInDays:InstanceRecommendation',
-- instanceRecommendation_lookBackPeriodInDays - The number of
-- days for which utilization metrics were analyzed for the instance.
--
-- $sel:recommendationOptions:InstanceRecommendation',
-- instanceRecommendation_recommendationOptions - An array of
-- objects that describe the recommendation options for the instance.
--
-- $sel:recommendationSources:InstanceRecommendation',
-- instanceRecommendation_recommendationSources - An array of
-- objects that describe the source resource of the recommendation.
--
-- $sel:utilizationMetrics:InstanceRecommendation',
-- instanceRecommendation_utilizationMetrics - An array of objects
-- that describe the utilization metrics of the instance.
newInstanceRecommendation :: InstanceRecommendation
-- | Describes a recommendation option for an Amazon EC2 instance.
--
-- See: newInstanceRecommendationOption smart constructor.
data InstanceRecommendationOption
InstanceRecommendationOption' :: Maybe Text -> Maybe MigrationEffort -> Maybe Double -> Maybe [PlatformDifference] -> Maybe [UtilizationMetric] -> Maybe Int -> Maybe SavingsOpportunity -> InstanceRecommendationOption
-- | Create a value of InstanceRecommendationOption with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:instanceType:InstanceRecommendationOption',
-- instanceRecommendationOption_instanceType - The instance type
-- of the instance recommendation.
--
-- $sel:migrationEffort:InstanceRecommendationOption',
-- instanceRecommendationOption_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.
--
-- $sel:performanceRisk:InstanceRecommendationOption',
-- instanceRecommendationOption_performanceRisk - The performance
-- risk of the instance recommendation option.
--
-- 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.
--
-- $sel:platformDifferences:InstanceRecommendationOption',
-- instanceRecommendationOption_platformDifferences - Describes
-- the configuration differences between the current instance and the
-- recommended instance type. You should consider the configuration
-- differences before migrating your workloads from the current instance
-- to the recommended instance type. The Change the instance type
-- guide for Linux and Change the instance type guide for
-- Windows provide general guidance for getting started with an
-- instance migration.
--
-- Platform differences include:
--
--
-- - Hypervisor — The hypervisor of the recommended
-- instance type is different than that of the current instance. For
-- example, the recommended instance type uses a Nitro hypervisor and the
-- current instance uses a Xen hypervisor. The differences that you
-- should consider between these hypervisors are covered in the Nitro
-- Hypervisor section of the Amazon EC2 frequently asked questions.
-- For more information, see Instances built on the Nitro System
-- in the Amazon EC2 User Guide for Linux, or Instances built
-- on the Nitro System in the Amazon EC2 User Guide for
-- Windows.
-- - NetworkInterface — The network interface of the
-- recommended instance type is different than that of the current
-- instance. For example, the recommended instance type supports enhanced
-- networking and the current instance might not. To enable enhanced
-- networking for the recommended instance type, you must install the
-- Elastic Network Adapter (ENA) driver or the Intel 82599 Virtual
-- Function driver. For more information, see Networking and storage
-- features and Enhanced networking on Linux in the Amazon
-- EC2 User Guide for Linux, or Networking and storage
-- features and Enhanced networking on Windows in the
-- Amazon EC2 User Guide for Windows.
-- - StorageInterface — The storage interface of the
-- recommended instance type is different than that of the current
-- instance. For example, the recommended instance type uses an NVMe
-- storage interface and the current instance does not. To access NVMe
-- volumes for the recommended instance type, you will need to install or
-- upgrade the NVMe driver. For more information, see Networking and
-- storage features and Amazon EBS and NVMe on Linux instances
-- in the Amazon EC2 User Guide for Linux, or Networking and
-- storage features and Amazon EBS and NVMe on Windows
-- instances in the Amazon EC2 User Guide for Windows.
-- - InstanceStoreAvailability — The recommended
-- instance type does not support instance store volumes and the current
-- instance does. Before migrating, you might need to back up the data on
-- your instance store volumes if you want to preserve them. For more
-- information, see How do I back up an instance store volume on my
-- Amazon EC2 instance to Amazon EBS? in the Amazon Web Services
-- Premium Support Knowledge Base. For more information, see
-- Networking and storage features and Amazon EC2 instance
-- store in the Amazon EC2 User Guide for Linux, or see
-- Networking and storage features and Amazon EC2 instance
-- store in the Amazon EC2 User Guide for Windows.
-- - VirtualizationType — The recommended instance type
-- uses the hardware virtual machine (HVM) virtualization type and the
-- current instance uses the paravirtual (PV) virtualization type. For
-- more information about the differences between these virtualization
-- types, see Linux AMI virtualization types in the Amazon EC2
-- User Guide for Linux, or Windows AMI virtualization types
-- in the Amazon EC2 User Guide for Windows.
-- - Architecture — The CPU architecture between the
-- recommended instance type and the current instance is different. For
-- example, the recommended instance type might use an Arm CPU
-- architecture and the current instance type might use a different one,
-- such as x86. Before migrating, you should consider recompiling the
-- software on your instance for the new architecture. Alternatively, you
-- might switch to an Amazon Machine Image (AMI) that supports the new
-- architecture. For more information about the CPU architecture for each
-- instance type, see Amazon EC2 Instance Types.
--
--
-- $sel:projectedUtilizationMetrics:InstanceRecommendationOption',
-- instanceRecommendationOption_projectedUtilizationMetrics - An
-- array of objects that describe the projected utilization metrics of
-- the instance 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 Enabling Memory
-- Utilization with the CloudWatch Agent.
--
-- $sel:rank:InstanceRecommendationOption',
-- instanceRecommendationOption_rank - The rank of the instance
-- recommendation option.
--
-- The top recommendation option is ranked as 1.
--
-- $sel:savingsOpportunity:InstanceRecommendationOption',
-- instanceRecommendationOption_savingsOpportunity - An object
-- that describes the savings opportunity for the instance recommendation
-- option. Savings opportunity includes the estimated monthly savings
-- amount and percentage.
newInstanceRecommendationOption :: InstanceRecommendationOption
-- | Describes a filter that returns a more specific list of recommendation
-- export jobs. Use this filter with the DescribeRecommendationExportJobs
-- action.
--
-- You can use EBSFilter with the GetEBSVolumeRecommendations
-- action, LambdaFunctionRecommendationFilter with the
-- GetLambdaFunctionRecommendations action, and Filter with the
-- GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations
-- actions.
--
-- See: newJobFilter smart constructor.
data JobFilter
JobFilter' :: Maybe JobFilterName -> Maybe [Text] -> JobFilter
-- | Create a value of JobFilter with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:JobFilter', jobFilter_name - The name of the
-- filter.
--
-- Specify ResourceType to return export jobs of a specific
-- resource type (for example, Ec2Instance).
--
-- Specify JobStatus to return export jobs with a specific
-- status (e.g, Complete).
--
-- $sel:values:JobFilter', jobFilter_values - The value of
-- the filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter:
--
--
-- - Specify Ec2Instance or AutoScalingGroup if you
-- specify the name parameter as ResourceType. There is
-- no filter for EBS volumes because volume recommendations cannot be
-- exported at this time.
-- - Specify Queued, InProgress, Complete,
-- or Failed if you specify the name parameter as
-- JobStatus.
--
newJobFilter :: JobFilter
-- | Describes a projected utilization metric of an Lambda function
-- recommendation option.
--
-- See: newLambdaFunctionMemoryProjectedMetric smart
-- constructor.
data LambdaFunctionMemoryProjectedMetric
LambdaFunctionMemoryProjectedMetric' :: Maybe LambdaFunctionMemoryMetricName -> Maybe LambdaFunctionMemoryMetricStatistic -> Maybe Double -> LambdaFunctionMemoryProjectedMetric
-- | Create a value of LambdaFunctionMemoryProjectedMetric with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:LambdaFunctionMemoryProjectedMetric',
-- lambdaFunctionMemoryProjectedMetric_name - The name of the
-- projected utilization metric.
--
-- $sel:statistic:LambdaFunctionMemoryProjectedMetric',
-- lambdaFunctionMemoryProjectedMetric_statistic - The statistic
-- of the projected utilization metric.
--
-- $sel:value:LambdaFunctionMemoryProjectedMetric',
-- lambdaFunctionMemoryProjectedMetric_value - The values of the
-- projected utilization metrics.
newLambdaFunctionMemoryProjectedMetric :: LambdaFunctionMemoryProjectedMetric
-- | Describes a recommendation option for an Lambda function.
--
-- See: newLambdaFunctionMemoryRecommendationOption smart
-- constructor.
data LambdaFunctionMemoryRecommendationOption
LambdaFunctionMemoryRecommendationOption' :: Maybe Int -> Maybe [LambdaFunctionMemoryProjectedMetric] -> Maybe Int -> Maybe SavingsOpportunity -> LambdaFunctionMemoryRecommendationOption
-- | Create a value of LambdaFunctionMemoryRecommendationOption with
-- all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:memorySize:LambdaFunctionMemoryRecommendationOption',
-- lambdaFunctionMemoryRecommendationOption_memorySize - The
-- memory size, in MB, of the function recommendation option.
--
--
-- $sel:projectedUtilizationMetrics:LambdaFunctionMemoryRecommendationOption',
-- lambdaFunctionMemoryRecommendationOption_projectedUtilizationMetrics
-- - An array of objects that describe the projected utilization metrics
-- of the function recommendation option.
--
-- $sel:rank:LambdaFunctionMemoryRecommendationOption',
-- lambdaFunctionMemoryRecommendationOption_rank - The rank of the
-- function recommendation option.
--
-- The top recommendation option is ranked as 1.
--
--
-- $sel:savingsOpportunity:LambdaFunctionMemoryRecommendationOption',
-- lambdaFunctionMemoryRecommendationOption_savingsOpportunity -
-- An object that describes the savings opportunity for the Lambda
-- function recommendation option. Savings opportunity includes the
-- estimated monthly savings amount and percentage.
newLambdaFunctionMemoryRecommendationOption :: LambdaFunctionMemoryRecommendationOption
-- | Describes an Lambda function recommendation.
--
-- See: newLambdaFunctionRecommendation smart constructor.
data LambdaFunctionRecommendation
LambdaFunctionRecommendation' :: Maybe Text -> Maybe Int -> Maybe CurrentPerformanceRisk -> Maybe LambdaFunctionRecommendationFinding -> Maybe [LambdaFunctionRecommendationFindingReasonCode] -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Double -> Maybe [LambdaFunctionMemoryRecommendationOption] -> Maybe Integer -> Maybe [LambdaFunctionUtilizationMetric] -> LambdaFunctionRecommendation
-- | Create a value of LambdaFunctionRecommendation with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_accountId - The Amazon Web
-- Services account ID of the function.
--
-- $sel:currentMemorySize:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_currentMemorySize - The amount of
-- memory, in MB, that's allocated to the current function.
--
-- $sel:currentPerformanceRisk:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_currentPerformanceRisk - The risk
-- of the current Lambda function not meeting the performance needs of
-- its workloads. The higher the risk, the more likely the current Lambda
-- function requires more memory.
--
-- $sel:finding:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_finding - The finding
-- classification of the function.
--
-- Findings for functions include:
--
--
-- - Optimized — The function is correctly provisioned
-- to run your workload based on its current configuration and its
-- utilization history. This finding classification does not include
-- finding reason codes.
-- - NotOptimized — The function is performing at a
-- higher level (over-provisioned) or at a lower level
-- (under-provisioned) than required for your workload because its
-- current configuration is not optimal. Over-provisioned resources might
-- lead to unnecessary infrastructure cost, and under-provisioned
-- resources might lead to poor application performance. This finding
-- classification can include the MemoryUnderprovisioned and
-- MemoryUnderprovisioned finding reason codes.
-- - Unavailable — Compute Optimizer was unable to
-- generate a recommendation for the function. This could be because the
-- function has not accumulated sufficient metric data, or the function
-- does not qualify for a recommendation. This finding classification can
-- include the InsufficientData and Inconclusive
-- finding reason codes.Functions with a finding of unavailable are not
-- returned unless you specify the filter parameter with a value
-- of Unavailable in your
-- GetLambdaFunctionRecommendations request.
--
--
-- $sel:findingReasonCodes:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_findingReasonCodes - The reason
-- for the finding classification of the function.
--
-- Functions that have a finding classification of Optimized
-- don't have a finding reason code.
--
-- Finding reason codes for functions include:
--
--
-- - MemoryOverprovisioned — The function is
-- over-provisioned when its memory configuration can be sized down while
-- still meeting the performance requirements of your workload. An
-- over-provisioned function might lead to unnecessary infrastructure
-- cost. This finding reason code is part of the NotOptimized
-- finding classification.
-- - MemoryUnderprovisioned — The function is
-- under-provisioned when its memory configuration doesn't meet the
-- performance requirements of the workload. An under-provisioned
-- function might lead to poor application performance. This finding
-- reason code is part of the NotOptimized finding
-- classification.
-- - InsufficientData — The function does not have
-- sufficient metric data for Compute Optimizer to generate a
-- recommendation. For more information, see the Supported resources
-- and requirements in the Compute Optimizer User Guide. This
-- finding reason code is part of the Unavailable finding
-- classification.
-- - Inconclusive — The function does not qualify for a
-- recommendation because Compute Optimizer cannot generate a
-- recommendation with a high degree of confidence. This finding reason
-- code is part of the Unavailable finding classification.
--
--
-- $sel:functionArn:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_functionArn - The Amazon Resource
-- Name (ARN) of the current function.
--
-- $sel:functionVersion:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_functionVersion - The version
-- number of the current function.
--
-- $sel:lastRefreshTimestamp:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_lastRefreshTimestamp - The
-- timestamp of when the function recommendation was last generated.
--
-- $sel:lookbackPeriodInDays:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_lookbackPeriodInDays - The number
-- of days for which utilization metrics were analyzed for the function.
--
--
-- $sel:memorySizeRecommendationOptions:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_memorySizeRecommendationOptions -
-- An array of objects that describe the memory configuration
-- recommendation options for the function.
--
-- $sel:numberOfInvocations:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_numberOfInvocations - The number
-- of times your function code was applied during the look-back period.
--
-- $sel:utilizationMetrics:LambdaFunctionRecommendation',
-- lambdaFunctionRecommendation_utilizationMetrics - An array of
-- objects that describe the utilization metrics of the function.
newLambdaFunctionRecommendation :: LambdaFunctionRecommendation
-- | Describes a filter that returns a more specific list of Lambda
-- function recommendations. Use this filter with the
-- GetLambdaFunctionRecommendations action.
--
-- You can use EBSFilter with the GetEBSVolumeRecommendations
-- action, JobFilter with the DescribeRecommendationExportJobs
-- action, and Filter with the
-- GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations
-- actions.
--
-- See: newLambdaFunctionRecommendationFilter smart
-- constructor.
data LambdaFunctionRecommendationFilter
LambdaFunctionRecommendationFilter' :: Maybe LambdaFunctionRecommendationFilterName -> Maybe [Text] -> LambdaFunctionRecommendationFilter
-- | Create a value of LambdaFunctionRecommendationFilter with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:LambdaFunctionRecommendationFilter',
-- lambdaFunctionRecommendationFilter_name - The name of the
-- filter.
--
-- Specify Finding to return recommendations with a specific
-- finding classification (for example, NotOptimized).
--
-- Specify FindingReasonCode to return recommendations with a
-- specific finding reason code (for example,
-- MemoryUnderprovisioned).
--
-- $sel:values:LambdaFunctionRecommendationFilter',
-- lambdaFunctionRecommendationFilter_values - The value of the
-- filter.
--
-- The valid values for this parameter are as follows, depending on what
-- you specify for the name parameter:
--
--
-- - Specify Optimized, NotOptimized, or
-- Unavailable if you specify the name parameter as
-- Finding.
-- - Specify MemoryOverprovisioned,
-- MemoryUnderprovisioned, InsufficientData, or
-- Inconclusive if you specify the name parameter as
-- FindingReasonCode.
--
newLambdaFunctionRecommendationFilter :: LambdaFunctionRecommendationFilter
-- | Describes a utilization metric of an Lambda function.
--
-- See: newLambdaFunctionUtilizationMetric smart
-- constructor.
data LambdaFunctionUtilizationMetric
LambdaFunctionUtilizationMetric' :: Maybe LambdaFunctionMetricName -> Maybe LambdaFunctionMetricStatistic -> Maybe Double -> LambdaFunctionUtilizationMetric
-- | Create a value of LambdaFunctionUtilizationMetric with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:LambdaFunctionUtilizationMetric',
-- lambdaFunctionUtilizationMetric_name - The name of the
-- utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Duration - The amount of time that your function code
-- spends processing an event.
-- - Memory - The amount of memory used per invocation.
--
--
-- $sel:statistic:LambdaFunctionUtilizationMetric',
-- lambdaFunctionUtilizationMetric_statistic - The statistic of
-- the utilization metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
--
-- $sel:value:LambdaFunctionUtilizationMetric',
-- lambdaFunctionUtilizationMetric_value - The value of the
-- utilization metric.
newLambdaFunctionUtilizationMetric :: LambdaFunctionUtilizationMetric
-- | The memory size configurations of a container.
--
-- See: newMemorySizeConfiguration smart constructor.
data MemorySizeConfiguration
MemorySizeConfiguration' :: Maybe Int -> Maybe Int -> MemorySizeConfiguration
-- | Create a value of MemorySizeConfiguration with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:memory:MemorySizeConfiguration',
-- memorySizeConfiguration_memory - The amount of memory in the
-- container.
--
-- $sel:memoryReservation:MemorySizeConfiguration',
-- memorySizeConfiguration_memoryReservation - The limit of memory
-- reserve for the container.
newMemorySizeConfiguration :: MemorySizeConfiguration
-- | Describes a projected utilization metric of a recommendation option,
-- such as an Amazon EC2 instance. This represents the projected
-- utilization of a recommendation option had you used that resource
-- during the analyzed period.
--
-- Compare the utilization metric data of your resource against its
-- projected utilization metric data to determine the performance
-- difference between your current resource and the recommended option.
--
-- The Cpu and Memory metrics are the only projected
-- utilization metrics returned when you run the
-- GetEC2RecommendationProjectedMetrics action. Additionally, the
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
--
-- See: newProjectedMetric smart constructor.
data ProjectedMetric
ProjectedMetric' :: Maybe MetricName -> Maybe [POSIX] -> Maybe [Double] -> ProjectedMetric
-- | Create a value of ProjectedMetric with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:ProjectedMetric', projectedMetric_name - The
-- name of the projected utilization metric.
--
-- The following projected utilization metrics are returned:
--
--
-- - Cpu - The projected percentage of allocated EC2 compute
-- units that would be in use on the recommendation option had you used
-- that resource during the analyzed period. This metric identifies the
-- processing power required to run an application on the recommendation
-- option.Depending on the instance type, tools in your operating system
-- can show a lower percentage than CloudWatch when the instance is not
-- allocated a full processor core.Units: Percent
-- - Memory - The percentage of memory that would be in use on
-- the recommendation option had you used that resource during the
-- analyzed period. This metric identifies the amount of memory required
-- to run an application on the recommendation option.Units: PercentThe
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
--
--
-- $sel:timestamps:ProjectedMetric',
-- projectedMetric_timestamps - The timestamps of the projected
-- utilization metric.
--
-- $sel:values:ProjectedMetric', projectedMetric_values -
-- The values of the projected utilization metrics.
newProjectedMetric :: ProjectedMetric
-- | A summary of a finding reason code.
--
-- See: newReasonCodeSummary smart constructor.
data ReasonCodeSummary
ReasonCodeSummary' :: Maybe FindingReasonCode -> Maybe Double -> ReasonCodeSummary
-- | Create a value of ReasonCodeSummary with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:ReasonCodeSummary', reasonCodeSummary_name -
-- The name of the finding reason code.
--
-- $sel:value:ReasonCodeSummary', reasonCodeSummary_value -
-- The value of the finding reason code summary.
newReasonCodeSummary :: ReasonCodeSummary
-- | Describes a recommendation export job.
--
-- Use the DescribeRecommendationExportJobs action to view your
-- recommendation export jobs.
--
-- Use the ExportAutoScalingGroupRecommendations or
-- ExportEC2InstanceRecommendations actions to request an export of your
-- recommendations.
--
-- See: newRecommendationExportJob smart constructor.
data RecommendationExportJob
RecommendationExportJob' :: Maybe POSIX -> Maybe ExportDestination -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe ResourceType -> Maybe JobStatus -> RecommendationExportJob
-- | Create a value of RecommendationExportJob with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:creationTimestamp:RecommendationExportJob',
-- recommendationExportJob_creationTimestamp - The timestamp of
-- when the export job was created.
--
-- $sel:destination:RecommendationExportJob',
-- recommendationExportJob_destination - An object that describes
-- the destination of the export file.
--
-- $sel:failureReason:RecommendationExportJob',
-- recommendationExportJob_failureReason - The reason for an
-- export job failure.
--
-- $sel:jobId:RecommendationExportJob',
-- recommendationExportJob_jobId - The identification number of
-- the export job.
--
-- $sel:lastUpdatedTimestamp:RecommendationExportJob',
-- recommendationExportJob_lastUpdatedTimestamp - The timestamp of
-- when the export job was last updated.
--
-- $sel:resourceType:RecommendationExportJob',
-- recommendationExportJob_resourceType - The resource type of the
-- exported recommendations.
--
-- $sel:status:RecommendationExportJob',
-- recommendationExportJob_status - The status of the export job.
newRecommendationExportJob :: RecommendationExportJob
-- | Describes the recommendation preferences to return in the response of
-- a GetAutoScalingGroupRecommendations, GetEC2InstanceRecommendations,
-- and GetEC2RecommendationProjectedMetrics request.
--
-- See: newRecommendationPreferences smart constructor.
data RecommendationPreferences
RecommendationPreferences' :: Maybe [CpuVendorArchitecture] -> RecommendationPreferences
-- | Create a value of RecommendationPreferences with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:cpuVendorArchitectures:RecommendationPreferences',
-- recommendationPreferences_cpuVendorArchitectures - Specifies
-- the CPU vendor and architecture for Amazon EC2 instance and Auto
-- Scaling group recommendations.
--
-- For example, when you specify AWS_ARM64 with:
--
--
-- - A GetEC2InstanceRecommendations or
-- GetAutoScalingGroupRecommendations request, Compute Optimizer returns
-- recommendations that consist of Graviton2 instance types only.
-- - A GetEC2RecommendationProjectedMetrics request, Compute Optimizer
-- returns projected utilization metrics for Graviton2 instance type
-- recommendations only.
-- - A ExportEC2InstanceRecommendations or
-- ExportAutoScalingGroupRecommendations request, Compute Optimizer
-- exports recommendations that consist of Graviton2 instance types
-- only.
--
newRecommendationPreferences :: RecommendationPreferences
-- | Describes a recommendation preference.
--
-- See: newRecommendationPreferencesDetail smart
-- constructor.
data RecommendationPreferencesDetail
RecommendationPreferencesDetail' :: Maybe EnhancedInfrastructureMetrics -> Maybe ExternalMetricsPreference -> Maybe InferredWorkloadTypesPreference -> Maybe ResourceType -> Maybe Scope -> RecommendationPreferencesDetail
-- | Create a value of RecommendationPreferencesDetail with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
--
-- $sel:enhancedInfrastructureMetrics:RecommendationPreferencesDetail',
-- recommendationPreferencesDetail_enhancedInfrastructureMetrics -
-- The status of the enhanced infrastructure metrics recommendation
-- preference.
--
-- When the recommendations page is refreshed, a status of
-- Active confirms that the preference is applied to the
-- recommendations, and a status of Inactive confirms that the
-- preference isn't yet applied to recommendations.
--
-- For more information, see Enhanced infrastructure metrics in
-- the Compute Optimizer User Guide.
--
--
-- $sel:externalMetricsPreference:RecommendationPreferencesDetail',
-- recommendationPreferencesDetail_externalMetricsPreference - An
-- object that describes the external metrics recommendation preference.
--
-- If the preference is applied in the latest recommendation refresh, an
-- object with a valid source value appears in the response. If
-- the preference isn't applied to the recommendations already, then this
-- object doesn't appear in the response.
--
-- $sel:inferredWorkloadTypes:RecommendationPreferencesDetail',
-- recommendationPreferencesDetail_inferredWorkloadTypes - The
-- status of the inferred workload types recommendation preference.
--
-- When the recommendations page is refreshed, a status of
-- Active confirms that the preference is applied to the
-- recommendations, and a status of Inactive confirms that the
-- preference isn't yet applied to recommendations.
--
-- $sel:resourceType:RecommendationPreferencesDetail',
-- recommendationPreferencesDetail_resourceType - The target
-- resource type of the recommendation preference to create.
--
-- The Ec2Instance option encompasses standalone instances and
-- instances that are part of Auto Scaling groups. The
-- AutoScalingGroup option encompasses only instances that are
-- part of an Auto Scaling group.
--
-- $sel:scope:RecommendationPreferencesDetail',
-- recommendationPreferencesDetail_scope - An object that
-- describes the scope of the recommendation preference.
--
-- Recommendation preferences can be created at the organization level
-- (for management accounts of an organization only), account level, and
-- resource level. For more information, see Activating enhanced
-- infrastructure metrics in the Compute Optimizer User Guide.
newRecommendationPreferencesDetail :: RecommendationPreferencesDetail
-- | Describes the source of a recommendation, such as an Amazon EC2
-- instance or Auto Scaling group.
--
-- See: newRecommendationSource smart constructor.
data RecommendationSource
RecommendationSource' :: Maybe Text -> Maybe RecommendationSourceType -> RecommendationSource
-- | Create a value of RecommendationSource with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:recommendationSourceArn:RecommendationSource',
-- recommendationSource_recommendationSourceArn - The Amazon
-- Resource Name (ARN) of the recommendation source.
--
-- $sel:recommendationSourceType:RecommendationSource',
-- recommendationSource_recommendationSourceType - The resource
-- type of the recommendation source.
newRecommendationSource :: RecommendationSource
-- | A summary of a recommendation.
--
-- See: newRecommendationSummary smart constructor.
data RecommendationSummary
RecommendationSummary' :: Maybe Text -> Maybe CurrentPerformanceRiskRatings -> Maybe RecommendationSourceType -> Maybe SavingsOpportunity -> Maybe [Summary] -> RecommendationSummary
-- | Create a value of RecommendationSummary with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:RecommendationSummary',
-- recommendationSummary_accountId - The Amazon Web Services
-- account ID of the recommendation summary.
--
-- $sel:currentPerformanceRiskRatings:RecommendationSummary',
-- recommendationSummary_currentPerformanceRiskRatings - An object
-- that describes the performance risk ratings for a given resource type.
--
-- $sel:recommendationResourceType:RecommendationSummary',
-- recommendationSummary_recommendationResourceType - The resource
-- type that the recommendation summary applies to.
--
-- $sel:savingsOpportunity:RecommendationSummary',
-- recommendationSummary_savingsOpportunity - An object that
-- describes the savings opportunity for a given resource type. Savings
-- opportunity includes the estimated monthly savings amount and
-- percentage.
--
-- $sel:summaries:RecommendationSummary',
-- recommendationSummary_summaries - An array of objects that
-- describe a recommendation summary.
newRecommendationSummary :: RecommendationSummary
-- | Describes a projected utilization metric of a recommendation option.
--
-- The Cpu and Memory metrics are the only projected
-- utilization metrics returned when you run the
-- GetEC2RecommendationProjectedMetrics action. Additionally, the
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
--
-- See: newRecommendedOptionProjectedMetric smart
-- constructor.
data RecommendedOptionProjectedMetric
RecommendedOptionProjectedMetric' :: Maybe [ProjectedMetric] -> Maybe Int -> Maybe Text -> RecommendedOptionProjectedMetric
-- | Create a value of RecommendedOptionProjectedMetric with all
-- optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:projectedMetrics:RecommendedOptionProjectedMetric',
-- recommendedOptionProjectedMetric_projectedMetrics - An array of
-- objects that describe a projected utilization metric.
--
-- $sel:rank:RecommendedOptionProjectedMetric',
-- recommendedOptionProjectedMetric_rank - The rank of the
-- recommendation option projected metric.
--
-- The top recommendation option is ranked as 1.
--
-- The projected metric rank correlates to the recommendation option
-- rank. For example, the projected metric ranked as 1 is
-- related to the recommendation option that is also ranked as 1
-- in the same response.
--
-- $sel:recommendedInstanceType:RecommendedOptionProjectedMetric',
-- recommendedOptionProjectedMetric_recommendedInstanceType - The
-- recommended instance type.
newRecommendedOptionProjectedMetric :: RecommendedOptionProjectedMetric
-- | Describes the destination Amazon Simple Storage Service (Amazon S3)
-- bucket name and object keys of a recommendations export file, and its
-- associated metadata file.
--
-- See: newS3Destination smart constructor.
data S3Destination
S3Destination' :: Maybe Text -> Maybe Text -> Maybe Text -> S3Destination
-- | Create a value of S3Destination with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:bucket:S3Destination', s3Destination_bucket - The
-- name of the Amazon S3 bucket used as the destination of an export
-- file.
--
-- $sel:key:S3Destination', s3Destination_key - The Amazon
-- S3 bucket key of an export file.
--
-- The key uniquely identifies the object, or export file, in the S3
-- bucket.
--
-- $sel:metadataKey:S3Destination',
-- s3Destination_metadataKey - The Amazon S3 bucket key of a
-- metadata file.
--
-- The key uniquely identifies the object, or metadata file, in the S3
-- bucket.
newS3Destination :: S3Destination
-- | Describes the destination Amazon Simple Storage Service (Amazon S3)
-- bucket name and key prefix for a recommendations export job.
--
-- You must create the destination Amazon S3 bucket for your
-- recommendations export before you create the export job. Compute
-- Optimizer does not create the S3 bucket for you. After you create the
-- S3 bucket, ensure that it has the required permission policy to allow
-- Compute Optimizer to write the export file to it. If you plan to
-- specify an object prefix when you create the export job, you must
-- include the object prefix in the policy that you add to the S3 bucket.
-- For more information, see Amazon S3 Bucket Policy for Compute
-- Optimizer in the Compute Optimizer User Guide.
--
-- See: newS3DestinationConfig smart constructor.
data S3DestinationConfig
S3DestinationConfig' :: Maybe Text -> Maybe Text -> S3DestinationConfig
-- | Create a value of S3DestinationConfig with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:bucket:S3DestinationConfig',
-- s3DestinationConfig_bucket - The name of the Amazon S3 bucket
-- to use as the destination for an export job.
--
-- $sel:keyPrefix:S3DestinationConfig',
-- s3DestinationConfig_keyPrefix - The Amazon S3 bucket prefix for
-- an export job.
newS3DestinationConfig :: S3DestinationConfig
-- | Describes the savings opportunity for recommendations of a given
-- resource type or for the recommendation option of an individual
-- resource.
--
-- Savings opportunity represents the estimated monthly savings you can
-- achieve by implementing a given Compute Optimizer recommendation.
--
-- Savings opportunity data requires that you opt in to Cost Explorer, as
-- well as activate Receive Amazon EC2 resource recommendations in
-- the Cost Explorer preferences page. That creates a connection between
-- Cost Explorer and Compute Optimizer. With this connection, Cost
-- Explorer generates savings estimates considering the price of existing
-- resources, the price of recommended resources, and historical usage
-- data. Estimated monthly savings reflects the projected dollar savings
-- associated with each of the recommendations generated. For more
-- information, see Enabling Cost Explorer and Optimizing your
-- cost with Rightsizing Recommendations in the Cost Management
-- User Guide.
--
-- See: newSavingsOpportunity smart constructor.
data SavingsOpportunity
SavingsOpportunity' :: Maybe EstimatedMonthlySavings -> Maybe Double -> SavingsOpportunity
-- | Create a value of SavingsOpportunity with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:estimatedMonthlySavings:SavingsOpportunity',
-- savingsOpportunity_estimatedMonthlySavings - An object that
-- describes the estimated monthly savings amount possible, based on
-- On-Demand instance pricing, by adopting Compute Optimizer
-- recommendations for a given resource.
--
-- $sel:savingsOpportunityPercentage:SavingsOpportunity',
-- savingsOpportunity_savingsOpportunityPercentage - The estimated
-- monthly savings possible as a percentage of monthly cost by adopting
-- Compute Optimizer recommendations for a given resource.
newSavingsOpportunity :: SavingsOpportunity
-- | Describes the scope of a recommendation preference.
--
-- Recommendation preferences can be created at the organization level
-- (for management accounts of an organization only), account level, and
-- resource level. For more information, see Activating enhanced
-- infrastructure metrics in the Compute Optimizer User Guide.
--
-- You cannot create recommendation preferences for Auto Scaling groups
-- at the organization and account levels. You can create recommendation
-- preferences for Auto Scaling groups only at the resource level by
-- specifying a scope name of ResourceArn and a scope value of
-- the Auto Scaling group Amazon Resource Name (ARN). This will configure
-- the preference for all instances that are part of the specified Auto
-- Scaling group. You also cannot create recommendation preferences at
-- the resource level for instances that are part of an Auto Scaling
-- group. You can create recommendation preferences at the resource level
-- only for standalone instances.
--
-- See: newScope smart constructor.
data Scope
Scope' :: Maybe ScopeName -> Maybe Text -> Scope
-- | Create a value of Scope with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:Scope', scope_name - The name of the scope.
--
-- The following scopes are possible:
--
--
-- - Organization - Specifies that the recommendation
-- preference applies at the organization level, for all member accounts
-- of an organization.
-- - AccountId - Specifies that the recommendation preference
-- applies at the account level, for all resources of a given resource
-- type in an account.
-- - ResourceArn - Specifies that the recommendation
-- preference applies at the individual resource level.
--
--
-- $sel:value:Scope', scope_value - The value of the scope.
--
-- If you specified the name of the scope as:
--
--
-- - Organization - The value must be
-- ALL_ACCOUNTS.
-- - AccountId - The value must be a 12-digit Amazon
-- Web Services account ID.
-- - ResourceArn - The value must be the Amazon
-- Resource Name (ARN) of an EC2 instance or an Auto Scaling group.
--
--
-- Only EC2 instance and Auto Scaling group ARNs are currently supported.
newScope :: Scope
-- | The Amazon ECS service configurations used for recommendations.
--
-- See: newServiceConfiguration smart constructor.
data ServiceConfiguration
ServiceConfiguration' :: Maybe AutoScalingConfiguration -> Maybe [ContainerConfiguration] -> Maybe Int -> Maybe Int -> Maybe Text -> ServiceConfiguration
-- | Create a value of ServiceConfiguration with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:autoScalingConfiguration:ServiceConfiguration',
-- serviceConfiguration_autoScalingConfiguration - Describes the
-- Auto Scaling configuration methods for an Amazon ECS service. This
-- affects the generated recommendations. For example, if Auto Scaling is
-- configured on a ECS service’s CPU, then Compute Optimizer doesn’t
-- generate CPU size recommendations.
--
-- The Auto Scaling configuration methods include:
--
--
-- - TARGET_TRACKING_SCALING_CPU — If the ECS service is
-- configured to use target scaling on CPU, Compute Optimizer doesn't
-- generate CPU recommendations.
-- - TARGET_TRACKING_SCALING_MEMORY — If the ECS service is
-- configured to use target scaling on memory, Compute Optimizer doesn't
-- generate memory recommendations.
--
--
-- For more information about step scaling and target scaling, see
-- Step scaling policies for Application Auto Scaling and
-- Target tracking scaling policies for Application Auto Scaling
-- in the Application Auto Scaling User Guide.
--
-- $sel:containerConfigurations:ServiceConfiguration',
-- serviceConfiguration_containerConfigurations - The container
-- configurations within a task of an ECS service.
--
-- ServiceConfiguration, serviceConfiguration_cpu - The
-- number of CPU units used by the tasks in the ECS service.
--
-- $sel:memory:ServiceConfiguration',
-- serviceConfiguration_memory - The amount of memory used by the
-- tasks in the ECS service.
--
-- $sel:taskDefinitionArn:ServiceConfiguration',
-- serviceConfiguration_taskDefinitionArn - The task definition
-- ARN used by the tasks in the ECS service.
newServiceConfiguration :: ServiceConfiguration
-- | The summary of a recommendation.
--
-- See: newSummary smart constructor.
data Summary
Summary' :: Maybe Finding -> Maybe [ReasonCodeSummary] -> Maybe Double -> Summary
-- | Create a value of Summary with all optional fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- Summary, summary_name - The finding classification of
-- the recommendation.
--
-- $sel:reasonCodeSummaries:Summary',
-- summary_reasonCodeSummaries - An array of objects that
-- summarize a finding reason code.
--
-- Summary, summary_value - The value of the recommendation
-- summary.
newSummary :: Summary
-- | Describes a utilization metric of a resource, such as an Amazon EC2
-- instance.
--
-- Compare the utilization metric data of your resource against its
-- projected utilization metric data to determine the performance
-- difference between your current resource and the recommended option.
--
-- See: newUtilizationMetric smart constructor.
data UtilizationMetric
UtilizationMetric' :: Maybe MetricName -> Maybe MetricStatistic -> Maybe Double -> UtilizationMetric
-- | Create a value of UtilizationMetric with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:name:UtilizationMetric', utilizationMetric_name -
-- The name of the utilization metric.
--
-- The following utilization metrics are available:
--
--
-- - Cpu - The percentage of allocated EC2 compute units that
-- are currently in use on the instance. This metric identifies the
-- processing power required to run an application on the
-- instance.Depending on the instance type, tools in your operating
-- system can show a lower percentage than CloudWatch when the instance
-- is not allocated a full processor core.Units: Percent
-- - Memory - The percentage of memory that is currently in
-- use on the instance. This metric identifies the amount of memory
-- required to run an application on the instance.Units: PercentThe
-- Memory metric is returned only for resources that have the
-- unified CloudWatch agent installed on them. For more information, see
-- Enabling Memory Utilization with the CloudWatch Agent.
-- - EBS_READ_OPS_PER_SECOND - The completed read operations
-- from all EBS volumes attached to the instance in a specified period of
-- time.Unit: Count
-- - EBS_WRITE_OPS_PER_SECOND - The completed write operations
-- to all EBS volumes attached to the instance in a specified period of
-- time.Unit: Count
-- - EBS_READ_BYTES_PER_SECOND - The bytes read from all EBS
-- volumes attached to the instance in a specified period of time.Unit:
-- Bytes
-- - EBS_WRITE_BYTES_PER_SECOND - The bytes written to all EBS
-- volumes attached to the instance in a specified period of time.Unit:
-- Bytes
-- - DISK_READ_OPS_PER_SECOND - The completed read operations
-- from all instance store volumes available to the instance in a
-- specified period of time.If there are no instance store volumes,
-- either the value is 0 or the metric is not reported.
-- - DISK_WRITE_OPS_PER_SECOND - The completed write
-- operations from all instance store volumes available to the instance
-- in a specified period of time.If there are no instance store volumes,
-- either the value is 0 or the metric is not reported.
-- - DISK_READ_BYTES_PER_SECOND - The bytes read from all
-- instance store volumes available to the instance. This metric is used
-- to determine the volume of the data the application reads from the
-- disk of the instance. This can be used to determine the speed of the
-- application.If there are no instance store volumes, either the value
-- is 0 or the metric is not reported.
-- - DISK_WRITE_BYTES_PER_SECOND - The bytes written to all
-- instance store volumes available to the instance. This metric is used
-- to determine the volume of the data the application writes onto the
-- disk of the instance. This can be used to determine the speed of the
-- application.If there are no instance store volumes, either the value
-- is 0 or the metric is not reported.
-- - NETWORK_IN_BYTES_PER_SECOND - The number of bytes
-- received by the instance on all network interfaces. This metric
-- identifies the volume of incoming network traffic to a single
-- instance.
-- - NETWORK_OUT_BYTES_PER_SECOND - The number of bytes sent
-- out by the instance on all network interfaces. This metric identifies
-- the volume of outgoing network traffic from a single instance.
-- - NETWORK_PACKETS_IN_PER_SECOND - The number of packets
-- received by the instance on all network interfaces. This metric
-- identifies the volume of incoming traffic in terms of the number of
-- packets on a single instance.
-- - NETWORK_PACKETS_OUT_PER_SECOND - The number of packets
-- sent out by the instance on all network interfaces. This metric
-- identifies the volume of outgoing traffic in terms of the number of
-- packets on a single instance.
--
--
-- $sel:statistic:UtilizationMetric',
-- utilizationMetric_statistic - The statistic of the utilization
-- metric.
--
-- The Compute Optimizer API, Command Line Interface (CLI), and SDKs
-- return utilization metrics using only the Maximum statistic,
-- which is the highest value observed during the specified period.
--
-- The Compute Optimizer console displays graphs for some utilization
-- metrics using the Average statistic, which is the value of
-- Sum / SampleCount during the specified period. For
-- more information, see Viewing resource recommendations in the
-- Compute Optimizer User Guide. You can also get averaged
-- utilization metric data for your resources using Amazon CloudWatch.
-- For more information, see the Amazon CloudWatch User Guide.
--
-- $sel:value:UtilizationMetric', utilizationMetric_value -
-- The value of the utilization metric.
newUtilizationMetric :: UtilizationMetric
-- | Describes the configuration of an Amazon Elastic Block Store (Amazon
-- EBS) volume.
--
-- See: newVolumeConfiguration smart constructor.
data VolumeConfiguration
VolumeConfiguration' :: Maybe Int -> Maybe Int -> Maybe Int -> Maybe Int -> Maybe Int -> Maybe Text -> VolumeConfiguration
-- | Create a value of VolumeConfiguration with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:volumeBaselineIOPS:VolumeConfiguration',
-- volumeConfiguration_volumeBaselineIOPS - The baseline IOPS of
-- the volume.
--
-- $sel:volumeBaselineThroughput:VolumeConfiguration',
-- volumeConfiguration_volumeBaselineThroughput - The baseline
-- throughput of the volume.
--
-- $sel:volumeBurstIOPS:VolumeConfiguration',
-- volumeConfiguration_volumeBurstIOPS - The burst IOPS of the
-- volume.
--
-- $sel:volumeBurstThroughput:VolumeConfiguration',
-- volumeConfiguration_volumeBurstThroughput - The burst
-- throughput of the volume.
--
-- $sel:volumeSize:VolumeConfiguration',
-- volumeConfiguration_volumeSize - The size of the volume, in
-- GiB.
--
-- $sel:volumeType:VolumeConfiguration',
-- volumeConfiguration_volumeType - The volume type.
--
-- This can be gp2 for General Purpose SSD, io1 or
-- io2 for Provisioned IOPS SSD, st1 for Throughput
-- Optimized HDD, sc1 for Cold HDD, or standard for
-- Magnetic volumes.
newVolumeConfiguration :: VolumeConfiguration
-- | Describes an Amazon Elastic Block Store (Amazon EBS) volume
-- recommendation.
--
-- See: newVolumeRecommendation smart constructor.
data VolumeRecommendation
VolumeRecommendation' :: Maybe Text -> Maybe VolumeConfiguration -> Maybe CurrentPerformanceRisk -> Maybe EBSFinding -> Maybe POSIX -> Maybe Double -> Maybe [EBSUtilizationMetric] -> Maybe Text -> Maybe [VolumeRecommendationOption] -> VolumeRecommendation
-- | Create a value of VolumeRecommendation with all optional fields
-- omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:accountId:VolumeRecommendation',
-- volumeRecommendation_accountId - The Amazon Web Services
-- account ID of the volume.
--
-- $sel:currentConfiguration:VolumeRecommendation',
-- volumeRecommendation_currentConfiguration - An array of objects
-- that describe the current configuration of the volume.
--
-- $sel:currentPerformanceRisk:VolumeRecommendation',
-- volumeRecommendation_currentPerformanceRisk - The risk of the
-- current EBS volume not meeting the performance needs of its workloads.
-- The higher the risk, the more likely the current EBS volume doesn't
-- have sufficient capacity.
--
-- $sel:finding:VolumeRecommendation',
-- volumeRecommendation_finding - The finding classification of
-- the volume.
--
-- Findings for volumes include:
--
--
-- - NotOptimized —A volume is considered not optimized
-- when Compute Optimizer identifies a recommendation that can provide
-- better performance for your workload.
-- - Optimized —An volume is considered optimized when
-- Compute Optimizer determines that the volume is correctly provisioned
-- to run your workload based on the chosen volume type. For optimized
-- resources, Compute Optimizer might recommend a new generation volume
-- type.
--
--
-- $sel:lastRefreshTimestamp:VolumeRecommendation',
-- volumeRecommendation_lastRefreshTimestamp - The timestamp of
-- when the volume recommendation was last generated.
--
-- $sel:lookBackPeriodInDays:VolumeRecommendation',
-- volumeRecommendation_lookBackPeriodInDays - The number of days
-- for which utilization metrics were analyzed for the volume.
--
-- $sel:utilizationMetrics:VolumeRecommendation',
-- volumeRecommendation_utilizationMetrics - An array of objects
-- that describe the utilization metrics of the volume.
--
-- $sel:volumeArn:VolumeRecommendation',
-- volumeRecommendation_volumeArn - The Amazon Resource Name (ARN)
-- of the current volume.
--
-- $sel:volumeRecommendationOptions:VolumeRecommendation',
-- volumeRecommendation_volumeRecommendationOptions - An array of
-- objects that describe the recommendation options for the volume.
newVolumeRecommendation :: VolumeRecommendation
-- | Describes a recommendation option for an Amazon Elastic Block Store
-- (Amazon EBS) instance.
--
-- See: newVolumeRecommendationOption smart constructor.
data VolumeRecommendationOption
VolumeRecommendationOption' :: Maybe VolumeConfiguration -> Maybe Double -> Maybe Int -> Maybe SavingsOpportunity -> VolumeRecommendationOption
-- | Create a value of VolumeRecommendationOption with all optional
-- fields omitted.
--
-- Use generic-lens or optics to modify other optional
-- fields.
--
-- The following record fields are available, with the corresponding
-- lenses provided for backwards compatibility:
--
-- $sel:configuration:VolumeRecommendationOption',
-- volumeRecommendationOption_configuration - An array of objects
-- that describe a volume configuration.
--
-- $sel:performanceRisk:VolumeRecommendationOption',
-- volumeRecommendationOption_performanceRisk - The performance
-- risk of the volume recommendation option.
--
-- Performance risk is the likelihood of the recommended volume type
-- meeting the performance requirement of your workload.
--
-- 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.
--
-- $sel:rank:VolumeRecommendationOption',
-- volumeRecommendationOption_rank - The rank of the volume
-- recommendation option.
--
-- The top recommendation option is ranked as 1.
--
-- $sel:savingsOpportunity:VolumeRecommendationOption',
-- volumeRecommendationOption_savingsOpportunity - An object that
-- describes the savings opportunity for the EBS volume recommendation
-- option. Savings opportunity includes the estimated monthly savings
-- amount and percentage.
newVolumeRecommendationOption :: VolumeRecommendationOption