{-# 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.ListDataQualityJobDefinitions
(
ListDataQualityJobDefinitions (..),
newListDataQualityJobDefinitions,
listDataQualityJobDefinitions_nameContains,
listDataQualityJobDefinitions_endpointName,
listDataQualityJobDefinitions_creationTimeAfter,
listDataQualityJobDefinitions_nextToken,
listDataQualityJobDefinitions_sortOrder,
listDataQualityJobDefinitions_creationTimeBefore,
listDataQualityJobDefinitions_maxResults,
listDataQualityJobDefinitions_sortBy,
ListDataQualityJobDefinitionsResponse (..),
newListDataQualityJobDefinitionsResponse,
listDataQualityJobDefinitionsResponse_nextToken,
listDataQualityJobDefinitionsResponse_httpStatus,
listDataQualityJobDefinitionsResponse_jobDefinitionSummaries,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SageMaker.Types
data ListDataQualityJobDefinitions = ListDataQualityJobDefinitions'
{
ListDataQualityJobDefinitions -> Maybe Text
nameContains :: Prelude.Maybe Prelude.Text,
ListDataQualityJobDefinitions -> Maybe Text
endpointName :: Prelude.Maybe Prelude.Text,
ListDataQualityJobDefinitions -> Maybe POSIX
creationTimeAfter :: Prelude.Maybe Core.POSIX,
ListDataQualityJobDefinitions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListDataQualityJobDefinitions -> Maybe SortOrder
sortOrder :: Prelude.Maybe SortOrder,
ListDataQualityJobDefinitions -> Maybe POSIX
creationTimeBefore :: Prelude.Maybe Core.POSIX,
ListDataQualityJobDefinitions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListDataQualityJobDefinitions
-> Maybe MonitoringJobDefinitionSortKey
sortBy :: Prelude.Maybe MonitoringJobDefinitionSortKey
}
deriving (ListDataQualityJobDefinitions
-> ListDataQualityJobDefinitions -> Bool
(ListDataQualityJobDefinitions
-> ListDataQualityJobDefinitions -> Bool)
-> (ListDataQualityJobDefinitions
-> ListDataQualityJobDefinitions -> Bool)
-> Eq ListDataQualityJobDefinitions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDataQualityJobDefinitions
-> ListDataQualityJobDefinitions -> Bool
$c/= :: ListDataQualityJobDefinitions
-> ListDataQualityJobDefinitions -> Bool
== :: ListDataQualityJobDefinitions
-> ListDataQualityJobDefinitions -> Bool
$c== :: ListDataQualityJobDefinitions
-> ListDataQualityJobDefinitions -> Bool
Prelude.Eq, ReadPrec [ListDataQualityJobDefinitions]
ReadPrec ListDataQualityJobDefinitions
Int -> ReadS ListDataQualityJobDefinitions
ReadS [ListDataQualityJobDefinitions]
(Int -> ReadS ListDataQualityJobDefinitions)
-> ReadS [ListDataQualityJobDefinitions]
-> ReadPrec ListDataQualityJobDefinitions
-> ReadPrec [ListDataQualityJobDefinitions]
-> Read ListDataQualityJobDefinitions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDataQualityJobDefinitions]
$creadListPrec :: ReadPrec [ListDataQualityJobDefinitions]
readPrec :: ReadPrec ListDataQualityJobDefinitions
$creadPrec :: ReadPrec ListDataQualityJobDefinitions
readList :: ReadS [ListDataQualityJobDefinitions]
$creadList :: ReadS [ListDataQualityJobDefinitions]
readsPrec :: Int -> ReadS ListDataQualityJobDefinitions
$creadsPrec :: Int -> ReadS ListDataQualityJobDefinitions
Prelude.Read, Int -> ListDataQualityJobDefinitions -> ShowS
[ListDataQualityJobDefinitions] -> ShowS
ListDataQualityJobDefinitions -> String
(Int -> ListDataQualityJobDefinitions -> ShowS)
-> (ListDataQualityJobDefinitions -> String)
-> ([ListDataQualityJobDefinitions] -> ShowS)
-> Show ListDataQualityJobDefinitions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDataQualityJobDefinitions] -> ShowS
$cshowList :: [ListDataQualityJobDefinitions] -> ShowS
show :: ListDataQualityJobDefinitions -> String
$cshow :: ListDataQualityJobDefinitions -> String
showsPrec :: Int -> ListDataQualityJobDefinitions -> ShowS
$cshowsPrec :: Int -> ListDataQualityJobDefinitions -> ShowS
Prelude.Show, (forall x.
ListDataQualityJobDefinitions
-> Rep ListDataQualityJobDefinitions x)
-> (forall x.
Rep ListDataQualityJobDefinitions x
-> ListDataQualityJobDefinitions)
-> Generic ListDataQualityJobDefinitions
forall x.
Rep ListDataQualityJobDefinitions x
-> ListDataQualityJobDefinitions
forall x.
ListDataQualityJobDefinitions
-> Rep ListDataQualityJobDefinitions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDataQualityJobDefinitions x
-> ListDataQualityJobDefinitions
$cfrom :: forall x.
ListDataQualityJobDefinitions
-> Rep ListDataQualityJobDefinitions x
Prelude.Generic)
newListDataQualityJobDefinitions ::
ListDataQualityJobDefinitions
newListDataQualityJobDefinitions :: ListDataQualityJobDefinitions
newListDataQualityJobDefinitions =
ListDataQualityJobDefinitions' :: Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe SortOrder
-> Maybe POSIX
-> Maybe Natural
-> Maybe MonitoringJobDefinitionSortKey
-> ListDataQualityJobDefinitions
ListDataQualityJobDefinitions'
{ $sel:nameContains:ListDataQualityJobDefinitions' :: Maybe Text
nameContains =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:endpointName:ListDataQualityJobDefinitions' :: Maybe Text
endpointName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creationTimeAfter:ListDataQualityJobDefinitions' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListDataQualityJobDefinitions' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sortOrder:ListDataQualityJobDefinitions' :: Maybe SortOrder
sortOrder = Maybe SortOrder
forall a. Maybe a
Prelude.Nothing,
$sel:creationTimeBefore:ListDataQualityJobDefinitions' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListDataQualityJobDefinitions' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:sortBy:ListDataQualityJobDefinitions' :: Maybe MonitoringJobDefinitionSortKey
sortBy = Maybe MonitoringJobDefinitionSortKey
forall a. Maybe a
Prelude.Nothing
}
listDataQualityJobDefinitions_nameContains :: Lens.Lens' ListDataQualityJobDefinitions (Prelude.Maybe Prelude.Text)
listDataQualityJobDefinitions_nameContains :: (Maybe Text -> f (Maybe Text))
-> ListDataQualityJobDefinitions -> f ListDataQualityJobDefinitions
listDataQualityJobDefinitions_nameContains = (ListDataQualityJobDefinitions -> Maybe Text)
-> (ListDataQualityJobDefinitions
-> Maybe Text -> ListDataQualityJobDefinitions)
-> Lens
ListDataQualityJobDefinitions
ListDataQualityJobDefinitions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataQualityJobDefinitions' {Maybe Text
nameContains :: Maybe Text
$sel:nameContains:ListDataQualityJobDefinitions' :: ListDataQualityJobDefinitions -> Maybe Text
nameContains} -> Maybe Text
nameContains) (\s :: ListDataQualityJobDefinitions
s@ListDataQualityJobDefinitions' {} Maybe Text
a -> ListDataQualityJobDefinitions
s {$sel:nameContains:ListDataQualityJobDefinitions' :: Maybe Text
nameContains = Maybe Text
a} :: ListDataQualityJobDefinitions)
listDataQualityJobDefinitions_endpointName :: Lens.Lens' ListDataQualityJobDefinitions (Prelude.Maybe Prelude.Text)
listDataQualityJobDefinitions_endpointName :: (Maybe Text -> f (Maybe Text))
-> ListDataQualityJobDefinitions -> f ListDataQualityJobDefinitions
listDataQualityJobDefinitions_endpointName = (ListDataQualityJobDefinitions -> Maybe Text)
-> (ListDataQualityJobDefinitions
-> Maybe Text -> ListDataQualityJobDefinitions)
-> Lens
ListDataQualityJobDefinitions
ListDataQualityJobDefinitions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataQualityJobDefinitions' {Maybe Text
endpointName :: Maybe Text
$sel:endpointName:ListDataQualityJobDefinitions' :: ListDataQualityJobDefinitions -> Maybe Text
endpointName} -> Maybe Text
endpointName) (\s :: ListDataQualityJobDefinitions
s@ListDataQualityJobDefinitions' {} Maybe Text
a -> ListDataQualityJobDefinitions
s {$sel:endpointName:ListDataQualityJobDefinitions' :: Maybe Text
endpointName = Maybe Text
a} :: ListDataQualityJobDefinitions)
listDataQualityJobDefinitions_creationTimeAfter :: Lens.Lens' ListDataQualityJobDefinitions (Prelude.Maybe Prelude.UTCTime)
listDataQualityJobDefinitions_creationTimeAfter :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListDataQualityJobDefinitions -> f ListDataQualityJobDefinitions
listDataQualityJobDefinitions_creationTimeAfter = (ListDataQualityJobDefinitions -> Maybe POSIX)
-> (ListDataQualityJobDefinitions
-> Maybe POSIX -> ListDataQualityJobDefinitions)
-> Lens
ListDataQualityJobDefinitions
ListDataQualityJobDefinitions
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataQualityJobDefinitions' {Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:creationTimeAfter:ListDataQualityJobDefinitions' :: ListDataQualityJobDefinitions -> Maybe POSIX
creationTimeAfter} -> Maybe POSIX
creationTimeAfter) (\s :: ListDataQualityJobDefinitions
s@ListDataQualityJobDefinitions' {} Maybe POSIX
a -> ListDataQualityJobDefinitions
s {$sel:creationTimeAfter:ListDataQualityJobDefinitions' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
a} :: ListDataQualityJobDefinitions) ((Maybe POSIX -> f (Maybe POSIX))
-> ListDataQualityJobDefinitions
-> f ListDataQualityJobDefinitions)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListDataQualityJobDefinitions
-> f ListDataQualityJobDefinitions
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
listDataQualityJobDefinitions_nextToken :: Lens.Lens' ListDataQualityJobDefinitions (Prelude.Maybe Prelude.Text)
listDataQualityJobDefinitions_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDataQualityJobDefinitions -> f ListDataQualityJobDefinitions
listDataQualityJobDefinitions_nextToken = (ListDataQualityJobDefinitions -> Maybe Text)
-> (ListDataQualityJobDefinitions
-> Maybe Text -> ListDataQualityJobDefinitions)
-> Lens
ListDataQualityJobDefinitions
ListDataQualityJobDefinitions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataQualityJobDefinitions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDataQualityJobDefinitions' :: ListDataQualityJobDefinitions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDataQualityJobDefinitions
s@ListDataQualityJobDefinitions' {} Maybe Text
a -> ListDataQualityJobDefinitions
s {$sel:nextToken:ListDataQualityJobDefinitions' :: Maybe Text
nextToken = Maybe Text
a} :: ListDataQualityJobDefinitions)
listDataQualityJobDefinitions_sortOrder :: Lens.Lens' ListDataQualityJobDefinitions (Prelude.Maybe SortOrder)
listDataQualityJobDefinitions_sortOrder :: (Maybe SortOrder -> f (Maybe SortOrder))
-> ListDataQualityJobDefinitions -> f ListDataQualityJobDefinitions
listDataQualityJobDefinitions_sortOrder = (ListDataQualityJobDefinitions -> Maybe SortOrder)
-> (ListDataQualityJobDefinitions
-> Maybe SortOrder -> ListDataQualityJobDefinitions)
-> Lens
ListDataQualityJobDefinitions
ListDataQualityJobDefinitions
(Maybe SortOrder)
(Maybe SortOrder)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataQualityJobDefinitions' {Maybe SortOrder
sortOrder :: Maybe SortOrder
$sel:sortOrder:ListDataQualityJobDefinitions' :: ListDataQualityJobDefinitions -> Maybe SortOrder
sortOrder} -> Maybe SortOrder
sortOrder) (\s :: ListDataQualityJobDefinitions
s@ListDataQualityJobDefinitions' {} Maybe SortOrder
a -> ListDataQualityJobDefinitions
s {$sel:sortOrder:ListDataQualityJobDefinitions' :: Maybe SortOrder
sortOrder = Maybe SortOrder
a} :: ListDataQualityJobDefinitions)
listDataQualityJobDefinitions_creationTimeBefore :: Lens.Lens' ListDataQualityJobDefinitions (Prelude.Maybe Prelude.UTCTime)
listDataQualityJobDefinitions_creationTimeBefore :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListDataQualityJobDefinitions -> f ListDataQualityJobDefinitions
listDataQualityJobDefinitions_creationTimeBefore = (ListDataQualityJobDefinitions -> Maybe POSIX)
-> (ListDataQualityJobDefinitions
-> Maybe POSIX -> ListDataQualityJobDefinitions)
-> Lens
ListDataQualityJobDefinitions
ListDataQualityJobDefinitions
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataQualityJobDefinitions' {Maybe POSIX
creationTimeBefore :: Maybe POSIX
$sel:creationTimeBefore:ListDataQualityJobDefinitions' :: ListDataQualityJobDefinitions -> Maybe POSIX
creationTimeBefore} -> Maybe POSIX
creationTimeBefore) (\s :: ListDataQualityJobDefinitions
s@ListDataQualityJobDefinitions' {} Maybe POSIX
a -> ListDataQualityJobDefinitions
s {$sel:creationTimeBefore:ListDataQualityJobDefinitions' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
a} :: ListDataQualityJobDefinitions) ((Maybe POSIX -> f (Maybe POSIX))
-> ListDataQualityJobDefinitions
-> f ListDataQualityJobDefinitions)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListDataQualityJobDefinitions
-> f ListDataQualityJobDefinitions
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
listDataQualityJobDefinitions_maxResults :: Lens.Lens' ListDataQualityJobDefinitions (Prelude.Maybe Prelude.Natural)
listDataQualityJobDefinitions_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListDataQualityJobDefinitions -> f ListDataQualityJobDefinitions
listDataQualityJobDefinitions_maxResults = (ListDataQualityJobDefinitions -> Maybe Natural)
-> (ListDataQualityJobDefinitions
-> Maybe Natural -> ListDataQualityJobDefinitions)
-> Lens
ListDataQualityJobDefinitions
ListDataQualityJobDefinitions
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataQualityJobDefinitions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListDataQualityJobDefinitions' :: ListDataQualityJobDefinitions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListDataQualityJobDefinitions
s@ListDataQualityJobDefinitions' {} Maybe Natural
a -> ListDataQualityJobDefinitions
s {$sel:maxResults:ListDataQualityJobDefinitions' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListDataQualityJobDefinitions)
listDataQualityJobDefinitions_sortBy :: Lens.Lens' ListDataQualityJobDefinitions (Prelude.Maybe MonitoringJobDefinitionSortKey)
listDataQualityJobDefinitions_sortBy :: (Maybe MonitoringJobDefinitionSortKey
-> f (Maybe MonitoringJobDefinitionSortKey))
-> ListDataQualityJobDefinitions -> f ListDataQualityJobDefinitions
listDataQualityJobDefinitions_sortBy = (ListDataQualityJobDefinitions
-> Maybe MonitoringJobDefinitionSortKey)
-> (ListDataQualityJobDefinitions
-> Maybe MonitoringJobDefinitionSortKey
-> ListDataQualityJobDefinitions)
-> Lens
ListDataQualityJobDefinitions
ListDataQualityJobDefinitions
(Maybe MonitoringJobDefinitionSortKey)
(Maybe MonitoringJobDefinitionSortKey)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataQualityJobDefinitions' {Maybe MonitoringJobDefinitionSortKey
sortBy :: Maybe MonitoringJobDefinitionSortKey
$sel:sortBy:ListDataQualityJobDefinitions' :: ListDataQualityJobDefinitions
-> Maybe MonitoringJobDefinitionSortKey
sortBy} -> Maybe MonitoringJobDefinitionSortKey
sortBy) (\s :: ListDataQualityJobDefinitions
s@ListDataQualityJobDefinitions' {} Maybe MonitoringJobDefinitionSortKey
a -> ListDataQualityJobDefinitions
s {$sel:sortBy:ListDataQualityJobDefinitions' :: Maybe MonitoringJobDefinitionSortKey
sortBy = Maybe MonitoringJobDefinitionSortKey
a} :: ListDataQualityJobDefinitions)
instance Core.AWSPager ListDataQualityJobDefinitions where
page :: ListDataQualityJobDefinitions
-> AWSResponse ListDataQualityJobDefinitions
-> Maybe ListDataQualityJobDefinitions
page ListDataQualityJobDefinitions
rq AWSResponse ListDataQualityJobDefinitions
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListDataQualityJobDefinitions
ListDataQualityJobDefinitionsResponse
rs
ListDataQualityJobDefinitionsResponse
-> Getting (First Text) ListDataQualityJobDefinitionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListDataQualityJobDefinitionsResponse
-> Const (First Text) ListDataQualityJobDefinitionsResponse
Lens' ListDataQualityJobDefinitionsResponse (Maybe Text)
listDataQualityJobDefinitionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListDataQualityJobDefinitionsResponse
-> Const (First Text) ListDataQualityJobDefinitionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListDataQualityJobDefinitionsResponse 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 ListDataQualityJobDefinitions
forall a. Maybe a
Prelude.Nothing
| [MonitoringJobDefinitionSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListDataQualityJobDefinitions
ListDataQualityJobDefinitionsResponse
rs
ListDataQualityJobDefinitionsResponse
-> Getting
[MonitoringJobDefinitionSummary]
ListDataQualityJobDefinitionsResponse
[MonitoringJobDefinitionSummary]
-> [MonitoringJobDefinitionSummary]
forall s a. s -> Getting a s a -> a
Lens.^. Getting
[MonitoringJobDefinitionSummary]
ListDataQualityJobDefinitionsResponse
[MonitoringJobDefinitionSummary]
Lens'
ListDataQualityJobDefinitionsResponse
[MonitoringJobDefinitionSummary]
listDataQualityJobDefinitionsResponse_jobDefinitionSummaries
) =
Maybe ListDataQualityJobDefinitions
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListDataQualityJobDefinitions
-> Maybe ListDataQualityJobDefinitions
forall a. a -> Maybe a
Prelude.Just (ListDataQualityJobDefinitions
-> Maybe ListDataQualityJobDefinitions)
-> ListDataQualityJobDefinitions
-> Maybe ListDataQualityJobDefinitions
forall a b. (a -> b) -> a -> b
Prelude.$
ListDataQualityJobDefinitions
rq
ListDataQualityJobDefinitions
-> (ListDataQualityJobDefinitions -> ListDataQualityJobDefinitions)
-> ListDataQualityJobDefinitions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListDataQualityJobDefinitions
-> Identity ListDataQualityJobDefinitions
Lens
ListDataQualityJobDefinitions
ListDataQualityJobDefinitions
(Maybe Text)
(Maybe Text)
listDataQualityJobDefinitions_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListDataQualityJobDefinitions
-> Identity ListDataQualityJobDefinitions)
-> Maybe Text
-> ListDataQualityJobDefinitions
-> ListDataQualityJobDefinitions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListDataQualityJobDefinitions
ListDataQualityJobDefinitionsResponse
rs
ListDataQualityJobDefinitionsResponse
-> Getting (First Text) ListDataQualityJobDefinitionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListDataQualityJobDefinitionsResponse
-> Const (First Text) ListDataQualityJobDefinitionsResponse
Lens' ListDataQualityJobDefinitionsResponse (Maybe Text)
listDataQualityJobDefinitionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListDataQualityJobDefinitionsResponse
-> Const (First Text) ListDataQualityJobDefinitionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListDataQualityJobDefinitionsResponse 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
ListDataQualityJobDefinitions
where
type
AWSResponse ListDataQualityJobDefinitions =
ListDataQualityJobDefinitionsResponse
request :: ListDataQualityJobDefinitions
-> Request ListDataQualityJobDefinitions
request = Service
-> ListDataQualityJobDefinitions
-> Request ListDataQualityJobDefinitions
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListDataQualityJobDefinitions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListDataQualityJobDefinitions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListDataQualityJobDefinitions))
-> Logger
-> Service
-> Proxy ListDataQualityJobDefinitions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListDataQualityJobDefinitions)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Int
-> [MonitoringJobDefinitionSummary]
-> ListDataQualityJobDefinitionsResponse
ListDataQualityJobDefinitionsResponse'
(Maybe Text
-> Int
-> [MonitoringJobDefinitionSummary]
-> ListDataQualityJobDefinitionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Int
-> [MonitoringJobDefinitionSummary]
-> ListDataQualityJobDefinitionsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either
String
(Int
-> [MonitoringJobDefinitionSummary]
-> ListDataQualityJobDefinitionsResponse)
-> Either String Int
-> Either
String
([MonitoringJobDefinitionSummary]
-> ListDataQualityJobDefinitionsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
Either
String
([MonitoringJobDefinitionSummary]
-> ListDataQualityJobDefinitionsResponse)
-> Either String [MonitoringJobDefinitionSummary]
-> Either String ListDataQualityJobDefinitionsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe [MonitoringJobDefinitionSummary])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"JobDefinitionSummaries"
Either String (Maybe [MonitoringJobDefinitionSummary])
-> [MonitoringJobDefinitionSummary]
-> Either String [MonitoringJobDefinitionSummary]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [MonitoringJobDefinitionSummary]
forall a. Monoid a => a
Prelude.mempty
)
)
instance
Prelude.Hashable
ListDataQualityJobDefinitions
instance Prelude.NFData ListDataQualityJobDefinitions
instance Core.ToHeaders ListDataQualityJobDefinitions where
toHeaders :: ListDataQualityJobDefinitions -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListDataQualityJobDefinitions -> 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.ListDataQualityJobDefinitions" ::
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 ListDataQualityJobDefinitions where
toJSON :: ListDataQualityJobDefinitions -> Value
toJSON ListDataQualityJobDefinitions' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe MonitoringJobDefinitionSortKey
Maybe SortOrder
sortBy :: Maybe MonitoringJobDefinitionSortKey
maxResults :: Maybe Natural
creationTimeBefore :: Maybe POSIX
sortOrder :: Maybe SortOrder
nextToken :: Maybe Text
creationTimeAfter :: Maybe POSIX
endpointName :: Maybe Text
nameContains :: Maybe Text
$sel:sortBy:ListDataQualityJobDefinitions' :: ListDataQualityJobDefinitions
-> Maybe MonitoringJobDefinitionSortKey
$sel:maxResults:ListDataQualityJobDefinitions' :: ListDataQualityJobDefinitions -> Maybe Natural
$sel:creationTimeBefore:ListDataQualityJobDefinitions' :: ListDataQualityJobDefinitions -> Maybe POSIX
$sel:sortOrder:ListDataQualityJobDefinitions' :: ListDataQualityJobDefinitions -> Maybe SortOrder
$sel:nextToken:ListDataQualityJobDefinitions' :: ListDataQualityJobDefinitions -> Maybe Text
$sel:creationTimeAfter:ListDataQualityJobDefinitions' :: ListDataQualityJobDefinitions -> Maybe POSIX
$sel:endpointName:ListDataQualityJobDefinitions' :: ListDataQualityJobDefinitions -> Maybe Text
$sel:nameContains:ListDataQualityJobDefinitions' :: ListDataQualityJobDefinitions -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NameContains" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nameContains,
(Text
"EndpointName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
endpointName,
(Text
"CreationTimeAfter" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
creationTimeAfter,
(Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Text
"SortOrder" Text -> SortOrder -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (SortOrder -> Pair) -> Maybe SortOrder -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SortOrder
sortOrder,
(Text
"CreationTimeBefore" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
creationTimeBefore,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
(Text
"SortBy" Text -> MonitoringJobDefinitionSortKey -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (MonitoringJobDefinitionSortKey -> Pair)
-> Maybe MonitoringJobDefinitionSortKey -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MonitoringJobDefinitionSortKey
sortBy
]
)
instance Core.ToPath ListDataQualityJobDefinitions where
toPath :: ListDataQualityJobDefinitions -> ByteString
toPath = ByteString -> ListDataQualityJobDefinitions -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListDataQualityJobDefinitions where
toQuery :: ListDataQualityJobDefinitions -> QueryString
toQuery = QueryString -> ListDataQualityJobDefinitions -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListDataQualityJobDefinitionsResponse = ListDataQualityJobDefinitionsResponse'
{
ListDataQualityJobDefinitionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListDataQualityJobDefinitionsResponse -> Int
httpStatus :: Prelude.Int,
ListDataQualityJobDefinitionsResponse
-> [MonitoringJobDefinitionSummary]
jobDefinitionSummaries :: [MonitoringJobDefinitionSummary]
}
deriving (ListDataQualityJobDefinitionsResponse
-> ListDataQualityJobDefinitionsResponse -> Bool
(ListDataQualityJobDefinitionsResponse
-> ListDataQualityJobDefinitionsResponse -> Bool)
-> (ListDataQualityJobDefinitionsResponse
-> ListDataQualityJobDefinitionsResponse -> Bool)
-> Eq ListDataQualityJobDefinitionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDataQualityJobDefinitionsResponse
-> ListDataQualityJobDefinitionsResponse -> Bool
$c/= :: ListDataQualityJobDefinitionsResponse
-> ListDataQualityJobDefinitionsResponse -> Bool
== :: ListDataQualityJobDefinitionsResponse
-> ListDataQualityJobDefinitionsResponse -> Bool
$c== :: ListDataQualityJobDefinitionsResponse
-> ListDataQualityJobDefinitionsResponse -> Bool
Prelude.Eq, ReadPrec [ListDataQualityJobDefinitionsResponse]
ReadPrec ListDataQualityJobDefinitionsResponse
Int -> ReadS ListDataQualityJobDefinitionsResponse
ReadS [ListDataQualityJobDefinitionsResponse]
(Int -> ReadS ListDataQualityJobDefinitionsResponse)
-> ReadS [ListDataQualityJobDefinitionsResponse]
-> ReadPrec ListDataQualityJobDefinitionsResponse
-> ReadPrec [ListDataQualityJobDefinitionsResponse]
-> Read ListDataQualityJobDefinitionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDataQualityJobDefinitionsResponse]
$creadListPrec :: ReadPrec [ListDataQualityJobDefinitionsResponse]
readPrec :: ReadPrec ListDataQualityJobDefinitionsResponse
$creadPrec :: ReadPrec ListDataQualityJobDefinitionsResponse
readList :: ReadS [ListDataQualityJobDefinitionsResponse]
$creadList :: ReadS [ListDataQualityJobDefinitionsResponse]
readsPrec :: Int -> ReadS ListDataQualityJobDefinitionsResponse
$creadsPrec :: Int -> ReadS ListDataQualityJobDefinitionsResponse
Prelude.Read, Int -> ListDataQualityJobDefinitionsResponse -> ShowS
[ListDataQualityJobDefinitionsResponse] -> ShowS
ListDataQualityJobDefinitionsResponse -> String
(Int -> ListDataQualityJobDefinitionsResponse -> ShowS)
-> (ListDataQualityJobDefinitionsResponse -> String)
-> ([ListDataQualityJobDefinitionsResponse] -> ShowS)
-> Show ListDataQualityJobDefinitionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDataQualityJobDefinitionsResponse] -> ShowS
$cshowList :: [ListDataQualityJobDefinitionsResponse] -> ShowS
show :: ListDataQualityJobDefinitionsResponse -> String
$cshow :: ListDataQualityJobDefinitionsResponse -> String
showsPrec :: Int -> ListDataQualityJobDefinitionsResponse -> ShowS
$cshowsPrec :: Int -> ListDataQualityJobDefinitionsResponse -> ShowS
Prelude.Show, (forall x.
ListDataQualityJobDefinitionsResponse
-> Rep ListDataQualityJobDefinitionsResponse x)
-> (forall x.
Rep ListDataQualityJobDefinitionsResponse x
-> ListDataQualityJobDefinitionsResponse)
-> Generic ListDataQualityJobDefinitionsResponse
forall x.
Rep ListDataQualityJobDefinitionsResponse x
-> ListDataQualityJobDefinitionsResponse
forall x.
ListDataQualityJobDefinitionsResponse
-> Rep ListDataQualityJobDefinitionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDataQualityJobDefinitionsResponse x
-> ListDataQualityJobDefinitionsResponse
$cfrom :: forall x.
ListDataQualityJobDefinitionsResponse
-> Rep ListDataQualityJobDefinitionsResponse x
Prelude.Generic)
newListDataQualityJobDefinitionsResponse ::
Prelude.Int ->
ListDataQualityJobDefinitionsResponse
newListDataQualityJobDefinitionsResponse :: Int -> ListDataQualityJobDefinitionsResponse
newListDataQualityJobDefinitionsResponse Int
pHttpStatus_ =
ListDataQualityJobDefinitionsResponse' :: Maybe Text
-> Int
-> [MonitoringJobDefinitionSummary]
-> ListDataQualityJobDefinitionsResponse
ListDataQualityJobDefinitionsResponse'
{ $sel:nextToken:ListDataQualityJobDefinitionsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListDataQualityJobDefinitionsResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:jobDefinitionSummaries:ListDataQualityJobDefinitionsResponse' :: [MonitoringJobDefinitionSummary]
jobDefinitionSummaries =
[MonitoringJobDefinitionSummary]
forall a. Monoid a => a
Prelude.mempty
}
listDataQualityJobDefinitionsResponse_nextToken :: Lens.Lens' ListDataQualityJobDefinitionsResponse (Prelude.Maybe Prelude.Text)
listDataQualityJobDefinitionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDataQualityJobDefinitionsResponse
-> f ListDataQualityJobDefinitionsResponse
listDataQualityJobDefinitionsResponse_nextToken = (ListDataQualityJobDefinitionsResponse -> Maybe Text)
-> (ListDataQualityJobDefinitionsResponse
-> Maybe Text -> ListDataQualityJobDefinitionsResponse)
-> Lens' ListDataQualityJobDefinitionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataQualityJobDefinitionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDataQualityJobDefinitionsResponse' :: ListDataQualityJobDefinitionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDataQualityJobDefinitionsResponse
s@ListDataQualityJobDefinitionsResponse' {} Maybe Text
a -> ListDataQualityJobDefinitionsResponse
s {$sel:nextToken:ListDataQualityJobDefinitionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListDataQualityJobDefinitionsResponse)
listDataQualityJobDefinitionsResponse_httpStatus :: Lens.Lens' ListDataQualityJobDefinitionsResponse Prelude.Int
listDataQualityJobDefinitionsResponse_httpStatus :: (Int -> f Int)
-> ListDataQualityJobDefinitionsResponse
-> f ListDataQualityJobDefinitionsResponse
listDataQualityJobDefinitionsResponse_httpStatus = (ListDataQualityJobDefinitionsResponse -> Int)
-> (ListDataQualityJobDefinitionsResponse
-> Int -> ListDataQualityJobDefinitionsResponse)
-> Lens
ListDataQualityJobDefinitionsResponse
ListDataQualityJobDefinitionsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataQualityJobDefinitionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListDataQualityJobDefinitionsResponse' :: ListDataQualityJobDefinitionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListDataQualityJobDefinitionsResponse
s@ListDataQualityJobDefinitionsResponse' {} Int
a -> ListDataQualityJobDefinitionsResponse
s {$sel:httpStatus:ListDataQualityJobDefinitionsResponse' :: Int
httpStatus = Int
a} :: ListDataQualityJobDefinitionsResponse)
listDataQualityJobDefinitionsResponse_jobDefinitionSummaries :: Lens.Lens' ListDataQualityJobDefinitionsResponse [MonitoringJobDefinitionSummary]
listDataQualityJobDefinitionsResponse_jobDefinitionSummaries :: ([MonitoringJobDefinitionSummary]
-> f [MonitoringJobDefinitionSummary])
-> ListDataQualityJobDefinitionsResponse
-> f ListDataQualityJobDefinitionsResponse
listDataQualityJobDefinitionsResponse_jobDefinitionSummaries = (ListDataQualityJobDefinitionsResponse
-> [MonitoringJobDefinitionSummary])
-> (ListDataQualityJobDefinitionsResponse
-> [MonitoringJobDefinitionSummary]
-> ListDataQualityJobDefinitionsResponse)
-> Lens'
ListDataQualityJobDefinitionsResponse
[MonitoringJobDefinitionSummary]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataQualityJobDefinitionsResponse' {[MonitoringJobDefinitionSummary]
jobDefinitionSummaries :: [MonitoringJobDefinitionSummary]
$sel:jobDefinitionSummaries:ListDataQualityJobDefinitionsResponse' :: ListDataQualityJobDefinitionsResponse
-> [MonitoringJobDefinitionSummary]
jobDefinitionSummaries} -> [MonitoringJobDefinitionSummary]
jobDefinitionSummaries) (\s :: ListDataQualityJobDefinitionsResponse
s@ListDataQualityJobDefinitionsResponse' {} [MonitoringJobDefinitionSummary]
a -> ListDataQualityJobDefinitionsResponse
s {$sel:jobDefinitionSummaries:ListDataQualityJobDefinitionsResponse' :: [MonitoringJobDefinitionSummary]
jobDefinitionSummaries = [MonitoringJobDefinitionSummary]
a} :: ListDataQualityJobDefinitionsResponse) (([MonitoringJobDefinitionSummary]
-> f [MonitoringJobDefinitionSummary])
-> ListDataQualityJobDefinitionsResponse
-> f ListDataQualityJobDefinitionsResponse)
-> (([MonitoringJobDefinitionSummary]
-> f [MonitoringJobDefinitionSummary])
-> [MonitoringJobDefinitionSummary]
-> f [MonitoringJobDefinitionSummary])
-> ([MonitoringJobDefinitionSummary]
-> f [MonitoringJobDefinitionSummary])
-> ListDataQualityJobDefinitionsResponse
-> f ListDataQualityJobDefinitionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([MonitoringJobDefinitionSummary]
-> f [MonitoringJobDefinitionSummary])
-> [MonitoringJobDefinitionSummary]
-> f [MonitoringJobDefinitionSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Prelude.NFData
ListDataQualityJobDefinitionsResponse