{-# 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.ImageBuilder.ListImagePipelineImages
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns a list of images created by the specified pipeline.
module Amazonka.ImageBuilder.ListImagePipelineImages
  ( -- * Creating a Request
    ListImagePipelineImages (..),
    newListImagePipelineImages,

    -- * Request Lenses
    listImagePipelineImages_filters,
    listImagePipelineImages_nextToken,
    listImagePipelineImages_maxResults,
    listImagePipelineImages_imagePipelineArn,

    -- * Destructuring the Response
    ListImagePipelineImagesResponse (..),
    newListImagePipelineImagesResponse,

    -- * Response Lenses
    listImagePipelineImagesResponse_requestId,
    listImagePipelineImagesResponse_nextToken,
    listImagePipelineImagesResponse_imageSummaryList,
    listImagePipelineImagesResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.ImageBuilder.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

-- | /See:/ 'newListImagePipelineImages' smart constructor.
data ListImagePipelineImages = ListImagePipelineImages'
  { -- | Use the following filters to streamline results:
    --
    -- -   @name@
    --
    -- -   @version@
    ListImagePipelineImages -> Maybe (NonEmpty Filter)
filters :: Prelude.Maybe (Prelude.NonEmpty Filter),
    -- | A token to specify where to start paginating. This is the NextToken from
    -- a previously truncated response.
    ListImagePipelineImages -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum items to return in a request.
    ListImagePipelineImages -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The Amazon Resource Name (ARN) of the image pipeline whose images you
    -- want to view.
    ListImagePipelineImages -> Text
imagePipelineArn :: Prelude.Text
  }
  deriving (ListImagePipelineImages -> ListImagePipelineImages -> Bool
(ListImagePipelineImages -> ListImagePipelineImages -> Bool)
-> (ListImagePipelineImages -> ListImagePipelineImages -> Bool)
-> Eq ListImagePipelineImages
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListImagePipelineImages -> ListImagePipelineImages -> Bool
$c/= :: ListImagePipelineImages -> ListImagePipelineImages -> Bool
== :: ListImagePipelineImages -> ListImagePipelineImages -> Bool
$c== :: ListImagePipelineImages -> ListImagePipelineImages -> Bool
Prelude.Eq, ReadPrec [ListImagePipelineImages]
ReadPrec ListImagePipelineImages
Int -> ReadS ListImagePipelineImages
ReadS [ListImagePipelineImages]
(Int -> ReadS ListImagePipelineImages)
-> ReadS [ListImagePipelineImages]
-> ReadPrec ListImagePipelineImages
-> ReadPrec [ListImagePipelineImages]
-> Read ListImagePipelineImages
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListImagePipelineImages]
$creadListPrec :: ReadPrec [ListImagePipelineImages]
readPrec :: ReadPrec ListImagePipelineImages
$creadPrec :: ReadPrec ListImagePipelineImages
readList :: ReadS [ListImagePipelineImages]
$creadList :: ReadS [ListImagePipelineImages]
readsPrec :: Int -> ReadS ListImagePipelineImages
$creadsPrec :: Int -> ReadS ListImagePipelineImages
Prelude.Read, Int -> ListImagePipelineImages -> ShowS
[ListImagePipelineImages] -> ShowS
ListImagePipelineImages -> String
(Int -> ListImagePipelineImages -> ShowS)
-> (ListImagePipelineImages -> String)
-> ([ListImagePipelineImages] -> ShowS)
-> Show ListImagePipelineImages
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListImagePipelineImages] -> ShowS
$cshowList :: [ListImagePipelineImages] -> ShowS
show :: ListImagePipelineImages -> String
$cshow :: ListImagePipelineImages -> String
showsPrec :: Int -> ListImagePipelineImages -> ShowS
$cshowsPrec :: Int -> ListImagePipelineImages -> ShowS
Prelude.Show, (forall x.
 ListImagePipelineImages -> Rep ListImagePipelineImages x)
-> (forall x.
    Rep ListImagePipelineImages x -> ListImagePipelineImages)
-> Generic ListImagePipelineImages
forall x. Rep ListImagePipelineImages x -> ListImagePipelineImages
forall x. ListImagePipelineImages -> Rep ListImagePipelineImages x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListImagePipelineImages x -> ListImagePipelineImages
$cfrom :: forall x. ListImagePipelineImages -> Rep ListImagePipelineImages x
Prelude.Generic)

-- |
-- Create a value of 'ListImagePipelineImages' 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:
--
-- 'filters', 'listImagePipelineImages_filters' - Use the following filters to streamline results:
--
-- -   @name@
--
-- -   @version@
--
-- 'nextToken', 'listImagePipelineImages_nextToken' - A token to specify where to start paginating. This is the NextToken from
-- a previously truncated response.
--
-- 'maxResults', 'listImagePipelineImages_maxResults' - The maximum items to return in a request.
--
-- 'imagePipelineArn', 'listImagePipelineImages_imagePipelineArn' - The Amazon Resource Name (ARN) of the image pipeline whose images you
-- want to view.
newListImagePipelineImages ::
  -- | 'imagePipelineArn'
  Prelude.Text ->
  ListImagePipelineImages
newListImagePipelineImages :: Text -> ListImagePipelineImages
newListImagePipelineImages Text
pImagePipelineArn_ =
  ListImagePipelineImages' :: Maybe (NonEmpty Filter)
-> Maybe Text -> Maybe Natural -> Text -> ListImagePipelineImages
ListImagePipelineImages'
    { $sel:filters:ListImagePipelineImages' :: Maybe (NonEmpty Filter)
filters = Maybe (NonEmpty Filter)
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListImagePipelineImages' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListImagePipelineImages' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:imagePipelineArn:ListImagePipelineImages' :: Text
imagePipelineArn = Text
pImagePipelineArn_
    }

-- | Use the following filters to streamline results:
--
-- -   @name@
--
-- -   @version@
listImagePipelineImages_filters :: Lens.Lens' ListImagePipelineImages (Prelude.Maybe (Prelude.NonEmpty Filter))
listImagePipelineImages_filters :: (Maybe (NonEmpty Filter) -> f (Maybe (NonEmpty Filter)))
-> ListImagePipelineImages -> f ListImagePipelineImages
listImagePipelineImages_filters = (ListImagePipelineImages -> Maybe (NonEmpty Filter))
-> (ListImagePipelineImages
    -> Maybe (NonEmpty Filter) -> ListImagePipelineImages)
-> Lens
     ListImagePipelineImages
     ListImagePipelineImages
     (Maybe (NonEmpty Filter))
     (Maybe (NonEmpty Filter))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListImagePipelineImages' {Maybe (NonEmpty Filter)
filters :: Maybe (NonEmpty Filter)
$sel:filters:ListImagePipelineImages' :: ListImagePipelineImages -> Maybe (NonEmpty Filter)
filters} -> Maybe (NonEmpty Filter)
filters) (\s :: ListImagePipelineImages
s@ListImagePipelineImages' {} Maybe (NonEmpty Filter)
a -> ListImagePipelineImages
s {$sel:filters:ListImagePipelineImages' :: Maybe (NonEmpty Filter)
filters = Maybe (NonEmpty Filter)
a} :: ListImagePipelineImages) ((Maybe (NonEmpty Filter) -> f (Maybe (NonEmpty Filter)))
 -> ListImagePipelineImages -> f ListImagePipelineImages)
-> ((Maybe (NonEmpty Filter) -> f (Maybe (NonEmpty Filter)))
    -> Maybe (NonEmpty Filter) -> f (Maybe (NonEmpty Filter)))
-> (Maybe (NonEmpty Filter) -> f (Maybe (NonEmpty Filter)))
-> ListImagePipelineImages
-> f ListImagePipelineImages
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty Filter)
  (NonEmpty Filter)
  (NonEmpty Filter)
  (NonEmpty Filter)
-> Iso
     (Maybe (NonEmpty Filter))
     (Maybe (NonEmpty Filter))
     (Maybe (NonEmpty Filter))
     (Maybe (NonEmpty Filter))
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 Filter)
  (NonEmpty Filter)
  (NonEmpty Filter)
  (NonEmpty Filter)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A token to specify where to start paginating. This is the NextToken from
-- a previously truncated response.
listImagePipelineImages_nextToken :: Lens.Lens' ListImagePipelineImages (Prelude.Maybe Prelude.Text)
listImagePipelineImages_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListImagePipelineImages -> f ListImagePipelineImages
listImagePipelineImages_nextToken = (ListImagePipelineImages -> Maybe Text)
-> (ListImagePipelineImages
    -> Maybe Text -> ListImagePipelineImages)
-> Lens
     ListImagePipelineImages
     ListImagePipelineImages
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListImagePipelineImages' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListImagePipelineImages' :: ListImagePipelineImages -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListImagePipelineImages
s@ListImagePipelineImages' {} Maybe Text
a -> ListImagePipelineImages
s {$sel:nextToken:ListImagePipelineImages' :: Maybe Text
nextToken = Maybe Text
a} :: ListImagePipelineImages)

-- | The maximum items to return in a request.
listImagePipelineImages_maxResults :: Lens.Lens' ListImagePipelineImages (Prelude.Maybe Prelude.Natural)
listImagePipelineImages_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListImagePipelineImages -> f ListImagePipelineImages
listImagePipelineImages_maxResults = (ListImagePipelineImages -> Maybe Natural)
-> (ListImagePipelineImages
    -> Maybe Natural -> ListImagePipelineImages)
-> Lens
     ListImagePipelineImages
     ListImagePipelineImages
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListImagePipelineImages' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListImagePipelineImages' :: ListImagePipelineImages -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListImagePipelineImages
s@ListImagePipelineImages' {} Maybe Natural
a -> ListImagePipelineImages
s {$sel:maxResults:ListImagePipelineImages' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListImagePipelineImages)

-- | The Amazon Resource Name (ARN) of the image pipeline whose images you
-- want to view.
listImagePipelineImages_imagePipelineArn :: Lens.Lens' ListImagePipelineImages Prelude.Text
listImagePipelineImages_imagePipelineArn :: (Text -> f Text)
-> ListImagePipelineImages -> f ListImagePipelineImages
listImagePipelineImages_imagePipelineArn = (ListImagePipelineImages -> Text)
-> (ListImagePipelineImages -> Text -> ListImagePipelineImages)
-> Lens ListImagePipelineImages ListImagePipelineImages Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListImagePipelineImages' {Text
imagePipelineArn :: Text
$sel:imagePipelineArn:ListImagePipelineImages' :: ListImagePipelineImages -> Text
imagePipelineArn} -> Text
imagePipelineArn) (\s :: ListImagePipelineImages
s@ListImagePipelineImages' {} Text
a -> ListImagePipelineImages
s {$sel:imagePipelineArn:ListImagePipelineImages' :: Text
imagePipelineArn = Text
a} :: ListImagePipelineImages)

instance Core.AWSRequest ListImagePipelineImages where
  type
    AWSResponse ListImagePipelineImages =
      ListImagePipelineImagesResponse
  request :: ListImagePipelineImages -> Request ListImagePipelineImages
request = Service
-> ListImagePipelineImages -> Request ListImagePipelineImages
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListImagePipelineImages
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListImagePipelineImages)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListImagePipelineImages))
-> Logger
-> Service
-> Proxy ListImagePipelineImages
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListImagePipelineImages)))
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 Text
-> Maybe Text
-> Maybe [ImageSummary]
-> Int
-> ListImagePipelineImagesResponse
ListImagePipelineImagesResponse'
            (Maybe Text
 -> Maybe Text
 -> Maybe [ImageSummary]
 -> Int
 -> ListImagePipelineImagesResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe [ImageSummary] -> Int -> ListImagePipelineImagesResponse)
forall (f :: * -> *) a b. Functor 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
"requestId")
            Either
  String
  (Maybe Text
   -> Maybe [ImageSummary] -> Int -> ListImagePipelineImagesResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [ImageSummary] -> Int -> ListImagePipelineImagesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"nextToken")
            Either
  String
  (Maybe [ImageSummary] -> Int -> ListImagePipelineImagesResponse)
-> Either String (Maybe [ImageSummary])
-> Either String (Int -> ListImagePipelineImagesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [ImageSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"imageSummaryList"
                            Either String (Maybe (Maybe [ImageSummary]))
-> Maybe [ImageSummary] -> Either String (Maybe [ImageSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ImageSummary]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Int -> ListImagePipelineImagesResponse)
-> Either String Int
-> Either String ListImagePipelineImagesResponse
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 ListImagePipelineImages

instance Prelude.NFData ListImagePipelineImages

instance Core.ToHeaders ListImagePipelineImages where
  toHeaders :: ListImagePipelineImages -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListImagePipelineImages -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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 ListImagePipelineImages where
  toJSON :: ListImagePipelineImages -> Value
toJSON ListImagePipelineImages' {Maybe Natural
Maybe (NonEmpty Filter)
Maybe Text
Text
imagePipelineArn :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
filters :: Maybe (NonEmpty Filter)
$sel:imagePipelineArn:ListImagePipelineImages' :: ListImagePipelineImages -> Text
$sel:maxResults:ListImagePipelineImages' :: ListImagePipelineImages -> Maybe Natural
$sel:nextToken:ListImagePipelineImages' :: ListImagePipelineImages -> Maybe Text
$sel:filters:ListImagePipelineImages' :: ListImagePipelineImages -> Maybe (NonEmpty Filter)
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"filters" Text -> NonEmpty Filter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty Filter -> Pair) -> Maybe (NonEmpty Filter) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Filter)
filters,
            (Text
"nextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            (Text
"maxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"imagePipelineArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
imagePipelineArn)
          ]
      )

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

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

-- | /See:/ 'newListImagePipelineImagesResponse' smart constructor.
data ListImagePipelineImagesResponse = ListImagePipelineImagesResponse'
  { -- | The request ID that uniquely identifies this request.
    ListImagePipelineImagesResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
    -- | The next token used for paginated responses. When this is not empty,
    -- there are additional elements that the service has not included in this
    -- request. Use this token with the next request to retrieve additional
    -- objects.
    ListImagePipelineImagesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The list of images built by this pipeline.
    ListImagePipelineImagesResponse -> Maybe [ImageSummary]
imageSummaryList :: Prelude.Maybe [ImageSummary],
    -- | The response's http status code.
    ListImagePipelineImagesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListImagePipelineImagesResponse
-> ListImagePipelineImagesResponse -> Bool
(ListImagePipelineImagesResponse
 -> ListImagePipelineImagesResponse -> Bool)
-> (ListImagePipelineImagesResponse
    -> ListImagePipelineImagesResponse -> Bool)
-> Eq ListImagePipelineImagesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListImagePipelineImagesResponse
-> ListImagePipelineImagesResponse -> Bool
$c/= :: ListImagePipelineImagesResponse
-> ListImagePipelineImagesResponse -> Bool
== :: ListImagePipelineImagesResponse
-> ListImagePipelineImagesResponse -> Bool
$c== :: ListImagePipelineImagesResponse
-> ListImagePipelineImagesResponse -> Bool
Prelude.Eq, ReadPrec [ListImagePipelineImagesResponse]
ReadPrec ListImagePipelineImagesResponse
Int -> ReadS ListImagePipelineImagesResponse
ReadS [ListImagePipelineImagesResponse]
(Int -> ReadS ListImagePipelineImagesResponse)
-> ReadS [ListImagePipelineImagesResponse]
-> ReadPrec ListImagePipelineImagesResponse
-> ReadPrec [ListImagePipelineImagesResponse]
-> Read ListImagePipelineImagesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListImagePipelineImagesResponse]
$creadListPrec :: ReadPrec [ListImagePipelineImagesResponse]
readPrec :: ReadPrec ListImagePipelineImagesResponse
$creadPrec :: ReadPrec ListImagePipelineImagesResponse
readList :: ReadS [ListImagePipelineImagesResponse]
$creadList :: ReadS [ListImagePipelineImagesResponse]
readsPrec :: Int -> ReadS ListImagePipelineImagesResponse
$creadsPrec :: Int -> ReadS ListImagePipelineImagesResponse
Prelude.Read, Int -> ListImagePipelineImagesResponse -> ShowS
[ListImagePipelineImagesResponse] -> ShowS
ListImagePipelineImagesResponse -> String
(Int -> ListImagePipelineImagesResponse -> ShowS)
-> (ListImagePipelineImagesResponse -> String)
-> ([ListImagePipelineImagesResponse] -> ShowS)
-> Show ListImagePipelineImagesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListImagePipelineImagesResponse] -> ShowS
$cshowList :: [ListImagePipelineImagesResponse] -> ShowS
show :: ListImagePipelineImagesResponse -> String
$cshow :: ListImagePipelineImagesResponse -> String
showsPrec :: Int -> ListImagePipelineImagesResponse -> ShowS
$cshowsPrec :: Int -> ListImagePipelineImagesResponse -> ShowS
Prelude.Show, (forall x.
 ListImagePipelineImagesResponse
 -> Rep ListImagePipelineImagesResponse x)
-> (forall x.
    Rep ListImagePipelineImagesResponse x
    -> ListImagePipelineImagesResponse)
-> Generic ListImagePipelineImagesResponse
forall x.
Rep ListImagePipelineImagesResponse x
-> ListImagePipelineImagesResponse
forall x.
ListImagePipelineImagesResponse
-> Rep ListImagePipelineImagesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListImagePipelineImagesResponse x
-> ListImagePipelineImagesResponse
$cfrom :: forall x.
ListImagePipelineImagesResponse
-> Rep ListImagePipelineImagesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListImagePipelineImagesResponse' 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:
--
-- 'requestId', 'listImagePipelineImagesResponse_requestId' - The request ID that uniquely identifies this request.
--
-- 'nextToken', 'listImagePipelineImagesResponse_nextToken' - The next token used for paginated responses. When this is not empty,
-- there are additional elements that the service has not included in this
-- request. Use this token with the next request to retrieve additional
-- objects.
--
-- 'imageSummaryList', 'listImagePipelineImagesResponse_imageSummaryList' - The list of images built by this pipeline.
--
-- 'httpStatus', 'listImagePipelineImagesResponse_httpStatus' - The response's http status code.
newListImagePipelineImagesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListImagePipelineImagesResponse
newListImagePipelineImagesResponse :: Int -> ListImagePipelineImagesResponse
newListImagePipelineImagesResponse Int
pHttpStatus_ =
  ListImagePipelineImagesResponse' :: Maybe Text
-> Maybe Text
-> Maybe [ImageSummary]
-> Int
-> ListImagePipelineImagesResponse
ListImagePipelineImagesResponse'
    { $sel:requestId:ListImagePipelineImagesResponse' :: Maybe Text
requestId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListImagePipelineImagesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:imageSummaryList:ListImagePipelineImagesResponse' :: Maybe [ImageSummary]
imageSummaryList = Maybe [ImageSummary]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListImagePipelineImagesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The request ID that uniquely identifies this request.
listImagePipelineImagesResponse_requestId :: Lens.Lens' ListImagePipelineImagesResponse (Prelude.Maybe Prelude.Text)
listImagePipelineImagesResponse_requestId :: (Maybe Text -> f (Maybe Text))
-> ListImagePipelineImagesResponse
-> f ListImagePipelineImagesResponse
listImagePipelineImagesResponse_requestId = (ListImagePipelineImagesResponse -> Maybe Text)
-> (ListImagePipelineImagesResponse
    -> Maybe Text -> ListImagePipelineImagesResponse)
-> Lens
     ListImagePipelineImagesResponse
     ListImagePipelineImagesResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListImagePipelineImagesResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:ListImagePipelineImagesResponse' :: ListImagePipelineImagesResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: ListImagePipelineImagesResponse
s@ListImagePipelineImagesResponse' {} Maybe Text
a -> ListImagePipelineImagesResponse
s {$sel:requestId:ListImagePipelineImagesResponse' :: Maybe Text
requestId = Maybe Text
a} :: ListImagePipelineImagesResponse)

-- | The next token used for paginated responses. When this is not empty,
-- there are additional elements that the service has not included in this
-- request. Use this token with the next request to retrieve additional
-- objects.
listImagePipelineImagesResponse_nextToken :: Lens.Lens' ListImagePipelineImagesResponse (Prelude.Maybe Prelude.Text)
listImagePipelineImagesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListImagePipelineImagesResponse
-> f ListImagePipelineImagesResponse
listImagePipelineImagesResponse_nextToken = (ListImagePipelineImagesResponse -> Maybe Text)
-> (ListImagePipelineImagesResponse
    -> Maybe Text -> ListImagePipelineImagesResponse)
-> Lens
     ListImagePipelineImagesResponse
     ListImagePipelineImagesResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListImagePipelineImagesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListImagePipelineImagesResponse' :: ListImagePipelineImagesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListImagePipelineImagesResponse
s@ListImagePipelineImagesResponse' {} Maybe Text
a -> ListImagePipelineImagesResponse
s {$sel:nextToken:ListImagePipelineImagesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListImagePipelineImagesResponse)

-- | The list of images built by this pipeline.
listImagePipelineImagesResponse_imageSummaryList :: Lens.Lens' ListImagePipelineImagesResponse (Prelude.Maybe [ImageSummary])
listImagePipelineImagesResponse_imageSummaryList :: (Maybe [ImageSummary] -> f (Maybe [ImageSummary]))
-> ListImagePipelineImagesResponse
-> f ListImagePipelineImagesResponse
listImagePipelineImagesResponse_imageSummaryList = (ListImagePipelineImagesResponse -> Maybe [ImageSummary])
-> (ListImagePipelineImagesResponse
    -> Maybe [ImageSummary] -> ListImagePipelineImagesResponse)
-> Lens
     ListImagePipelineImagesResponse
     ListImagePipelineImagesResponse
     (Maybe [ImageSummary])
     (Maybe [ImageSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListImagePipelineImagesResponse' {Maybe [ImageSummary]
imageSummaryList :: Maybe [ImageSummary]
$sel:imageSummaryList:ListImagePipelineImagesResponse' :: ListImagePipelineImagesResponse -> Maybe [ImageSummary]
imageSummaryList} -> Maybe [ImageSummary]
imageSummaryList) (\s :: ListImagePipelineImagesResponse
s@ListImagePipelineImagesResponse' {} Maybe [ImageSummary]
a -> ListImagePipelineImagesResponse
s {$sel:imageSummaryList:ListImagePipelineImagesResponse' :: Maybe [ImageSummary]
imageSummaryList = Maybe [ImageSummary]
a} :: ListImagePipelineImagesResponse) ((Maybe [ImageSummary] -> f (Maybe [ImageSummary]))
 -> ListImagePipelineImagesResponse
 -> f ListImagePipelineImagesResponse)
-> ((Maybe [ImageSummary] -> f (Maybe [ImageSummary]))
    -> Maybe [ImageSummary] -> f (Maybe [ImageSummary]))
-> (Maybe [ImageSummary] -> f (Maybe [ImageSummary]))
-> ListImagePipelineImagesResponse
-> f ListImagePipelineImagesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [ImageSummary] [ImageSummary] [ImageSummary] [ImageSummary]
-> Iso
     (Maybe [ImageSummary])
     (Maybe [ImageSummary])
     (Maybe [ImageSummary])
     (Maybe [ImageSummary])
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 [ImageSummary] [ImageSummary] [ImageSummary] [ImageSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
listImagePipelineImagesResponse_httpStatus :: Lens.Lens' ListImagePipelineImagesResponse Prelude.Int
listImagePipelineImagesResponse_httpStatus :: (Int -> f Int)
-> ListImagePipelineImagesResponse
-> f ListImagePipelineImagesResponse
listImagePipelineImagesResponse_httpStatus = (ListImagePipelineImagesResponse -> Int)
-> (ListImagePipelineImagesResponse
    -> Int -> ListImagePipelineImagesResponse)
-> Lens
     ListImagePipelineImagesResponse
     ListImagePipelineImagesResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListImagePipelineImagesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListImagePipelineImagesResponse' :: ListImagePipelineImagesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListImagePipelineImagesResponse
s@ListImagePipelineImagesResponse' {} Int
a -> ListImagePipelineImagesResponse
s {$sel:httpStatus:ListImagePipelineImagesResponse' :: Int
httpStatus = Int
a} :: ListImagePipelineImagesResponse)

instance
  Prelude.NFData
    ListImagePipelineImagesResponse