{-# 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.ListMonitoringSchedules
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns list of all monitoring schedules.
--
-- This operation returns paginated results.
module Amazonka.SageMaker.ListMonitoringSchedules
  ( -- * Creating a Request
    ListMonitoringSchedules (..),
    newListMonitoringSchedules,

    -- * Request Lenses
    listMonitoringSchedules_creationTimeAfter,
    listMonitoringSchedules_creationTimeBefore,
    listMonitoringSchedules_endpointName,
    listMonitoringSchedules_lastModifiedTimeAfter,
    listMonitoringSchedules_lastModifiedTimeBefore,
    listMonitoringSchedules_maxResults,
    listMonitoringSchedules_monitoringJobDefinitionName,
    listMonitoringSchedules_monitoringTypeEquals,
    listMonitoringSchedules_nameContains,
    listMonitoringSchedules_nextToken,
    listMonitoringSchedules_sortBy,
    listMonitoringSchedules_sortOrder,
    listMonitoringSchedules_statusEquals,

    -- * Destructuring the Response
    ListMonitoringSchedulesResponse (..),
    newListMonitoringSchedulesResponse,

    -- * Response Lenses
    listMonitoringSchedulesResponse_nextToken,
    listMonitoringSchedulesResponse_httpStatus,
    listMonitoringSchedulesResponse_monitoringScheduleSummaries,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SageMaker.Types

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

-- |
-- Create a value of 'ListMonitoringSchedules' 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:
--
-- 'creationTimeAfter', 'listMonitoringSchedules_creationTimeAfter' - A filter that returns only monitoring schedules created after a
-- specified time.
--
-- 'creationTimeBefore', 'listMonitoringSchedules_creationTimeBefore' - A filter that returns only monitoring schedules created before a
-- specified time.
--
-- 'endpointName', 'listMonitoringSchedules_endpointName' - Name of a specific endpoint to fetch schedules for.
--
-- 'lastModifiedTimeAfter', 'listMonitoringSchedules_lastModifiedTimeAfter' - A filter that returns only monitoring schedules modified after a
-- specified time.
--
-- 'lastModifiedTimeBefore', 'listMonitoringSchedules_lastModifiedTimeBefore' - A filter that returns only monitoring schedules modified before a
-- specified time.
--
-- 'maxResults', 'listMonitoringSchedules_maxResults' - The maximum number of jobs to return in the response. The default value
-- is 10.
--
-- 'monitoringJobDefinitionName', 'listMonitoringSchedules_monitoringJobDefinitionName' - Gets a list of the monitoring schedules for the specified monitoring job
-- definition.
--
-- 'monitoringTypeEquals', 'listMonitoringSchedules_monitoringTypeEquals' - A filter that returns only the monitoring schedules for the specified
-- monitoring type.
--
-- 'nameContains', 'listMonitoringSchedules_nameContains' - Filter for monitoring schedules whose name contains a specified string.
--
-- 'nextToken', 'listMonitoringSchedules_nextToken' - The token returned if the response is truncated. To retrieve the next
-- set of job executions, use it in the next request.
--
-- 'sortBy', 'listMonitoringSchedules_sortBy' - Whether to sort results by @Status@, @CreationTime@, @ScheduledTime@
-- field. The default is @CreationTime@.
--
-- 'sortOrder', 'listMonitoringSchedules_sortOrder' - Whether to sort the results in @Ascending@ or @Descending@ order. The
-- default is @Descending@.
--
-- 'statusEquals', 'listMonitoringSchedules_statusEquals' - A filter that returns only monitoring schedules modified before a
-- specified time.
newListMonitoringSchedules ::
  ListMonitoringSchedules
newListMonitoringSchedules :: ListMonitoringSchedules
newListMonitoringSchedules =
  ListMonitoringSchedules'
    { $sel:creationTimeAfter:ListMonitoringSchedules' :: Maybe POSIX
creationTimeAfter =
        forall a. Maybe a
Prelude.Nothing,
      $sel:creationTimeBefore:ListMonitoringSchedules' :: Maybe POSIX
creationTimeBefore = forall a. Maybe a
Prelude.Nothing,
      $sel:endpointName:ListMonitoringSchedules' :: Maybe Text
endpointName = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTimeAfter:ListMonitoringSchedules' :: Maybe POSIX
lastModifiedTimeAfter = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTimeBefore:ListMonitoringSchedules' :: Maybe POSIX
lastModifiedTimeBefore = forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListMonitoringSchedules' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:monitoringJobDefinitionName:ListMonitoringSchedules' :: Maybe Text
monitoringJobDefinitionName = forall a. Maybe a
Prelude.Nothing,
      $sel:monitoringTypeEquals:ListMonitoringSchedules' :: Maybe MonitoringType
monitoringTypeEquals = forall a. Maybe a
Prelude.Nothing,
      $sel:nameContains:ListMonitoringSchedules' :: Maybe Text
nameContains = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListMonitoringSchedules' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:sortBy:ListMonitoringSchedules' :: Maybe MonitoringScheduleSortKey
sortBy = forall a. Maybe a
Prelude.Nothing,
      $sel:sortOrder:ListMonitoringSchedules' :: Maybe SortOrder
sortOrder = forall a. Maybe a
Prelude.Nothing,
      $sel:statusEquals:ListMonitoringSchedules' :: Maybe ScheduleStatus
statusEquals = forall a. Maybe a
Prelude.Nothing
    }

-- | A filter that returns only monitoring schedules created after a
-- specified time.
listMonitoringSchedules_creationTimeAfter :: Lens.Lens' ListMonitoringSchedules (Prelude.Maybe Prelude.UTCTime)
listMonitoringSchedules_creationTimeAfter :: Lens' ListMonitoringSchedules (Maybe UTCTime)
listMonitoringSchedules_creationTimeAfter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringSchedules' {Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:creationTimeAfter:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe POSIX
creationTimeAfter} -> Maybe POSIX
creationTimeAfter) (\s :: ListMonitoringSchedules
s@ListMonitoringSchedules' {} Maybe POSIX
a -> ListMonitoringSchedules
s {$sel:creationTimeAfter:ListMonitoringSchedules' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
a} :: ListMonitoringSchedules) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | A filter that returns only monitoring schedules created before a
-- specified time.
listMonitoringSchedules_creationTimeBefore :: Lens.Lens' ListMonitoringSchedules (Prelude.Maybe Prelude.UTCTime)
listMonitoringSchedules_creationTimeBefore :: Lens' ListMonitoringSchedules (Maybe UTCTime)
listMonitoringSchedules_creationTimeBefore = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringSchedules' {Maybe POSIX
creationTimeBefore :: Maybe POSIX
$sel:creationTimeBefore:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe POSIX
creationTimeBefore} -> Maybe POSIX
creationTimeBefore) (\s :: ListMonitoringSchedules
s@ListMonitoringSchedules' {} Maybe POSIX
a -> ListMonitoringSchedules
s {$sel:creationTimeBefore:ListMonitoringSchedules' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
a} :: ListMonitoringSchedules) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | Name of a specific endpoint to fetch schedules for.
listMonitoringSchedules_endpointName :: Lens.Lens' ListMonitoringSchedules (Prelude.Maybe Prelude.Text)
listMonitoringSchedules_endpointName :: Lens' ListMonitoringSchedules (Maybe Text)
listMonitoringSchedules_endpointName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringSchedules' {Maybe Text
endpointName :: Maybe Text
$sel:endpointName:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe Text
endpointName} -> Maybe Text
endpointName) (\s :: ListMonitoringSchedules
s@ListMonitoringSchedules' {} Maybe Text
a -> ListMonitoringSchedules
s {$sel:endpointName:ListMonitoringSchedules' :: Maybe Text
endpointName = Maybe Text
a} :: ListMonitoringSchedules)

-- | A filter that returns only monitoring schedules modified after a
-- specified time.
listMonitoringSchedules_lastModifiedTimeAfter :: Lens.Lens' ListMonitoringSchedules (Prelude.Maybe Prelude.UTCTime)
listMonitoringSchedules_lastModifiedTimeAfter :: Lens' ListMonitoringSchedules (Maybe UTCTime)
listMonitoringSchedules_lastModifiedTimeAfter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringSchedules' {Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
$sel:lastModifiedTimeAfter:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe POSIX
lastModifiedTimeAfter} -> Maybe POSIX
lastModifiedTimeAfter) (\s :: ListMonitoringSchedules
s@ListMonitoringSchedules' {} Maybe POSIX
a -> ListMonitoringSchedules
s {$sel:lastModifiedTimeAfter:ListMonitoringSchedules' :: Maybe POSIX
lastModifiedTimeAfter = Maybe POSIX
a} :: ListMonitoringSchedules) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | A filter that returns only monitoring schedules modified before a
-- specified time.
listMonitoringSchedules_lastModifiedTimeBefore :: Lens.Lens' ListMonitoringSchedules (Prelude.Maybe Prelude.UTCTime)
listMonitoringSchedules_lastModifiedTimeBefore :: Lens' ListMonitoringSchedules (Maybe UTCTime)
listMonitoringSchedules_lastModifiedTimeBefore = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringSchedules' {Maybe POSIX
lastModifiedTimeBefore :: Maybe POSIX
$sel:lastModifiedTimeBefore:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe POSIX
lastModifiedTimeBefore} -> Maybe POSIX
lastModifiedTimeBefore) (\s :: ListMonitoringSchedules
s@ListMonitoringSchedules' {} Maybe POSIX
a -> ListMonitoringSchedules
s {$sel:lastModifiedTimeBefore:ListMonitoringSchedules' :: Maybe POSIX
lastModifiedTimeBefore = Maybe POSIX
a} :: ListMonitoringSchedules) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

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

-- | Gets a list of the monitoring schedules for the specified monitoring job
-- definition.
listMonitoringSchedules_monitoringJobDefinitionName :: Lens.Lens' ListMonitoringSchedules (Prelude.Maybe Prelude.Text)
listMonitoringSchedules_monitoringJobDefinitionName :: Lens' ListMonitoringSchedules (Maybe Text)
listMonitoringSchedules_monitoringJobDefinitionName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringSchedules' {Maybe Text
monitoringJobDefinitionName :: Maybe Text
$sel:monitoringJobDefinitionName:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe Text
monitoringJobDefinitionName} -> Maybe Text
monitoringJobDefinitionName) (\s :: ListMonitoringSchedules
s@ListMonitoringSchedules' {} Maybe Text
a -> ListMonitoringSchedules
s {$sel:monitoringJobDefinitionName:ListMonitoringSchedules' :: Maybe Text
monitoringJobDefinitionName = Maybe Text
a} :: ListMonitoringSchedules)

-- | A filter that returns only the monitoring schedules for the specified
-- monitoring type.
listMonitoringSchedules_monitoringTypeEquals :: Lens.Lens' ListMonitoringSchedules (Prelude.Maybe MonitoringType)
listMonitoringSchedules_monitoringTypeEquals :: Lens' ListMonitoringSchedules (Maybe MonitoringType)
listMonitoringSchedules_monitoringTypeEquals = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringSchedules' {Maybe MonitoringType
monitoringTypeEquals :: Maybe MonitoringType
$sel:monitoringTypeEquals:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe MonitoringType
monitoringTypeEquals} -> Maybe MonitoringType
monitoringTypeEquals) (\s :: ListMonitoringSchedules
s@ListMonitoringSchedules' {} Maybe MonitoringType
a -> ListMonitoringSchedules
s {$sel:monitoringTypeEquals:ListMonitoringSchedules' :: Maybe MonitoringType
monitoringTypeEquals = Maybe MonitoringType
a} :: ListMonitoringSchedules)

-- | Filter for monitoring schedules whose name contains a specified string.
listMonitoringSchedules_nameContains :: Lens.Lens' ListMonitoringSchedules (Prelude.Maybe Prelude.Text)
listMonitoringSchedules_nameContains :: Lens' ListMonitoringSchedules (Maybe Text)
listMonitoringSchedules_nameContains = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringSchedules' {Maybe Text
nameContains :: Maybe Text
$sel:nameContains:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe Text
nameContains} -> Maybe Text
nameContains) (\s :: ListMonitoringSchedules
s@ListMonitoringSchedules' {} Maybe Text
a -> ListMonitoringSchedules
s {$sel:nameContains:ListMonitoringSchedules' :: Maybe Text
nameContains = Maybe Text
a} :: ListMonitoringSchedules)

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

-- | Whether to sort results by @Status@, @CreationTime@, @ScheduledTime@
-- field. The default is @CreationTime@.
listMonitoringSchedules_sortBy :: Lens.Lens' ListMonitoringSchedules (Prelude.Maybe MonitoringScheduleSortKey)
listMonitoringSchedules_sortBy :: Lens' ListMonitoringSchedules (Maybe MonitoringScheduleSortKey)
listMonitoringSchedules_sortBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringSchedules' {Maybe MonitoringScheduleSortKey
sortBy :: Maybe MonitoringScheduleSortKey
$sel:sortBy:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe MonitoringScheduleSortKey
sortBy} -> Maybe MonitoringScheduleSortKey
sortBy) (\s :: ListMonitoringSchedules
s@ListMonitoringSchedules' {} Maybe MonitoringScheduleSortKey
a -> ListMonitoringSchedules
s {$sel:sortBy:ListMonitoringSchedules' :: Maybe MonitoringScheduleSortKey
sortBy = Maybe MonitoringScheduleSortKey
a} :: ListMonitoringSchedules)

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

-- | A filter that returns only monitoring schedules modified before a
-- specified time.
listMonitoringSchedules_statusEquals :: Lens.Lens' ListMonitoringSchedules (Prelude.Maybe ScheduleStatus)
listMonitoringSchedules_statusEquals :: Lens' ListMonitoringSchedules (Maybe ScheduleStatus)
listMonitoringSchedules_statusEquals = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringSchedules' {Maybe ScheduleStatus
statusEquals :: Maybe ScheduleStatus
$sel:statusEquals:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe ScheduleStatus
statusEquals} -> Maybe ScheduleStatus
statusEquals) (\s :: ListMonitoringSchedules
s@ListMonitoringSchedules' {} Maybe ScheduleStatus
a -> ListMonitoringSchedules
s {$sel:statusEquals:ListMonitoringSchedules' :: Maybe ScheduleStatus
statusEquals = Maybe ScheduleStatus
a} :: ListMonitoringSchedules)

instance Core.AWSPager ListMonitoringSchedules where
  page :: ListMonitoringSchedules
-> AWSResponse ListMonitoringSchedules
-> Maybe ListMonitoringSchedules
page ListMonitoringSchedules
rq AWSResponse ListMonitoringSchedules
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListMonitoringSchedules
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListMonitoringSchedulesResponse (Maybe Text)
listMonitoringSchedulesResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListMonitoringSchedules
rs
            forall s a. s -> Getting a s a -> a
Lens.^. Lens' ListMonitoringSchedulesResponse [MonitoringScheduleSummary]
listMonitoringSchedulesResponse_monitoringScheduleSummaries
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListMonitoringSchedules
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListMonitoringSchedules (Maybe Text)
listMonitoringSchedules_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListMonitoringSchedules
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListMonitoringSchedulesResponse (Maybe Text)
listMonitoringSchedulesResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest ListMonitoringSchedules where
  type
    AWSResponse ListMonitoringSchedules =
      ListMonitoringSchedulesResponse
  request :: (Service -> Service)
-> ListMonitoringSchedules -> Request ListMonitoringSchedules
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListMonitoringSchedules
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListMonitoringSchedules)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Int
-> [MonitoringScheduleSummary]
-> ListMonitoringSchedulesResponse
ListMonitoringSchedulesResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"MonitoringScheduleSummaries"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable ListMonitoringSchedules where
  hashWithSalt :: Int -> ListMonitoringSchedules -> Int
hashWithSalt Int
_salt ListMonitoringSchedules' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe MonitoringScheduleSortKey
Maybe MonitoringType
Maybe ScheduleStatus
Maybe SortOrder
statusEquals :: Maybe ScheduleStatus
sortOrder :: Maybe SortOrder
sortBy :: Maybe MonitoringScheduleSortKey
nextToken :: Maybe Text
nameContains :: Maybe Text
monitoringTypeEquals :: Maybe MonitoringType
monitoringJobDefinitionName :: Maybe Text
maxResults :: Maybe Natural
lastModifiedTimeBefore :: Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
endpointName :: Maybe Text
creationTimeBefore :: Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:statusEquals:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe ScheduleStatus
$sel:sortOrder:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe SortOrder
$sel:sortBy:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe MonitoringScheduleSortKey
$sel:nextToken:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe Text
$sel:nameContains:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe Text
$sel:monitoringTypeEquals:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe MonitoringType
$sel:monitoringJobDefinitionName:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe Text
$sel:maxResults:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe Natural
$sel:lastModifiedTimeBefore:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe POSIX
$sel:lastModifiedTimeAfter:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe POSIX
$sel:endpointName:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe Text
$sel:creationTimeBefore:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe POSIX
$sel:creationTimeAfter:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe POSIX
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationTimeAfter
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationTimeBefore
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
endpointName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastModifiedTimeAfter
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastModifiedTimeBefore
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
monitoringJobDefinitionName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MonitoringType
monitoringTypeEquals
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nameContains
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MonitoringScheduleSortKey
sortBy
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SortOrder
sortOrder
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ScheduleStatus
statusEquals

instance Prelude.NFData ListMonitoringSchedules where
  rnf :: ListMonitoringSchedules -> ()
rnf ListMonitoringSchedules' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe MonitoringScheduleSortKey
Maybe MonitoringType
Maybe ScheduleStatus
Maybe SortOrder
statusEquals :: Maybe ScheduleStatus
sortOrder :: Maybe SortOrder
sortBy :: Maybe MonitoringScheduleSortKey
nextToken :: Maybe Text
nameContains :: Maybe Text
monitoringTypeEquals :: Maybe MonitoringType
monitoringJobDefinitionName :: Maybe Text
maxResults :: Maybe Natural
lastModifiedTimeBefore :: Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
endpointName :: Maybe Text
creationTimeBefore :: Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:statusEquals:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe ScheduleStatus
$sel:sortOrder:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe SortOrder
$sel:sortBy:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe MonitoringScheduleSortKey
$sel:nextToken:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe Text
$sel:nameContains:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe Text
$sel:monitoringTypeEquals:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe MonitoringType
$sel:monitoringJobDefinitionName:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe Text
$sel:maxResults:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe Natural
$sel:lastModifiedTimeBefore:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe POSIX
$sel:lastModifiedTimeAfter:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe POSIX
$sel:endpointName:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe Text
$sel:creationTimeBefore:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe POSIX
$sel:creationTimeAfter:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe POSIX
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTimeAfter
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTimeBefore
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
endpointName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedTimeAfter
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedTimeBefore
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
monitoringJobDefinitionName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MonitoringType
monitoringTypeEquals
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nameContains
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MonitoringScheduleSortKey
sortBy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SortOrder
sortOrder
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ScheduleStatus
statusEquals

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

instance Data.ToJSON ListMonitoringSchedules where
  toJSON :: ListMonitoringSchedules -> Value
toJSON ListMonitoringSchedules' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe MonitoringScheduleSortKey
Maybe MonitoringType
Maybe ScheduleStatus
Maybe SortOrder
statusEquals :: Maybe ScheduleStatus
sortOrder :: Maybe SortOrder
sortBy :: Maybe MonitoringScheduleSortKey
nextToken :: Maybe Text
nameContains :: Maybe Text
monitoringTypeEquals :: Maybe MonitoringType
monitoringJobDefinitionName :: Maybe Text
maxResults :: Maybe Natural
lastModifiedTimeBefore :: Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
endpointName :: Maybe Text
creationTimeBefore :: Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:statusEquals:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe ScheduleStatus
$sel:sortOrder:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe SortOrder
$sel:sortBy:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe MonitoringScheduleSortKey
$sel:nextToken:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe Text
$sel:nameContains:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe Text
$sel:monitoringTypeEquals:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe MonitoringType
$sel:monitoringJobDefinitionName:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe Text
$sel:maxResults:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe Natural
$sel:lastModifiedTimeBefore:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe POSIX
$sel:lastModifiedTimeAfter:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe POSIX
$sel:endpointName:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe Text
$sel:creationTimeBefore:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe POSIX
$sel:creationTimeAfter:ListMonitoringSchedules' :: ListMonitoringSchedules -> Maybe POSIX
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"CreationTimeAfter" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
creationTimeAfter,
            (Key
"CreationTimeBefore" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
creationTimeBefore,
            (Key
"EndpointName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
endpointName,
            (Key
"LastModifiedTimeAfter" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
lastModifiedTimeAfter,
            (Key
"LastModifiedTimeBefore" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
lastModifiedTimeBefore,
            (Key
"MaxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
            (Key
"MonitoringJobDefinitionName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
monitoringJobDefinitionName,
            (Key
"MonitoringTypeEquals" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MonitoringType
monitoringTypeEquals,
            (Key
"NameContains" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nameContains,
            (Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            (Key
"SortBy" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MonitoringScheduleSortKey
sortBy,
            (Key
"SortOrder" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SortOrder
sortOrder,
            (Key
"StatusEquals" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ScheduleStatus
statusEquals
          ]
      )

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

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

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

-- |
-- Create a value of 'ListMonitoringSchedulesResponse' 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', 'listMonitoringSchedulesResponse_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', 'listMonitoringSchedulesResponse_httpStatus' - The response's http status code.
--
-- 'monitoringScheduleSummaries', 'listMonitoringSchedulesResponse_monitoringScheduleSummaries' - A JSON array in which each element is a summary for a monitoring
-- schedule.
newListMonitoringSchedulesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListMonitoringSchedulesResponse
newListMonitoringSchedulesResponse :: Int -> ListMonitoringSchedulesResponse
newListMonitoringSchedulesResponse Int
pHttpStatus_ =
  ListMonitoringSchedulesResponse'
    { $sel:nextToken:ListMonitoringSchedulesResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListMonitoringSchedulesResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:monitoringScheduleSummaries:ListMonitoringSchedulesResponse' :: [MonitoringScheduleSummary]
monitoringScheduleSummaries =
        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.
listMonitoringSchedulesResponse_nextToken :: Lens.Lens' ListMonitoringSchedulesResponse (Prelude.Maybe Prelude.Text)
listMonitoringSchedulesResponse_nextToken :: Lens' ListMonitoringSchedulesResponse (Maybe Text)
listMonitoringSchedulesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringSchedulesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListMonitoringSchedulesResponse' :: ListMonitoringSchedulesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListMonitoringSchedulesResponse
s@ListMonitoringSchedulesResponse' {} Maybe Text
a -> ListMonitoringSchedulesResponse
s {$sel:nextToken:ListMonitoringSchedulesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListMonitoringSchedulesResponse)

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

-- | A JSON array in which each element is a summary for a monitoring
-- schedule.
listMonitoringSchedulesResponse_monitoringScheduleSummaries :: Lens.Lens' ListMonitoringSchedulesResponse [MonitoringScheduleSummary]
listMonitoringSchedulesResponse_monitoringScheduleSummaries :: Lens' ListMonitoringSchedulesResponse [MonitoringScheduleSummary]
listMonitoringSchedulesResponse_monitoringScheduleSummaries = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringSchedulesResponse' {[MonitoringScheduleSummary]
monitoringScheduleSummaries :: [MonitoringScheduleSummary]
$sel:monitoringScheduleSummaries:ListMonitoringSchedulesResponse' :: ListMonitoringSchedulesResponse -> [MonitoringScheduleSummary]
monitoringScheduleSummaries} -> [MonitoringScheduleSummary]
monitoringScheduleSummaries) (\s :: ListMonitoringSchedulesResponse
s@ListMonitoringSchedulesResponse' {} [MonitoringScheduleSummary]
a -> ListMonitoringSchedulesResponse
s {$sel:monitoringScheduleSummaries:ListMonitoringSchedulesResponse' :: [MonitoringScheduleSummary]
monitoringScheduleSummaries = [MonitoringScheduleSummary]
a} :: ListMonitoringSchedulesResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Prelude.NFData
    ListMonitoringSchedulesResponse
  where
  rnf :: ListMonitoringSchedulesResponse -> ()
rnf ListMonitoringSchedulesResponse' {Int
[MonitoringScheduleSummary]
Maybe Text
monitoringScheduleSummaries :: [MonitoringScheduleSummary]
httpStatus :: Int
nextToken :: Maybe Text
$sel:monitoringScheduleSummaries:ListMonitoringSchedulesResponse' :: ListMonitoringSchedulesResponse -> [MonitoringScheduleSummary]
$sel:httpStatus:ListMonitoringSchedulesResponse' :: ListMonitoringSchedulesResponse -> Int
$sel:nextToken:ListMonitoringSchedulesResponse' :: ListMonitoringSchedulesResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf [MonitoringScheduleSummary]
monitoringScheduleSummaries