{-# 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.ECRPublic.BatchDeleteImage
(
BatchDeleteImage (..),
newBatchDeleteImage,
batchDeleteImage_registryId,
batchDeleteImage_repositoryName,
batchDeleteImage_imageIds,
BatchDeleteImageResponse (..),
newBatchDeleteImageResponse,
batchDeleteImageResponse_failures,
batchDeleteImageResponse_imageIds,
batchDeleteImageResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ECRPublic.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 BatchDeleteImage = BatchDeleteImage'
{
BatchDeleteImage -> Maybe Text
registryId :: Prelude.Maybe Prelude.Text,
BatchDeleteImage -> Text
repositoryName :: Prelude.Text,
BatchDeleteImage -> NonEmpty ImageIdentifier
imageIds :: Prelude.NonEmpty ImageIdentifier
}
deriving (BatchDeleteImage -> BatchDeleteImage -> Bool
(BatchDeleteImage -> BatchDeleteImage -> Bool)
-> (BatchDeleteImage -> BatchDeleteImage -> Bool)
-> Eq BatchDeleteImage
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDeleteImage -> BatchDeleteImage -> Bool
$c/= :: BatchDeleteImage -> BatchDeleteImage -> Bool
== :: BatchDeleteImage -> BatchDeleteImage -> Bool
$c== :: BatchDeleteImage -> BatchDeleteImage -> Bool
Prelude.Eq, ReadPrec [BatchDeleteImage]
ReadPrec BatchDeleteImage
Int -> ReadS BatchDeleteImage
ReadS [BatchDeleteImage]
(Int -> ReadS BatchDeleteImage)
-> ReadS [BatchDeleteImage]
-> ReadPrec BatchDeleteImage
-> ReadPrec [BatchDeleteImage]
-> Read BatchDeleteImage
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDeleteImage]
$creadListPrec :: ReadPrec [BatchDeleteImage]
readPrec :: ReadPrec BatchDeleteImage
$creadPrec :: ReadPrec BatchDeleteImage
readList :: ReadS [BatchDeleteImage]
$creadList :: ReadS [BatchDeleteImage]
readsPrec :: Int -> ReadS BatchDeleteImage
$creadsPrec :: Int -> ReadS BatchDeleteImage
Prelude.Read, Int -> BatchDeleteImage -> ShowS
[BatchDeleteImage] -> ShowS
BatchDeleteImage -> String
(Int -> BatchDeleteImage -> ShowS)
-> (BatchDeleteImage -> String)
-> ([BatchDeleteImage] -> ShowS)
-> Show BatchDeleteImage
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDeleteImage] -> ShowS
$cshowList :: [BatchDeleteImage] -> ShowS
show :: BatchDeleteImage -> String
$cshow :: BatchDeleteImage -> String
showsPrec :: Int -> BatchDeleteImage -> ShowS
$cshowsPrec :: Int -> BatchDeleteImage -> ShowS
Prelude.Show, (forall x. BatchDeleteImage -> Rep BatchDeleteImage x)
-> (forall x. Rep BatchDeleteImage x -> BatchDeleteImage)
-> Generic BatchDeleteImage
forall x. Rep BatchDeleteImage x -> BatchDeleteImage
forall x. BatchDeleteImage -> Rep BatchDeleteImage x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchDeleteImage x -> BatchDeleteImage
$cfrom :: forall x. BatchDeleteImage -> Rep BatchDeleteImage x
Prelude.Generic)
newBatchDeleteImage ::
Prelude.Text ->
Prelude.NonEmpty ImageIdentifier ->
BatchDeleteImage
newBatchDeleteImage :: Text -> NonEmpty ImageIdentifier -> BatchDeleteImage
newBatchDeleteImage Text
pRepositoryName_ NonEmpty ImageIdentifier
pImageIds_ =
BatchDeleteImage' :: Maybe Text -> Text -> NonEmpty ImageIdentifier -> BatchDeleteImage
BatchDeleteImage'
{ $sel:registryId:BatchDeleteImage' :: Maybe Text
registryId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryName:BatchDeleteImage' :: Text
repositoryName = Text
pRepositoryName_,
$sel:imageIds:BatchDeleteImage' :: NonEmpty ImageIdentifier
imageIds = Tagged
(NonEmpty ImageIdentifier) (Identity (NonEmpty ImageIdentifier))
-> Tagged
(NonEmpty ImageIdentifier) (Identity (NonEmpty ImageIdentifier))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged
(NonEmpty ImageIdentifier) (Identity (NonEmpty ImageIdentifier))
-> Tagged
(NonEmpty ImageIdentifier) (Identity (NonEmpty ImageIdentifier)))
-> NonEmpty ImageIdentifier -> NonEmpty ImageIdentifier
forall t b. AReview t b -> b -> t
Lens.# NonEmpty ImageIdentifier
pImageIds_
}
batchDeleteImage_registryId :: Lens.Lens' BatchDeleteImage (Prelude.Maybe Prelude.Text)
batchDeleteImage_registryId :: (Maybe Text -> f (Maybe Text))
-> BatchDeleteImage -> f BatchDeleteImage
batchDeleteImage_registryId = (BatchDeleteImage -> Maybe Text)
-> (BatchDeleteImage -> Maybe Text -> BatchDeleteImage)
-> Lens BatchDeleteImage BatchDeleteImage (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteImage' {Maybe Text
registryId :: Maybe Text
$sel:registryId:BatchDeleteImage' :: BatchDeleteImage -> Maybe Text
registryId} -> Maybe Text
registryId) (\s :: BatchDeleteImage
s@BatchDeleteImage' {} Maybe Text
a -> BatchDeleteImage
s {$sel:registryId:BatchDeleteImage' :: Maybe Text
registryId = Maybe Text
a} :: BatchDeleteImage)
batchDeleteImage_repositoryName :: Lens.Lens' BatchDeleteImage Prelude.Text
batchDeleteImage_repositoryName :: (Text -> f Text) -> BatchDeleteImage -> f BatchDeleteImage
batchDeleteImage_repositoryName = (BatchDeleteImage -> Text)
-> (BatchDeleteImage -> Text -> BatchDeleteImage)
-> Lens BatchDeleteImage BatchDeleteImage Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteImage' {Text
repositoryName :: Text
$sel:repositoryName:BatchDeleteImage' :: BatchDeleteImage -> Text
repositoryName} -> Text
repositoryName) (\s :: BatchDeleteImage
s@BatchDeleteImage' {} Text
a -> BatchDeleteImage
s {$sel:repositoryName:BatchDeleteImage' :: Text
repositoryName = Text
a} :: BatchDeleteImage)
batchDeleteImage_imageIds :: Lens.Lens' BatchDeleteImage (Prelude.NonEmpty ImageIdentifier)
batchDeleteImage_imageIds :: (NonEmpty ImageIdentifier -> f (NonEmpty ImageIdentifier))
-> BatchDeleteImage -> f BatchDeleteImage
batchDeleteImage_imageIds = (BatchDeleteImage -> NonEmpty ImageIdentifier)
-> (BatchDeleteImage
-> NonEmpty ImageIdentifier -> BatchDeleteImage)
-> Lens
BatchDeleteImage
BatchDeleteImage
(NonEmpty ImageIdentifier)
(NonEmpty ImageIdentifier)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteImage' {NonEmpty ImageIdentifier
imageIds :: NonEmpty ImageIdentifier
$sel:imageIds:BatchDeleteImage' :: BatchDeleteImage -> NonEmpty ImageIdentifier
imageIds} -> NonEmpty ImageIdentifier
imageIds) (\s :: BatchDeleteImage
s@BatchDeleteImage' {} NonEmpty ImageIdentifier
a -> BatchDeleteImage
s {$sel:imageIds:BatchDeleteImage' :: NonEmpty ImageIdentifier
imageIds = NonEmpty ImageIdentifier
a} :: BatchDeleteImage) ((NonEmpty ImageIdentifier -> f (NonEmpty ImageIdentifier))
-> BatchDeleteImage -> f BatchDeleteImage)
-> ((NonEmpty ImageIdentifier -> f (NonEmpty ImageIdentifier))
-> NonEmpty ImageIdentifier -> f (NonEmpty ImageIdentifier))
-> (NonEmpty ImageIdentifier -> f (NonEmpty ImageIdentifier))
-> BatchDeleteImage
-> f BatchDeleteImage
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty ImageIdentifier -> f (NonEmpty ImageIdentifier))
-> NonEmpty ImageIdentifier -> f (NonEmpty ImageIdentifier)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest BatchDeleteImage where
type
AWSResponse BatchDeleteImage =
BatchDeleteImageResponse
request :: BatchDeleteImage -> Request BatchDeleteImage
request = Service -> BatchDeleteImage -> Request BatchDeleteImage
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy BatchDeleteImage
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse BatchDeleteImage)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse BatchDeleteImage))
-> Logger
-> Service
-> Proxy BatchDeleteImage
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse BatchDeleteImage)))
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 [ImageFailure]
-> Maybe (NonEmpty ImageIdentifier)
-> Int
-> BatchDeleteImageResponse
BatchDeleteImageResponse'
(Maybe [ImageFailure]
-> Maybe (NonEmpty ImageIdentifier)
-> Int
-> BatchDeleteImageResponse)
-> Either String (Maybe [ImageFailure])
-> Either
String
(Maybe (NonEmpty ImageIdentifier)
-> Int -> BatchDeleteImageResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [ImageFailure]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"failures" Either String (Maybe (Maybe [ImageFailure]))
-> Maybe [ImageFailure] -> Either String (Maybe [ImageFailure])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ImageFailure]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe (NonEmpty ImageIdentifier)
-> Int -> BatchDeleteImageResponse)
-> Either String (Maybe (NonEmpty ImageIdentifier))
-> Either String (Int -> BatchDeleteImageResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (NonEmpty ImageIdentifier))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"imageIds")
Either String (Int -> BatchDeleteImageResponse)
-> Either String Int -> Either String BatchDeleteImageResponse
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 BatchDeleteImage
instance Prelude.NFData BatchDeleteImage
instance Core.ToHeaders BatchDeleteImage where
toHeaders :: BatchDeleteImage -> ResponseHeaders
toHeaders =
ResponseHeaders -> BatchDeleteImage -> 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
"SpencerFrontendService.BatchDeleteImage" ::
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 BatchDeleteImage where
toJSON :: BatchDeleteImage -> Value
toJSON BatchDeleteImage' {Maybe Text
NonEmpty ImageIdentifier
Text
imageIds :: NonEmpty ImageIdentifier
repositoryName :: Text
registryId :: Maybe Text
$sel:imageIds:BatchDeleteImage' :: BatchDeleteImage -> NonEmpty ImageIdentifier
$sel:repositoryName:BatchDeleteImage' :: BatchDeleteImage -> Text
$sel:registryId:BatchDeleteImage' :: BatchDeleteImage -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"registryId" 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
registryId,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"repositoryName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
repositoryName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"imageIds" Text -> NonEmpty ImageIdentifier -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty ImageIdentifier
imageIds)
]
)
instance Core.ToPath BatchDeleteImage where
toPath :: BatchDeleteImage -> ByteString
toPath = ByteString -> BatchDeleteImage -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery BatchDeleteImage where
toQuery :: BatchDeleteImage -> QueryString
toQuery = QueryString -> BatchDeleteImage -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data BatchDeleteImageResponse = BatchDeleteImageResponse'
{
BatchDeleteImageResponse -> Maybe [ImageFailure]
failures :: Prelude.Maybe [ImageFailure],
BatchDeleteImageResponse -> Maybe (NonEmpty ImageIdentifier)
imageIds :: Prelude.Maybe (Prelude.NonEmpty ImageIdentifier),
BatchDeleteImageResponse -> Int
httpStatus :: Prelude.Int
}
deriving (BatchDeleteImageResponse -> BatchDeleteImageResponse -> Bool
(BatchDeleteImageResponse -> BatchDeleteImageResponse -> Bool)
-> (BatchDeleteImageResponse -> BatchDeleteImageResponse -> Bool)
-> Eq BatchDeleteImageResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDeleteImageResponse -> BatchDeleteImageResponse -> Bool
$c/= :: BatchDeleteImageResponse -> BatchDeleteImageResponse -> Bool
== :: BatchDeleteImageResponse -> BatchDeleteImageResponse -> Bool
$c== :: BatchDeleteImageResponse -> BatchDeleteImageResponse -> Bool
Prelude.Eq, ReadPrec [BatchDeleteImageResponse]
ReadPrec BatchDeleteImageResponse
Int -> ReadS BatchDeleteImageResponse
ReadS [BatchDeleteImageResponse]
(Int -> ReadS BatchDeleteImageResponse)
-> ReadS [BatchDeleteImageResponse]
-> ReadPrec BatchDeleteImageResponse
-> ReadPrec [BatchDeleteImageResponse]
-> Read BatchDeleteImageResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDeleteImageResponse]
$creadListPrec :: ReadPrec [BatchDeleteImageResponse]
readPrec :: ReadPrec BatchDeleteImageResponse
$creadPrec :: ReadPrec BatchDeleteImageResponse
readList :: ReadS [BatchDeleteImageResponse]
$creadList :: ReadS [BatchDeleteImageResponse]
readsPrec :: Int -> ReadS BatchDeleteImageResponse
$creadsPrec :: Int -> ReadS BatchDeleteImageResponse
Prelude.Read, Int -> BatchDeleteImageResponse -> ShowS
[BatchDeleteImageResponse] -> ShowS
BatchDeleteImageResponse -> String
(Int -> BatchDeleteImageResponse -> ShowS)
-> (BatchDeleteImageResponse -> String)
-> ([BatchDeleteImageResponse] -> ShowS)
-> Show BatchDeleteImageResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDeleteImageResponse] -> ShowS
$cshowList :: [BatchDeleteImageResponse] -> ShowS
show :: BatchDeleteImageResponse -> String
$cshow :: BatchDeleteImageResponse -> String
showsPrec :: Int -> BatchDeleteImageResponse -> ShowS
$cshowsPrec :: Int -> BatchDeleteImageResponse -> ShowS
Prelude.Show, (forall x.
BatchDeleteImageResponse -> Rep BatchDeleteImageResponse x)
-> (forall x.
Rep BatchDeleteImageResponse x -> BatchDeleteImageResponse)
-> Generic BatchDeleteImageResponse
forall x.
Rep BatchDeleteImageResponse x -> BatchDeleteImageResponse
forall x.
BatchDeleteImageResponse -> Rep BatchDeleteImageResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDeleteImageResponse x -> BatchDeleteImageResponse
$cfrom :: forall x.
BatchDeleteImageResponse -> Rep BatchDeleteImageResponse x
Prelude.Generic)
newBatchDeleteImageResponse ::
Prelude.Int ->
BatchDeleteImageResponse
newBatchDeleteImageResponse :: Int -> BatchDeleteImageResponse
newBatchDeleteImageResponse Int
pHttpStatus_ =
BatchDeleteImageResponse' :: Maybe [ImageFailure]
-> Maybe (NonEmpty ImageIdentifier)
-> Int
-> BatchDeleteImageResponse
BatchDeleteImageResponse'
{ $sel:failures:BatchDeleteImageResponse' :: Maybe [ImageFailure]
failures =
Maybe [ImageFailure]
forall a. Maybe a
Prelude.Nothing,
$sel:imageIds:BatchDeleteImageResponse' :: Maybe (NonEmpty ImageIdentifier)
imageIds = Maybe (NonEmpty ImageIdentifier)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:BatchDeleteImageResponse' :: Int
httpStatus = Int
pHttpStatus_
}
batchDeleteImageResponse_failures :: Lens.Lens' BatchDeleteImageResponse (Prelude.Maybe [ImageFailure])
batchDeleteImageResponse_failures :: (Maybe [ImageFailure] -> f (Maybe [ImageFailure]))
-> BatchDeleteImageResponse -> f BatchDeleteImageResponse
batchDeleteImageResponse_failures = (BatchDeleteImageResponse -> Maybe [ImageFailure])
-> (BatchDeleteImageResponse
-> Maybe [ImageFailure] -> BatchDeleteImageResponse)
-> Lens
BatchDeleteImageResponse
BatchDeleteImageResponse
(Maybe [ImageFailure])
(Maybe [ImageFailure])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteImageResponse' {Maybe [ImageFailure]
failures :: Maybe [ImageFailure]
$sel:failures:BatchDeleteImageResponse' :: BatchDeleteImageResponse -> Maybe [ImageFailure]
failures} -> Maybe [ImageFailure]
failures) (\s :: BatchDeleteImageResponse
s@BatchDeleteImageResponse' {} Maybe [ImageFailure]
a -> BatchDeleteImageResponse
s {$sel:failures:BatchDeleteImageResponse' :: Maybe [ImageFailure]
failures = Maybe [ImageFailure]
a} :: BatchDeleteImageResponse) ((Maybe [ImageFailure] -> f (Maybe [ImageFailure]))
-> BatchDeleteImageResponse -> f BatchDeleteImageResponse)
-> ((Maybe [ImageFailure] -> f (Maybe [ImageFailure]))
-> Maybe [ImageFailure] -> f (Maybe [ImageFailure]))
-> (Maybe [ImageFailure] -> f (Maybe [ImageFailure]))
-> BatchDeleteImageResponse
-> f BatchDeleteImageResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [ImageFailure] [ImageFailure] [ImageFailure] [ImageFailure]
-> Iso
(Maybe [ImageFailure])
(Maybe [ImageFailure])
(Maybe [ImageFailure])
(Maybe [ImageFailure])
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 [ImageFailure] [ImageFailure] [ImageFailure] [ImageFailure]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchDeleteImageResponse_imageIds :: Lens.Lens' BatchDeleteImageResponse (Prelude.Maybe (Prelude.NonEmpty ImageIdentifier))
batchDeleteImageResponse_imageIds :: (Maybe (NonEmpty ImageIdentifier)
-> f (Maybe (NonEmpty ImageIdentifier)))
-> BatchDeleteImageResponse -> f BatchDeleteImageResponse
batchDeleteImageResponse_imageIds = (BatchDeleteImageResponse -> Maybe (NonEmpty ImageIdentifier))
-> (BatchDeleteImageResponse
-> Maybe (NonEmpty ImageIdentifier) -> BatchDeleteImageResponse)
-> Lens
BatchDeleteImageResponse
BatchDeleteImageResponse
(Maybe (NonEmpty ImageIdentifier))
(Maybe (NonEmpty ImageIdentifier))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteImageResponse' {Maybe (NonEmpty ImageIdentifier)
imageIds :: Maybe (NonEmpty ImageIdentifier)
$sel:imageIds:BatchDeleteImageResponse' :: BatchDeleteImageResponse -> Maybe (NonEmpty ImageIdentifier)
imageIds} -> Maybe (NonEmpty ImageIdentifier)
imageIds) (\s :: BatchDeleteImageResponse
s@BatchDeleteImageResponse' {} Maybe (NonEmpty ImageIdentifier)
a -> BatchDeleteImageResponse
s {$sel:imageIds:BatchDeleteImageResponse' :: Maybe (NonEmpty ImageIdentifier)
imageIds = Maybe (NonEmpty ImageIdentifier)
a} :: BatchDeleteImageResponse) ((Maybe (NonEmpty ImageIdentifier)
-> f (Maybe (NonEmpty ImageIdentifier)))
-> BatchDeleteImageResponse -> f BatchDeleteImageResponse)
-> ((Maybe (NonEmpty ImageIdentifier)
-> f (Maybe (NonEmpty ImageIdentifier)))
-> Maybe (NonEmpty ImageIdentifier)
-> f (Maybe (NonEmpty ImageIdentifier)))
-> (Maybe (NonEmpty ImageIdentifier)
-> f (Maybe (NonEmpty ImageIdentifier)))
-> BatchDeleteImageResponse
-> f BatchDeleteImageResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty ImageIdentifier)
(NonEmpty ImageIdentifier)
(NonEmpty ImageIdentifier)
(NonEmpty ImageIdentifier)
-> Iso
(Maybe (NonEmpty ImageIdentifier))
(Maybe (NonEmpty ImageIdentifier))
(Maybe (NonEmpty ImageIdentifier))
(Maybe (NonEmpty ImageIdentifier))
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
(NonEmpty ImageIdentifier)
(NonEmpty ImageIdentifier)
(NonEmpty ImageIdentifier)
(NonEmpty ImageIdentifier)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchDeleteImageResponse_httpStatus :: Lens.Lens' BatchDeleteImageResponse Prelude.Int
batchDeleteImageResponse_httpStatus :: (Int -> f Int)
-> BatchDeleteImageResponse -> f BatchDeleteImageResponse
batchDeleteImageResponse_httpStatus = (BatchDeleteImageResponse -> Int)
-> (BatchDeleteImageResponse -> Int -> BatchDeleteImageResponse)
-> Lens BatchDeleteImageResponse BatchDeleteImageResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteImageResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchDeleteImageResponse' :: BatchDeleteImageResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchDeleteImageResponse
s@BatchDeleteImageResponse' {} Int
a -> BatchDeleteImageResponse
s {$sel:httpStatus:BatchDeleteImageResponse' :: Int
httpStatus = Int
a} :: BatchDeleteImageResponse)
instance Prelude.NFData BatchDeleteImageResponse