{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- 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
-- <https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html 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
  ( -- * Creating a Request
    ExportLambdaFunctionRecommendations (..),
    newExportLambdaFunctionRecommendations,

    -- * Request Lenses
    exportLambdaFunctionRecommendations_accountIds,
    exportLambdaFunctionRecommendations_fileFormat,
    exportLambdaFunctionRecommendations_filters,
    exportLambdaFunctionRecommendations_fieldsToExport,
    exportLambdaFunctionRecommendations_includeMemberAccounts,
    exportLambdaFunctionRecommendations_s3DestinationConfig,

    -- * Destructuring the Response
    ExportLambdaFunctionRecommendationsResponse (..),
    newExportLambdaFunctionRecommendationsResponse,

    -- * Response Lenses
    exportLambdaFunctionRecommendationsResponse_jobId,
    exportLambdaFunctionRecommendationsResponse_s3Destination,
    exportLambdaFunctionRecommendationsResponse_httpStatus,
  )
where

import Amazonka.ComputeOptimizer.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newExportLambdaFunctionRecommendations' smart constructor.
data ExportLambdaFunctionRecommendations = 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 -> Maybe [Text]
accountIds :: Prelude.Maybe [Prelude.Text],
    -- | The format of the export file.
    --
    -- The only export file format currently supported is @Csv@.
    ExportLambdaFunctionRecommendations -> Maybe FileFormat
fileFormat :: Prelude.Maybe FileFormat,
    -- | An array of objects to specify a filter that exports a more specific set
    -- of Lambda function recommendations.
    ExportLambdaFunctionRecommendations
-> Maybe [LambdaFunctionRecommendationFilter]
filters :: Prelude.Maybe [LambdaFunctionRecommendationFilter],
    -- | The recommendations data to include in the export file. For more
    -- information about the fields that can be exported, see
    -- <https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html#exported-files Exported files>
    -- in the /Compute Optimizer User Guide/.
    ExportLambdaFunctionRecommendations
-> Maybe [ExportableLambdaFunctionField]
fieldsToExport :: Prelude.Maybe [ExportableLambdaFunctionField],
    -- | 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
    -- <https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html#trusted-service-access 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 -> Maybe Bool
includeMemberAccounts :: Prelude.Maybe Prelude.Bool,
    ExportLambdaFunctionRecommendations -> S3DestinationConfig
s3DestinationConfig :: S3DestinationConfig
  }
  deriving (ExportLambdaFunctionRecommendations
-> ExportLambdaFunctionRecommendations -> Bool
(ExportLambdaFunctionRecommendations
 -> ExportLambdaFunctionRecommendations -> Bool)
-> (ExportLambdaFunctionRecommendations
    -> ExportLambdaFunctionRecommendations -> Bool)
-> Eq ExportLambdaFunctionRecommendations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExportLambdaFunctionRecommendations
-> ExportLambdaFunctionRecommendations -> Bool
$c/= :: ExportLambdaFunctionRecommendations
-> ExportLambdaFunctionRecommendations -> Bool
== :: ExportLambdaFunctionRecommendations
-> ExportLambdaFunctionRecommendations -> Bool
$c== :: ExportLambdaFunctionRecommendations
-> ExportLambdaFunctionRecommendations -> Bool
Prelude.Eq, ReadPrec [ExportLambdaFunctionRecommendations]
ReadPrec ExportLambdaFunctionRecommendations
Int -> ReadS ExportLambdaFunctionRecommendations
ReadS [ExportLambdaFunctionRecommendations]
(Int -> ReadS ExportLambdaFunctionRecommendations)
-> ReadS [ExportLambdaFunctionRecommendations]
-> ReadPrec ExportLambdaFunctionRecommendations
-> ReadPrec [ExportLambdaFunctionRecommendations]
-> Read ExportLambdaFunctionRecommendations
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExportLambdaFunctionRecommendations]
$creadListPrec :: ReadPrec [ExportLambdaFunctionRecommendations]
readPrec :: ReadPrec ExportLambdaFunctionRecommendations
$creadPrec :: ReadPrec ExportLambdaFunctionRecommendations
readList :: ReadS [ExportLambdaFunctionRecommendations]
$creadList :: ReadS [ExportLambdaFunctionRecommendations]
readsPrec :: Int -> ReadS ExportLambdaFunctionRecommendations
$creadsPrec :: Int -> ReadS ExportLambdaFunctionRecommendations
Prelude.Read, Int -> ExportLambdaFunctionRecommendations -> ShowS
[ExportLambdaFunctionRecommendations] -> ShowS
ExportLambdaFunctionRecommendations -> String
(Int -> ExportLambdaFunctionRecommendations -> ShowS)
-> (ExportLambdaFunctionRecommendations -> String)
-> ([ExportLambdaFunctionRecommendations] -> ShowS)
-> Show ExportLambdaFunctionRecommendations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExportLambdaFunctionRecommendations] -> ShowS
$cshowList :: [ExportLambdaFunctionRecommendations] -> ShowS
show :: ExportLambdaFunctionRecommendations -> String
$cshow :: ExportLambdaFunctionRecommendations -> String
showsPrec :: Int -> ExportLambdaFunctionRecommendations -> ShowS
$cshowsPrec :: Int -> ExportLambdaFunctionRecommendations -> ShowS
Prelude.Show, (forall x.
 ExportLambdaFunctionRecommendations
 -> Rep ExportLambdaFunctionRecommendations x)
-> (forall x.
    Rep ExportLambdaFunctionRecommendations x
    -> ExportLambdaFunctionRecommendations)
-> Generic ExportLambdaFunctionRecommendations
forall x.
Rep ExportLambdaFunctionRecommendations x
-> ExportLambdaFunctionRecommendations
forall x.
ExportLambdaFunctionRecommendations
-> Rep ExportLambdaFunctionRecommendations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ExportLambdaFunctionRecommendations x
-> ExportLambdaFunctionRecommendations
$cfrom :: forall x.
ExportLambdaFunctionRecommendations
-> Rep ExportLambdaFunctionRecommendations x
Prelude.Generic)

-- |
-- Create a value of 'ExportLambdaFunctionRecommendations' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'accountIds', '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.
--
-- 'fileFormat', 'exportLambdaFunctionRecommendations_fileFormat' - The format of the export file.
--
-- The only export file format currently supported is @Csv@.
--
-- 'filters', 'exportLambdaFunctionRecommendations_filters' - An array of objects to specify a filter that exports a more specific set
-- of Lambda function recommendations.
--
-- 'fieldsToExport', 'exportLambdaFunctionRecommendations_fieldsToExport' - The recommendations data to include in the export file. For more
-- information about the fields that can be exported, see
-- <https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html#exported-files Exported files>
-- in the /Compute Optimizer User Guide/.
--
-- 'includeMemberAccounts', '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
-- <https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html#trusted-service-access 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.
--
-- 's3DestinationConfig', 'exportLambdaFunctionRecommendations_s3DestinationConfig' - Undocumented member.
newExportLambdaFunctionRecommendations ::
  -- | 's3DestinationConfig'
  S3DestinationConfig ->
  ExportLambdaFunctionRecommendations
newExportLambdaFunctionRecommendations :: S3DestinationConfig -> ExportLambdaFunctionRecommendations
newExportLambdaFunctionRecommendations
  S3DestinationConfig
pS3DestinationConfig_ =
    ExportLambdaFunctionRecommendations' :: Maybe [Text]
-> Maybe FileFormat
-> Maybe [LambdaFunctionRecommendationFilter]
-> Maybe [ExportableLambdaFunctionField]
-> Maybe Bool
-> S3DestinationConfig
-> ExportLambdaFunctionRecommendations
ExportLambdaFunctionRecommendations'
      { $sel:accountIds:ExportLambdaFunctionRecommendations' :: Maybe [Text]
accountIds =
          Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
        $sel:fileFormat:ExportLambdaFunctionRecommendations' :: Maybe FileFormat
fileFormat = Maybe FileFormat
forall a. Maybe a
Prelude.Nothing,
        $sel:filters:ExportLambdaFunctionRecommendations' :: Maybe [LambdaFunctionRecommendationFilter]
filters = Maybe [LambdaFunctionRecommendationFilter]
forall a. Maybe a
Prelude.Nothing,
        $sel:fieldsToExport:ExportLambdaFunctionRecommendations' :: Maybe [ExportableLambdaFunctionField]
fieldsToExport = Maybe [ExportableLambdaFunctionField]
forall a. Maybe a
Prelude.Nothing,
        $sel:includeMemberAccounts:ExportLambdaFunctionRecommendations' :: Maybe Bool
includeMemberAccounts =
          Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:s3DestinationConfig:ExportLambdaFunctionRecommendations' :: S3DestinationConfig
s3DestinationConfig =
          S3DestinationConfig
pS3DestinationConfig_
      }

-- | 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.Lens' ExportLambdaFunctionRecommendations (Prelude.Maybe [Prelude.Text])
exportLambdaFunctionRecommendations_accountIds :: (Maybe [Text] -> f (Maybe [Text]))
-> ExportLambdaFunctionRecommendations
-> f ExportLambdaFunctionRecommendations
exportLambdaFunctionRecommendations_accountIds = (ExportLambdaFunctionRecommendations -> Maybe [Text])
-> (ExportLambdaFunctionRecommendations
    -> Maybe [Text] -> ExportLambdaFunctionRecommendations)
-> Lens
     ExportLambdaFunctionRecommendations
     ExportLambdaFunctionRecommendations
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportLambdaFunctionRecommendations' {Maybe [Text]
accountIds :: Maybe [Text]
$sel:accountIds:ExportLambdaFunctionRecommendations' :: ExportLambdaFunctionRecommendations -> Maybe [Text]
accountIds} -> Maybe [Text]
accountIds) (\s :: ExportLambdaFunctionRecommendations
s@ExportLambdaFunctionRecommendations' {} Maybe [Text]
a -> ExportLambdaFunctionRecommendations
s {$sel:accountIds:ExportLambdaFunctionRecommendations' :: Maybe [Text]
accountIds = Maybe [Text]
a} :: ExportLambdaFunctionRecommendations) ((Maybe [Text] -> f (Maybe [Text]))
 -> ExportLambdaFunctionRecommendations
 -> f ExportLambdaFunctionRecommendations)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ExportLambdaFunctionRecommendations
-> f ExportLambdaFunctionRecommendations
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The format of the export file.
--
-- The only export file format currently supported is @Csv@.
exportLambdaFunctionRecommendations_fileFormat :: Lens.Lens' ExportLambdaFunctionRecommendations (Prelude.Maybe FileFormat)
exportLambdaFunctionRecommendations_fileFormat :: (Maybe FileFormat -> f (Maybe FileFormat))
-> ExportLambdaFunctionRecommendations
-> f ExportLambdaFunctionRecommendations
exportLambdaFunctionRecommendations_fileFormat = (ExportLambdaFunctionRecommendations -> Maybe FileFormat)
-> (ExportLambdaFunctionRecommendations
    -> Maybe FileFormat -> ExportLambdaFunctionRecommendations)
-> Lens
     ExportLambdaFunctionRecommendations
     ExportLambdaFunctionRecommendations
     (Maybe FileFormat)
     (Maybe FileFormat)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportLambdaFunctionRecommendations' {Maybe FileFormat
fileFormat :: Maybe FileFormat
$sel:fileFormat:ExportLambdaFunctionRecommendations' :: ExportLambdaFunctionRecommendations -> Maybe FileFormat
fileFormat} -> Maybe FileFormat
fileFormat) (\s :: ExportLambdaFunctionRecommendations
s@ExportLambdaFunctionRecommendations' {} Maybe FileFormat
a -> ExportLambdaFunctionRecommendations
s {$sel:fileFormat:ExportLambdaFunctionRecommendations' :: Maybe FileFormat
fileFormat = Maybe FileFormat
a} :: ExportLambdaFunctionRecommendations)

-- | An array of objects to specify a filter that exports a more specific set
-- of Lambda function recommendations.
exportLambdaFunctionRecommendations_filters :: Lens.Lens' ExportLambdaFunctionRecommendations (Prelude.Maybe [LambdaFunctionRecommendationFilter])
exportLambdaFunctionRecommendations_filters :: (Maybe [LambdaFunctionRecommendationFilter]
 -> f (Maybe [LambdaFunctionRecommendationFilter]))
-> ExportLambdaFunctionRecommendations
-> f ExportLambdaFunctionRecommendations
exportLambdaFunctionRecommendations_filters = (ExportLambdaFunctionRecommendations
 -> Maybe [LambdaFunctionRecommendationFilter])
-> (ExportLambdaFunctionRecommendations
    -> Maybe [LambdaFunctionRecommendationFilter]
    -> ExportLambdaFunctionRecommendations)
-> Lens
     ExportLambdaFunctionRecommendations
     ExportLambdaFunctionRecommendations
     (Maybe [LambdaFunctionRecommendationFilter])
     (Maybe [LambdaFunctionRecommendationFilter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportLambdaFunctionRecommendations' {Maybe [LambdaFunctionRecommendationFilter]
filters :: Maybe [LambdaFunctionRecommendationFilter]
$sel:filters:ExportLambdaFunctionRecommendations' :: ExportLambdaFunctionRecommendations
-> Maybe [LambdaFunctionRecommendationFilter]
filters} -> Maybe [LambdaFunctionRecommendationFilter]
filters) (\s :: ExportLambdaFunctionRecommendations
s@ExportLambdaFunctionRecommendations' {} Maybe [LambdaFunctionRecommendationFilter]
a -> ExportLambdaFunctionRecommendations
s {$sel:filters:ExportLambdaFunctionRecommendations' :: Maybe [LambdaFunctionRecommendationFilter]
filters = Maybe [LambdaFunctionRecommendationFilter]
a} :: ExportLambdaFunctionRecommendations) ((Maybe [LambdaFunctionRecommendationFilter]
  -> f (Maybe [LambdaFunctionRecommendationFilter]))
 -> ExportLambdaFunctionRecommendations
 -> f ExportLambdaFunctionRecommendations)
-> ((Maybe [LambdaFunctionRecommendationFilter]
     -> f (Maybe [LambdaFunctionRecommendationFilter]))
    -> Maybe [LambdaFunctionRecommendationFilter]
    -> f (Maybe [LambdaFunctionRecommendationFilter]))
-> (Maybe [LambdaFunctionRecommendationFilter]
    -> f (Maybe [LambdaFunctionRecommendationFilter]))
-> ExportLambdaFunctionRecommendations
-> f ExportLambdaFunctionRecommendations
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [LambdaFunctionRecommendationFilter]
  [LambdaFunctionRecommendationFilter]
  [LambdaFunctionRecommendationFilter]
  [LambdaFunctionRecommendationFilter]
-> Iso
     (Maybe [LambdaFunctionRecommendationFilter])
     (Maybe [LambdaFunctionRecommendationFilter])
     (Maybe [LambdaFunctionRecommendationFilter])
     (Maybe [LambdaFunctionRecommendationFilter])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  [LambdaFunctionRecommendationFilter]
  [LambdaFunctionRecommendationFilter]
  [LambdaFunctionRecommendationFilter]
  [LambdaFunctionRecommendationFilter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The recommendations data to include in the export file. For more
-- information about the fields that can be exported, see
-- <https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html#exported-files Exported files>
-- in the /Compute Optimizer User Guide/.
exportLambdaFunctionRecommendations_fieldsToExport :: Lens.Lens' ExportLambdaFunctionRecommendations (Prelude.Maybe [ExportableLambdaFunctionField])
exportLambdaFunctionRecommendations_fieldsToExport :: (Maybe [ExportableLambdaFunctionField]
 -> f (Maybe [ExportableLambdaFunctionField]))
-> ExportLambdaFunctionRecommendations
-> f ExportLambdaFunctionRecommendations
exportLambdaFunctionRecommendations_fieldsToExport = (ExportLambdaFunctionRecommendations
 -> Maybe [ExportableLambdaFunctionField])
-> (ExportLambdaFunctionRecommendations
    -> Maybe [ExportableLambdaFunctionField]
    -> ExportLambdaFunctionRecommendations)
-> Lens
     ExportLambdaFunctionRecommendations
     ExportLambdaFunctionRecommendations
     (Maybe [ExportableLambdaFunctionField])
     (Maybe [ExportableLambdaFunctionField])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportLambdaFunctionRecommendations' {Maybe [ExportableLambdaFunctionField]
fieldsToExport :: Maybe [ExportableLambdaFunctionField]
$sel:fieldsToExport:ExportLambdaFunctionRecommendations' :: ExportLambdaFunctionRecommendations
-> Maybe [ExportableLambdaFunctionField]
fieldsToExport} -> Maybe [ExportableLambdaFunctionField]
fieldsToExport) (\s :: ExportLambdaFunctionRecommendations
s@ExportLambdaFunctionRecommendations' {} Maybe [ExportableLambdaFunctionField]
a -> ExportLambdaFunctionRecommendations
s {$sel:fieldsToExport:ExportLambdaFunctionRecommendations' :: Maybe [ExportableLambdaFunctionField]
fieldsToExport = Maybe [ExportableLambdaFunctionField]
a} :: ExportLambdaFunctionRecommendations) ((Maybe [ExportableLambdaFunctionField]
  -> f (Maybe [ExportableLambdaFunctionField]))
 -> ExportLambdaFunctionRecommendations
 -> f ExportLambdaFunctionRecommendations)
-> ((Maybe [ExportableLambdaFunctionField]
     -> f (Maybe [ExportableLambdaFunctionField]))
    -> Maybe [ExportableLambdaFunctionField]
    -> f (Maybe [ExportableLambdaFunctionField]))
-> (Maybe [ExportableLambdaFunctionField]
    -> f (Maybe [ExportableLambdaFunctionField]))
-> ExportLambdaFunctionRecommendations
-> f ExportLambdaFunctionRecommendations
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ExportableLambdaFunctionField]
  [ExportableLambdaFunctionField]
  [ExportableLambdaFunctionField]
  [ExportableLambdaFunctionField]
-> Iso
     (Maybe [ExportableLambdaFunctionField])
     (Maybe [ExportableLambdaFunctionField])
     (Maybe [ExportableLambdaFunctionField])
     (Maybe [ExportableLambdaFunctionField])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  [ExportableLambdaFunctionField]
  [ExportableLambdaFunctionField]
  [ExportableLambdaFunctionField]
  [ExportableLambdaFunctionField]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | 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
-- <https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html#trusted-service-access 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.Lens' ExportLambdaFunctionRecommendations (Prelude.Maybe Prelude.Bool)
exportLambdaFunctionRecommendations_includeMemberAccounts :: (Maybe Bool -> f (Maybe Bool))
-> ExportLambdaFunctionRecommendations
-> f ExportLambdaFunctionRecommendations
exportLambdaFunctionRecommendations_includeMemberAccounts = (ExportLambdaFunctionRecommendations -> Maybe Bool)
-> (ExportLambdaFunctionRecommendations
    -> Maybe Bool -> ExportLambdaFunctionRecommendations)
-> Lens
     ExportLambdaFunctionRecommendations
     ExportLambdaFunctionRecommendations
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportLambdaFunctionRecommendations' {Maybe Bool
includeMemberAccounts :: Maybe Bool
$sel:includeMemberAccounts:ExportLambdaFunctionRecommendations' :: ExportLambdaFunctionRecommendations -> Maybe Bool
includeMemberAccounts} -> Maybe Bool
includeMemberAccounts) (\s :: ExportLambdaFunctionRecommendations
s@ExportLambdaFunctionRecommendations' {} Maybe Bool
a -> ExportLambdaFunctionRecommendations
s {$sel:includeMemberAccounts:ExportLambdaFunctionRecommendations' :: Maybe Bool
includeMemberAccounts = Maybe Bool
a} :: ExportLambdaFunctionRecommendations)

-- | Undocumented member.
exportLambdaFunctionRecommendations_s3DestinationConfig :: Lens.Lens' ExportLambdaFunctionRecommendations S3DestinationConfig
exportLambdaFunctionRecommendations_s3DestinationConfig :: (S3DestinationConfig -> f S3DestinationConfig)
-> ExportLambdaFunctionRecommendations
-> f ExportLambdaFunctionRecommendations
exportLambdaFunctionRecommendations_s3DestinationConfig = (ExportLambdaFunctionRecommendations -> S3DestinationConfig)
-> (ExportLambdaFunctionRecommendations
    -> S3DestinationConfig -> ExportLambdaFunctionRecommendations)
-> Lens
     ExportLambdaFunctionRecommendations
     ExportLambdaFunctionRecommendations
     S3DestinationConfig
     S3DestinationConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportLambdaFunctionRecommendations' {S3DestinationConfig
s3DestinationConfig :: S3DestinationConfig
$sel:s3DestinationConfig:ExportLambdaFunctionRecommendations' :: ExportLambdaFunctionRecommendations -> S3DestinationConfig
s3DestinationConfig} -> S3DestinationConfig
s3DestinationConfig) (\s :: ExportLambdaFunctionRecommendations
s@ExportLambdaFunctionRecommendations' {} S3DestinationConfig
a -> ExportLambdaFunctionRecommendations
s {$sel:s3DestinationConfig:ExportLambdaFunctionRecommendations' :: S3DestinationConfig
s3DestinationConfig = S3DestinationConfig
a} :: ExportLambdaFunctionRecommendations)

instance
  Core.AWSRequest
    ExportLambdaFunctionRecommendations
  where
  type
    AWSResponse ExportLambdaFunctionRecommendations =
      ExportLambdaFunctionRecommendationsResponse
  request :: ExportLambdaFunctionRecommendations
-> Request ExportLambdaFunctionRecommendations
request = Service
-> ExportLambdaFunctionRecommendations
-> Request ExportLambdaFunctionRecommendations
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ExportLambdaFunctionRecommendations
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse ExportLambdaFunctionRecommendations)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ExportLambdaFunctionRecommendations))
-> Logger
-> Service
-> Proxy ExportLambdaFunctionRecommendations
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse ExportLambdaFunctionRecommendations)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe S3Destination
-> Int
-> ExportLambdaFunctionRecommendationsResponse
ExportLambdaFunctionRecommendationsResponse'
            (Maybe Text
 -> Maybe S3Destination
 -> Int
 -> ExportLambdaFunctionRecommendationsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe S3Destination
      -> Int -> ExportLambdaFunctionRecommendationsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"jobId")
              Either
  String
  (Maybe S3Destination
   -> Int -> ExportLambdaFunctionRecommendationsResponse)
-> Either String (Maybe S3Destination)
-> Either
     String (Int -> ExportLambdaFunctionRecommendationsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe S3Destination)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"s3Destination")
              Either String (Int -> ExportLambdaFunctionRecommendationsResponse)
-> Either String Int
-> Either String ExportLambdaFunctionRecommendationsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    ExportLambdaFunctionRecommendations

instance
  Prelude.NFData
    ExportLambdaFunctionRecommendations

instance
  Core.ToHeaders
    ExportLambdaFunctionRecommendations
  where
  toHeaders :: ExportLambdaFunctionRecommendations -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> ExportLambdaFunctionRecommendations -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"ComputeOptimizerService.ExportLambdaFunctionRecommendations" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
                          Prelude.ByteString
                      )
          ]
      )

instance
  Core.ToJSON
    ExportLambdaFunctionRecommendations
  where
  toJSON :: ExportLambdaFunctionRecommendations -> Value
toJSON ExportLambdaFunctionRecommendations' {Maybe Bool
Maybe [Text]
Maybe [ExportableLambdaFunctionField]
Maybe [LambdaFunctionRecommendationFilter]
Maybe FileFormat
S3DestinationConfig
s3DestinationConfig :: S3DestinationConfig
includeMemberAccounts :: Maybe Bool
fieldsToExport :: Maybe [ExportableLambdaFunctionField]
filters :: Maybe [LambdaFunctionRecommendationFilter]
fileFormat :: Maybe FileFormat
accountIds :: Maybe [Text]
$sel:s3DestinationConfig:ExportLambdaFunctionRecommendations' :: ExportLambdaFunctionRecommendations -> S3DestinationConfig
$sel:includeMemberAccounts:ExportLambdaFunctionRecommendations' :: ExportLambdaFunctionRecommendations -> Maybe Bool
$sel:fieldsToExport:ExportLambdaFunctionRecommendations' :: ExportLambdaFunctionRecommendations
-> Maybe [ExportableLambdaFunctionField]
$sel:filters:ExportLambdaFunctionRecommendations' :: ExportLambdaFunctionRecommendations
-> Maybe [LambdaFunctionRecommendationFilter]
$sel:fileFormat:ExportLambdaFunctionRecommendations' :: ExportLambdaFunctionRecommendations -> Maybe FileFormat
$sel:accountIds:ExportLambdaFunctionRecommendations' :: ExportLambdaFunctionRecommendations -> Maybe [Text]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"accountIds" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
accountIds,
            (Text
"fileFormat" Text -> FileFormat -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (FileFormat -> Pair) -> Maybe FileFormat -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FileFormat
fileFormat,
            (Text
"filters" Text -> [LambdaFunctionRecommendationFilter] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([LambdaFunctionRecommendationFilter] -> Pair)
-> Maybe [LambdaFunctionRecommendationFilter] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [LambdaFunctionRecommendationFilter]
filters,
            (Text
"fieldsToExport" Text -> [ExportableLambdaFunctionField] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([ExportableLambdaFunctionField] -> Pair)
-> Maybe [ExportableLambdaFunctionField] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ExportableLambdaFunctionField]
fieldsToExport,
            (Text
"includeMemberAccounts" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
includeMemberAccounts,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"s3DestinationConfig" Text -> S3DestinationConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= S3DestinationConfig
s3DestinationConfig)
          ]
      )

instance
  Core.ToPath
    ExportLambdaFunctionRecommendations
  where
  toPath :: ExportLambdaFunctionRecommendations -> ByteString
toPath = ByteString -> ExportLambdaFunctionRecommendations -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance
  Core.ToQuery
    ExportLambdaFunctionRecommendations
  where
  toQuery :: ExportLambdaFunctionRecommendations -> QueryString
toQuery = QueryString -> ExportLambdaFunctionRecommendations -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newExportLambdaFunctionRecommendationsResponse' smart constructor.
data ExportLambdaFunctionRecommendationsResponse = 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 -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
    ExportLambdaFunctionRecommendationsResponse -> Maybe S3Destination
s3Destination :: Prelude.Maybe S3Destination,
    -- | The response's http status code.
    ExportLambdaFunctionRecommendationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ExportLambdaFunctionRecommendationsResponse
-> ExportLambdaFunctionRecommendationsResponse -> Bool
(ExportLambdaFunctionRecommendationsResponse
 -> ExportLambdaFunctionRecommendationsResponse -> Bool)
-> (ExportLambdaFunctionRecommendationsResponse
    -> ExportLambdaFunctionRecommendationsResponse -> Bool)
-> Eq ExportLambdaFunctionRecommendationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExportLambdaFunctionRecommendationsResponse
-> ExportLambdaFunctionRecommendationsResponse -> Bool
$c/= :: ExportLambdaFunctionRecommendationsResponse
-> ExportLambdaFunctionRecommendationsResponse -> Bool
== :: ExportLambdaFunctionRecommendationsResponse
-> ExportLambdaFunctionRecommendationsResponse -> Bool
$c== :: ExportLambdaFunctionRecommendationsResponse
-> ExportLambdaFunctionRecommendationsResponse -> Bool
Prelude.Eq, ReadPrec [ExportLambdaFunctionRecommendationsResponse]
ReadPrec ExportLambdaFunctionRecommendationsResponse
Int -> ReadS ExportLambdaFunctionRecommendationsResponse
ReadS [ExportLambdaFunctionRecommendationsResponse]
(Int -> ReadS ExportLambdaFunctionRecommendationsResponse)
-> ReadS [ExportLambdaFunctionRecommendationsResponse]
-> ReadPrec ExportLambdaFunctionRecommendationsResponse
-> ReadPrec [ExportLambdaFunctionRecommendationsResponse]
-> Read ExportLambdaFunctionRecommendationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExportLambdaFunctionRecommendationsResponse]
$creadListPrec :: ReadPrec [ExportLambdaFunctionRecommendationsResponse]
readPrec :: ReadPrec ExportLambdaFunctionRecommendationsResponse
$creadPrec :: ReadPrec ExportLambdaFunctionRecommendationsResponse
readList :: ReadS [ExportLambdaFunctionRecommendationsResponse]
$creadList :: ReadS [ExportLambdaFunctionRecommendationsResponse]
readsPrec :: Int -> ReadS ExportLambdaFunctionRecommendationsResponse
$creadsPrec :: Int -> ReadS ExportLambdaFunctionRecommendationsResponse
Prelude.Read, Int -> ExportLambdaFunctionRecommendationsResponse -> ShowS
[ExportLambdaFunctionRecommendationsResponse] -> ShowS
ExportLambdaFunctionRecommendationsResponse -> String
(Int -> ExportLambdaFunctionRecommendationsResponse -> ShowS)
-> (ExportLambdaFunctionRecommendationsResponse -> String)
-> ([ExportLambdaFunctionRecommendationsResponse] -> ShowS)
-> Show ExportLambdaFunctionRecommendationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExportLambdaFunctionRecommendationsResponse] -> ShowS
$cshowList :: [ExportLambdaFunctionRecommendationsResponse] -> ShowS
show :: ExportLambdaFunctionRecommendationsResponse -> String
$cshow :: ExportLambdaFunctionRecommendationsResponse -> String
showsPrec :: Int -> ExportLambdaFunctionRecommendationsResponse -> ShowS
$cshowsPrec :: Int -> ExportLambdaFunctionRecommendationsResponse -> ShowS
Prelude.Show, (forall x.
 ExportLambdaFunctionRecommendationsResponse
 -> Rep ExportLambdaFunctionRecommendationsResponse x)
-> (forall x.
    Rep ExportLambdaFunctionRecommendationsResponse x
    -> ExportLambdaFunctionRecommendationsResponse)
-> Generic ExportLambdaFunctionRecommendationsResponse
forall x.
Rep ExportLambdaFunctionRecommendationsResponse x
-> ExportLambdaFunctionRecommendationsResponse
forall x.
ExportLambdaFunctionRecommendationsResponse
-> Rep ExportLambdaFunctionRecommendationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ExportLambdaFunctionRecommendationsResponse x
-> ExportLambdaFunctionRecommendationsResponse
$cfrom :: forall x.
ExportLambdaFunctionRecommendationsResponse
-> Rep ExportLambdaFunctionRecommendationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ExportLambdaFunctionRecommendationsResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'jobId', '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.
--
-- 's3Destination', 'exportLambdaFunctionRecommendationsResponse_s3Destination' - Undocumented member.
--
-- 'httpStatus', 'exportLambdaFunctionRecommendationsResponse_httpStatus' - The response's http status code.
newExportLambdaFunctionRecommendationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ExportLambdaFunctionRecommendationsResponse
newExportLambdaFunctionRecommendationsResponse :: Int -> ExportLambdaFunctionRecommendationsResponse
newExportLambdaFunctionRecommendationsResponse
  Int
pHttpStatus_ =
    ExportLambdaFunctionRecommendationsResponse' :: Maybe Text
-> Maybe S3Destination
-> Int
-> ExportLambdaFunctionRecommendationsResponse
ExportLambdaFunctionRecommendationsResponse'
      { $sel:jobId:ExportLambdaFunctionRecommendationsResponse' :: Maybe Text
jobId =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:s3Destination:ExportLambdaFunctionRecommendationsResponse' :: Maybe S3Destination
s3Destination =
          Maybe S3Destination
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ExportLambdaFunctionRecommendationsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | 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.Lens' ExportLambdaFunctionRecommendationsResponse (Prelude.Maybe Prelude.Text)
exportLambdaFunctionRecommendationsResponse_jobId :: (Maybe Text -> f (Maybe Text))
-> ExportLambdaFunctionRecommendationsResponse
-> f ExportLambdaFunctionRecommendationsResponse
exportLambdaFunctionRecommendationsResponse_jobId = (ExportLambdaFunctionRecommendationsResponse -> Maybe Text)
-> (ExportLambdaFunctionRecommendationsResponse
    -> Maybe Text -> ExportLambdaFunctionRecommendationsResponse)
-> Lens
     ExportLambdaFunctionRecommendationsResponse
     ExportLambdaFunctionRecommendationsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportLambdaFunctionRecommendationsResponse' {Maybe Text
jobId :: Maybe Text
$sel:jobId:ExportLambdaFunctionRecommendationsResponse' :: ExportLambdaFunctionRecommendationsResponse -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: ExportLambdaFunctionRecommendationsResponse
s@ExportLambdaFunctionRecommendationsResponse' {} Maybe Text
a -> ExportLambdaFunctionRecommendationsResponse
s {$sel:jobId:ExportLambdaFunctionRecommendationsResponse' :: Maybe Text
jobId = Maybe Text
a} :: ExportLambdaFunctionRecommendationsResponse)

-- | Undocumented member.
exportLambdaFunctionRecommendationsResponse_s3Destination :: Lens.Lens' ExportLambdaFunctionRecommendationsResponse (Prelude.Maybe S3Destination)
exportLambdaFunctionRecommendationsResponse_s3Destination :: (Maybe S3Destination -> f (Maybe S3Destination))
-> ExportLambdaFunctionRecommendationsResponse
-> f ExportLambdaFunctionRecommendationsResponse
exportLambdaFunctionRecommendationsResponse_s3Destination = (ExportLambdaFunctionRecommendationsResponse
 -> Maybe S3Destination)
-> (ExportLambdaFunctionRecommendationsResponse
    -> Maybe S3Destination
    -> ExportLambdaFunctionRecommendationsResponse)
-> Lens
     ExportLambdaFunctionRecommendationsResponse
     ExportLambdaFunctionRecommendationsResponse
     (Maybe S3Destination)
     (Maybe S3Destination)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportLambdaFunctionRecommendationsResponse' {Maybe S3Destination
s3Destination :: Maybe S3Destination
$sel:s3Destination:ExportLambdaFunctionRecommendationsResponse' :: ExportLambdaFunctionRecommendationsResponse -> Maybe S3Destination
s3Destination} -> Maybe S3Destination
s3Destination) (\s :: ExportLambdaFunctionRecommendationsResponse
s@ExportLambdaFunctionRecommendationsResponse' {} Maybe S3Destination
a -> ExportLambdaFunctionRecommendationsResponse
s {$sel:s3Destination:ExportLambdaFunctionRecommendationsResponse' :: Maybe S3Destination
s3Destination = Maybe S3Destination
a} :: ExportLambdaFunctionRecommendationsResponse)

-- | The response's http status code.
exportLambdaFunctionRecommendationsResponse_httpStatus :: Lens.Lens' ExportLambdaFunctionRecommendationsResponse Prelude.Int
exportLambdaFunctionRecommendationsResponse_httpStatus :: (Int -> f Int)
-> ExportLambdaFunctionRecommendationsResponse
-> f ExportLambdaFunctionRecommendationsResponse
exportLambdaFunctionRecommendationsResponse_httpStatus = (ExportLambdaFunctionRecommendationsResponse -> Int)
-> (ExportLambdaFunctionRecommendationsResponse
    -> Int -> ExportLambdaFunctionRecommendationsResponse)
-> Lens
     ExportLambdaFunctionRecommendationsResponse
     ExportLambdaFunctionRecommendationsResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportLambdaFunctionRecommendationsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ExportLambdaFunctionRecommendationsResponse' :: ExportLambdaFunctionRecommendationsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ExportLambdaFunctionRecommendationsResponse
s@ExportLambdaFunctionRecommendationsResponse' {} Int
a -> ExportLambdaFunctionRecommendationsResponse
s {$sel:httpStatus:ExportLambdaFunctionRecommendationsResponse' :: Int
httpStatus = Int
a} :: ExportLambdaFunctionRecommendationsResponse)

instance
  Prelude.NFData
    ExportLambdaFunctionRecommendationsResponse