{-# 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 #-}
module Amazonka.SageMaker.ListMonitoringExecutions
(
ListMonitoringExecutions (..),
newListMonitoringExecutions,
listMonitoringExecutions_endpointName,
listMonitoringExecutions_lastModifiedTimeBefore,
listMonitoringExecutions_scheduledTimeAfter,
listMonitoringExecutions_creationTimeAfter,
listMonitoringExecutions_nextToken,
listMonitoringExecutions_sortOrder,
listMonitoringExecutions_lastModifiedTimeAfter,
listMonitoringExecutions_creationTimeBefore,
listMonitoringExecutions_scheduledTimeBefore,
listMonitoringExecutions_statusEquals,
listMonitoringExecutions_monitoringTypeEquals,
listMonitoringExecutions_monitoringScheduleName,
listMonitoringExecutions_maxResults,
listMonitoringExecutions_sortBy,
listMonitoringExecutions_monitoringJobDefinitionName,
ListMonitoringExecutionsResponse (..),
newListMonitoringExecutionsResponse,
listMonitoringExecutionsResponse_nextToken,
listMonitoringExecutionsResponse_httpStatus,
listMonitoringExecutionsResponse_monitoringExecutionSummaries,
)
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
data ListMonitoringExecutions = ListMonitoringExecutions'
{
ListMonitoringExecutions -> Maybe Text
endpointName :: Prelude.Maybe Prelude.Text,
ListMonitoringExecutions -> Maybe POSIX
lastModifiedTimeBefore :: Prelude.Maybe Core.POSIX,
ListMonitoringExecutions -> Maybe POSIX
scheduledTimeAfter :: Prelude.Maybe Core.POSIX,
ListMonitoringExecutions -> Maybe POSIX
creationTimeAfter :: Prelude.Maybe Core.POSIX,
ListMonitoringExecutions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListMonitoringExecutions -> Maybe SortOrder
sortOrder :: Prelude.Maybe SortOrder,
ListMonitoringExecutions -> Maybe POSIX
lastModifiedTimeAfter :: Prelude.Maybe Core.POSIX,
ListMonitoringExecutions -> Maybe POSIX
creationTimeBefore :: Prelude.Maybe Core.POSIX,
ListMonitoringExecutions -> Maybe POSIX
scheduledTimeBefore :: Prelude.Maybe Core.POSIX,
ListMonitoringExecutions -> Maybe ExecutionStatus
statusEquals :: Prelude.Maybe ExecutionStatus,
ListMonitoringExecutions -> Maybe MonitoringType
monitoringTypeEquals :: Prelude.Maybe MonitoringType,
ListMonitoringExecutions -> Maybe Text
monitoringScheduleName :: Prelude.Maybe Prelude.Text,
ListMonitoringExecutions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListMonitoringExecutions -> Maybe MonitoringExecutionSortKey
sortBy :: Prelude.Maybe MonitoringExecutionSortKey,
ListMonitoringExecutions -> Maybe Text
monitoringJobDefinitionName :: Prelude.Maybe Prelude.Text
}
deriving (ListMonitoringExecutions -> ListMonitoringExecutions -> Bool
(ListMonitoringExecutions -> ListMonitoringExecutions -> Bool)
-> (ListMonitoringExecutions -> ListMonitoringExecutions -> Bool)
-> Eq ListMonitoringExecutions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListMonitoringExecutions -> ListMonitoringExecutions -> Bool
$c/= :: ListMonitoringExecutions -> ListMonitoringExecutions -> Bool
== :: ListMonitoringExecutions -> ListMonitoringExecutions -> Bool
$c== :: ListMonitoringExecutions -> ListMonitoringExecutions -> Bool
Prelude.Eq, ReadPrec [ListMonitoringExecutions]
ReadPrec ListMonitoringExecutions
Int -> ReadS ListMonitoringExecutions
ReadS [ListMonitoringExecutions]
(Int -> ReadS ListMonitoringExecutions)
-> ReadS [ListMonitoringExecutions]
-> ReadPrec ListMonitoringExecutions
-> ReadPrec [ListMonitoringExecutions]
-> Read ListMonitoringExecutions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListMonitoringExecutions]
$creadListPrec :: ReadPrec [ListMonitoringExecutions]
readPrec :: ReadPrec ListMonitoringExecutions
$creadPrec :: ReadPrec ListMonitoringExecutions
readList :: ReadS [ListMonitoringExecutions]
$creadList :: ReadS [ListMonitoringExecutions]
readsPrec :: Int -> ReadS ListMonitoringExecutions
$creadsPrec :: Int -> ReadS ListMonitoringExecutions
Prelude.Read, Int -> ListMonitoringExecutions -> ShowS
[ListMonitoringExecutions] -> ShowS
ListMonitoringExecutions -> String
(Int -> ListMonitoringExecutions -> ShowS)
-> (ListMonitoringExecutions -> String)
-> ([ListMonitoringExecutions] -> ShowS)
-> Show ListMonitoringExecutions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListMonitoringExecutions] -> ShowS
$cshowList :: [ListMonitoringExecutions] -> ShowS
show :: ListMonitoringExecutions -> String
$cshow :: ListMonitoringExecutions -> String
showsPrec :: Int -> ListMonitoringExecutions -> ShowS
$cshowsPrec :: Int -> ListMonitoringExecutions -> ShowS
Prelude.Show, (forall x.
ListMonitoringExecutions -> Rep ListMonitoringExecutions x)
-> (forall x.
Rep ListMonitoringExecutions x -> ListMonitoringExecutions)
-> Generic ListMonitoringExecutions
forall x.
Rep ListMonitoringExecutions x -> ListMonitoringExecutions
forall x.
ListMonitoringExecutions -> Rep ListMonitoringExecutions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListMonitoringExecutions x -> ListMonitoringExecutions
$cfrom :: forall x.
ListMonitoringExecutions -> Rep ListMonitoringExecutions x
Prelude.Generic)
newListMonitoringExecutions ::
ListMonitoringExecutions
newListMonitoringExecutions :: ListMonitoringExecutions
newListMonitoringExecutions =
ListMonitoringExecutions' :: Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe SortOrder
-> Maybe POSIX
-> Maybe POSIX
-> Maybe POSIX
-> Maybe ExecutionStatus
-> Maybe MonitoringType
-> Maybe Text
-> Maybe Natural
-> Maybe MonitoringExecutionSortKey
-> Maybe Text
-> ListMonitoringExecutions
ListMonitoringExecutions'
{ $sel:endpointName:ListMonitoringExecutions' :: Maybe Text
endpointName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTimeBefore:ListMonitoringExecutions' :: Maybe POSIX
lastModifiedTimeBefore = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:scheduledTimeAfter:ListMonitoringExecutions' :: Maybe POSIX
scheduledTimeAfter = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:creationTimeAfter:ListMonitoringExecutions' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListMonitoringExecutions' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sortOrder:ListMonitoringExecutions' :: Maybe SortOrder
sortOrder = Maybe SortOrder
forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTimeAfter:ListMonitoringExecutions' :: Maybe POSIX
lastModifiedTimeAfter = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:creationTimeBefore:ListMonitoringExecutions' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:scheduledTimeBefore:ListMonitoringExecutions' :: Maybe POSIX
scheduledTimeBefore = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:statusEquals:ListMonitoringExecutions' :: Maybe ExecutionStatus
statusEquals = Maybe ExecutionStatus
forall a. Maybe a
Prelude.Nothing,
$sel:monitoringTypeEquals:ListMonitoringExecutions' :: Maybe MonitoringType
monitoringTypeEquals = Maybe MonitoringType
forall a. Maybe a
Prelude.Nothing,
$sel:monitoringScheduleName:ListMonitoringExecutions' :: Maybe Text
monitoringScheduleName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListMonitoringExecutions' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:sortBy:ListMonitoringExecutions' :: Maybe MonitoringExecutionSortKey
sortBy = Maybe MonitoringExecutionSortKey
forall a. Maybe a
Prelude.Nothing,
$sel:monitoringJobDefinitionName:ListMonitoringExecutions' :: Maybe Text
monitoringJobDefinitionName = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
listMonitoringExecutions_endpointName :: Lens.Lens' ListMonitoringExecutions (Prelude.Maybe Prelude.Text)
listMonitoringExecutions_endpointName :: (Maybe Text -> f (Maybe Text))
-> ListMonitoringExecutions -> f ListMonitoringExecutions
listMonitoringExecutions_endpointName = (ListMonitoringExecutions -> Maybe Text)
-> (ListMonitoringExecutions
-> Maybe Text -> ListMonitoringExecutions)
-> Lens
ListMonitoringExecutions
ListMonitoringExecutions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringExecutions' {Maybe Text
endpointName :: Maybe Text
$sel:endpointName:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe Text
endpointName} -> Maybe Text
endpointName) (\s :: ListMonitoringExecutions
s@ListMonitoringExecutions' {} Maybe Text
a -> ListMonitoringExecutions
s {$sel:endpointName:ListMonitoringExecutions' :: Maybe Text
endpointName = Maybe Text
a} :: ListMonitoringExecutions)
listMonitoringExecutions_lastModifiedTimeBefore :: Lens.Lens' ListMonitoringExecutions (Prelude.Maybe Prelude.UTCTime)
listMonitoringExecutions_lastModifiedTimeBefore :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListMonitoringExecutions -> f ListMonitoringExecutions
listMonitoringExecutions_lastModifiedTimeBefore = (ListMonitoringExecutions -> Maybe POSIX)
-> (ListMonitoringExecutions
-> Maybe POSIX -> ListMonitoringExecutions)
-> Lens
ListMonitoringExecutions
ListMonitoringExecutions
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringExecutions' {Maybe POSIX
lastModifiedTimeBefore :: Maybe POSIX
$sel:lastModifiedTimeBefore:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe POSIX
lastModifiedTimeBefore} -> Maybe POSIX
lastModifiedTimeBefore) (\s :: ListMonitoringExecutions
s@ListMonitoringExecutions' {} Maybe POSIX
a -> ListMonitoringExecutions
s {$sel:lastModifiedTimeBefore:ListMonitoringExecutions' :: Maybe POSIX
lastModifiedTimeBefore = Maybe POSIX
a} :: ListMonitoringExecutions) ((Maybe POSIX -> f (Maybe POSIX))
-> ListMonitoringExecutions -> f ListMonitoringExecutions)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListMonitoringExecutions
-> f ListMonitoringExecutions
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
listMonitoringExecutions_scheduledTimeAfter :: Lens.Lens' ListMonitoringExecutions (Prelude.Maybe Prelude.UTCTime)
listMonitoringExecutions_scheduledTimeAfter :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListMonitoringExecutions -> f ListMonitoringExecutions
listMonitoringExecutions_scheduledTimeAfter = (ListMonitoringExecutions -> Maybe POSIX)
-> (ListMonitoringExecutions
-> Maybe POSIX -> ListMonitoringExecutions)
-> Lens
ListMonitoringExecutions
ListMonitoringExecutions
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringExecutions' {Maybe POSIX
scheduledTimeAfter :: Maybe POSIX
$sel:scheduledTimeAfter:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe POSIX
scheduledTimeAfter} -> Maybe POSIX
scheduledTimeAfter) (\s :: ListMonitoringExecutions
s@ListMonitoringExecutions' {} Maybe POSIX
a -> ListMonitoringExecutions
s {$sel:scheduledTimeAfter:ListMonitoringExecutions' :: Maybe POSIX
scheduledTimeAfter = Maybe POSIX
a} :: ListMonitoringExecutions) ((Maybe POSIX -> f (Maybe POSIX))
-> ListMonitoringExecutions -> f ListMonitoringExecutions)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListMonitoringExecutions
-> f ListMonitoringExecutions
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
listMonitoringExecutions_creationTimeAfter :: Lens.Lens' ListMonitoringExecutions (Prelude.Maybe Prelude.UTCTime)
listMonitoringExecutions_creationTimeAfter :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListMonitoringExecutions -> f ListMonitoringExecutions
listMonitoringExecutions_creationTimeAfter = (ListMonitoringExecutions -> Maybe POSIX)
-> (ListMonitoringExecutions
-> Maybe POSIX -> ListMonitoringExecutions)
-> Lens
ListMonitoringExecutions
ListMonitoringExecutions
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringExecutions' {Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:creationTimeAfter:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe POSIX
creationTimeAfter} -> Maybe POSIX
creationTimeAfter) (\s :: ListMonitoringExecutions
s@ListMonitoringExecutions' {} Maybe POSIX
a -> ListMonitoringExecutions
s {$sel:creationTimeAfter:ListMonitoringExecutions' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
a} :: ListMonitoringExecutions) ((Maybe POSIX -> f (Maybe POSIX))
-> ListMonitoringExecutions -> f ListMonitoringExecutions)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListMonitoringExecutions
-> f ListMonitoringExecutions
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
listMonitoringExecutions_nextToken :: Lens.Lens' ListMonitoringExecutions (Prelude.Maybe Prelude.Text)
listMonitoringExecutions_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListMonitoringExecutions -> f ListMonitoringExecutions
listMonitoringExecutions_nextToken = (ListMonitoringExecutions -> Maybe Text)
-> (ListMonitoringExecutions
-> Maybe Text -> ListMonitoringExecutions)
-> Lens
ListMonitoringExecutions
ListMonitoringExecutions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringExecutions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListMonitoringExecutions
s@ListMonitoringExecutions' {} Maybe Text
a -> ListMonitoringExecutions
s {$sel:nextToken:ListMonitoringExecutions' :: Maybe Text
nextToken = Maybe Text
a} :: ListMonitoringExecutions)
listMonitoringExecutions_sortOrder :: Lens.Lens' ListMonitoringExecutions (Prelude.Maybe SortOrder)
listMonitoringExecutions_sortOrder :: (Maybe SortOrder -> f (Maybe SortOrder))
-> ListMonitoringExecutions -> f ListMonitoringExecutions
listMonitoringExecutions_sortOrder = (ListMonitoringExecutions -> Maybe SortOrder)
-> (ListMonitoringExecutions
-> Maybe SortOrder -> ListMonitoringExecutions)
-> Lens
ListMonitoringExecutions
ListMonitoringExecutions
(Maybe SortOrder)
(Maybe SortOrder)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringExecutions' {Maybe SortOrder
sortOrder :: Maybe SortOrder
$sel:sortOrder:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe SortOrder
sortOrder} -> Maybe SortOrder
sortOrder) (\s :: ListMonitoringExecutions
s@ListMonitoringExecutions' {} Maybe SortOrder
a -> ListMonitoringExecutions
s {$sel:sortOrder:ListMonitoringExecutions' :: Maybe SortOrder
sortOrder = Maybe SortOrder
a} :: ListMonitoringExecutions)
listMonitoringExecutions_lastModifiedTimeAfter :: Lens.Lens' ListMonitoringExecutions (Prelude.Maybe Prelude.UTCTime)
listMonitoringExecutions_lastModifiedTimeAfter :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListMonitoringExecutions -> f ListMonitoringExecutions
listMonitoringExecutions_lastModifiedTimeAfter = (ListMonitoringExecutions -> Maybe POSIX)
-> (ListMonitoringExecutions
-> Maybe POSIX -> ListMonitoringExecutions)
-> Lens
ListMonitoringExecutions
ListMonitoringExecutions
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringExecutions' {Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
$sel:lastModifiedTimeAfter:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe POSIX
lastModifiedTimeAfter} -> Maybe POSIX
lastModifiedTimeAfter) (\s :: ListMonitoringExecutions
s@ListMonitoringExecutions' {} Maybe POSIX
a -> ListMonitoringExecutions
s {$sel:lastModifiedTimeAfter:ListMonitoringExecutions' :: Maybe POSIX
lastModifiedTimeAfter = Maybe POSIX
a} :: ListMonitoringExecutions) ((Maybe POSIX -> f (Maybe POSIX))
-> ListMonitoringExecutions -> f ListMonitoringExecutions)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListMonitoringExecutions
-> f ListMonitoringExecutions
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
listMonitoringExecutions_creationTimeBefore :: Lens.Lens' ListMonitoringExecutions (Prelude.Maybe Prelude.UTCTime)
listMonitoringExecutions_creationTimeBefore :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListMonitoringExecutions -> f ListMonitoringExecutions
listMonitoringExecutions_creationTimeBefore = (ListMonitoringExecutions -> Maybe POSIX)
-> (ListMonitoringExecutions
-> Maybe POSIX -> ListMonitoringExecutions)
-> Lens
ListMonitoringExecutions
ListMonitoringExecutions
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringExecutions' {Maybe POSIX
creationTimeBefore :: Maybe POSIX
$sel:creationTimeBefore:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe POSIX
creationTimeBefore} -> Maybe POSIX
creationTimeBefore) (\s :: ListMonitoringExecutions
s@ListMonitoringExecutions' {} Maybe POSIX
a -> ListMonitoringExecutions
s {$sel:creationTimeBefore:ListMonitoringExecutions' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
a} :: ListMonitoringExecutions) ((Maybe POSIX -> f (Maybe POSIX))
-> ListMonitoringExecutions -> f ListMonitoringExecutions)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListMonitoringExecutions
-> f ListMonitoringExecutions
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
listMonitoringExecutions_scheduledTimeBefore :: Lens.Lens' ListMonitoringExecutions (Prelude.Maybe Prelude.UTCTime)
listMonitoringExecutions_scheduledTimeBefore :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListMonitoringExecutions -> f ListMonitoringExecutions
listMonitoringExecutions_scheduledTimeBefore = (ListMonitoringExecutions -> Maybe POSIX)
-> (ListMonitoringExecutions
-> Maybe POSIX -> ListMonitoringExecutions)
-> Lens
ListMonitoringExecutions
ListMonitoringExecutions
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringExecutions' {Maybe POSIX
scheduledTimeBefore :: Maybe POSIX
$sel:scheduledTimeBefore:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe POSIX
scheduledTimeBefore} -> Maybe POSIX
scheduledTimeBefore) (\s :: ListMonitoringExecutions
s@ListMonitoringExecutions' {} Maybe POSIX
a -> ListMonitoringExecutions
s {$sel:scheduledTimeBefore:ListMonitoringExecutions' :: Maybe POSIX
scheduledTimeBefore = Maybe POSIX
a} :: ListMonitoringExecutions) ((Maybe POSIX -> f (Maybe POSIX))
-> ListMonitoringExecutions -> f ListMonitoringExecutions)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListMonitoringExecutions
-> f ListMonitoringExecutions
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
listMonitoringExecutions_statusEquals :: Lens.Lens' ListMonitoringExecutions (Prelude.Maybe ExecutionStatus)
listMonitoringExecutions_statusEquals :: (Maybe ExecutionStatus -> f (Maybe ExecutionStatus))
-> ListMonitoringExecutions -> f ListMonitoringExecutions
listMonitoringExecutions_statusEquals = (ListMonitoringExecutions -> Maybe ExecutionStatus)
-> (ListMonitoringExecutions
-> Maybe ExecutionStatus -> ListMonitoringExecutions)
-> Lens
ListMonitoringExecutions
ListMonitoringExecutions
(Maybe ExecutionStatus)
(Maybe ExecutionStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringExecutions' {Maybe ExecutionStatus
statusEquals :: Maybe ExecutionStatus
$sel:statusEquals:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe ExecutionStatus
statusEquals} -> Maybe ExecutionStatus
statusEquals) (\s :: ListMonitoringExecutions
s@ListMonitoringExecutions' {} Maybe ExecutionStatus
a -> ListMonitoringExecutions
s {$sel:statusEquals:ListMonitoringExecutions' :: Maybe ExecutionStatus
statusEquals = Maybe ExecutionStatus
a} :: ListMonitoringExecutions)
listMonitoringExecutions_monitoringTypeEquals :: Lens.Lens' ListMonitoringExecutions (Prelude.Maybe MonitoringType)
listMonitoringExecutions_monitoringTypeEquals :: (Maybe MonitoringType -> f (Maybe MonitoringType))
-> ListMonitoringExecutions -> f ListMonitoringExecutions
listMonitoringExecutions_monitoringTypeEquals = (ListMonitoringExecutions -> Maybe MonitoringType)
-> (ListMonitoringExecutions
-> Maybe MonitoringType -> ListMonitoringExecutions)
-> Lens
ListMonitoringExecutions
ListMonitoringExecutions
(Maybe MonitoringType)
(Maybe MonitoringType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringExecutions' {Maybe MonitoringType
monitoringTypeEquals :: Maybe MonitoringType
$sel:monitoringTypeEquals:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe MonitoringType
monitoringTypeEquals} -> Maybe MonitoringType
monitoringTypeEquals) (\s :: ListMonitoringExecutions
s@ListMonitoringExecutions' {} Maybe MonitoringType
a -> ListMonitoringExecutions
s {$sel:monitoringTypeEquals:ListMonitoringExecutions' :: Maybe MonitoringType
monitoringTypeEquals = Maybe MonitoringType
a} :: ListMonitoringExecutions)
listMonitoringExecutions_monitoringScheduleName :: Lens.Lens' ListMonitoringExecutions (Prelude.Maybe Prelude.Text)
listMonitoringExecutions_monitoringScheduleName :: (Maybe Text -> f (Maybe Text))
-> ListMonitoringExecutions -> f ListMonitoringExecutions
listMonitoringExecutions_monitoringScheduleName = (ListMonitoringExecutions -> Maybe Text)
-> (ListMonitoringExecutions
-> Maybe Text -> ListMonitoringExecutions)
-> Lens
ListMonitoringExecutions
ListMonitoringExecutions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringExecutions' {Maybe Text
monitoringScheduleName :: Maybe Text
$sel:monitoringScheduleName:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe Text
monitoringScheduleName} -> Maybe Text
monitoringScheduleName) (\s :: ListMonitoringExecutions
s@ListMonitoringExecutions' {} Maybe Text
a -> ListMonitoringExecutions
s {$sel:monitoringScheduleName:ListMonitoringExecutions' :: Maybe Text
monitoringScheduleName = Maybe Text
a} :: ListMonitoringExecutions)
listMonitoringExecutions_maxResults :: Lens.Lens' ListMonitoringExecutions (Prelude.Maybe Prelude.Natural)
listMonitoringExecutions_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListMonitoringExecutions -> f ListMonitoringExecutions
listMonitoringExecutions_maxResults = (ListMonitoringExecutions -> Maybe Natural)
-> (ListMonitoringExecutions
-> Maybe Natural -> ListMonitoringExecutions)
-> Lens
ListMonitoringExecutions
ListMonitoringExecutions
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringExecutions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListMonitoringExecutions
s@ListMonitoringExecutions' {} Maybe Natural
a -> ListMonitoringExecutions
s {$sel:maxResults:ListMonitoringExecutions' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListMonitoringExecutions)
listMonitoringExecutions_sortBy :: Lens.Lens' ListMonitoringExecutions (Prelude.Maybe MonitoringExecutionSortKey)
listMonitoringExecutions_sortBy :: (Maybe MonitoringExecutionSortKey
-> f (Maybe MonitoringExecutionSortKey))
-> ListMonitoringExecutions -> f ListMonitoringExecutions
listMonitoringExecutions_sortBy = (ListMonitoringExecutions -> Maybe MonitoringExecutionSortKey)
-> (ListMonitoringExecutions
-> Maybe MonitoringExecutionSortKey -> ListMonitoringExecutions)
-> Lens
ListMonitoringExecutions
ListMonitoringExecutions
(Maybe MonitoringExecutionSortKey)
(Maybe MonitoringExecutionSortKey)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringExecutions' {Maybe MonitoringExecutionSortKey
sortBy :: Maybe MonitoringExecutionSortKey
$sel:sortBy:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe MonitoringExecutionSortKey
sortBy} -> Maybe MonitoringExecutionSortKey
sortBy) (\s :: ListMonitoringExecutions
s@ListMonitoringExecutions' {} Maybe MonitoringExecutionSortKey
a -> ListMonitoringExecutions
s {$sel:sortBy:ListMonitoringExecutions' :: Maybe MonitoringExecutionSortKey
sortBy = Maybe MonitoringExecutionSortKey
a} :: ListMonitoringExecutions)
listMonitoringExecutions_monitoringJobDefinitionName :: Lens.Lens' ListMonitoringExecutions (Prelude.Maybe Prelude.Text)
listMonitoringExecutions_monitoringJobDefinitionName :: (Maybe Text -> f (Maybe Text))
-> ListMonitoringExecutions -> f ListMonitoringExecutions
listMonitoringExecutions_monitoringJobDefinitionName = (ListMonitoringExecutions -> Maybe Text)
-> (ListMonitoringExecutions
-> Maybe Text -> ListMonitoringExecutions)
-> Lens
ListMonitoringExecutions
ListMonitoringExecutions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringExecutions' {Maybe Text
monitoringJobDefinitionName :: Maybe Text
$sel:monitoringJobDefinitionName:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe Text
monitoringJobDefinitionName} -> Maybe Text
monitoringJobDefinitionName) (\s :: ListMonitoringExecutions
s@ListMonitoringExecutions' {} Maybe Text
a -> ListMonitoringExecutions
s {$sel:monitoringJobDefinitionName:ListMonitoringExecutions' :: Maybe Text
monitoringJobDefinitionName = Maybe Text
a} :: ListMonitoringExecutions)
instance Core.AWSPager ListMonitoringExecutions where
page :: ListMonitoringExecutions
-> AWSResponse ListMonitoringExecutions
-> Maybe ListMonitoringExecutions
page ListMonitoringExecutions
rq AWSResponse ListMonitoringExecutions
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListMonitoringExecutions
ListMonitoringExecutionsResponse
rs
ListMonitoringExecutionsResponse
-> Getting (First Text) ListMonitoringExecutionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListMonitoringExecutionsResponse
-> Const (First Text) ListMonitoringExecutionsResponse
Lens' ListMonitoringExecutionsResponse (Maybe Text)
listMonitoringExecutionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListMonitoringExecutionsResponse
-> Const (First Text) ListMonitoringExecutionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListMonitoringExecutionsResponse 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 ListMonitoringExecutions
forall a. Maybe a
Prelude.Nothing
| [MonitoringExecutionSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListMonitoringExecutions
ListMonitoringExecutionsResponse
rs
ListMonitoringExecutionsResponse
-> Getting
[MonitoringExecutionSummary]
ListMonitoringExecutionsResponse
[MonitoringExecutionSummary]
-> [MonitoringExecutionSummary]
forall s a. s -> Getting a s a -> a
Lens.^. Getting
[MonitoringExecutionSummary]
ListMonitoringExecutionsResponse
[MonitoringExecutionSummary]
Lens' ListMonitoringExecutionsResponse [MonitoringExecutionSummary]
listMonitoringExecutionsResponse_monitoringExecutionSummaries
) =
Maybe ListMonitoringExecutions
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListMonitoringExecutions -> Maybe ListMonitoringExecutions
forall a. a -> Maybe a
Prelude.Just (ListMonitoringExecutions -> Maybe ListMonitoringExecutions)
-> ListMonitoringExecutions -> Maybe ListMonitoringExecutions
forall a b. (a -> b) -> a -> b
Prelude.$
ListMonitoringExecutions
rq
ListMonitoringExecutions
-> (ListMonitoringExecutions -> ListMonitoringExecutions)
-> ListMonitoringExecutions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListMonitoringExecutions -> Identity ListMonitoringExecutions
Lens
ListMonitoringExecutions
ListMonitoringExecutions
(Maybe Text)
(Maybe Text)
listMonitoringExecutions_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListMonitoringExecutions -> Identity ListMonitoringExecutions)
-> Maybe Text
-> ListMonitoringExecutions
-> ListMonitoringExecutions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListMonitoringExecutions
ListMonitoringExecutionsResponse
rs
ListMonitoringExecutionsResponse
-> Getting (First Text) ListMonitoringExecutionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListMonitoringExecutionsResponse
-> Const (First Text) ListMonitoringExecutionsResponse
Lens' ListMonitoringExecutionsResponse (Maybe Text)
listMonitoringExecutionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListMonitoringExecutionsResponse
-> Const (First Text) ListMonitoringExecutionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListMonitoringExecutionsResponse 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 ListMonitoringExecutions where
type
AWSResponse ListMonitoringExecutions =
ListMonitoringExecutionsResponse
request :: ListMonitoringExecutions -> Request ListMonitoringExecutions
request = Service
-> ListMonitoringExecutions -> Request ListMonitoringExecutions
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListMonitoringExecutions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListMonitoringExecutions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListMonitoringExecutions))
-> Logger
-> Service
-> Proxy ListMonitoringExecutions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListMonitoringExecutions)))
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
-> [MonitoringExecutionSummary]
-> ListMonitoringExecutionsResponse
ListMonitoringExecutionsResponse'
(Maybe Text
-> Int
-> [MonitoringExecutionSummary]
-> ListMonitoringExecutionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Int
-> [MonitoringExecutionSummary]
-> ListMonitoringExecutionsResponse)
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
-> [MonitoringExecutionSummary]
-> ListMonitoringExecutionsResponse)
-> Either String Int
-> Either
String
([MonitoringExecutionSummary] -> ListMonitoringExecutionsResponse)
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
([MonitoringExecutionSummary] -> ListMonitoringExecutionsResponse)
-> Either String [MonitoringExecutionSummary]
-> Either String ListMonitoringExecutionsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe [MonitoringExecutionSummary])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"MonitoringExecutionSummaries"
Either String (Maybe [MonitoringExecutionSummary])
-> [MonitoringExecutionSummary]
-> Either String [MonitoringExecutionSummary]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [MonitoringExecutionSummary]
forall a. Monoid a => a
Prelude.mempty
)
)
instance Prelude.Hashable ListMonitoringExecutions
instance Prelude.NFData ListMonitoringExecutions
instance Core.ToHeaders ListMonitoringExecutions where
toHeaders :: ListMonitoringExecutions -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListMonitoringExecutions -> 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.ListMonitoringExecutions" ::
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 ListMonitoringExecutions where
toJSON :: ListMonitoringExecutions -> Value
toJSON ListMonitoringExecutions' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe ExecutionStatus
Maybe MonitoringExecutionSortKey
Maybe MonitoringType
Maybe SortOrder
monitoringJobDefinitionName :: Maybe Text
sortBy :: Maybe MonitoringExecutionSortKey
maxResults :: Maybe Natural
monitoringScheduleName :: Maybe Text
monitoringTypeEquals :: Maybe MonitoringType
statusEquals :: Maybe ExecutionStatus
scheduledTimeBefore :: Maybe POSIX
creationTimeBefore :: Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
sortOrder :: Maybe SortOrder
nextToken :: Maybe Text
creationTimeAfter :: Maybe POSIX
scheduledTimeAfter :: Maybe POSIX
lastModifiedTimeBefore :: Maybe POSIX
endpointName :: Maybe Text
$sel:monitoringJobDefinitionName:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe Text
$sel:sortBy:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe MonitoringExecutionSortKey
$sel:maxResults:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe Natural
$sel:monitoringScheduleName:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe Text
$sel:monitoringTypeEquals:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe MonitoringType
$sel:statusEquals:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe ExecutionStatus
$sel:scheduledTimeBefore:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe POSIX
$sel:creationTimeBefore:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe POSIX
$sel:lastModifiedTimeAfter:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe POSIX
$sel:sortOrder:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe SortOrder
$sel:nextToken:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe Text
$sel:creationTimeAfter:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe POSIX
$sel:scheduledTimeAfter:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe POSIX
$sel:lastModifiedTimeBefore:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe POSIX
$sel:endpointName:ListMonitoringExecutions' :: ListMonitoringExecutions -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (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
"LastModifiedTimeBefore" 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
lastModifiedTimeBefore,
(Text
"ScheduledTimeAfter" 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
scheduledTimeAfter,
(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
"LastModifiedTimeAfter" 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
lastModifiedTimeAfter,
(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
"ScheduledTimeBefore" 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
scheduledTimeBefore,
(Text
"StatusEquals" Text -> ExecutionStatus -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (ExecutionStatus -> Pair) -> Maybe ExecutionStatus -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ExecutionStatus
statusEquals,
(Text
"MonitoringTypeEquals" Text -> MonitoringType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(MonitoringType -> Pair) -> Maybe MonitoringType -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MonitoringType
monitoringTypeEquals,
(Text
"MonitoringScheduleName" 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
monitoringScheduleName,
(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 -> MonitoringExecutionSortKey -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (MonitoringExecutionSortKey -> Pair)
-> Maybe MonitoringExecutionSortKey -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MonitoringExecutionSortKey
sortBy,
(Text
"MonitoringJobDefinitionName" 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
monitoringJobDefinitionName
]
)
instance Core.ToPath ListMonitoringExecutions where
toPath :: ListMonitoringExecutions -> ByteString
toPath = ByteString -> ListMonitoringExecutions -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListMonitoringExecutions where
toQuery :: ListMonitoringExecutions -> QueryString
toQuery = QueryString -> ListMonitoringExecutions -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListMonitoringExecutionsResponse = ListMonitoringExecutionsResponse'
{
ListMonitoringExecutionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListMonitoringExecutionsResponse -> Int
httpStatus :: Prelude.Int,
ListMonitoringExecutionsResponse -> [MonitoringExecutionSummary]
monitoringExecutionSummaries :: [MonitoringExecutionSummary]
}
deriving (ListMonitoringExecutionsResponse
-> ListMonitoringExecutionsResponse -> Bool
(ListMonitoringExecutionsResponse
-> ListMonitoringExecutionsResponse -> Bool)
-> (ListMonitoringExecutionsResponse
-> ListMonitoringExecutionsResponse -> Bool)
-> Eq ListMonitoringExecutionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListMonitoringExecutionsResponse
-> ListMonitoringExecutionsResponse -> Bool
$c/= :: ListMonitoringExecutionsResponse
-> ListMonitoringExecutionsResponse -> Bool
== :: ListMonitoringExecutionsResponse
-> ListMonitoringExecutionsResponse -> Bool
$c== :: ListMonitoringExecutionsResponse
-> ListMonitoringExecutionsResponse -> Bool
Prelude.Eq, ReadPrec [ListMonitoringExecutionsResponse]
ReadPrec ListMonitoringExecutionsResponse
Int -> ReadS ListMonitoringExecutionsResponse
ReadS [ListMonitoringExecutionsResponse]
(Int -> ReadS ListMonitoringExecutionsResponse)
-> ReadS [ListMonitoringExecutionsResponse]
-> ReadPrec ListMonitoringExecutionsResponse
-> ReadPrec [ListMonitoringExecutionsResponse]
-> Read ListMonitoringExecutionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListMonitoringExecutionsResponse]
$creadListPrec :: ReadPrec [ListMonitoringExecutionsResponse]
readPrec :: ReadPrec ListMonitoringExecutionsResponse
$creadPrec :: ReadPrec ListMonitoringExecutionsResponse
readList :: ReadS [ListMonitoringExecutionsResponse]
$creadList :: ReadS [ListMonitoringExecutionsResponse]
readsPrec :: Int -> ReadS ListMonitoringExecutionsResponse
$creadsPrec :: Int -> ReadS ListMonitoringExecutionsResponse
Prelude.Read, Int -> ListMonitoringExecutionsResponse -> ShowS
[ListMonitoringExecutionsResponse] -> ShowS
ListMonitoringExecutionsResponse -> String
(Int -> ListMonitoringExecutionsResponse -> ShowS)
-> (ListMonitoringExecutionsResponse -> String)
-> ([ListMonitoringExecutionsResponse] -> ShowS)
-> Show ListMonitoringExecutionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListMonitoringExecutionsResponse] -> ShowS
$cshowList :: [ListMonitoringExecutionsResponse] -> ShowS
show :: ListMonitoringExecutionsResponse -> String
$cshow :: ListMonitoringExecutionsResponse -> String
showsPrec :: Int -> ListMonitoringExecutionsResponse -> ShowS
$cshowsPrec :: Int -> ListMonitoringExecutionsResponse -> ShowS
Prelude.Show, (forall x.
ListMonitoringExecutionsResponse
-> Rep ListMonitoringExecutionsResponse x)
-> (forall x.
Rep ListMonitoringExecutionsResponse x
-> ListMonitoringExecutionsResponse)
-> Generic ListMonitoringExecutionsResponse
forall x.
Rep ListMonitoringExecutionsResponse x
-> ListMonitoringExecutionsResponse
forall x.
ListMonitoringExecutionsResponse
-> Rep ListMonitoringExecutionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListMonitoringExecutionsResponse x
-> ListMonitoringExecutionsResponse
$cfrom :: forall x.
ListMonitoringExecutionsResponse
-> Rep ListMonitoringExecutionsResponse x
Prelude.Generic)
newListMonitoringExecutionsResponse ::
Prelude.Int ->
ListMonitoringExecutionsResponse
newListMonitoringExecutionsResponse :: Int -> ListMonitoringExecutionsResponse
newListMonitoringExecutionsResponse Int
pHttpStatus_ =
ListMonitoringExecutionsResponse' :: Maybe Text
-> Int
-> [MonitoringExecutionSummary]
-> ListMonitoringExecutionsResponse
ListMonitoringExecutionsResponse'
{ $sel:nextToken:ListMonitoringExecutionsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListMonitoringExecutionsResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:monitoringExecutionSummaries:ListMonitoringExecutionsResponse' :: [MonitoringExecutionSummary]
monitoringExecutionSummaries =
[MonitoringExecutionSummary]
forall a. Monoid a => a
Prelude.mempty
}
listMonitoringExecutionsResponse_nextToken :: Lens.Lens' ListMonitoringExecutionsResponse (Prelude.Maybe Prelude.Text)
listMonitoringExecutionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListMonitoringExecutionsResponse
-> f ListMonitoringExecutionsResponse
listMonitoringExecutionsResponse_nextToken = (ListMonitoringExecutionsResponse -> Maybe Text)
-> (ListMonitoringExecutionsResponse
-> Maybe Text -> ListMonitoringExecutionsResponse)
-> Lens' ListMonitoringExecutionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringExecutionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListMonitoringExecutionsResponse' :: ListMonitoringExecutionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListMonitoringExecutionsResponse
s@ListMonitoringExecutionsResponse' {} Maybe Text
a -> ListMonitoringExecutionsResponse
s {$sel:nextToken:ListMonitoringExecutionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListMonitoringExecutionsResponse)
listMonitoringExecutionsResponse_httpStatus :: Lens.Lens' ListMonitoringExecutionsResponse Prelude.Int
listMonitoringExecutionsResponse_httpStatus :: (Int -> f Int)
-> ListMonitoringExecutionsResponse
-> f ListMonitoringExecutionsResponse
listMonitoringExecutionsResponse_httpStatus = (ListMonitoringExecutionsResponse -> Int)
-> (ListMonitoringExecutionsResponse
-> Int -> ListMonitoringExecutionsResponse)
-> Lens
ListMonitoringExecutionsResponse
ListMonitoringExecutionsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringExecutionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListMonitoringExecutionsResponse' :: ListMonitoringExecutionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListMonitoringExecutionsResponse
s@ListMonitoringExecutionsResponse' {} Int
a -> ListMonitoringExecutionsResponse
s {$sel:httpStatus:ListMonitoringExecutionsResponse' :: Int
httpStatus = Int
a} :: ListMonitoringExecutionsResponse)
listMonitoringExecutionsResponse_monitoringExecutionSummaries :: Lens.Lens' ListMonitoringExecutionsResponse [MonitoringExecutionSummary]
listMonitoringExecutionsResponse_monitoringExecutionSummaries :: ([MonitoringExecutionSummary] -> f [MonitoringExecutionSummary])
-> ListMonitoringExecutionsResponse
-> f ListMonitoringExecutionsResponse
listMonitoringExecutionsResponse_monitoringExecutionSummaries = (ListMonitoringExecutionsResponse -> [MonitoringExecutionSummary])
-> (ListMonitoringExecutionsResponse
-> [MonitoringExecutionSummary]
-> ListMonitoringExecutionsResponse)
-> Lens'
ListMonitoringExecutionsResponse [MonitoringExecutionSummary]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMonitoringExecutionsResponse' {[MonitoringExecutionSummary]
monitoringExecutionSummaries :: [MonitoringExecutionSummary]
$sel:monitoringExecutionSummaries:ListMonitoringExecutionsResponse' :: ListMonitoringExecutionsResponse -> [MonitoringExecutionSummary]
monitoringExecutionSummaries} -> [MonitoringExecutionSummary]
monitoringExecutionSummaries) (\s :: ListMonitoringExecutionsResponse
s@ListMonitoringExecutionsResponse' {} [MonitoringExecutionSummary]
a -> ListMonitoringExecutionsResponse
s {$sel:monitoringExecutionSummaries:ListMonitoringExecutionsResponse' :: [MonitoringExecutionSummary]
monitoringExecutionSummaries = [MonitoringExecutionSummary]
a} :: ListMonitoringExecutionsResponse) (([MonitoringExecutionSummary] -> f [MonitoringExecutionSummary])
-> ListMonitoringExecutionsResponse
-> f ListMonitoringExecutionsResponse)
-> (([MonitoringExecutionSummary]
-> f [MonitoringExecutionSummary])
-> [MonitoringExecutionSummary] -> f [MonitoringExecutionSummary])
-> ([MonitoringExecutionSummary] -> f [MonitoringExecutionSummary])
-> ListMonitoringExecutionsResponse
-> f ListMonitoringExecutionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([MonitoringExecutionSummary] -> f [MonitoringExecutionSummary])
-> [MonitoringExecutionSummary] -> f [MonitoringExecutionSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Prelude.NFData
ListMonitoringExecutionsResponse