{-# 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.ECR.DescribeImageReplicationStatus
(
DescribeImageReplicationStatus (..),
newDescribeImageReplicationStatus,
describeImageReplicationStatus_registryId,
describeImageReplicationStatus_repositoryName,
describeImageReplicationStatus_imageId,
DescribeImageReplicationStatusResponse (..),
newDescribeImageReplicationStatusResponse,
describeImageReplicationStatusResponse_imageId,
describeImageReplicationStatusResponse_repositoryName,
describeImageReplicationStatusResponse_replicationStatuses,
describeImageReplicationStatusResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ECR.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 DescribeImageReplicationStatus = DescribeImageReplicationStatus'
{
DescribeImageReplicationStatus -> Maybe Text
registryId :: Prelude.Maybe Prelude.Text,
DescribeImageReplicationStatus -> Text
repositoryName :: Prelude.Text,
DescribeImageReplicationStatus -> ImageIdentifier
imageId :: ImageIdentifier
}
deriving (DescribeImageReplicationStatus
-> DescribeImageReplicationStatus -> Bool
(DescribeImageReplicationStatus
-> DescribeImageReplicationStatus -> Bool)
-> (DescribeImageReplicationStatus
-> DescribeImageReplicationStatus -> Bool)
-> Eq DescribeImageReplicationStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeImageReplicationStatus
-> DescribeImageReplicationStatus -> Bool
$c/= :: DescribeImageReplicationStatus
-> DescribeImageReplicationStatus -> Bool
== :: DescribeImageReplicationStatus
-> DescribeImageReplicationStatus -> Bool
$c== :: DescribeImageReplicationStatus
-> DescribeImageReplicationStatus -> Bool
Prelude.Eq, ReadPrec [DescribeImageReplicationStatus]
ReadPrec DescribeImageReplicationStatus
Int -> ReadS DescribeImageReplicationStatus
ReadS [DescribeImageReplicationStatus]
(Int -> ReadS DescribeImageReplicationStatus)
-> ReadS [DescribeImageReplicationStatus]
-> ReadPrec DescribeImageReplicationStatus
-> ReadPrec [DescribeImageReplicationStatus]
-> Read DescribeImageReplicationStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeImageReplicationStatus]
$creadListPrec :: ReadPrec [DescribeImageReplicationStatus]
readPrec :: ReadPrec DescribeImageReplicationStatus
$creadPrec :: ReadPrec DescribeImageReplicationStatus
readList :: ReadS [DescribeImageReplicationStatus]
$creadList :: ReadS [DescribeImageReplicationStatus]
readsPrec :: Int -> ReadS DescribeImageReplicationStatus
$creadsPrec :: Int -> ReadS DescribeImageReplicationStatus
Prelude.Read, Int -> DescribeImageReplicationStatus -> ShowS
[DescribeImageReplicationStatus] -> ShowS
DescribeImageReplicationStatus -> String
(Int -> DescribeImageReplicationStatus -> ShowS)
-> (DescribeImageReplicationStatus -> String)
-> ([DescribeImageReplicationStatus] -> ShowS)
-> Show DescribeImageReplicationStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeImageReplicationStatus] -> ShowS
$cshowList :: [DescribeImageReplicationStatus] -> ShowS
show :: DescribeImageReplicationStatus -> String
$cshow :: DescribeImageReplicationStatus -> String
showsPrec :: Int -> DescribeImageReplicationStatus -> ShowS
$cshowsPrec :: Int -> DescribeImageReplicationStatus -> ShowS
Prelude.Show, (forall x.
DescribeImageReplicationStatus
-> Rep DescribeImageReplicationStatus x)
-> (forall x.
Rep DescribeImageReplicationStatus x
-> DescribeImageReplicationStatus)
-> Generic DescribeImageReplicationStatus
forall x.
Rep DescribeImageReplicationStatus x
-> DescribeImageReplicationStatus
forall x.
DescribeImageReplicationStatus
-> Rep DescribeImageReplicationStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeImageReplicationStatus x
-> DescribeImageReplicationStatus
$cfrom :: forall x.
DescribeImageReplicationStatus
-> Rep DescribeImageReplicationStatus x
Prelude.Generic)
newDescribeImageReplicationStatus ::
Prelude.Text ->
ImageIdentifier ->
DescribeImageReplicationStatus
newDescribeImageReplicationStatus :: Text -> ImageIdentifier -> DescribeImageReplicationStatus
newDescribeImageReplicationStatus
Text
pRepositoryName_
ImageIdentifier
pImageId_ =
DescribeImageReplicationStatus' :: Maybe Text
-> Text -> ImageIdentifier -> DescribeImageReplicationStatus
DescribeImageReplicationStatus'
{ $sel:registryId:DescribeImageReplicationStatus' :: Maybe Text
registryId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryName:DescribeImageReplicationStatus' :: Text
repositoryName = Text
pRepositoryName_,
$sel:imageId:DescribeImageReplicationStatus' :: ImageIdentifier
imageId = ImageIdentifier
pImageId_
}
describeImageReplicationStatus_registryId :: Lens.Lens' DescribeImageReplicationStatus (Prelude.Maybe Prelude.Text)
describeImageReplicationStatus_registryId :: (Maybe Text -> f (Maybe Text))
-> DescribeImageReplicationStatus
-> f DescribeImageReplicationStatus
describeImageReplicationStatus_registryId = (DescribeImageReplicationStatus -> Maybe Text)
-> (DescribeImageReplicationStatus
-> Maybe Text -> DescribeImageReplicationStatus)
-> Lens
DescribeImageReplicationStatus
DescribeImageReplicationStatus
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImageReplicationStatus' {Maybe Text
registryId :: Maybe Text
$sel:registryId:DescribeImageReplicationStatus' :: DescribeImageReplicationStatus -> Maybe Text
registryId} -> Maybe Text
registryId) (\s :: DescribeImageReplicationStatus
s@DescribeImageReplicationStatus' {} Maybe Text
a -> DescribeImageReplicationStatus
s {$sel:registryId:DescribeImageReplicationStatus' :: Maybe Text
registryId = Maybe Text
a} :: DescribeImageReplicationStatus)
describeImageReplicationStatus_repositoryName :: Lens.Lens' DescribeImageReplicationStatus Prelude.Text
describeImageReplicationStatus_repositoryName :: (Text -> f Text)
-> DescribeImageReplicationStatus
-> f DescribeImageReplicationStatus
describeImageReplicationStatus_repositoryName = (DescribeImageReplicationStatus -> Text)
-> (DescribeImageReplicationStatus
-> Text -> DescribeImageReplicationStatus)
-> Lens
DescribeImageReplicationStatus
DescribeImageReplicationStatus
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImageReplicationStatus' {Text
repositoryName :: Text
$sel:repositoryName:DescribeImageReplicationStatus' :: DescribeImageReplicationStatus -> Text
repositoryName} -> Text
repositoryName) (\s :: DescribeImageReplicationStatus
s@DescribeImageReplicationStatus' {} Text
a -> DescribeImageReplicationStatus
s {$sel:repositoryName:DescribeImageReplicationStatus' :: Text
repositoryName = Text
a} :: DescribeImageReplicationStatus)
describeImageReplicationStatus_imageId :: Lens.Lens' DescribeImageReplicationStatus ImageIdentifier
describeImageReplicationStatus_imageId :: (ImageIdentifier -> f ImageIdentifier)
-> DescribeImageReplicationStatus
-> f DescribeImageReplicationStatus
describeImageReplicationStatus_imageId = (DescribeImageReplicationStatus -> ImageIdentifier)
-> (DescribeImageReplicationStatus
-> ImageIdentifier -> DescribeImageReplicationStatus)
-> Lens
DescribeImageReplicationStatus
DescribeImageReplicationStatus
ImageIdentifier
ImageIdentifier
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImageReplicationStatus' {ImageIdentifier
imageId :: ImageIdentifier
$sel:imageId:DescribeImageReplicationStatus' :: DescribeImageReplicationStatus -> ImageIdentifier
imageId} -> ImageIdentifier
imageId) (\s :: DescribeImageReplicationStatus
s@DescribeImageReplicationStatus' {} ImageIdentifier
a -> DescribeImageReplicationStatus
s {$sel:imageId:DescribeImageReplicationStatus' :: ImageIdentifier
imageId = ImageIdentifier
a} :: DescribeImageReplicationStatus)
instance
Core.AWSRequest
DescribeImageReplicationStatus
where
type
AWSResponse DescribeImageReplicationStatus =
DescribeImageReplicationStatusResponse
request :: DescribeImageReplicationStatus
-> Request DescribeImageReplicationStatus
request = Service
-> DescribeImageReplicationStatus
-> Request DescribeImageReplicationStatus
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeImageReplicationStatus
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeImageReplicationStatus)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeImageReplicationStatus))
-> Logger
-> Service
-> Proxy DescribeImageReplicationStatus
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeImageReplicationStatus)))
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 ImageIdentifier
-> Maybe Text
-> Maybe [ImageReplicationStatus]
-> Int
-> DescribeImageReplicationStatusResponse
DescribeImageReplicationStatusResponse'
(Maybe ImageIdentifier
-> Maybe Text
-> Maybe [ImageReplicationStatus]
-> Int
-> DescribeImageReplicationStatusResponse)
-> Either String (Maybe ImageIdentifier)
-> Either
String
(Maybe Text
-> Maybe [ImageReplicationStatus]
-> Int
-> DescribeImageReplicationStatusResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe ImageIdentifier)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"imageId")
Either
String
(Maybe Text
-> Maybe [ImageReplicationStatus]
-> Int
-> DescribeImageReplicationStatusResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [ImageReplicationStatus]
-> Int -> DescribeImageReplicationStatusResponse)
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
"repositoryName")
Either
String
(Maybe [ImageReplicationStatus]
-> Int -> DescribeImageReplicationStatusResponse)
-> Either String (Maybe [ImageReplicationStatus])
-> Either String (Int -> DescribeImageReplicationStatusResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [ImageReplicationStatus]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"replicationStatuses"
Either String (Maybe (Maybe [ImageReplicationStatus]))
-> Maybe [ImageReplicationStatus]
-> Either String (Maybe [ImageReplicationStatus])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ImageReplicationStatus]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> DescribeImageReplicationStatusResponse)
-> Either String Int
-> Either String DescribeImageReplicationStatusResponse
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
DescribeImageReplicationStatus
instance
Prelude.NFData
DescribeImageReplicationStatus
instance
Core.ToHeaders
DescribeImageReplicationStatus
where
toHeaders :: DescribeImageReplicationStatus -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DescribeImageReplicationStatus -> 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
"AmazonEC2ContainerRegistry_V20150921.DescribeImageReplicationStatus" ::
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 DescribeImageReplicationStatus where
toJSON :: DescribeImageReplicationStatus -> Value
toJSON DescribeImageReplicationStatus' {Maybe Text
Text
ImageIdentifier
imageId :: ImageIdentifier
repositoryName :: Text
registryId :: Maybe Text
$sel:imageId:DescribeImageReplicationStatus' :: DescribeImageReplicationStatus -> ImageIdentifier
$sel:repositoryName:DescribeImageReplicationStatus' :: DescribeImageReplicationStatus -> Text
$sel:registryId:DescribeImageReplicationStatus' :: DescribeImageReplicationStatus -> 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
"imageId" Text -> ImageIdentifier -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ImageIdentifier
imageId)
]
)
instance Core.ToPath DescribeImageReplicationStatus where
toPath :: DescribeImageReplicationStatus -> ByteString
toPath = ByteString -> DescribeImageReplicationStatus -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeImageReplicationStatus where
toQuery :: DescribeImageReplicationStatus -> QueryString
toQuery = QueryString -> DescribeImageReplicationStatus -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeImageReplicationStatusResponse = DescribeImageReplicationStatusResponse'
{ DescribeImageReplicationStatusResponse -> Maybe ImageIdentifier
imageId :: Prelude.Maybe ImageIdentifier,
DescribeImageReplicationStatusResponse -> Maybe Text
repositoryName :: Prelude.Maybe Prelude.Text,
DescribeImageReplicationStatusResponse
-> Maybe [ImageReplicationStatus]
replicationStatuses :: Prelude.Maybe [ImageReplicationStatus],
DescribeImageReplicationStatusResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeImageReplicationStatusResponse
-> DescribeImageReplicationStatusResponse -> Bool
(DescribeImageReplicationStatusResponse
-> DescribeImageReplicationStatusResponse -> Bool)
-> (DescribeImageReplicationStatusResponse
-> DescribeImageReplicationStatusResponse -> Bool)
-> Eq DescribeImageReplicationStatusResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeImageReplicationStatusResponse
-> DescribeImageReplicationStatusResponse -> Bool
$c/= :: DescribeImageReplicationStatusResponse
-> DescribeImageReplicationStatusResponse -> Bool
== :: DescribeImageReplicationStatusResponse
-> DescribeImageReplicationStatusResponse -> Bool
$c== :: DescribeImageReplicationStatusResponse
-> DescribeImageReplicationStatusResponse -> Bool
Prelude.Eq, ReadPrec [DescribeImageReplicationStatusResponse]
ReadPrec DescribeImageReplicationStatusResponse
Int -> ReadS DescribeImageReplicationStatusResponse
ReadS [DescribeImageReplicationStatusResponse]
(Int -> ReadS DescribeImageReplicationStatusResponse)
-> ReadS [DescribeImageReplicationStatusResponse]
-> ReadPrec DescribeImageReplicationStatusResponse
-> ReadPrec [DescribeImageReplicationStatusResponse]
-> Read DescribeImageReplicationStatusResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeImageReplicationStatusResponse]
$creadListPrec :: ReadPrec [DescribeImageReplicationStatusResponse]
readPrec :: ReadPrec DescribeImageReplicationStatusResponse
$creadPrec :: ReadPrec DescribeImageReplicationStatusResponse
readList :: ReadS [DescribeImageReplicationStatusResponse]
$creadList :: ReadS [DescribeImageReplicationStatusResponse]
readsPrec :: Int -> ReadS DescribeImageReplicationStatusResponse
$creadsPrec :: Int -> ReadS DescribeImageReplicationStatusResponse
Prelude.Read, Int -> DescribeImageReplicationStatusResponse -> ShowS
[DescribeImageReplicationStatusResponse] -> ShowS
DescribeImageReplicationStatusResponse -> String
(Int -> DescribeImageReplicationStatusResponse -> ShowS)
-> (DescribeImageReplicationStatusResponse -> String)
-> ([DescribeImageReplicationStatusResponse] -> ShowS)
-> Show DescribeImageReplicationStatusResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeImageReplicationStatusResponse] -> ShowS
$cshowList :: [DescribeImageReplicationStatusResponse] -> ShowS
show :: DescribeImageReplicationStatusResponse -> String
$cshow :: DescribeImageReplicationStatusResponse -> String
showsPrec :: Int -> DescribeImageReplicationStatusResponse -> ShowS
$cshowsPrec :: Int -> DescribeImageReplicationStatusResponse -> ShowS
Prelude.Show, (forall x.
DescribeImageReplicationStatusResponse
-> Rep DescribeImageReplicationStatusResponse x)
-> (forall x.
Rep DescribeImageReplicationStatusResponse x
-> DescribeImageReplicationStatusResponse)
-> Generic DescribeImageReplicationStatusResponse
forall x.
Rep DescribeImageReplicationStatusResponse x
-> DescribeImageReplicationStatusResponse
forall x.
DescribeImageReplicationStatusResponse
-> Rep DescribeImageReplicationStatusResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeImageReplicationStatusResponse x
-> DescribeImageReplicationStatusResponse
$cfrom :: forall x.
DescribeImageReplicationStatusResponse
-> Rep DescribeImageReplicationStatusResponse x
Prelude.Generic)
newDescribeImageReplicationStatusResponse ::
Prelude.Int ->
DescribeImageReplicationStatusResponse
newDescribeImageReplicationStatusResponse :: Int -> DescribeImageReplicationStatusResponse
newDescribeImageReplicationStatusResponse
Int
pHttpStatus_ =
DescribeImageReplicationStatusResponse' :: Maybe ImageIdentifier
-> Maybe Text
-> Maybe [ImageReplicationStatus]
-> Int
-> DescribeImageReplicationStatusResponse
DescribeImageReplicationStatusResponse'
{ $sel:imageId:DescribeImageReplicationStatusResponse' :: Maybe ImageIdentifier
imageId =
Maybe ImageIdentifier
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryName:DescribeImageReplicationStatusResponse' :: Maybe Text
repositoryName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:replicationStatuses:DescribeImageReplicationStatusResponse' :: Maybe [ImageReplicationStatus]
replicationStatuses =
Maybe [ImageReplicationStatus]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeImageReplicationStatusResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeImageReplicationStatusResponse_imageId :: Lens.Lens' DescribeImageReplicationStatusResponse (Prelude.Maybe ImageIdentifier)
describeImageReplicationStatusResponse_imageId :: (Maybe ImageIdentifier -> f (Maybe ImageIdentifier))
-> DescribeImageReplicationStatusResponse
-> f DescribeImageReplicationStatusResponse
describeImageReplicationStatusResponse_imageId = (DescribeImageReplicationStatusResponse -> Maybe ImageIdentifier)
-> (DescribeImageReplicationStatusResponse
-> Maybe ImageIdentifier -> DescribeImageReplicationStatusResponse)
-> Lens
DescribeImageReplicationStatusResponse
DescribeImageReplicationStatusResponse
(Maybe ImageIdentifier)
(Maybe ImageIdentifier)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImageReplicationStatusResponse' {Maybe ImageIdentifier
imageId :: Maybe ImageIdentifier
$sel:imageId:DescribeImageReplicationStatusResponse' :: DescribeImageReplicationStatusResponse -> Maybe ImageIdentifier
imageId} -> Maybe ImageIdentifier
imageId) (\s :: DescribeImageReplicationStatusResponse
s@DescribeImageReplicationStatusResponse' {} Maybe ImageIdentifier
a -> DescribeImageReplicationStatusResponse
s {$sel:imageId:DescribeImageReplicationStatusResponse' :: Maybe ImageIdentifier
imageId = Maybe ImageIdentifier
a} :: DescribeImageReplicationStatusResponse)
describeImageReplicationStatusResponse_repositoryName :: Lens.Lens' DescribeImageReplicationStatusResponse (Prelude.Maybe Prelude.Text)
describeImageReplicationStatusResponse_repositoryName :: (Maybe Text -> f (Maybe Text))
-> DescribeImageReplicationStatusResponse
-> f DescribeImageReplicationStatusResponse
describeImageReplicationStatusResponse_repositoryName = (DescribeImageReplicationStatusResponse -> Maybe Text)
-> (DescribeImageReplicationStatusResponse
-> Maybe Text -> DescribeImageReplicationStatusResponse)
-> Lens
DescribeImageReplicationStatusResponse
DescribeImageReplicationStatusResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImageReplicationStatusResponse' {Maybe Text
repositoryName :: Maybe Text
$sel:repositoryName:DescribeImageReplicationStatusResponse' :: DescribeImageReplicationStatusResponse -> Maybe Text
repositoryName} -> Maybe Text
repositoryName) (\s :: DescribeImageReplicationStatusResponse
s@DescribeImageReplicationStatusResponse' {} Maybe Text
a -> DescribeImageReplicationStatusResponse
s {$sel:repositoryName:DescribeImageReplicationStatusResponse' :: Maybe Text
repositoryName = Maybe Text
a} :: DescribeImageReplicationStatusResponse)
describeImageReplicationStatusResponse_replicationStatuses :: Lens.Lens' DescribeImageReplicationStatusResponse (Prelude.Maybe [ImageReplicationStatus])
describeImageReplicationStatusResponse_replicationStatuses :: (Maybe [ImageReplicationStatus]
-> f (Maybe [ImageReplicationStatus]))
-> DescribeImageReplicationStatusResponse
-> f DescribeImageReplicationStatusResponse
describeImageReplicationStatusResponse_replicationStatuses = (DescribeImageReplicationStatusResponse
-> Maybe [ImageReplicationStatus])
-> (DescribeImageReplicationStatusResponse
-> Maybe [ImageReplicationStatus]
-> DescribeImageReplicationStatusResponse)
-> Lens
DescribeImageReplicationStatusResponse
DescribeImageReplicationStatusResponse
(Maybe [ImageReplicationStatus])
(Maybe [ImageReplicationStatus])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImageReplicationStatusResponse' {Maybe [ImageReplicationStatus]
replicationStatuses :: Maybe [ImageReplicationStatus]
$sel:replicationStatuses:DescribeImageReplicationStatusResponse' :: DescribeImageReplicationStatusResponse
-> Maybe [ImageReplicationStatus]
replicationStatuses} -> Maybe [ImageReplicationStatus]
replicationStatuses) (\s :: DescribeImageReplicationStatusResponse
s@DescribeImageReplicationStatusResponse' {} Maybe [ImageReplicationStatus]
a -> DescribeImageReplicationStatusResponse
s {$sel:replicationStatuses:DescribeImageReplicationStatusResponse' :: Maybe [ImageReplicationStatus]
replicationStatuses = Maybe [ImageReplicationStatus]
a} :: DescribeImageReplicationStatusResponse) ((Maybe [ImageReplicationStatus]
-> f (Maybe [ImageReplicationStatus]))
-> DescribeImageReplicationStatusResponse
-> f DescribeImageReplicationStatusResponse)
-> ((Maybe [ImageReplicationStatus]
-> f (Maybe [ImageReplicationStatus]))
-> Maybe [ImageReplicationStatus]
-> f (Maybe [ImageReplicationStatus]))
-> (Maybe [ImageReplicationStatus]
-> f (Maybe [ImageReplicationStatus]))
-> DescribeImageReplicationStatusResponse
-> f DescribeImageReplicationStatusResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ImageReplicationStatus]
[ImageReplicationStatus]
[ImageReplicationStatus]
[ImageReplicationStatus]
-> Iso
(Maybe [ImageReplicationStatus])
(Maybe [ImageReplicationStatus])
(Maybe [ImageReplicationStatus])
(Maybe [ImageReplicationStatus])
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
[ImageReplicationStatus]
[ImageReplicationStatus]
[ImageReplicationStatus]
[ImageReplicationStatus]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeImageReplicationStatusResponse_httpStatus :: Lens.Lens' DescribeImageReplicationStatusResponse Prelude.Int
describeImageReplicationStatusResponse_httpStatus :: (Int -> f Int)
-> DescribeImageReplicationStatusResponse
-> f DescribeImageReplicationStatusResponse
describeImageReplicationStatusResponse_httpStatus = (DescribeImageReplicationStatusResponse -> Int)
-> (DescribeImageReplicationStatusResponse
-> Int -> DescribeImageReplicationStatusResponse)
-> Lens
DescribeImageReplicationStatusResponse
DescribeImageReplicationStatusResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeImageReplicationStatusResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeImageReplicationStatusResponse' :: DescribeImageReplicationStatusResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeImageReplicationStatusResponse
s@DescribeImageReplicationStatusResponse' {} Int
a -> DescribeImageReplicationStatusResponse
s {$sel:httpStatus:DescribeImageReplicationStatusResponse' :: Int
httpStatus = Int
a} :: DescribeImageReplicationStatusResponse)
instance
Prelude.NFData
DescribeImageReplicationStatusResponse