{-# 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.Inspector.ListAssessmentRuns
(
ListAssessmentRuns (..),
newListAssessmentRuns,
listAssessmentRuns_nextToken,
listAssessmentRuns_filter,
listAssessmentRuns_assessmentTemplateArns,
listAssessmentRuns_maxResults,
ListAssessmentRunsResponse (..),
newListAssessmentRunsResponse,
listAssessmentRunsResponse_nextToken,
listAssessmentRunsResponse_httpStatus,
listAssessmentRunsResponse_assessmentRunArns,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Inspector.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListAssessmentRuns = ListAssessmentRuns'
{
ListAssessmentRuns -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAssessmentRuns -> Maybe AssessmentRunFilter
filter' :: Prelude.Maybe AssessmentRunFilter,
ListAssessmentRuns -> Maybe [Text]
assessmentTemplateArns :: Prelude.Maybe [Prelude.Text],
ListAssessmentRuns -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int
}
deriving (ListAssessmentRuns -> ListAssessmentRuns -> Bool
(ListAssessmentRuns -> ListAssessmentRuns -> Bool)
-> (ListAssessmentRuns -> ListAssessmentRuns -> Bool)
-> Eq ListAssessmentRuns
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAssessmentRuns -> ListAssessmentRuns -> Bool
$c/= :: ListAssessmentRuns -> ListAssessmentRuns -> Bool
== :: ListAssessmentRuns -> ListAssessmentRuns -> Bool
$c== :: ListAssessmentRuns -> ListAssessmentRuns -> Bool
Prelude.Eq, ReadPrec [ListAssessmentRuns]
ReadPrec ListAssessmentRuns
Int -> ReadS ListAssessmentRuns
ReadS [ListAssessmentRuns]
(Int -> ReadS ListAssessmentRuns)
-> ReadS [ListAssessmentRuns]
-> ReadPrec ListAssessmentRuns
-> ReadPrec [ListAssessmentRuns]
-> Read ListAssessmentRuns
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAssessmentRuns]
$creadListPrec :: ReadPrec [ListAssessmentRuns]
readPrec :: ReadPrec ListAssessmentRuns
$creadPrec :: ReadPrec ListAssessmentRuns
readList :: ReadS [ListAssessmentRuns]
$creadList :: ReadS [ListAssessmentRuns]
readsPrec :: Int -> ReadS ListAssessmentRuns
$creadsPrec :: Int -> ReadS ListAssessmentRuns
Prelude.Read, Int -> ListAssessmentRuns -> ShowS
[ListAssessmentRuns] -> ShowS
ListAssessmentRuns -> String
(Int -> ListAssessmentRuns -> ShowS)
-> (ListAssessmentRuns -> String)
-> ([ListAssessmentRuns] -> ShowS)
-> Show ListAssessmentRuns
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAssessmentRuns] -> ShowS
$cshowList :: [ListAssessmentRuns] -> ShowS
show :: ListAssessmentRuns -> String
$cshow :: ListAssessmentRuns -> String
showsPrec :: Int -> ListAssessmentRuns -> ShowS
$cshowsPrec :: Int -> ListAssessmentRuns -> ShowS
Prelude.Show, (forall x. ListAssessmentRuns -> Rep ListAssessmentRuns x)
-> (forall x. Rep ListAssessmentRuns x -> ListAssessmentRuns)
-> Generic ListAssessmentRuns
forall x. Rep ListAssessmentRuns x -> ListAssessmentRuns
forall x. ListAssessmentRuns -> Rep ListAssessmentRuns x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAssessmentRuns x -> ListAssessmentRuns
$cfrom :: forall x. ListAssessmentRuns -> Rep ListAssessmentRuns x
Prelude.Generic)
newListAssessmentRuns ::
ListAssessmentRuns
newListAssessmentRuns :: ListAssessmentRuns
newListAssessmentRuns =
ListAssessmentRuns' :: Maybe Text
-> Maybe AssessmentRunFilter
-> Maybe [Text]
-> Maybe Int
-> ListAssessmentRuns
ListAssessmentRuns'
{ $sel:nextToken:ListAssessmentRuns' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:filter':ListAssessmentRuns' :: Maybe AssessmentRunFilter
filter' = Maybe AssessmentRunFilter
forall a. Maybe a
Prelude.Nothing,
$sel:assessmentTemplateArns:ListAssessmentRuns' :: Maybe [Text]
assessmentTemplateArns = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListAssessmentRuns' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
listAssessmentRuns_nextToken :: Lens.Lens' ListAssessmentRuns (Prelude.Maybe Prelude.Text)
listAssessmentRuns_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAssessmentRuns -> f ListAssessmentRuns
listAssessmentRuns_nextToken = (ListAssessmentRuns -> Maybe Text)
-> (ListAssessmentRuns -> Maybe Text -> ListAssessmentRuns)
-> Lens
ListAssessmentRuns ListAssessmentRuns (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssessmentRuns' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAssessmentRuns' :: ListAssessmentRuns -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAssessmentRuns
s@ListAssessmentRuns' {} Maybe Text
a -> ListAssessmentRuns
s {$sel:nextToken:ListAssessmentRuns' :: Maybe Text
nextToken = Maybe Text
a} :: ListAssessmentRuns)
listAssessmentRuns_filter :: Lens.Lens' ListAssessmentRuns (Prelude.Maybe AssessmentRunFilter)
listAssessmentRuns_filter :: (Maybe AssessmentRunFilter -> f (Maybe AssessmentRunFilter))
-> ListAssessmentRuns -> f ListAssessmentRuns
listAssessmentRuns_filter = (ListAssessmentRuns -> Maybe AssessmentRunFilter)
-> (ListAssessmentRuns
-> Maybe AssessmentRunFilter -> ListAssessmentRuns)
-> Lens
ListAssessmentRuns
ListAssessmentRuns
(Maybe AssessmentRunFilter)
(Maybe AssessmentRunFilter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssessmentRuns' {Maybe AssessmentRunFilter
filter' :: Maybe AssessmentRunFilter
$sel:filter':ListAssessmentRuns' :: ListAssessmentRuns -> Maybe AssessmentRunFilter
filter'} -> Maybe AssessmentRunFilter
filter') (\s :: ListAssessmentRuns
s@ListAssessmentRuns' {} Maybe AssessmentRunFilter
a -> ListAssessmentRuns
s {$sel:filter':ListAssessmentRuns' :: Maybe AssessmentRunFilter
filter' = Maybe AssessmentRunFilter
a} :: ListAssessmentRuns)
listAssessmentRuns_assessmentTemplateArns :: Lens.Lens' ListAssessmentRuns (Prelude.Maybe [Prelude.Text])
listAssessmentRuns_assessmentTemplateArns :: (Maybe [Text] -> f (Maybe [Text]))
-> ListAssessmentRuns -> f ListAssessmentRuns
listAssessmentRuns_assessmentTemplateArns = (ListAssessmentRuns -> Maybe [Text])
-> (ListAssessmentRuns -> Maybe [Text] -> ListAssessmentRuns)
-> Lens
ListAssessmentRuns ListAssessmentRuns (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssessmentRuns' {Maybe [Text]
assessmentTemplateArns :: Maybe [Text]
$sel:assessmentTemplateArns:ListAssessmentRuns' :: ListAssessmentRuns -> Maybe [Text]
assessmentTemplateArns} -> Maybe [Text]
assessmentTemplateArns) (\s :: ListAssessmentRuns
s@ListAssessmentRuns' {} Maybe [Text]
a -> ListAssessmentRuns
s {$sel:assessmentTemplateArns:ListAssessmentRuns' :: Maybe [Text]
assessmentTemplateArns = Maybe [Text]
a} :: ListAssessmentRuns) ((Maybe [Text] -> f (Maybe [Text]))
-> ListAssessmentRuns -> f ListAssessmentRuns)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ListAssessmentRuns
-> f ListAssessmentRuns
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listAssessmentRuns_maxResults :: Lens.Lens' ListAssessmentRuns (Prelude.Maybe Prelude.Int)
listAssessmentRuns_maxResults :: (Maybe Int -> f (Maybe Int))
-> ListAssessmentRuns -> f ListAssessmentRuns
listAssessmentRuns_maxResults = (ListAssessmentRuns -> Maybe Int)
-> (ListAssessmentRuns -> Maybe Int -> ListAssessmentRuns)
-> Lens
ListAssessmentRuns ListAssessmentRuns (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssessmentRuns' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:ListAssessmentRuns' :: ListAssessmentRuns -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: ListAssessmentRuns
s@ListAssessmentRuns' {} Maybe Int
a -> ListAssessmentRuns
s {$sel:maxResults:ListAssessmentRuns' :: Maybe Int
maxResults = Maybe Int
a} :: ListAssessmentRuns)
instance Core.AWSPager ListAssessmentRuns where
page :: ListAssessmentRuns
-> AWSResponse ListAssessmentRuns -> Maybe ListAssessmentRuns
page ListAssessmentRuns
rq AWSResponse ListAssessmentRuns
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAssessmentRuns
ListAssessmentRunsResponse
rs
ListAssessmentRunsResponse
-> Getting (First Text) ListAssessmentRunsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAssessmentRunsResponse
-> Const (First Text) ListAssessmentRunsResponse
Lens' ListAssessmentRunsResponse (Maybe Text)
listAssessmentRunsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListAssessmentRunsResponse
-> Const (First Text) ListAssessmentRunsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAssessmentRunsResponse 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 ListAssessmentRuns
forall a. Maybe a
Prelude.Nothing
| [Text] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAssessmentRuns
ListAssessmentRunsResponse
rs
ListAssessmentRunsResponse
-> Getting [Text] ListAssessmentRunsResponse [Text] -> [Text]
forall s a. s -> Getting a s a -> a
Lens.^. Getting [Text] ListAssessmentRunsResponse [Text]
Lens' ListAssessmentRunsResponse [Text]
listAssessmentRunsResponse_assessmentRunArns
) =
Maybe ListAssessmentRuns
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListAssessmentRuns -> Maybe ListAssessmentRuns
forall a. a -> Maybe a
Prelude.Just (ListAssessmentRuns -> Maybe ListAssessmentRuns)
-> ListAssessmentRuns -> Maybe ListAssessmentRuns
forall a b. (a -> b) -> a -> b
Prelude.$
ListAssessmentRuns
rq
ListAssessmentRuns
-> (ListAssessmentRuns -> ListAssessmentRuns) -> ListAssessmentRuns
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListAssessmentRuns -> Identity ListAssessmentRuns
Lens
ListAssessmentRuns ListAssessmentRuns (Maybe Text) (Maybe Text)
listAssessmentRuns_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListAssessmentRuns -> Identity ListAssessmentRuns)
-> Maybe Text -> ListAssessmentRuns -> ListAssessmentRuns
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListAssessmentRuns
ListAssessmentRunsResponse
rs
ListAssessmentRunsResponse
-> Getting (First Text) ListAssessmentRunsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAssessmentRunsResponse
-> Const (First Text) ListAssessmentRunsResponse
Lens' ListAssessmentRunsResponse (Maybe Text)
listAssessmentRunsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListAssessmentRunsResponse
-> Const (First Text) ListAssessmentRunsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAssessmentRunsResponse 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 ListAssessmentRuns where
type
AWSResponse ListAssessmentRuns =
ListAssessmentRunsResponse
request :: ListAssessmentRuns -> Request ListAssessmentRuns
request = Service -> ListAssessmentRuns -> Request ListAssessmentRuns
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListAssessmentRuns
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListAssessmentRuns)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListAssessmentRuns))
-> Logger
-> Service
-> Proxy ListAssessmentRuns
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListAssessmentRuns)))
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 -> [Text] -> ListAssessmentRunsResponse
ListAssessmentRunsResponse'
(Maybe Text -> Int -> [Text] -> ListAssessmentRunsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> [Text] -> ListAssessmentRunsResponse)
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 -> [Text] -> ListAssessmentRunsResponse)
-> Either String Int
-> Either String ([Text] -> ListAssessmentRunsResponse)
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 ([Text] -> ListAssessmentRunsResponse)
-> Either String [Text] -> Either String ListAssessmentRunsResponse
forall (f :: * -> *) a b. Applicative f => 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
"assessmentRunArns"
Either String (Maybe [Text]) -> [Text] -> Either String [Text]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Text]
forall a. Monoid a => a
Prelude.mempty
)
)
instance Prelude.Hashable ListAssessmentRuns
instance Prelude.NFData ListAssessmentRuns
instance Core.ToHeaders ListAssessmentRuns where
toHeaders :: ListAssessmentRuns -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListAssessmentRuns -> 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
"InspectorService.ListAssessmentRuns" ::
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 ListAssessmentRuns where
toJSON :: ListAssessmentRuns -> Value
toJSON ListAssessmentRuns' {Maybe Int
Maybe [Text]
Maybe Text
Maybe AssessmentRunFilter
maxResults :: Maybe Int
assessmentTemplateArns :: Maybe [Text]
filter' :: Maybe AssessmentRunFilter
nextToken :: Maybe Text
$sel:maxResults:ListAssessmentRuns' :: ListAssessmentRuns -> Maybe Int
$sel:assessmentTemplateArns:ListAssessmentRuns' :: ListAssessmentRuns -> Maybe [Text]
$sel:filter':ListAssessmentRuns' :: ListAssessmentRuns -> Maybe AssessmentRunFilter
$sel:nextToken:ListAssessmentRuns' :: ListAssessmentRuns -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (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
"filter" Text -> AssessmentRunFilter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (AssessmentRunFilter -> Pair)
-> Maybe AssessmentRunFilter -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AssessmentRunFilter
filter',
(Text
"assessmentTemplateArns" 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]
assessmentTemplateArns,
(Text
"maxResults" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxResults
]
)
instance Core.ToPath ListAssessmentRuns where
toPath :: ListAssessmentRuns -> ByteString
toPath = ByteString -> ListAssessmentRuns -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListAssessmentRuns where
toQuery :: ListAssessmentRuns -> QueryString
toQuery = QueryString -> ListAssessmentRuns -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListAssessmentRunsResponse = ListAssessmentRunsResponse'
{
ListAssessmentRunsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAssessmentRunsResponse -> Int
httpStatus :: Prelude.Int,
ListAssessmentRunsResponse -> [Text]
assessmentRunArns :: [Prelude.Text]
}
deriving (ListAssessmentRunsResponse -> ListAssessmentRunsResponse -> Bool
(ListAssessmentRunsResponse -> ListAssessmentRunsResponse -> Bool)
-> (ListAssessmentRunsResponse
-> ListAssessmentRunsResponse -> Bool)
-> Eq ListAssessmentRunsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAssessmentRunsResponse -> ListAssessmentRunsResponse -> Bool
$c/= :: ListAssessmentRunsResponse -> ListAssessmentRunsResponse -> Bool
== :: ListAssessmentRunsResponse -> ListAssessmentRunsResponse -> Bool
$c== :: ListAssessmentRunsResponse -> ListAssessmentRunsResponse -> Bool
Prelude.Eq, ReadPrec [ListAssessmentRunsResponse]
ReadPrec ListAssessmentRunsResponse
Int -> ReadS ListAssessmentRunsResponse
ReadS [ListAssessmentRunsResponse]
(Int -> ReadS ListAssessmentRunsResponse)
-> ReadS [ListAssessmentRunsResponse]
-> ReadPrec ListAssessmentRunsResponse
-> ReadPrec [ListAssessmentRunsResponse]
-> Read ListAssessmentRunsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAssessmentRunsResponse]
$creadListPrec :: ReadPrec [ListAssessmentRunsResponse]
readPrec :: ReadPrec ListAssessmentRunsResponse
$creadPrec :: ReadPrec ListAssessmentRunsResponse
readList :: ReadS [ListAssessmentRunsResponse]
$creadList :: ReadS [ListAssessmentRunsResponse]
readsPrec :: Int -> ReadS ListAssessmentRunsResponse
$creadsPrec :: Int -> ReadS ListAssessmentRunsResponse
Prelude.Read, Int -> ListAssessmentRunsResponse -> ShowS
[ListAssessmentRunsResponse] -> ShowS
ListAssessmentRunsResponse -> String
(Int -> ListAssessmentRunsResponse -> ShowS)
-> (ListAssessmentRunsResponse -> String)
-> ([ListAssessmentRunsResponse] -> ShowS)
-> Show ListAssessmentRunsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAssessmentRunsResponse] -> ShowS
$cshowList :: [ListAssessmentRunsResponse] -> ShowS
show :: ListAssessmentRunsResponse -> String
$cshow :: ListAssessmentRunsResponse -> String
showsPrec :: Int -> ListAssessmentRunsResponse -> ShowS
$cshowsPrec :: Int -> ListAssessmentRunsResponse -> ShowS
Prelude.Show, (forall x.
ListAssessmentRunsResponse -> Rep ListAssessmentRunsResponse x)
-> (forall x.
Rep ListAssessmentRunsResponse x -> ListAssessmentRunsResponse)
-> Generic ListAssessmentRunsResponse
forall x.
Rep ListAssessmentRunsResponse x -> ListAssessmentRunsResponse
forall x.
ListAssessmentRunsResponse -> Rep ListAssessmentRunsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAssessmentRunsResponse x -> ListAssessmentRunsResponse
$cfrom :: forall x.
ListAssessmentRunsResponse -> Rep ListAssessmentRunsResponse x
Prelude.Generic)
newListAssessmentRunsResponse ::
Prelude.Int ->
ListAssessmentRunsResponse
newListAssessmentRunsResponse :: Int -> ListAssessmentRunsResponse
newListAssessmentRunsResponse Int
pHttpStatus_ =
ListAssessmentRunsResponse' :: Maybe Text -> Int -> [Text] -> ListAssessmentRunsResponse
ListAssessmentRunsResponse'
{ $sel:nextToken:ListAssessmentRunsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListAssessmentRunsResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:assessmentRunArns:ListAssessmentRunsResponse' :: [Text]
assessmentRunArns = [Text]
forall a. Monoid a => a
Prelude.mempty
}
listAssessmentRunsResponse_nextToken :: Lens.Lens' ListAssessmentRunsResponse (Prelude.Maybe Prelude.Text)
listAssessmentRunsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAssessmentRunsResponse -> f ListAssessmentRunsResponse
listAssessmentRunsResponse_nextToken = (ListAssessmentRunsResponse -> Maybe Text)
-> (ListAssessmentRunsResponse
-> Maybe Text -> ListAssessmentRunsResponse)
-> Lens' ListAssessmentRunsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssessmentRunsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAssessmentRunsResponse' :: ListAssessmentRunsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAssessmentRunsResponse
s@ListAssessmentRunsResponse' {} Maybe Text
a -> ListAssessmentRunsResponse
s {$sel:nextToken:ListAssessmentRunsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListAssessmentRunsResponse)
listAssessmentRunsResponse_httpStatus :: Lens.Lens' ListAssessmentRunsResponse Prelude.Int
listAssessmentRunsResponse_httpStatus :: (Int -> f Int)
-> ListAssessmentRunsResponse -> f ListAssessmentRunsResponse
listAssessmentRunsResponse_httpStatus = (ListAssessmentRunsResponse -> Int)
-> (ListAssessmentRunsResponse
-> Int -> ListAssessmentRunsResponse)
-> Lens
ListAssessmentRunsResponse ListAssessmentRunsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssessmentRunsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListAssessmentRunsResponse' :: ListAssessmentRunsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListAssessmentRunsResponse
s@ListAssessmentRunsResponse' {} Int
a -> ListAssessmentRunsResponse
s {$sel:httpStatus:ListAssessmentRunsResponse' :: Int
httpStatus = Int
a} :: ListAssessmentRunsResponse)
listAssessmentRunsResponse_assessmentRunArns :: Lens.Lens' ListAssessmentRunsResponse [Prelude.Text]
listAssessmentRunsResponse_assessmentRunArns :: ([Text] -> f [Text])
-> ListAssessmentRunsResponse -> f ListAssessmentRunsResponse
listAssessmentRunsResponse_assessmentRunArns = (ListAssessmentRunsResponse -> [Text])
-> (ListAssessmentRunsResponse
-> [Text] -> ListAssessmentRunsResponse)
-> Lens' ListAssessmentRunsResponse [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssessmentRunsResponse' {[Text]
assessmentRunArns :: [Text]
$sel:assessmentRunArns:ListAssessmentRunsResponse' :: ListAssessmentRunsResponse -> [Text]
assessmentRunArns} -> [Text]
assessmentRunArns) (\s :: ListAssessmentRunsResponse
s@ListAssessmentRunsResponse' {} [Text]
a -> ListAssessmentRunsResponse
s {$sel:assessmentRunArns:ListAssessmentRunsResponse' :: [Text]
assessmentRunArns = [Text]
a} :: ListAssessmentRunsResponse) (([Text] -> f [Text])
-> ListAssessmentRunsResponse -> f ListAssessmentRunsResponse)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> ListAssessmentRunsResponse
-> f ListAssessmentRunsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData ListAssessmentRunsResponse