{-# 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.DeviceFarm.ListArtifacts
(
ListArtifacts (..),
newListArtifacts,
listArtifacts_nextToken,
listArtifacts_arn,
listArtifacts_type,
ListArtifactsResponse (..),
newListArtifactsResponse,
listArtifactsResponse_artifacts,
listArtifactsResponse_nextToken,
listArtifactsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DeviceFarm.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 ListArtifacts = ListArtifacts'
{
ListArtifacts -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListArtifacts -> Text
arn :: Prelude.Text,
ListArtifacts -> ArtifactCategory
type' :: ArtifactCategory
}
deriving (ListArtifacts -> ListArtifacts -> Bool
(ListArtifacts -> ListArtifacts -> Bool)
-> (ListArtifacts -> ListArtifacts -> Bool) -> Eq ListArtifacts
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListArtifacts -> ListArtifacts -> Bool
$c/= :: ListArtifacts -> ListArtifacts -> Bool
== :: ListArtifacts -> ListArtifacts -> Bool
$c== :: ListArtifacts -> ListArtifacts -> Bool
Prelude.Eq, ReadPrec [ListArtifacts]
ReadPrec ListArtifacts
Int -> ReadS ListArtifacts
ReadS [ListArtifacts]
(Int -> ReadS ListArtifacts)
-> ReadS [ListArtifacts]
-> ReadPrec ListArtifacts
-> ReadPrec [ListArtifacts]
-> Read ListArtifacts
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListArtifacts]
$creadListPrec :: ReadPrec [ListArtifacts]
readPrec :: ReadPrec ListArtifacts
$creadPrec :: ReadPrec ListArtifacts
readList :: ReadS [ListArtifacts]
$creadList :: ReadS [ListArtifacts]
readsPrec :: Int -> ReadS ListArtifacts
$creadsPrec :: Int -> ReadS ListArtifacts
Prelude.Read, Int -> ListArtifacts -> ShowS
[ListArtifacts] -> ShowS
ListArtifacts -> String
(Int -> ListArtifacts -> ShowS)
-> (ListArtifacts -> String)
-> ([ListArtifacts] -> ShowS)
-> Show ListArtifacts
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListArtifacts] -> ShowS
$cshowList :: [ListArtifacts] -> ShowS
show :: ListArtifacts -> String
$cshow :: ListArtifacts -> String
showsPrec :: Int -> ListArtifacts -> ShowS
$cshowsPrec :: Int -> ListArtifacts -> ShowS
Prelude.Show, (forall x. ListArtifacts -> Rep ListArtifacts x)
-> (forall x. Rep ListArtifacts x -> ListArtifacts)
-> Generic ListArtifacts
forall x. Rep ListArtifacts x -> ListArtifacts
forall x. ListArtifacts -> Rep ListArtifacts x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListArtifacts x -> ListArtifacts
$cfrom :: forall x. ListArtifacts -> Rep ListArtifacts x
Prelude.Generic)
newListArtifacts ::
Prelude.Text ->
ArtifactCategory ->
ListArtifacts
newListArtifacts :: Text -> ArtifactCategory -> ListArtifacts
newListArtifacts Text
pArn_ ArtifactCategory
pType_ =
ListArtifacts' :: Maybe Text -> Text -> ArtifactCategory -> ListArtifacts
ListArtifacts'
{ $sel:nextToken:ListArtifacts' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:arn:ListArtifacts' :: Text
arn = Text
pArn_,
$sel:type':ListArtifacts' :: ArtifactCategory
type' = ArtifactCategory
pType_
}
listArtifacts_nextToken :: Lens.Lens' ListArtifacts (Prelude.Maybe Prelude.Text)
listArtifacts_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListArtifacts -> f ListArtifacts
listArtifacts_nextToken = (ListArtifacts -> Maybe Text)
-> (ListArtifacts -> Maybe Text -> ListArtifacts)
-> Lens ListArtifacts ListArtifacts (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListArtifacts' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListArtifacts' :: ListArtifacts -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListArtifacts
s@ListArtifacts' {} Maybe Text
a -> ListArtifacts
s {$sel:nextToken:ListArtifacts' :: Maybe Text
nextToken = Maybe Text
a} :: ListArtifacts)
listArtifacts_arn :: Lens.Lens' ListArtifacts Prelude.Text
listArtifacts_arn :: (Text -> f Text) -> ListArtifacts -> f ListArtifacts
listArtifacts_arn = (ListArtifacts -> Text)
-> (ListArtifacts -> Text -> ListArtifacts)
-> Lens ListArtifacts ListArtifacts Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListArtifacts' {Text
arn :: Text
$sel:arn:ListArtifacts' :: ListArtifacts -> Text
arn} -> Text
arn) (\s :: ListArtifacts
s@ListArtifacts' {} Text
a -> ListArtifacts
s {$sel:arn:ListArtifacts' :: Text
arn = Text
a} :: ListArtifacts)
listArtifacts_type :: Lens.Lens' ListArtifacts ArtifactCategory
listArtifacts_type :: (ArtifactCategory -> f ArtifactCategory)
-> ListArtifacts -> f ListArtifacts
listArtifacts_type = (ListArtifacts -> ArtifactCategory)
-> (ListArtifacts -> ArtifactCategory -> ListArtifacts)
-> Lens
ListArtifacts ListArtifacts ArtifactCategory ArtifactCategory
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListArtifacts' {ArtifactCategory
type' :: ArtifactCategory
$sel:type':ListArtifacts' :: ListArtifacts -> ArtifactCategory
type'} -> ArtifactCategory
type') (\s :: ListArtifacts
s@ListArtifacts' {} ArtifactCategory
a -> ListArtifacts
s {$sel:type':ListArtifacts' :: ArtifactCategory
type' = ArtifactCategory
a} :: ListArtifacts)
instance Core.AWSPager ListArtifacts where
page :: ListArtifacts -> AWSResponse ListArtifacts -> Maybe ListArtifacts
page ListArtifacts
rq AWSResponse ListArtifacts
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListArtifacts
ListArtifactsResponse
rs
ListArtifactsResponse
-> Getting (First Text) ListArtifactsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListArtifactsResponse
-> Const (First Text) ListArtifactsResponse
Lens' ListArtifactsResponse (Maybe Text)
listArtifactsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListArtifactsResponse
-> Const (First Text) ListArtifactsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListArtifactsResponse 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 ListArtifacts
forall a. Maybe a
Prelude.Nothing
| Maybe [Artifact] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListArtifacts
ListArtifactsResponse
rs
ListArtifactsResponse
-> Getting (First [Artifact]) ListArtifactsResponse [Artifact]
-> Maybe [Artifact]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Artifact] -> Const (First [Artifact]) (Maybe [Artifact]))
-> ListArtifactsResponse
-> Const (First [Artifact]) ListArtifactsResponse
Lens' ListArtifactsResponse (Maybe [Artifact])
listArtifactsResponse_artifacts ((Maybe [Artifact] -> Const (First [Artifact]) (Maybe [Artifact]))
-> ListArtifactsResponse
-> Const (First [Artifact]) ListArtifactsResponse)
-> (([Artifact] -> Const (First [Artifact]) [Artifact])
-> Maybe [Artifact] -> Const (First [Artifact]) (Maybe [Artifact]))
-> Getting (First [Artifact]) ListArtifactsResponse [Artifact]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Artifact] -> Const (First [Artifact]) [Artifact])
-> Maybe [Artifact] -> Const (First [Artifact]) (Maybe [Artifact])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListArtifacts
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListArtifacts -> Maybe ListArtifacts
forall a. a -> Maybe a
Prelude.Just (ListArtifacts -> Maybe ListArtifacts)
-> ListArtifacts -> Maybe ListArtifacts
forall a b. (a -> b) -> a -> b
Prelude.$
ListArtifacts
rq
ListArtifacts -> (ListArtifacts -> ListArtifacts) -> ListArtifacts
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListArtifacts -> Identity ListArtifacts
Lens ListArtifacts ListArtifacts (Maybe Text) (Maybe Text)
listArtifacts_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListArtifacts -> Identity ListArtifacts)
-> Maybe Text -> ListArtifacts -> ListArtifacts
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListArtifacts
ListArtifactsResponse
rs
ListArtifactsResponse
-> Getting (First Text) ListArtifactsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListArtifactsResponse
-> Const (First Text) ListArtifactsResponse
Lens' ListArtifactsResponse (Maybe Text)
listArtifactsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListArtifactsResponse
-> Const (First Text) ListArtifactsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListArtifactsResponse 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 ListArtifacts where
type
AWSResponse ListArtifacts =
ListArtifactsResponse
request :: ListArtifacts -> Request ListArtifacts
request = Service -> ListArtifacts -> Request ListArtifacts
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListArtifacts
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListArtifacts)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListArtifacts))
-> Logger
-> Service
-> Proxy ListArtifacts
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListArtifacts)))
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 [Artifact] -> Maybe Text -> Int -> ListArtifactsResponse
ListArtifactsResponse'
(Maybe [Artifact] -> Maybe Text -> Int -> ListArtifactsResponse)
-> Either String (Maybe [Artifact])
-> Either String (Maybe Text -> Int -> ListArtifactsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Artifact]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"artifacts" Either String (Maybe (Maybe [Artifact]))
-> Maybe [Artifact] -> Either String (Maybe [Artifact])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Artifact]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListArtifactsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListArtifactsResponse)
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
"nextToken")
Either String (Int -> ListArtifactsResponse)
-> Either String Int -> Either String ListArtifactsResponse
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))
)
instance Prelude.Hashable ListArtifacts
instance Prelude.NFData ListArtifacts
instance Core.ToHeaders ListArtifacts where
toHeaders :: ListArtifacts -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListArtifacts -> 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
"DeviceFarm_20150623.ListArtifacts" ::
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 ListArtifacts where
toJSON :: ListArtifacts -> Value
toJSON ListArtifacts' {Maybe Text
Text
ArtifactCategory
type' :: ArtifactCategory
arn :: Text
nextToken :: Maybe Text
$sel:type':ListArtifacts' :: ListArtifacts -> ArtifactCategory
$sel:arn:ListArtifacts' :: ListArtifacts -> Text
$sel:nextToken:ListArtifacts' :: ListArtifacts -> 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,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"arn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
arn),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"type" Text -> ArtifactCategory -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ArtifactCategory
type')
]
)
instance Core.ToPath ListArtifacts where
toPath :: ListArtifacts -> ByteString
toPath = ByteString -> ListArtifacts -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListArtifacts where
toQuery :: ListArtifacts -> QueryString
toQuery = QueryString -> ListArtifacts -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListArtifactsResponse = ListArtifactsResponse'
{
ListArtifactsResponse -> Maybe [Artifact]
artifacts :: Prelude.Maybe [Artifact],
ListArtifactsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListArtifactsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListArtifactsResponse -> ListArtifactsResponse -> Bool
(ListArtifactsResponse -> ListArtifactsResponse -> Bool)
-> (ListArtifactsResponse -> ListArtifactsResponse -> Bool)
-> Eq ListArtifactsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListArtifactsResponse -> ListArtifactsResponse -> Bool
$c/= :: ListArtifactsResponse -> ListArtifactsResponse -> Bool
== :: ListArtifactsResponse -> ListArtifactsResponse -> Bool
$c== :: ListArtifactsResponse -> ListArtifactsResponse -> Bool
Prelude.Eq, ReadPrec [ListArtifactsResponse]
ReadPrec ListArtifactsResponse
Int -> ReadS ListArtifactsResponse
ReadS [ListArtifactsResponse]
(Int -> ReadS ListArtifactsResponse)
-> ReadS [ListArtifactsResponse]
-> ReadPrec ListArtifactsResponse
-> ReadPrec [ListArtifactsResponse]
-> Read ListArtifactsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListArtifactsResponse]
$creadListPrec :: ReadPrec [ListArtifactsResponse]
readPrec :: ReadPrec ListArtifactsResponse
$creadPrec :: ReadPrec ListArtifactsResponse
readList :: ReadS [ListArtifactsResponse]
$creadList :: ReadS [ListArtifactsResponse]
readsPrec :: Int -> ReadS ListArtifactsResponse
$creadsPrec :: Int -> ReadS ListArtifactsResponse
Prelude.Read, Int -> ListArtifactsResponse -> ShowS
[ListArtifactsResponse] -> ShowS
ListArtifactsResponse -> String
(Int -> ListArtifactsResponse -> ShowS)
-> (ListArtifactsResponse -> String)
-> ([ListArtifactsResponse] -> ShowS)
-> Show ListArtifactsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListArtifactsResponse] -> ShowS
$cshowList :: [ListArtifactsResponse] -> ShowS
show :: ListArtifactsResponse -> String
$cshow :: ListArtifactsResponse -> String
showsPrec :: Int -> ListArtifactsResponse -> ShowS
$cshowsPrec :: Int -> ListArtifactsResponse -> ShowS
Prelude.Show, (forall x. ListArtifactsResponse -> Rep ListArtifactsResponse x)
-> (forall x. Rep ListArtifactsResponse x -> ListArtifactsResponse)
-> Generic ListArtifactsResponse
forall x. Rep ListArtifactsResponse x -> ListArtifactsResponse
forall x. ListArtifactsResponse -> Rep ListArtifactsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListArtifactsResponse x -> ListArtifactsResponse
$cfrom :: forall x. ListArtifactsResponse -> Rep ListArtifactsResponse x
Prelude.Generic)
newListArtifactsResponse ::
Prelude.Int ->
ListArtifactsResponse
newListArtifactsResponse :: Int -> ListArtifactsResponse
newListArtifactsResponse Int
pHttpStatus_ =
ListArtifactsResponse' :: Maybe [Artifact] -> Maybe Text -> Int -> ListArtifactsResponse
ListArtifactsResponse'
{ $sel:artifacts:ListArtifactsResponse' :: Maybe [Artifact]
artifacts = Maybe [Artifact]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListArtifactsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListArtifactsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listArtifactsResponse_artifacts :: Lens.Lens' ListArtifactsResponse (Prelude.Maybe [Artifact])
listArtifactsResponse_artifacts :: (Maybe [Artifact] -> f (Maybe [Artifact]))
-> ListArtifactsResponse -> f ListArtifactsResponse
listArtifactsResponse_artifacts = (ListArtifactsResponse -> Maybe [Artifact])
-> (ListArtifactsResponse
-> Maybe [Artifact] -> ListArtifactsResponse)
-> Lens' ListArtifactsResponse (Maybe [Artifact])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListArtifactsResponse' {Maybe [Artifact]
artifacts :: Maybe [Artifact]
$sel:artifacts:ListArtifactsResponse' :: ListArtifactsResponse -> Maybe [Artifact]
artifacts} -> Maybe [Artifact]
artifacts) (\s :: ListArtifactsResponse
s@ListArtifactsResponse' {} Maybe [Artifact]
a -> ListArtifactsResponse
s {$sel:artifacts:ListArtifactsResponse' :: Maybe [Artifact]
artifacts = Maybe [Artifact]
a} :: ListArtifactsResponse) ((Maybe [Artifact] -> f (Maybe [Artifact]))
-> ListArtifactsResponse -> f ListArtifactsResponse)
-> ((Maybe [Artifact] -> f (Maybe [Artifact]))
-> Maybe [Artifact] -> f (Maybe [Artifact]))
-> (Maybe [Artifact] -> f (Maybe [Artifact]))
-> ListArtifactsResponse
-> f ListArtifactsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Artifact] [Artifact] [Artifact] [Artifact]
-> Iso
(Maybe [Artifact])
(Maybe [Artifact])
(Maybe [Artifact])
(Maybe [Artifact])
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 [Artifact] [Artifact] [Artifact] [Artifact]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listArtifactsResponse_nextToken :: Lens.Lens' ListArtifactsResponse (Prelude.Maybe Prelude.Text)
listArtifactsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListArtifactsResponse -> f ListArtifactsResponse
listArtifactsResponse_nextToken = (ListArtifactsResponse -> Maybe Text)
-> (ListArtifactsResponse -> Maybe Text -> ListArtifactsResponse)
-> Lens' ListArtifactsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListArtifactsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListArtifactsResponse' :: ListArtifactsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListArtifactsResponse
s@ListArtifactsResponse' {} Maybe Text
a -> ListArtifactsResponse
s {$sel:nextToken:ListArtifactsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListArtifactsResponse)
listArtifactsResponse_httpStatus :: Lens.Lens' ListArtifactsResponse Prelude.Int
listArtifactsResponse_httpStatus :: (Int -> f Int) -> ListArtifactsResponse -> f ListArtifactsResponse
listArtifactsResponse_httpStatus = (ListArtifactsResponse -> Int)
-> (ListArtifactsResponse -> Int -> ListArtifactsResponse)
-> Lens ListArtifactsResponse ListArtifactsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListArtifactsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListArtifactsResponse' :: ListArtifactsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListArtifactsResponse
s@ListArtifactsResponse' {} Int
a -> ListArtifactsResponse
s {$sel:httpStatus:ListArtifactsResponse' :: Int
httpStatus = Int
a} :: ListArtifactsResponse)
instance Prelude.NFData ListArtifactsResponse