{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.ECR.DescribeImageReplicationStatus
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns the replication status for a specified image.
module Amazonka.ECR.DescribeImageReplicationStatus
  ( -- * Creating a Request
    DescribeImageReplicationStatus (..),
    newDescribeImageReplicationStatus,

    -- * Request Lenses
    describeImageReplicationStatus_registryId,
    describeImageReplicationStatus_repositoryName,
    describeImageReplicationStatus_imageId,

    -- * Destructuring the Response
    DescribeImageReplicationStatusResponse (..),
    newDescribeImageReplicationStatusResponse,

    -- * Response Lenses
    describeImageReplicationStatusResponse_imageId,
    describeImageReplicationStatusResponse_replicationStatuses,
    describeImageReplicationStatusResponse_repositoryName,
    describeImageReplicationStatusResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.ECR.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDescribeImageReplicationStatus' smart constructor.
data DescribeImageReplicationStatus = DescribeImageReplicationStatus'
  { -- | The Amazon Web Services account ID associated with the registry. If you
    -- do not specify a registry, the default registry is assumed.
    DescribeImageReplicationStatus -> Maybe Text
registryId :: Prelude.Maybe Prelude.Text,
    -- | The name of the repository that the image is in.
    DescribeImageReplicationStatus -> Text
repositoryName :: Prelude.Text,
    DescribeImageReplicationStatus -> ImageIdentifier
imageId :: ImageIdentifier
  }
  deriving (DescribeImageReplicationStatus
-> DescribeImageReplicationStatus -> Bool
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]
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
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.
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)

-- |
-- Create a value of 'DescribeImageReplicationStatus' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'registryId', 'describeImageReplicationStatus_registryId' - The Amazon Web Services account ID associated with the registry. If you
-- do not specify a registry, the default registry is assumed.
--
-- 'repositoryName', 'describeImageReplicationStatus_repositoryName' - The name of the repository that the image is in.
--
-- 'imageId', 'describeImageReplicationStatus_imageId' - Undocumented member.
newDescribeImageReplicationStatus ::
  -- | 'repositoryName'
  Prelude.Text ->
  -- | 'imageId'
  ImageIdentifier ->
  DescribeImageReplicationStatus
newDescribeImageReplicationStatus :: Text -> ImageIdentifier -> DescribeImageReplicationStatus
newDescribeImageReplicationStatus
  Text
pRepositoryName_
  ImageIdentifier
pImageId_ =
    DescribeImageReplicationStatus'
      { $sel:registryId:DescribeImageReplicationStatus' :: Maybe Text
registryId =
          forall a. Maybe a
Prelude.Nothing,
        $sel:repositoryName:DescribeImageReplicationStatus' :: Text
repositoryName = Text
pRepositoryName_,
        $sel:imageId:DescribeImageReplicationStatus' :: ImageIdentifier
imageId = ImageIdentifier
pImageId_
      }

-- | The Amazon Web Services account ID associated with the registry. If you
-- do not specify a registry, the default registry is assumed.
describeImageReplicationStatus_registryId :: Lens.Lens' DescribeImageReplicationStatus (Prelude.Maybe Prelude.Text)
describeImageReplicationStatus_registryId :: Lens' DescribeImageReplicationStatus (Maybe Text)
describeImageReplicationStatus_registryId = 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)

-- | The name of the repository that the image is in.
describeImageReplicationStatus_repositoryName :: Lens.Lens' DescribeImageReplicationStatus Prelude.Text
describeImageReplicationStatus_repositoryName :: Lens' DescribeImageReplicationStatus Text
describeImageReplicationStatus_repositoryName = 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)

-- | Undocumented member.
describeImageReplicationStatus_imageId :: Lens.Lens' DescribeImageReplicationStatus ImageIdentifier
describeImageReplicationStatus_imageId :: Lens' DescribeImageReplicationStatus ImageIdentifier
describeImageReplicationStatus_imageId = 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 :: (Service -> Service)
-> DescribeImageReplicationStatus
-> Request DescribeImageReplicationStatus
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeImageReplicationStatus
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeImageReplicationStatus)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe ImageIdentifier
-> Maybe [ImageReplicationStatus]
-> Maybe Text
-> Int
-> DescribeImageReplicationStatusResponse
DescribeImageReplicationStatusResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"imageId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"replicationStatuses"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"repositoryName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    DescribeImageReplicationStatus
  where
  hashWithSalt :: Int -> DescribeImageReplicationStatus -> Int
hashWithSalt
    Int
_salt
    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
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
registryId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
repositoryName
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ImageIdentifier
imageId

instance
  Prelude.NFData
    DescribeImageReplicationStatus
  where
  rnf :: DescribeImageReplicationStatus -> ()
rnf 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
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
registryId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
repositoryName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ImageIdentifier
imageId

instance
  Data.ToHeaders
    DescribeImageReplicationStatus
  where
  toHeaders :: DescribeImageReplicationStatus -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"AmazonEC2ContainerRegistry_V20150921.DescribeImageReplicationStatus" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.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
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"registryId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
registryId,
            forall a. a -> Maybe a
Prelude.Just
              (Key
"repositoryName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
repositoryName),
            forall a. a -> Maybe a
Prelude.Just (Key
"imageId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= ImageIdentifier
imageId)
          ]
      )

instance Data.ToPath DescribeImageReplicationStatus where
  toPath :: DescribeImageReplicationStatus -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Data.ToQuery DescribeImageReplicationStatus where
  toQuery :: DescribeImageReplicationStatus -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDescribeImageReplicationStatusResponse' smart constructor.
data DescribeImageReplicationStatusResponse = DescribeImageReplicationStatusResponse'
  { DescribeImageReplicationStatusResponse -> Maybe ImageIdentifier
imageId :: Prelude.Maybe ImageIdentifier,
    -- | The replication status details for the images in the specified
    -- repository.
    DescribeImageReplicationStatusResponse
-> Maybe [ImageReplicationStatus]
replicationStatuses :: Prelude.Maybe [ImageReplicationStatus],
    -- | The repository name associated with the request.
    DescribeImageReplicationStatusResponse -> Maybe Text
repositoryName :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeImageReplicationStatusResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeImageReplicationStatusResponse
-> DescribeImageReplicationStatusResponse -> Bool
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]
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
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.
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)

-- |
-- Create a value of 'DescribeImageReplicationStatusResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'imageId', 'describeImageReplicationStatusResponse_imageId' - Undocumented member.
--
-- 'replicationStatuses', 'describeImageReplicationStatusResponse_replicationStatuses' - The replication status details for the images in the specified
-- repository.
--
-- 'repositoryName', 'describeImageReplicationStatusResponse_repositoryName' - The repository name associated with the request.
--
-- 'httpStatus', 'describeImageReplicationStatusResponse_httpStatus' - The response's http status code.
newDescribeImageReplicationStatusResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeImageReplicationStatusResponse
newDescribeImageReplicationStatusResponse :: Int -> DescribeImageReplicationStatusResponse
newDescribeImageReplicationStatusResponse
  Int
pHttpStatus_ =
    DescribeImageReplicationStatusResponse'
      { $sel:imageId:DescribeImageReplicationStatusResponse' :: Maybe ImageIdentifier
imageId =
          forall a. Maybe a
Prelude.Nothing,
        $sel:replicationStatuses:DescribeImageReplicationStatusResponse' :: Maybe [ImageReplicationStatus]
replicationStatuses =
          forall a. Maybe a
Prelude.Nothing,
        $sel:repositoryName:DescribeImageReplicationStatusResponse' :: Maybe Text
repositoryName = forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeImageReplicationStatusResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | Undocumented member.
describeImageReplicationStatusResponse_imageId :: Lens.Lens' DescribeImageReplicationStatusResponse (Prelude.Maybe ImageIdentifier)
describeImageReplicationStatusResponse_imageId :: Lens'
  DescribeImageReplicationStatusResponse (Maybe ImageIdentifier)
describeImageReplicationStatusResponse_imageId = 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)

-- | The replication status details for the images in the specified
-- repository.
describeImageReplicationStatusResponse_replicationStatuses :: Lens.Lens' DescribeImageReplicationStatusResponse (Prelude.Maybe [ImageReplicationStatus])
describeImageReplicationStatusResponse_replicationStatuses :: Lens'
  DescribeImageReplicationStatusResponse
  (Maybe [ImageReplicationStatus])
describeImageReplicationStatusResponse_replicationStatuses = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The repository name associated with the request.
describeImageReplicationStatusResponse_repositoryName :: Lens.Lens' DescribeImageReplicationStatusResponse (Prelude.Maybe Prelude.Text)
describeImageReplicationStatusResponse_repositoryName :: Lens' DescribeImageReplicationStatusResponse (Maybe Text)
describeImageReplicationStatusResponse_repositoryName = 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)

-- | The response's http status code.
describeImageReplicationStatusResponse_httpStatus :: Lens.Lens' DescribeImageReplicationStatusResponse Prelude.Int
describeImageReplicationStatusResponse_httpStatus :: Lens' DescribeImageReplicationStatusResponse Int
describeImageReplicationStatusResponse_httpStatus = 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
  where
  rnf :: DescribeImageReplicationStatusResponse -> ()
rnf DescribeImageReplicationStatusResponse' {Int
Maybe [ImageReplicationStatus]
Maybe Text
Maybe ImageIdentifier
httpStatus :: Int
repositoryName :: Maybe Text
replicationStatuses :: Maybe [ImageReplicationStatus]
imageId :: Maybe ImageIdentifier
$sel:httpStatus:DescribeImageReplicationStatusResponse' :: DescribeImageReplicationStatusResponse -> Int
$sel:repositoryName:DescribeImageReplicationStatusResponse' :: DescribeImageReplicationStatusResponse -> Maybe Text
$sel:replicationStatuses:DescribeImageReplicationStatusResponse' :: DescribeImageReplicationStatusResponse
-> Maybe [ImageReplicationStatus]
$sel:imageId:DescribeImageReplicationStatusResponse' :: DescribeImageReplicationStatusResponse -> Maybe ImageIdentifier
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe ImageIdentifier
imageId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ImageReplicationStatus]
replicationStatuses
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
repositoryName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus