{-# 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.SageMaker.ListModelExplainabilityJobDefinitions
-- 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)
--
-- Lists model explainability job definitions that satisfy various filters.
--
-- This operation returns paginated results.
module Amazonka.SageMaker.ListModelExplainabilityJobDefinitions
  ( -- * Creating a Request
    ListModelExplainabilityJobDefinitions (..),
    newListModelExplainabilityJobDefinitions,

    -- * Request Lenses
    listModelExplainabilityJobDefinitions_nameContains,
    listModelExplainabilityJobDefinitions_endpointName,
    listModelExplainabilityJobDefinitions_creationTimeAfter,
    listModelExplainabilityJobDefinitions_nextToken,
    listModelExplainabilityJobDefinitions_sortOrder,
    listModelExplainabilityJobDefinitions_creationTimeBefore,
    listModelExplainabilityJobDefinitions_maxResults,
    listModelExplainabilityJobDefinitions_sortBy,

    -- * Destructuring the Response
    ListModelExplainabilityJobDefinitionsResponse (..),
    newListModelExplainabilityJobDefinitionsResponse,

    -- * Response Lenses
    listModelExplainabilityJobDefinitionsResponse_nextToken,
    listModelExplainabilityJobDefinitionsResponse_httpStatus,
    listModelExplainabilityJobDefinitionsResponse_jobDefinitionSummaries,
  )
where

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
import Amazonka.SageMaker.Types

-- | /See:/ 'newListModelExplainabilityJobDefinitions' smart constructor.
data ListModelExplainabilityJobDefinitions = ListModelExplainabilityJobDefinitions'
  { -- | Filter for model explainability jobs whose name contains a specified
    -- string.
    ListModelExplainabilityJobDefinitions -> Maybe Text
nameContains :: Prelude.Maybe Prelude.Text,
    -- | Name of the endpoint to monitor for model explainability.
    ListModelExplainabilityJobDefinitions -> Maybe Text
endpointName :: Prelude.Maybe Prelude.Text,
    -- | A filter that returns only model explainability jobs created after a
    -- specified time.
    ListModelExplainabilityJobDefinitions -> Maybe POSIX
creationTimeAfter :: Prelude.Maybe Core.POSIX,
    -- | The token returned if the response is truncated. To retrieve the next
    -- set of job executions, use it in the next request.
    ListModelExplainabilityJobDefinitions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Whether to sort the results in @Ascending@ or @Descending@ order. The
    -- default is @Descending@.
    ListModelExplainabilityJobDefinitions -> Maybe SortOrder
sortOrder :: Prelude.Maybe SortOrder,
    -- | A filter that returns only model explainability jobs created before a
    -- specified time.
    ListModelExplainabilityJobDefinitions -> Maybe POSIX
creationTimeBefore :: Prelude.Maybe Core.POSIX,
    -- | The maximum number of jobs to return in the response. The default value
    -- is 10.
    ListModelExplainabilityJobDefinitions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | Whether to sort results by the @Name@ or @CreationTime@ field. The
    -- default is @CreationTime@.
    ListModelExplainabilityJobDefinitions
-> Maybe MonitoringJobDefinitionSortKey
sortBy :: Prelude.Maybe MonitoringJobDefinitionSortKey
  }
  deriving (ListModelExplainabilityJobDefinitions
-> ListModelExplainabilityJobDefinitions -> Bool
(ListModelExplainabilityJobDefinitions
 -> ListModelExplainabilityJobDefinitions -> Bool)
-> (ListModelExplainabilityJobDefinitions
    -> ListModelExplainabilityJobDefinitions -> Bool)
-> Eq ListModelExplainabilityJobDefinitions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListModelExplainabilityJobDefinitions
-> ListModelExplainabilityJobDefinitions -> Bool
$c/= :: ListModelExplainabilityJobDefinitions
-> ListModelExplainabilityJobDefinitions -> Bool
== :: ListModelExplainabilityJobDefinitions
-> ListModelExplainabilityJobDefinitions -> Bool
$c== :: ListModelExplainabilityJobDefinitions
-> ListModelExplainabilityJobDefinitions -> Bool
Prelude.Eq, ReadPrec [ListModelExplainabilityJobDefinitions]
ReadPrec ListModelExplainabilityJobDefinitions
Int -> ReadS ListModelExplainabilityJobDefinitions
ReadS [ListModelExplainabilityJobDefinitions]
(Int -> ReadS ListModelExplainabilityJobDefinitions)
-> ReadS [ListModelExplainabilityJobDefinitions]
-> ReadPrec ListModelExplainabilityJobDefinitions
-> ReadPrec [ListModelExplainabilityJobDefinitions]
-> Read ListModelExplainabilityJobDefinitions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListModelExplainabilityJobDefinitions]
$creadListPrec :: ReadPrec [ListModelExplainabilityJobDefinitions]
readPrec :: ReadPrec ListModelExplainabilityJobDefinitions
$creadPrec :: ReadPrec ListModelExplainabilityJobDefinitions
readList :: ReadS [ListModelExplainabilityJobDefinitions]
$creadList :: ReadS [ListModelExplainabilityJobDefinitions]
readsPrec :: Int -> ReadS ListModelExplainabilityJobDefinitions
$creadsPrec :: Int -> ReadS ListModelExplainabilityJobDefinitions
Prelude.Read, Int -> ListModelExplainabilityJobDefinitions -> ShowS
[ListModelExplainabilityJobDefinitions] -> ShowS
ListModelExplainabilityJobDefinitions -> String
(Int -> ListModelExplainabilityJobDefinitions -> ShowS)
-> (ListModelExplainabilityJobDefinitions -> String)
-> ([ListModelExplainabilityJobDefinitions] -> ShowS)
-> Show ListModelExplainabilityJobDefinitions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListModelExplainabilityJobDefinitions] -> ShowS
$cshowList :: [ListModelExplainabilityJobDefinitions] -> ShowS
show :: ListModelExplainabilityJobDefinitions -> String
$cshow :: ListModelExplainabilityJobDefinitions -> String
showsPrec :: Int -> ListModelExplainabilityJobDefinitions -> ShowS
$cshowsPrec :: Int -> ListModelExplainabilityJobDefinitions -> ShowS
Prelude.Show, (forall x.
 ListModelExplainabilityJobDefinitions
 -> Rep ListModelExplainabilityJobDefinitions x)
-> (forall x.
    Rep ListModelExplainabilityJobDefinitions x
    -> ListModelExplainabilityJobDefinitions)
-> Generic ListModelExplainabilityJobDefinitions
forall x.
Rep ListModelExplainabilityJobDefinitions x
-> ListModelExplainabilityJobDefinitions
forall x.
ListModelExplainabilityJobDefinitions
-> Rep ListModelExplainabilityJobDefinitions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListModelExplainabilityJobDefinitions x
-> ListModelExplainabilityJobDefinitions
$cfrom :: forall x.
ListModelExplainabilityJobDefinitions
-> Rep ListModelExplainabilityJobDefinitions x
Prelude.Generic)

-- |
-- Create a value of 'ListModelExplainabilityJobDefinitions' 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:
--
-- 'nameContains', 'listModelExplainabilityJobDefinitions_nameContains' - Filter for model explainability jobs whose name contains a specified
-- string.
--
-- 'endpointName', 'listModelExplainabilityJobDefinitions_endpointName' - Name of the endpoint to monitor for model explainability.
--
-- 'creationTimeAfter', 'listModelExplainabilityJobDefinitions_creationTimeAfter' - A filter that returns only model explainability jobs created after a
-- specified time.
--
-- 'nextToken', 'listModelExplainabilityJobDefinitions_nextToken' - The token returned if the response is truncated. To retrieve the next
-- set of job executions, use it in the next request.
--
-- 'sortOrder', 'listModelExplainabilityJobDefinitions_sortOrder' - Whether to sort the results in @Ascending@ or @Descending@ order. The
-- default is @Descending@.
--
-- 'creationTimeBefore', 'listModelExplainabilityJobDefinitions_creationTimeBefore' - A filter that returns only model explainability jobs created before a
-- specified time.
--
-- 'maxResults', 'listModelExplainabilityJobDefinitions_maxResults' - The maximum number of jobs to return in the response. The default value
-- is 10.
--
-- 'sortBy', 'listModelExplainabilityJobDefinitions_sortBy' - Whether to sort results by the @Name@ or @CreationTime@ field. The
-- default is @CreationTime@.
newListModelExplainabilityJobDefinitions ::
  ListModelExplainabilityJobDefinitions
newListModelExplainabilityJobDefinitions :: ListModelExplainabilityJobDefinitions
newListModelExplainabilityJobDefinitions =
  ListModelExplainabilityJobDefinitions' :: Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe SortOrder
-> Maybe POSIX
-> Maybe Natural
-> Maybe MonitoringJobDefinitionSortKey
-> ListModelExplainabilityJobDefinitions
ListModelExplainabilityJobDefinitions'
    { $sel:nameContains:ListModelExplainabilityJobDefinitions' :: Maybe Text
nameContains =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:endpointName:ListModelExplainabilityJobDefinitions' :: Maybe Text
endpointName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:creationTimeAfter:ListModelExplainabilityJobDefinitions' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListModelExplainabilityJobDefinitions' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sortOrder:ListModelExplainabilityJobDefinitions' :: Maybe SortOrder
sortOrder = Maybe SortOrder
forall a. Maybe a
Prelude.Nothing,
      $sel:creationTimeBefore:ListModelExplainabilityJobDefinitions' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListModelExplainabilityJobDefinitions' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:sortBy:ListModelExplainabilityJobDefinitions' :: Maybe MonitoringJobDefinitionSortKey
sortBy = Maybe MonitoringJobDefinitionSortKey
forall a. Maybe a
Prelude.Nothing
    }

-- | Filter for model explainability jobs whose name contains a specified
-- string.
listModelExplainabilityJobDefinitions_nameContains :: Lens.Lens' ListModelExplainabilityJobDefinitions (Prelude.Maybe Prelude.Text)
listModelExplainabilityJobDefinitions_nameContains :: (Maybe Text -> f (Maybe Text))
-> ListModelExplainabilityJobDefinitions
-> f ListModelExplainabilityJobDefinitions
listModelExplainabilityJobDefinitions_nameContains = (ListModelExplainabilityJobDefinitions -> Maybe Text)
-> (ListModelExplainabilityJobDefinitions
    -> Maybe Text -> ListModelExplainabilityJobDefinitions)
-> Lens
     ListModelExplainabilityJobDefinitions
     ListModelExplainabilityJobDefinitions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelExplainabilityJobDefinitions' {Maybe Text
nameContains :: Maybe Text
$sel:nameContains:ListModelExplainabilityJobDefinitions' :: ListModelExplainabilityJobDefinitions -> Maybe Text
nameContains} -> Maybe Text
nameContains) (\s :: ListModelExplainabilityJobDefinitions
s@ListModelExplainabilityJobDefinitions' {} Maybe Text
a -> ListModelExplainabilityJobDefinitions
s {$sel:nameContains:ListModelExplainabilityJobDefinitions' :: Maybe Text
nameContains = Maybe Text
a} :: ListModelExplainabilityJobDefinitions)

-- | Name of the endpoint to monitor for model explainability.
listModelExplainabilityJobDefinitions_endpointName :: Lens.Lens' ListModelExplainabilityJobDefinitions (Prelude.Maybe Prelude.Text)
listModelExplainabilityJobDefinitions_endpointName :: (Maybe Text -> f (Maybe Text))
-> ListModelExplainabilityJobDefinitions
-> f ListModelExplainabilityJobDefinitions
listModelExplainabilityJobDefinitions_endpointName = (ListModelExplainabilityJobDefinitions -> Maybe Text)
-> (ListModelExplainabilityJobDefinitions
    -> Maybe Text -> ListModelExplainabilityJobDefinitions)
-> Lens
     ListModelExplainabilityJobDefinitions
     ListModelExplainabilityJobDefinitions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelExplainabilityJobDefinitions' {Maybe Text
endpointName :: Maybe Text
$sel:endpointName:ListModelExplainabilityJobDefinitions' :: ListModelExplainabilityJobDefinitions -> Maybe Text
endpointName} -> Maybe Text
endpointName) (\s :: ListModelExplainabilityJobDefinitions
s@ListModelExplainabilityJobDefinitions' {} Maybe Text
a -> ListModelExplainabilityJobDefinitions
s {$sel:endpointName:ListModelExplainabilityJobDefinitions' :: Maybe Text
endpointName = Maybe Text
a} :: ListModelExplainabilityJobDefinitions)

-- | A filter that returns only model explainability jobs created after a
-- specified time.
listModelExplainabilityJobDefinitions_creationTimeAfter :: Lens.Lens' ListModelExplainabilityJobDefinitions (Prelude.Maybe Prelude.UTCTime)
listModelExplainabilityJobDefinitions_creationTimeAfter :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListModelExplainabilityJobDefinitions
-> f ListModelExplainabilityJobDefinitions
listModelExplainabilityJobDefinitions_creationTimeAfter = (ListModelExplainabilityJobDefinitions -> Maybe POSIX)
-> (ListModelExplainabilityJobDefinitions
    -> Maybe POSIX -> ListModelExplainabilityJobDefinitions)
-> Lens
     ListModelExplainabilityJobDefinitions
     ListModelExplainabilityJobDefinitions
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelExplainabilityJobDefinitions' {Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:creationTimeAfter:ListModelExplainabilityJobDefinitions' :: ListModelExplainabilityJobDefinitions -> Maybe POSIX
creationTimeAfter} -> Maybe POSIX
creationTimeAfter) (\s :: ListModelExplainabilityJobDefinitions
s@ListModelExplainabilityJobDefinitions' {} Maybe POSIX
a -> ListModelExplainabilityJobDefinitions
s {$sel:creationTimeAfter:ListModelExplainabilityJobDefinitions' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
a} :: ListModelExplainabilityJobDefinitions) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListModelExplainabilityJobDefinitions
 -> f ListModelExplainabilityJobDefinitions)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListModelExplainabilityJobDefinitions
-> f ListModelExplainabilityJobDefinitions
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The token returned if the response is truncated. To retrieve the next
-- set of job executions, use it in the next request.
listModelExplainabilityJobDefinitions_nextToken :: Lens.Lens' ListModelExplainabilityJobDefinitions (Prelude.Maybe Prelude.Text)
listModelExplainabilityJobDefinitions_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListModelExplainabilityJobDefinitions
-> f ListModelExplainabilityJobDefinitions
listModelExplainabilityJobDefinitions_nextToken = (ListModelExplainabilityJobDefinitions -> Maybe Text)
-> (ListModelExplainabilityJobDefinitions
    -> Maybe Text -> ListModelExplainabilityJobDefinitions)
-> Lens
     ListModelExplainabilityJobDefinitions
     ListModelExplainabilityJobDefinitions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelExplainabilityJobDefinitions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListModelExplainabilityJobDefinitions' :: ListModelExplainabilityJobDefinitions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListModelExplainabilityJobDefinitions
s@ListModelExplainabilityJobDefinitions' {} Maybe Text
a -> ListModelExplainabilityJobDefinitions
s {$sel:nextToken:ListModelExplainabilityJobDefinitions' :: Maybe Text
nextToken = Maybe Text
a} :: ListModelExplainabilityJobDefinitions)

-- | Whether to sort the results in @Ascending@ or @Descending@ order. The
-- default is @Descending@.
listModelExplainabilityJobDefinitions_sortOrder :: Lens.Lens' ListModelExplainabilityJobDefinitions (Prelude.Maybe SortOrder)
listModelExplainabilityJobDefinitions_sortOrder :: (Maybe SortOrder -> f (Maybe SortOrder))
-> ListModelExplainabilityJobDefinitions
-> f ListModelExplainabilityJobDefinitions
listModelExplainabilityJobDefinitions_sortOrder = (ListModelExplainabilityJobDefinitions -> Maybe SortOrder)
-> (ListModelExplainabilityJobDefinitions
    -> Maybe SortOrder -> ListModelExplainabilityJobDefinitions)
-> Lens
     ListModelExplainabilityJobDefinitions
     ListModelExplainabilityJobDefinitions
     (Maybe SortOrder)
     (Maybe SortOrder)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelExplainabilityJobDefinitions' {Maybe SortOrder
sortOrder :: Maybe SortOrder
$sel:sortOrder:ListModelExplainabilityJobDefinitions' :: ListModelExplainabilityJobDefinitions -> Maybe SortOrder
sortOrder} -> Maybe SortOrder
sortOrder) (\s :: ListModelExplainabilityJobDefinitions
s@ListModelExplainabilityJobDefinitions' {} Maybe SortOrder
a -> ListModelExplainabilityJobDefinitions
s {$sel:sortOrder:ListModelExplainabilityJobDefinitions' :: Maybe SortOrder
sortOrder = Maybe SortOrder
a} :: ListModelExplainabilityJobDefinitions)

-- | A filter that returns only model explainability jobs created before a
-- specified time.
listModelExplainabilityJobDefinitions_creationTimeBefore :: Lens.Lens' ListModelExplainabilityJobDefinitions (Prelude.Maybe Prelude.UTCTime)
listModelExplainabilityJobDefinitions_creationTimeBefore :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListModelExplainabilityJobDefinitions
-> f ListModelExplainabilityJobDefinitions
listModelExplainabilityJobDefinitions_creationTimeBefore = (ListModelExplainabilityJobDefinitions -> Maybe POSIX)
-> (ListModelExplainabilityJobDefinitions
    -> Maybe POSIX -> ListModelExplainabilityJobDefinitions)
-> Lens
     ListModelExplainabilityJobDefinitions
     ListModelExplainabilityJobDefinitions
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelExplainabilityJobDefinitions' {Maybe POSIX
creationTimeBefore :: Maybe POSIX
$sel:creationTimeBefore:ListModelExplainabilityJobDefinitions' :: ListModelExplainabilityJobDefinitions -> Maybe POSIX
creationTimeBefore} -> Maybe POSIX
creationTimeBefore) (\s :: ListModelExplainabilityJobDefinitions
s@ListModelExplainabilityJobDefinitions' {} Maybe POSIX
a -> ListModelExplainabilityJobDefinitions
s {$sel:creationTimeBefore:ListModelExplainabilityJobDefinitions' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
a} :: ListModelExplainabilityJobDefinitions) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListModelExplainabilityJobDefinitions
 -> f ListModelExplainabilityJobDefinitions)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListModelExplainabilityJobDefinitions
-> f ListModelExplainabilityJobDefinitions
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The maximum number of jobs to return in the response. The default value
-- is 10.
listModelExplainabilityJobDefinitions_maxResults :: Lens.Lens' ListModelExplainabilityJobDefinitions (Prelude.Maybe Prelude.Natural)
listModelExplainabilityJobDefinitions_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListModelExplainabilityJobDefinitions
-> f ListModelExplainabilityJobDefinitions
listModelExplainabilityJobDefinitions_maxResults = (ListModelExplainabilityJobDefinitions -> Maybe Natural)
-> (ListModelExplainabilityJobDefinitions
    -> Maybe Natural -> ListModelExplainabilityJobDefinitions)
-> Lens
     ListModelExplainabilityJobDefinitions
     ListModelExplainabilityJobDefinitions
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelExplainabilityJobDefinitions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListModelExplainabilityJobDefinitions' :: ListModelExplainabilityJobDefinitions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListModelExplainabilityJobDefinitions
s@ListModelExplainabilityJobDefinitions' {} Maybe Natural
a -> ListModelExplainabilityJobDefinitions
s {$sel:maxResults:ListModelExplainabilityJobDefinitions' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListModelExplainabilityJobDefinitions)

-- | Whether to sort results by the @Name@ or @CreationTime@ field. The
-- default is @CreationTime@.
listModelExplainabilityJobDefinitions_sortBy :: Lens.Lens' ListModelExplainabilityJobDefinitions (Prelude.Maybe MonitoringJobDefinitionSortKey)
listModelExplainabilityJobDefinitions_sortBy :: (Maybe MonitoringJobDefinitionSortKey
 -> f (Maybe MonitoringJobDefinitionSortKey))
-> ListModelExplainabilityJobDefinitions
-> f ListModelExplainabilityJobDefinitions
listModelExplainabilityJobDefinitions_sortBy = (ListModelExplainabilityJobDefinitions
 -> Maybe MonitoringJobDefinitionSortKey)
-> (ListModelExplainabilityJobDefinitions
    -> Maybe MonitoringJobDefinitionSortKey
    -> ListModelExplainabilityJobDefinitions)
-> Lens
     ListModelExplainabilityJobDefinitions
     ListModelExplainabilityJobDefinitions
     (Maybe MonitoringJobDefinitionSortKey)
     (Maybe MonitoringJobDefinitionSortKey)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelExplainabilityJobDefinitions' {Maybe MonitoringJobDefinitionSortKey
sortBy :: Maybe MonitoringJobDefinitionSortKey
$sel:sortBy:ListModelExplainabilityJobDefinitions' :: ListModelExplainabilityJobDefinitions
-> Maybe MonitoringJobDefinitionSortKey
sortBy} -> Maybe MonitoringJobDefinitionSortKey
sortBy) (\s :: ListModelExplainabilityJobDefinitions
s@ListModelExplainabilityJobDefinitions' {} Maybe MonitoringJobDefinitionSortKey
a -> ListModelExplainabilityJobDefinitions
s {$sel:sortBy:ListModelExplainabilityJobDefinitions' :: Maybe MonitoringJobDefinitionSortKey
sortBy = Maybe MonitoringJobDefinitionSortKey
a} :: ListModelExplainabilityJobDefinitions)

instance
  Core.AWSPager
    ListModelExplainabilityJobDefinitions
  where
  page :: ListModelExplainabilityJobDefinitions
-> AWSResponse ListModelExplainabilityJobDefinitions
-> Maybe ListModelExplainabilityJobDefinitions
page ListModelExplainabilityJobDefinitions
rq AWSResponse ListModelExplainabilityJobDefinitions
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListModelExplainabilityJobDefinitions
ListModelExplainabilityJobDefinitionsResponse
rs
            ListModelExplainabilityJobDefinitionsResponse
-> Getting
     (First Text) ListModelExplainabilityJobDefinitionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListModelExplainabilityJobDefinitionsResponse
-> Const (First Text) ListModelExplainabilityJobDefinitionsResponse
Lens' ListModelExplainabilityJobDefinitionsResponse (Maybe Text)
listModelExplainabilityJobDefinitionsResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListModelExplainabilityJobDefinitionsResponse
 -> Const
      (First Text) ListModelExplainabilityJobDefinitionsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
     (First Text) ListModelExplainabilityJobDefinitionsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListModelExplainabilityJobDefinitions
forall a. Maybe a
Prelude.Nothing
    | [MonitoringJobDefinitionSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListModelExplainabilityJobDefinitions
ListModelExplainabilityJobDefinitionsResponse
rs
            ListModelExplainabilityJobDefinitionsResponse
-> Getting
     [MonitoringJobDefinitionSummary]
     ListModelExplainabilityJobDefinitionsResponse
     [MonitoringJobDefinitionSummary]
-> [MonitoringJobDefinitionSummary]
forall s a. s -> Getting a s a -> a
Lens.^. Getting
  [MonitoringJobDefinitionSummary]
  ListModelExplainabilityJobDefinitionsResponse
  [MonitoringJobDefinitionSummary]
Lens'
  ListModelExplainabilityJobDefinitionsResponse
  [MonitoringJobDefinitionSummary]
listModelExplainabilityJobDefinitionsResponse_jobDefinitionSummaries
        ) =
      Maybe ListModelExplainabilityJobDefinitions
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListModelExplainabilityJobDefinitions
-> Maybe ListModelExplainabilityJobDefinitions
forall a. a -> Maybe a
Prelude.Just (ListModelExplainabilityJobDefinitions
 -> Maybe ListModelExplainabilityJobDefinitions)
-> ListModelExplainabilityJobDefinitions
-> Maybe ListModelExplainabilityJobDefinitions
forall a b. (a -> b) -> a -> b
Prelude.$
        ListModelExplainabilityJobDefinitions
rq
          ListModelExplainabilityJobDefinitions
-> (ListModelExplainabilityJobDefinitions
    -> ListModelExplainabilityJobDefinitions)
-> ListModelExplainabilityJobDefinitions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListModelExplainabilityJobDefinitions
-> Identity ListModelExplainabilityJobDefinitions
Lens
  ListModelExplainabilityJobDefinitions
  ListModelExplainabilityJobDefinitions
  (Maybe Text)
  (Maybe Text)
listModelExplainabilityJobDefinitions_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListModelExplainabilityJobDefinitions
 -> Identity ListModelExplainabilityJobDefinitions)
-> Maybe Text
-> ListModelExplainabilityJobDefinitions
-> ListModelExplainabilityJobDefinitions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListModelExplainabilityJobDefinitions
ListModelExplainabilityJobDefinitionsResponse
rs
            ListModelExplainabilityJobDefinitionsResponse
-> Getting
     (First Text) ListModelExplainabilityJobDefinitionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListModelExplainabilityJobDefinitionsResponse
-> Const (First Text) ListModelExplainabilityJobDefinitionsResponse
Lens' ListModelExplainabilityJobDefinitionsResponse (Maybe Text)
listModelExplainabilityJobDefinitionsResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListModelExplainabilityJobDefinitionsResponse
 -> Const
      (First Text) ListModelExplainabilityJobDefinitionsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
     (First Text) ListModelExplainabilityJobDefinitionsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance
  Core.AWSRequest
    ListModelExplainabilityJobDefinitions
  where
  type
    AWSResponse
      ListModelExplainabilityJobDefinitions =
      ListModelExplainabilityJobDefinitionsResponse
  request :: ListModelExplainabilityJobDefinitions
-> Request ListModelExplainabilityJobDefinitions
request = Service
-> ListModelExplainabilityJobDefinitions
-> Request ListModelExplainabilityJobDefinitions
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListModelExplainabilityJobDefinitions
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse ListModelExplainabilityJobDefinitions)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse ListModelExplainabilityJobDefinitions))
-> Logger
-> Service
-> Proxy ListModelExplainabilityJobDefinitions
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse ListModelExplainabilityJobDefinitions)))
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
-> Int
-> [MonitoringJobDefinitionSummary]
-> ListModelExplainabilityJobDefinitionsResponse
ListModelExplainabilityJobDefinitionsResponse'
            (Maybe Text
 -> Int
 -> [MonitoringJobDefinitionSummary]
 -> ListModelExplainabilityJobDefinitionsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Int
      -> [MonitoringJobDefinitionSummary]
      -> ListModelExplainabilityJobDefinitionsResponse)
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
"NextToken")
              Either
  String
  (Int
   -> [MonitoringJobDefinitionSummary]
   -> ListModelExplainabilityJobDefinitionsResponse)
-> Either String Int
-> Either
     String
     ([MonitoringJobDefinitionSummary]
      -> ListModelExplainabilityJobDefinitionsResponse)
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))
              Either
  String
  ([MonitoringJobDefinitionSummary]
   -> ListModelExplainabilityJobDefinitionsResponse)
-> Either String [MonitoringJobDefinitionSummary]
-> Either String ListModelExplainabilityJobDefinitionsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe [MonitoringJobDefinitionSummary])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"JobDefinitionSummaries"
                              Either String (Maybe [MonitoringJobDefinitionSummary])
-> [MonitoringJobDefinitionSummary]
-> Either String [MonitoringJobDefinitionSummary]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [MonitoringJobDefinitionSummary]
forall a. Monoid a => a
Prelude.mempty
                          )
      )

instance
  Prelude.Hashable
    ListModelExplainabilityJobDefinitions

instance
  Prelude.NFData
    ListModelExplainabilityJobDefinitions

instance
  Core.ToHeaders
    ListModelExplainabilityJobDefinitions
  where
  toHeaders :: ListModelExplainabilityJobDefinitions -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> ListModelExplainabilityJobDefinitions -> 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
"SageMaker.ListModelExplainabilityJobDefinitions" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance
  Core.ToJSON
    ListModelExplainabilityJobDefinitions
  where
  toJSON :: ListModelExplainabilityJobDefinitions -> Value
toJSON ListModelExplainabilityJobDefinitions' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe MonitoringJobDefinitionSortKey
Maybe SortOrder
sortBy :: Maybe MonitoringJobDefinitionSortKey
maxResults :: Maybe Natural
creationTimeBefore :: Maybe POSIX
sortOrder :: Maybe SortOrder
nextToken :: Maybe Text
creationTimeAfter :: Maybe POSIX
endpointName :: Maybe Text
nameContains :: Maybe Text
$sel:sortBy:ListModelExplainabilityJobDefinitions' :: ListModelExplainabilityJobDefinitions
-> Maybe MonitoringJobDefinitionSortKey
$sel:maxResults:ListModelExplainabilityJobDefinitions' :: ListModelExplainabilityJobDefinitions -> Maybe Natural
$sel:creationTimeBefore:ListModelExplainabilityJobDefinitions' :: ListModelExplainabilityJobDefinitions -> Maybe POSIX
$sel:sortOrder:ListModelExplainabilityJobDefinitions' :: ListModelExplainabilityJobDefinitions -> Maybe SortOrder
$sel:nextToken:ListModelExplainabilityJobDefinitions' :: ListModelExplainabilityJobDefinitions -> Maybe Text
$sel:creationTimeAfter:ListModelExplainabilityJobDefinitions' :: ListModelExplainabilityJobDefinitions -> Maybe POSIX
$sel:endpointName:ListModelExplainabilityJobDefinitions' :: ListModelExplainabilityJobDefinitions -> Maybe Text
$sel:nameContains:ListModelExplainabilityJobDefinitions' :: ListModelExplainabilityJobDefinitions -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"NameContains" 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
nameContains,
            (Text
"EndpointName" 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
endpointName,
            (Text
"CreationTimeAfter" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
creationTimeAfter,
            (Text
"NextToken" 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
nextToken,
            (Text
"SortOrder" Text -> SortOrder -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (SortOrder -> Pair) -> Maybe SortOrder -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SortOrder
sortOrder,
            (Text
"CreationTimeBefore" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
creationTimeBefore,
            (Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
            (Text
"SortBy" Text -> MonitoringJobDefinitionSortKey -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (MonitoringJobDefinitionSortKey -> Pair)
-> Maybe MonitoringJobDefinitionSortKey -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MonitoringJobDefinitionSortKey
sortBy
          ]
      )

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

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

-- | /See:/ 'newListModelExplainabilityJobDefinitionsResponse' smart constructor.
data ListModelExplainabilityJobDefinitionsResponse = ListModelExplainabilityJobDefinitionsResponse'
  { -- | If the response is truncated, Amazon SageMaker returns this token. To
    -- retrieve the next set of jobs, use it in the subsequent request.
    ListModelExplainabilityJobDefinitionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListModelExplainabilityJobDefinitionsResponse -> Int
httpStatus :: Prelude.Int,
    -- | A JSON array in which each element is a summary for a explainability
    -- bias jobs.
    ListModelExplainabilityJobDefinitionsResponse
-> [MonitoringJobDefinitionSummary]
jobDefinitionSummaries :: [MonitoringJobDefinitionSummary]
  }
  deriving (ListModelExplainabilityJobDefinitionsResponse
-> ListModelExplainabilityJobDefinitionsResponse -> Bool
(ListModelExplainabilityJobDefinitionsResponse
 -> ListModelExplainabilityJobDefinitionsResponse -> Bool)
-> (ListModelExplainabilityJobDefinitionsResponse
    -> ListModelExplainabilityJobDefinitionsResponse -> Bool)
-> Eq ListModelExplainabilityJobDefinitionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListModelExplainabilityJobDefinitionsResponse
-> ListModelExplainabilityJobDefinitionsResponse -> Bool
$c/= :: ListModelExplainabilityJobDefinitionsResponse
-> ListModelExplainabilityJobDefinitionsResponse -> Bool
== :: ListModelExplainabilityJobDefinitionsResponse
-> ListModelExplainabilityJobDefinitionsResponse -> Bool
$c== :: ListModelExplainabilityJobDefinitionsResponse
-> ListModelExplainabilityJobDefinitionsResponse -> Bool
Prelude.Eq, ReadPrec [ListModelExplainabilityJobDefinitionsResponse]
ReadPrec ListModelExplainabilityJobDefinitionsResponse
Int -> ReadS ListModelExplainabilityJobDefinitionsResponse
ReadS [ListModelExplainabilityJobDefinitionsResponse]
(Int -> ReadS ListModelExplainabilityJobDefinitionsResponse)
-> ReadS [ListModelExplainabilityJobDefinitionsResponse]
-> ReadPrec ListModelExplainabilityJobDefinitionsResponse
-> ReadPrec [ListModelExplainabilityJobDefinitionsResponse]
-> Read ListModelExplainabilityJobDefinitionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListModelExplainabilityJobDefinitionsResponse]
$creadListPrec :: ReadPrec [ListModelExplainabilityJobDefinitionsResponse]
readPrec :: ReadPrec ListModelExplainabilityJobDefinitionsResponse
$creadPrec :: ReadPrec ListModelExplainabilityJobDefinitionsResponse
readList :: ReadS [ListModelExplainabilityJobDefinitionsResponse]
$creadList :: ReadS [ListModelExplainabilityJobDefinitionsResponse]
readsPrec :: Int -> ReadS ListModelExplainabilityJobDefinitionsResponse
$creadsPrec :: Int -> ReadS ListModelExplainabilityJobDefinitionsResponse
Prelude.Read, Int -> ListModelExplainabilityJobDefinitionsResponse -> ShowS
[ListModelExplainabilityJobDefinitionsResponse] -> ShowS
ListModelExplainabilityJobDefinitionsResponse -> String
(Int -> ListModelExplainabilityJobDefinitionsResponse -> ShowS)
-> (ListModelExplainabilityJobDefinitionsResponse -> String)
-> ([ListModelExplainabilityJobDefinitionsResponse] -> ShowS)
-> Show ListModelExplainabilityJobDefinitionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListModelExplainabilityJobDefinitionsResponse] -> ShowS
$cshowList :: [ListModelExplainabilityJobDefinitionsResponse] -> ShowS
show :: ListModelExplainabilityJobDefinitionsResponse -> String
$cshow :: ListModelExplainabilityJobDefinitionsResponse -> String
showsPrec :: Int -> ListModelExplainabilityJobDefinitionsResponse -> ShowS
$cshowsPrec :: Int -> ListModelExplainabilityJobDefinitionsResponse -> ShowS
Prelude.Show, (forall x.
 ListModelExplainabilityJobDefinitionsResponse
 -> Rep ListModelExplainabilityJobDefinitionsResponse x)
-> (forall x.
    Rep ListModelExplainabilityJobDefinitionsResponse x
    -> ListModelExplainabilityJobDefinitionsResponse)
-> Generic ListModelExplainabilityJobDefinitionsResponse
forall x.
Rep ListModelExplainabilityJobDefinitionsResponse x
-> ListModelExplainabilityJobDefinitionsResponse
forall x.
ListModelExplainabilityJobDefinitionsResponse
-> Rep ListModelExplainabilityJobDefinitionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListModelExplainabilityJobDefinitionsResponse x
-> ListModelExplainabilityJobDefinitionsResponse
$cfrom :: forall x.
ListModelExplainabilityJobDefinitionsResponse
-> Rep ListModelExplainabilityJobDefinitionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListModelExplainabilityJobDefinitionsResponse' 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:
--
-- 'nextToken', 'listModelExplainabilityJobDefinitionsResponse_nextToken' - If the response is truncated, Amazon SageMaker returns this token. To
-- retrieve the next set of jobs, use it in the subsequent request.
--
-- 'httpStatus', 'listModelExplainabilityJobDefinitionsResponse_httpStatus' - The response's http status code.
--
-- 'jobDefinitionSummaries', 'listModelExplainabilityJobDefinitionsResponse_jobDefinitionSummaries' - A JSON array in which each element is a summary for a explainability
-- bias jobs.
newListModelExplainabilityJobDefinitionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListModelExplainabilityJobDefinitionsResponse
newListModelExplainabilityJobDefinitionsResponse :: Int -> ListModelExplainabilityJobDefinitionsResponse
newListModelExplainabilityJobDefinitionsResponse
  Int
pHttpStatus_ =
    ListModelExplainabilityJobDefinitionsResponse' :: Maybe Text
-> Int
-> [MonitoringJobDefinitionSummary]
-> ListModelExplainabilityJobDefinitionsResponse
ListModelExplainabilityJobDefinitionsResponse'
      { $sel:nextToken:ListModelExplainabilityJobDefinitionsResponse' :: Maybe Text
nextToken =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListModelExplainabilityJobDefinitionsResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:jobDefinitionSummaries:ListModelExplainabilityJobDefinitionsResponse' :: [MonitoringJobDefinitionSummary]
jobDefinitionSummaries =
          [MonitoringJobDefinitionSummary]
forall a. Monoid a => a
Prelude.mempty
      }

-- | If the response is truncated, Amazon SageMaker returns this token. To
-- retrieve the next set of jobs, use it in the subsequent request.
listModelExplainabilityJobDefinitionsResponse_nextToken :: Lens.Lens' ListModelExplainabilityJobDefinitionsResponse (Prelude.Maybe Prelude.Text)
listModelExplainabilityJobDefinitionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListModelExplainabilityJobDefinitionsResponse
-> f ListModelExplainabilityJobDefinitionsResponse
listModelExplainabilityJobDefinitionsResponse_nextToken = (ListModelExplainabilityJobDefinitionsResponse -> Maybe Text)
-> (ListModelExplainabilityJobDefinitionsResponse
    -> Maybe Text -> ListModelExplainabilityJobDefinitionsResponse)
-> Lens' ListModelExplainabilityJobDefinitionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelExplainabilityJobDefinitionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListModelExplainabilityJobDefinitionsResponse' :: ListModelExplainabilityJobDefinitionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListModelExplainabilityJobDefinitionsResponse
s@ListModelExplainabilityJobDefinitionsResponse' {} Maybe Text
a -> ListModelExplainabilityJobDefinitionsResponse
s {$sel:nextToken:ListModelExplainabilityJobDefinitionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListModelExplainabilityJobDefinitionsResponse)

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

-- | A JSON array in which each element is a summary for a explainability
-- bias jobs.
listModelExplainabilityJobDefinitionsResponse_jobDefinitionSummaries :: Lens.Lens' ListModelExplainabilityJobDefinitionsResponse [MonitoringJobDefinitionSummary]
listModelExplainabilityJobDefinitionsResponse_jobDefinitionSummaries :: ([MonitoringJobDefinitionSummary]
 -> f [MonitoringJobDefinitionSummary])
-> ListModelExplainabilityJobDefinitionsResponse
-> f ListModelExplainabilityJobDefinitionsResponse
listModelExplainabilityJobDefinitionsResponse_jobDefinitionSummaries = (ListModelExplainabilityJobDefinitionsResponse
 -> [MonitoringJobDefinitionSummary])
-> (ListModelExplainabilityJobDefinitionsResponse
    -> [MonitoringJobDefinitionSummary]
    -> ListModelExplainabilityJobDefinitionsResponse)
-> Lens'
     ListModelExplainabilityJobDefinitionsResponse
     [MonitoringJobDefinitionSummary]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelExplainabilityJobDefinitionsResponse' {[MonitoringJobDefinitionSummary]
jobDefinitionSummaries :: [MonitoringJobDefinitionSummary]
$sel:jobDefinitionSummaries:ListModelExplainabilityJobDefinitionsResponse' :: ListModelExplainabilityJobDefinitionsResponse
-> [MonitoringJobDefinitionSummary]
jobDefinitionSummaries} -> [MonitoringJobDefinitionSummary]
jobDefinitionSummaries) (\s :: ListModelExplainabilityJobDefinitionsResponse
s@ListModelExplainabilityJobDefinitionsResponse' {} [MonitoringJobDefinitionSummary]
a -> ListModelExplainabilityJobDefinitionsResponse
s {$sel:jobDefinitionSummaries:ListModelExplainabilityJobDefinitionsResponse' :: [MonitoringJobDefinitionSummary]
jobDefinitionSummaries = [MonitoringJobDefinitionSummary]
a} :: ListModelExplainabilityJobDefinitionsResponse) (([MonitoringJobDefinitionSummary]
  -> f [MonitoringJobDefinitionSummary])
 -> ListModelExplainabilityJobDefinitionsResponse
 -> f ListModelExplainabilityJobDefinitionsResponse)
-> (([MonitoringJobDefinitionSummary]
     -> f [MonitoringJobDefinitionSummary])
    -> [MonitoringJobDefinitionSummary]
    -> f [MonitoringJobDefinitionSummary])
-> ([MonitoringJobDefinitionSummary]
    -> f [MonitoringJobDefinitionSummary])
-> ListModelExplainabilityJobDefinitionsResponse
-> f ListModelExplainabilityJobDefinitionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([MonitoringJobDefinitionSummary]
 -> f [MonitoringJobDefinitionSummary])
-> [MonitoringJobDefinitionSummary]
-> f [MonitoringJobDefinitionSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Prelude.NFData
    ListModelExplainabilityJobDefinitionsResponse