{-# 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.Rekognition.RecognizeCelebrities
(
RecognizeCelebrities (..),
newRecognizeCelebrities,
recognizeCelebrities_image,
RecognizeCelebritiesResponse (..),
newRecognizeCelebritiesResponse,
recognizeCelebritiesResponse_celebrityFaces,
recognizeCelebritiesResponse_orientationCorrection,
recognizeCelebritiesResponse_unrecognizedFaces,
recognizeCelebritiesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Rekognition.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data RecognizeCelebrities = RecognizeCelebrities'
{
RecognizeCelebrities -> Image
image :: Image
}
deriving (RecognizeCelebrities -> RecognizeCelebrities -> Bool
(RecognizeCelebrities -> RecognizeCelebrities -> Bool)
-> (RecognizeCelebrities -> RecognizeCelebrities -> Bool)
-> Eq RecognizeCelebrities
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RecognizeCelebrities -> RecognizeCelebrities -> Bool
$c/= :: RecognizeCelebrities -> RecognizeCelebrities -> Bool
== :: RecognizeCelebrities -> RecognizeCelebrities -> Bool
$c== :: RecognizeCelebrities -> RecognizeCelebrities -> Bool
Prelude.Eq, ReadPrec [RecognizeCelebrities]
ReadPrec RecognizeCelebrities
Int -> ReadS RecognizeCelebrities
ReadS [RecognizeCelebrities]
(Int -> ReadS RecognizeCelebrities)
-> ReadS [RecognizeCelebrities]
-> ReadPrec RecognizeCelebrities
-> ReadPrec [RecognizeCelebrities]
-> Read RecognizeCelebrities
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RecognizeCelebrities]
$creadListPrec :: ReadPrec [RecognizeCelebrities]
readPrec :: ReadPrec RecognizeCelebrities
$creadPrec :: ReadPrec RecognizeCelebrities
readList :: ReadS [RecognizeCelebrities]
$creadList :: ReadS [RecognizeCelebrities]
readsPrec :: Int -> ReadS RecognizeCelebrities
$creadsPrec :: Int -> ReadS RecognizeCelebrities
Prelude.Read, Int -> RecognizeCelebrities -> ShowS
[RecognizeCelebrities] -> ShowS
RecognizeCelebrities -> String
(Int -> RecognizeCelebrities -> ShowS)
-> (RecognizeCelebrities -> String)
-> ([RecognizeCelebrities] -> ShowS)
-> Show RecognizeCelebrities
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RecognizeCelebrities] -> ShowS
$cshowList :: [RecognizeCelebrities] -> ShowS
show :: RecognizeCelebrities -> String
$cshow :: RecognizeCelebrities -> String
showsPrec :: Int -> RecognizeCelebrities -> ShowS
$cshowsPrec :: Int -> RecognizeCelebrities -> ShowS
Prelude.Show, (forall x. RecognizeCelebrities -> Rep RecognizeCelebrities x)
-> (forall x. Rep RecognizeCelebrities x -> RecognizeCelebrities)
-> Generic RecognizeCelebrities
forall x. Rep RecognizeCelebrities x -> RecognizeCelebrities
forall x. RecognizeCelebrities -> Rep RecognizeCelebrities x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RecognizeCelebrities x -> RecognizeCelebrities
$cfrom :: forall x. RecognizeCelebrities -> Rep RecognizeCelebrities x
Prelude.Generic)
newRecognizeCelebrities ::
Image ->
RecognizeCelebrities
newRecognizeCelebrities :: Image -> RecognizeCelebrities
newRecognizeCelebrities Image
pImage_ =
RecognizeCelebrities' :: Image -> RecognizeCelebrities
RecognizeCelebrities' {$sel:image:RecognizeCelebrities' :: Image
image = Image
pImage_}
recognizeCelebrities_image :: Lens.Lens' RecognizeCelebrities Image
recognizeCelebrities_image :: (Image -> f Image)
-> RecognizeCelebrities -> f RecognizeCelebrities
recognizeCelebrities_image = (RecognizeCelebrities -> Image)
-> (RecognizeCelebrities -> Image -> RecognizeCelebrities)
-> Lens RecognizeCelebrities RecognizeCelebrities Image Image
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecognizeCelebrities' {Image
image :: Image
$sel:image:RecognizeCelebrities' :: RecognizeCelebrities -> Image
image} -> Image
image) (\s :: RecognizeCelebrities
s@RecognizeCelebrities' {} Image
a -> RecognizeCelebrities
s {$sel:image:RecognizeCelebrities' :: Image
image = Image
a} :: RecognizeCelebrities)
instance Core.AWSRequest RecognizeCelebrities where
type
AWSResponse RecognizeCelebrities =
RecognizeCelebritiesResponse
request :: RecognizeCelebrities -> Request RecognizeCelebrities
request = Service -> RecognizeCelebrities -> Request RecognizeCelebrities
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy RecognizeCelebrities
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse RecognizeCelebrities)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse RecognizeCelebrities))
-> Logger
-> Service
-> Proxy RecognizeCelebrities
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse RecognizeCelebrities)))
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 [Celebrity]
-> Maybe OrientationCorrection
-> Maybe [ComparedFace]
-> Int
-> RecognizeCelebritiesResponse
RecognizeCelebritiesResponse'
(Maybe [Celebrity]
-> Maybe OrientationCorrection
-> Maybe [ComparedFace]
-> Int
-> RecognizeCelebritiesResponse)
-> Either String (Maybe [Celebrity])
-> Either
String
(Maybe OrientationCorrection
-> Maybe [ComparedFace] -> Int -> RecognizeCelebritiesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Key -> Either String (Maybe (Maybe [Celebrity]))
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"CelebrityFaces" Either String (Maybe (Maybe [Celebrity]))
-> Maybe [Celebrity] -> Either String (Maybe [Celebrity])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Celebrity]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe OrientationCorrection
-> Maybe [ComparedFace] -> Int -> RecognizeCelebritiesResponse)
-> Either String (Maybe OrientationCorrection)
-> Either
String
(Maybe [ComparedFace] -> Int -> RecognizeCelebritiesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Key -> Either String (Maybe OrientationCorrection)
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"OrientationCorrection")
Either
String
(Maybe [ComparedFace] -> Int -> RecognizeCelebritiesResponse)
-> Either String (Maybe [ComparedFace])
-> Either String (Int -> RecognizeCelebritiesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Key -> Either String (Maybe (Maybe [ComparedFace]))
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"UnrecognizedFaces"
Either String (Maybe (Maybe [ComparedFace]))
-> Maybe [ComparedFace] -> Either String (Maybe [ComparedFace])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ComparedFace]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> RecognizeCelebritiesResponse)
-> Either String Int -> Either String RecognizeCelebritiesResponse
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 RecognizeCelebrities
instance Prelude.NFData RecognizeCelebrities
instance Core.ToHeaders RecognizeCelebrities where
toHeaders :: RecognizeCelebrities -> ResponseHeaders
toHeaders =
ResponseHeaders -> RecognizeCelebrities -> 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
"RekognitionService.RecognizeCelebrities" ::
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 RecognizeCelebrities where
toJSON :: RecognizeCelebrities -> Value
toJSON RecognizeCelebrities' {Image
image :: Image
$sel:image:RecognizeCelebrities' :: RecognizeCelebrities -> Image
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Key
"Image" Key -> Image -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Core..= Image
image)]
)
instance Core.ToPath RecognizeCelebrities where
toPath :: RecognizeCelebrities -> ByteString
toPath = ByteString -> RecognizeCelebrities -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery RecognizeCelebrities where
toQuery :: RecognizeCelebrities -> QueryString
toQuery = QueryString -> RecognizeCelebrities -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data RecognizeCelebritiesResponse = RecognizeCelebritiesResponse'
{
RecognizeCelebritiesResponse -> Maybe [Celebrity]
celebrityFaces :: Prelude.Maybe [Celebrity],
RecognizeCelebritiesResponse -> Maybe OrientationCorrection
orientationCorrection :: Prelude.Maybe OrientationCorrection,
RecognizeCelebritiesResponse -> Maybe [ComparedFace]
unrecognizedFaces :: Prelude.Maybe [ComparedFace],
RecognizeCelebritiesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (RecognizeCelebritiesResponse
-> RecognizeCelebritiesResponse -> Bool
(RecognizeCelebritiesResponse
-> RecognizeCelebritiesResponse -> Bool)
-> (RecognizeCelebritiesResponse
-> RecognizeCelebritiesResponse -> Bool)
-> Eq RecognizeCelebritiesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RecognizeCelebritiesResponse
-> RecognizeCelebritiesResponse -> Bool
$c/= :: RecognizeCelebritiesResponse
-> RecognizeCelebritiesResponse -> Bool
== :: RecognizeCelebritiesResponse
-> RecognizeCelebritiesResponse -> Bool
$c== :: RecognizeCelebritiesResponse
-> RecognizeCelebritiesResponse -> Bool
Prelude.Eq, ReadPrec [RecognizeCelebritiesResponse]
ReadPrec RecognizeCelebritiesResponse
Int -> ReadS RecognizeCelebritiesResponse
ReadS [RecognizeCelebritiesResponse]
(Int -> ReadS RecognizeCelebritiesResponse)
-> ReadS [RecognizeCelebritiesResponse]
-> ReadPrec RecognizeCelebritiesResponse
-> ReadPrec [RecognizeCelebritiesResponse]
-> Read RecognizeCelebritiesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RecognizeCelebritiesResponse]
$creadListPrec :: ReadPrec [RecognizeCelebritiesResponse]
readPrec :: ReadPrec RecognizeCelebritiesResponse
$creadPrec :: ReadPrec RecognizeCelebritiesResponse
readList :: ReadS [RecognizeCelebritiesResponse]
$creadList :: ReadS [RecognizeCelebritiesResponse]
readsPrec :: Int -> ReadS RecognizeCelebritiesResponse
$creadsPrec :: Int -> ReadS RecognizeCelebritiesResponse
Prelude.Read, Int -> RecognizeCelebritiesResponse -> ShowS
[RecognizeCelebritiesResponse] -> ShowS
RecognizeCelebritiesResponse -> String
(Int -> RecognizeCelebritiesResponse -> ShowS)
-> (RecognizeCelebritiesResponse -> String)
-> ([RecognizeCelebritiesResponse] -> ShowS)
-> Show RecognizeCelebritiesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RecognizeCelebritiesResponse] -> ShowS
$cshowList :: [RecognizeCelebritiesResponse] -> ShowS
show :: RecognizeCelebritiesResponse -> String
$cshow :: RecognizeCelebritiesResponse -> String
showsPrec :: Int -> RecognizeCelebritiesResponse -> ShowS
$cshowsPrec :: Int -> RecognizeCelebritiesResponse -> ShowS
Prelude.Show, (forall x.
RecognizeCelebritiesResponse -> Rep RecognizeCelebritiesResponse x)
-> (forall x.
Rep RecognizeCelebritiesResponse x -> RecognizeCelebritiesResponse)
-> Generic RecognizeCelebritiesResponse
forall x.
Rep RecognizeCelebritiesResponse x -> RecognizeCelebritiesResponse
forall x.
RecognizeCelebritiesResponse -> Rep RecognizeCelebritiesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RecognizeCelebritiesResponse x -> RecognizeCelebritiesResponse
$cfrom :: forall x.
RecognizeCelebritiesResponse -> Rep RecognizeCelebritiesResponse x
Prelude.Generic)
newRecognizeCelebritiesResponse ::
Prelude.Int ->
RecognizeCelebritiesResponse
newRecognizeCelebritiesResponse :: Int -> RecognizeCelebritiesResponse
newRecognizeCelebritiesResponse Int
pHttpStatus_ =
RecognizeCelebritiesResponse' :: Maybe [Celebrity]
-> Maybe OrientationCorrection
-> Maybe [ComparedFace]
-> Int
-> RecognizeCelebritiesResponse
RecognizeCelebritiesResponse'
{ $sel:celebrityFaces:RecognizeCelebritiesResponse' :: Maybe [Celebrity]
celebrityFaces =
Maybe [Celebrity]
forall a. Maybe a
Prelude.Nothing,
$sel:orientationCorrection:RecognizeCelebritiesResponse' :: Maybe OrientationCorrection
orientationCorrection = Maybe OrientationCorrection
forall a. Maybe a
Prelude.Nothing,
$sel:unrecognizedFaces:RecognizeCelebritiesResponse' :: Maybe [ComparedFace]
unrecognizedFaces = Maybe [ComparedFace]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:RecognizeCelebritiesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
recognizeCelebritiesResponse_celebrityFaces :: Lens.Lens' RecognizeCelebritiesResponse (Prelude.Maybe [Celebrity])
recognizeCelebritiesResponse_celebrityFaces :: (Maybe [Celebrity] -> f (Maybe [Celebrity]))
-> RecognizeCelebritiesResponse -> f RecognizeCelebritiesResponse
recognizeCelebritiesResponse_celebrityFaces = (RecognizeCelebritiesResponse -> Maybe [Celebrity])
-> (RecognizeCelebritiesResponse
-> Maybe [Celebrity] -> RecognizeCelebritiesResponse)
-> Lens
RecognizeCelebritiesResponse
RecognizeCelebritiesResponse
(Maybe [Celebrity])
(Maybe [Celebrity])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecognizeCelebritiesResponse' {Maybe [Celebrity]
celebrityFaces :: Maybe [Celebrity]
$sel:celebrityFaces:RecognizeCelebritiesResponse' :: RecognizeCelebritiesResponse -> Maybe [Celebrity]
celebrityFaces} -> Maybe [Celebrity]
celebrityFaces) (\s :: RecognizeCelebritiesResponse
s@RecognizeCelebritiesResponse' {} Maybe [Celebrity]
a -> RecognizeCelebritiesResponse
s {$sel:celebrityFaces:RecognizeCelebritiesResponse' :: Maybe [Celebrity]
celebrityFaces = Maybe [Celebrity]
a} :: RecognizeCelebritiesResponse) ((Maybe [Celebrity] -> f (Maybe [Celebrity]))
-> RecognizeCelebritiesResponse -> f RecognizeCelebritiesResponse)
-> ((Maybe [Celebrity] -> f (Maybe [Celebrity]))
-> Maybe [Celebrity] -> f (Maybe [Celebrity]))
-> (Maybe [Celebrity] -> f (Maybe [Celebrity]))
-> RecognizeCelebritiesResponse
-> f RecognizeCelebritiesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Celebrity] [Celebrity] [Celebrity] [Celebrity]
-> Iso
(Maybe [Celebrity])
(Maybe [Celebrity])
(Maybe [Celebrity])
(Maybe [Celebrity])
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 [Celebrity] [Celebrity] [Celebrity] [Celebrity]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
recognizeCelebritiesResponse_orientationCorrection :: Lens.Lens' RecognizeCelebritiesResponse (Prelude.Maybe OrientationCorrection)
recognizeCelebritiesResponse_orientationCorrection :: (Maybe OrientationCorrection -> f (Maybe OrientationCorrection))
-> RecognizeCelebritiesResponse -> f RecognizeCelebritiesResponse
recognizeCelebritiesResponse_orientationCorrection = (RecognizeCelebritiesResponse -> Maybe OrientationCorrection)
-> (RecognizeCelebritiesResponse
-> Maybe OrientationCorrection -> RecognizeCelebritiesResponse)
-> Lens
RecognizeCelebritiesResponse
RecognizeCelebritiesResponse
(Maybe OrientationCorrection)
(Maybe OrientationCorrection)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecognizeCelebritiesResponse' {Maybe OrientationCorrection
orientationCorrection :: Maybe OrientationCorrection
$sel:orientationCorrection:RecognizeCelebritiesResponse' :: RecognizeCelebritiesResponse -> Maybe OrientationCorrection
orientationCorrection} -> Maybe OrientationCorrection
orientationCorrection) (\s :: RecognizeCelebritiesResponse
s@RecognizeCelebritiesResponse' {} Maybe OrientationCorrection
a -> RecognizeCelebritiesResponse
s {$sel:orientationCorrection:RecognizeCelebritiesResponse' :: Maybe OrientationCorrection
orientationCorrection = Maybe OrientationCorrection
a} :: RecognizeCelebritiesResponse)
recognizeCelebritiesResponse_unrecognizedFaces :: Lens.Lens' RecognizeCelebritiesResponse (Prelude.Maybe [ComparedFace])
recognizeCelebritiesResponse_unrecognizedFaces :: (Maybe [ComparedFace] -> f (Maybe [ComparedFace]))
-> RecognizeCelebritiesResponse -> f RecognizeCelebritiesResponse
recognizeCelebritiesResponse_unrecognizedFaces = (RecognizeCelebritiesResponse -> Maybe [ComparedFace])
-> (RecognizeCelebritiesResponse
-> Maybe [ComparedFace] -> RecognizeCelebritiesResponse)
-> Lens
RecognizeCelebritiesResponse
RecognizeCelebritiesResponse
(Maybe [ComparedFace])
(Maybe [ComparedFace])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecognizeCelebritiesResponse' {Maybe [ComparedFace]
unrecognizedFaces :: Maybe [ComparedFace]
$sel:unrecognizedFaces:RecognizeCelebritiesResponse' :: RecognizeCelebritiesResponse -> Maybe [ComparedFace]
unrecognizedFaces} -> Maybe [ComparedFace]
unrecognizedFaces) (\s :: RecognizeCelebritiesResponse
s@RecognizeCelebritiesResponse' {} Maybe [ComparedFace]
a -> RecognizeCelebritiesResponse
s {$sel:unrecognizedFaces:RecognizeCelebritiesResponse' :: Maybe [ComparedFace]
unrecognizedFaces = Maybe [ComparedFace]
a} :: RecognizeCelebritiesResponse) ((Maybe [ComparedFace] -> f (Maybe [ComparedFace]))
-> RecognizeCelebritiesResponse -> f RecognizeCelebritiesResponse)
-> ((Maybe [ComparedFace] -> f (Maybe [ComparedFace]))
-> Maybe [ComparedFace] -> f (Maybe [ComparedFace]))
-> (Maybe [ComparedFace] -> f (Maybe [ComparedFace]))
-> RecognizeCelebritiesResponse
-> f RecognizeCelebritiesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [ComparedFace] [ComparedFace] [ComparedFace] [ComparedFace]
-> Iso
(Maybe [ComparedFace])
(Maybe [ComparedFace])
(Maybe [ComparedFace])
(Maybe [ComparedFace])
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 [ComparedFace] [ComparedFace] [ComparedFace] [ComparedFace]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
recognizeCelebritiesResponse_httpStatus :: Lens.Lens' RecognizeCelebritiesResponse Prelude.Int
recognizeCelebritiesResponse_httpStatus :: (Int -> f Int)
-> RecognizeCelebritiesResponse -> f RecognizeCelebritiesResponse
recognizeCelebritiesResponse_httpStatus = (RecognizeCelebritiesResponse -> Int)
-> (RecognizeCelebritiesResponse
-> Int -> RecognizeCelebritiesResponse)
-> Lens
RecognizeCelebritiesResponse RecognizeCelebritiesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecognizeCelebritiesResponse' {Int
httpStatus :: Int
$sel:httpStatus:RecognizeCelebritiesResponse' :: RecognizeCelebritiesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: RecognizeCelebritiesResponse
s@RecognizeCelebritiesResponse' {} Int
a -> RecognizeCelebritiesResponse
s {$sel:httpStatus:RecognizeCelebritiesResponse' :: Int
httpStatus = Int
a} :: RecognizeCelebritiesResponse)
instance Prelude.NFData RecognizeCelebritiesResponse