{-# 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.Glue.GetBlueprintRuns
-- 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)
--
-- Retrieves the details of blueprint runs for a specified blueprint.
module Amazonka.Glue.GetBlueprintRuns
  ( -- * Creating a Request
    GetBlueprintRuns (..),
    newGetBlueprintRuns,

    -- * Request Lenses
    getBlueprintRuns_nextToken,
    getBlueprintRuns_maxResults,
    getBlueprintRuns_blueprintName,

    -- * Destructuring the Response
    GetBlueprintRunsResponse (..),
    newGetBlueprintRunsResponse,

    -- * Response Lenses
    getBlueprintRunsResponse_blueprintRuns,
    getBlueprintRunsResponse_nextToken,
    getBlueprintRunsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.Glue.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:/ 'newGetBlueprintRuns' smart constructor.
data GetBlueprintRuns = GetBlueprintRuns'
  { -- | A continuation token, if this is a continuation request.
    GetBlueprintRuns -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum size of a list to return.
    GetBlueprintRuns -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The name of the blueprint.
    GetBlueprintRuns -> Text
blueprintName :: Prelude.Text
  }
  deriving (GetBlueprintRuns -> GetBlueprintRuns -> Bool
(GetBlueprintRuns -> GetBlueprintRuns -> Bool)
-> (GetBlueprintRuns -> GetBlueprintRuns -> Bool)
-> Eq GetBlueprintRuns
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetBlueprintRuns -> GetBlueprintRuns -> Bool
$c/= :: GetBlueprintRuns -> GetBlueprintRuns -> Bool
== :: GetBlueprintRuns -> GetBlueprintRuns -> Bool
$c== :: GetBlueprintRuns -> GetBlueprintRuns -> Bool
Prelude.Eq, ReadPrec [GetBlueprintRuns]
ReadPrec GetBlueprintRuns
Int -> ReadS GetBlueprintRuns
ReadS [GetBlueprintRuns]
(Int -> ReadS GetBlueprintRuns)
-> ReadS [GetBlueprintRuns]
-> ReadPrec GetBlueprintRuns
-> ReadPrec [GetBlueprintRuns]
-> Read GetBlueprintRuns
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetBlueprintRuns]
$creadListPrec :: ReadPrec [GetBlueprintRuns]
readPrec :: ReadPrec GetBlueprintRuns
$creadPrec :: ReadPrec GetBlueprintRuns
readList :: ReadS [GetBlueprintRuns]
$creadList :: ReadS [GetBlueprintRuns]
readsPrec :: Int -> ReadS GetBlueprintRuns
$creadsPrec :: Int -> ReadS GetBlueprintRuns
Prelude.Read, Int -> GetBlueprintRuns -> ShowS
[GetBlueprintRuns] -> ShowS
GetBlueprintRuns -> String
(Int -> GetBlueprintRuns -> ShowS)
-> (GetBlueprintRuns -> String)
-> ([GetBlueprintRuns] -> ShowS)
-> Show GetBlueprintRuns
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetBlueprintRuns] -> ShowS
$cshowList :: [GetBlueprintRuns] -> ShowS
show :: GetBlueprintRuns -> String
$cshow :: GetBlueprintRuns -> String
showsPrec :: Int -> GetBlueprintRuns -> ShowS
$cshowsPrec :: Int -> GetBlueprintRuns -> ShowS
Prelude.Show, (forall x. GetBlueprintRuns -> Rep GetBlueprintRuns x)
-> (forall x. Rep GetBlueprintRuns x -> GetBlueprintRuns)
-> Generic GetBlueprintRuns
forall x. Rep GetBlueprintRuns x -> GetBlueprintRuns
forall x. GetBlueprintRuns -> Rep GetBlueprintRuns x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetBlueprintRuns x -> GetBlueprintRuns
$cfrom :: forall x. GetBlueprintRuns -> Rep GetBlueprintRuns x
Prelude.Generic)

-- |
-- Create a value of 'GetBlueprintRuns' 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:
--
-- 'nextToken', 'getBlueprintRuns_nextToken' - A continuation token, if this is a continuation request.
--
-- 'maxResults', 'getBlueprintRuns_maxResults' - The maximum size of a list to return.
--
-- 'blueprintName', 'getBlueprintRuns_blueprintName' - The name of the blueprint.
newGetBlueprintRuns ::
  -- | 'blueprintName'
  Prelude.Text ->
  GetBlueprintRuns
newGetBlueprintRuns :: Text -> GetBlueprintRuns
newGetBlueprintRuns Text
pBlueprintName_ =
  GetBlueprintRuns' :: Maybe Text -> Maybe Natural -> Text -> GetBlueprintRuns
GetBlueprintRuns'
    { $sel:nextToken:GetBlueprintRuns' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:GetBlueprintRuns' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:blueprintName:GetBlueprintRuns' :: Text
blueprintName = Text
pBlueprintName_
    }

-- | A continuation token, if this is a continuation request.
getBlueprintRuns_nextToken :: Lens.Lens' GetBlueprintRuns (Prelude.Maybe Prelude.Text)
getBlueprintRuns_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetBlueprintRuns -> f GetBlueprintRuns
getBlueprintRuns_nextToken = (GetBlueprintRuns -> Maybe Text)
-> (GetBlueprintRuns -> Maybe Text -> GetBlueprintRuns)
-> Lens GetBlueprintRuns GetBlueprintRuns (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBlueprintRuns' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetBlueprintRuns' :: GetBlueprintRuns -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetBlueprintRuns
s@GetBlueprintRuns' {} Maybe Text
a -> GetBlueprintRuns
s {$sel:nextToken:GetBlueprintRuns' :: Maybe Text
nextToken = Maybe Text
a} :: GetBlueprintRuns)

-- | The maximum size of a list to return.
getBlueprintRuns_maxResults :: Lens.Lens' GetBlueprintRuns (Prelude.Maybe Prelude.Natural)
getBlueprintRuns_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetBlueprintRuns -> f GetBlueprintRuns
getBlueprintRuns_maxResults = (GetBlueprintRuns -> Maybe Natural)
-> (GetBlueprintRuns -> Maybe Natural -> GetBlueprintRuns)
-> Lens
     GetBlueprintRuns GetBlueprintRuns (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBlueprintRuns' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetBlueprintRuns' :: GetBlueprintRuns -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetBlueprintRuns
s@GetBlueprintRuns' {} Maybe Natural
a -> GetBlueprintRuns
s {$sel:maxResults:GetBlueprintRuns' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetBlueprintRuns)

-- | The name of the blueprint.
getBlueprintRuns_blueprintName :: Lens.Lens' GetBlueprintRuns Prelude.Text
getBlueprintRuns_blueprintName :: (Text -> f Text) -> GetBlueprintRuns -> f GetBlueprintRuns
getBlueprintRuns_blueprintName = (GetBlueprintRuns -> Text)
-> (GetBlueprintRuns -> Text -> GetBlueprintRuns)
-> Lens GetBlueprintRuns GetBlueprintRuns Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBlueprintRuns' {Text
blueprintName :: Text
$sel:blueprintName:GetBlueprintRuns' :: GetBlueprintRuns -> Text
blueprintName} -> Text
blueprintName) (\s :: GetBlueprintRuns
s@GetBlueprintRuns' {} Text
a -> GetBlueprintRuns
s {$sel:blueprintName:GetBlueprintRuns' :: Text
blueprintName = Text
a} :: GetBlueprintRuns)

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

instance Prelude.NFData GetBlueprintRuns

instance Core.ToHeaders GetBlueprintRuns where
  toHeaders :: GetBlueprintRuns -> ResponseHeaders
toHeaders =
    ResponseHeaders -> GetBlueprintRuns -> 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
"AWSGlue.GetBlueprintRuns" :: 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 GetBlueprintRuns where
  toJSON :: GetBlueprintRuns -> Value
toJSON GetBlueprintRuns' {Maybe Natural
Maybe Text
Text
blueprintName :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:blueprintName:GetBlueprintRuns' :: GetBlueprintRuns -> Text
$sel:maxResults:GetBlueprintRuns' :: GetBlueprintRuns -> Maybe Natural
$sel:nextToken:GetBlueprintRuns' :: GetBlueprintRuns -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (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
"BlueprintName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
blueprintName)
          ]
      )

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

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

-- | /See:/ 'newGetBlueprintRunsResponse' smart constructor.
data GetBlueprintRunsResponse = GetBlueprintRunsResponse'
  { -- | Returns a list of @BlueprintRun@ objects.
    GetBlueprintRunsResponse -> Maybe [BlueprintRun]
blueprintRuns :: Prelude.Maybe [BlueprintRun],
    -- | A continuation token, if not all blueprint runs have been returned.
    GetBlueprintRunsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    GetBlueprintRunsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetBlueprintRunsResponse -> GetBlueprintRunsResponse -> Bool
(GetBlueprintRunsResponse -> GetBlueprintRunsResponse -> Bool)
-> (GetBlueprintRunsResponse -> GetBlueprintRunsResponse -> Bool)
-> Eq GetBlueprintRunsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetBlueprintRunsResponse -> GetBlueprintRunsResponse -> Bool
$c/= :: GetBlueprintRunsResponse -> GetBlueprintRunsResponse -> Bool
== :: GetBlueprintRunsResponse -> GetBlueprintRunsResponse -> Bool
$c== :: GetBlueprintRunsResponse -> GetBlueprintRunsResponse -> Bool
Prelude.Eq, ReadPrec [GetBlueprintRunsResponse]
ReadPrec GetBlueprintRunsResponse
Int -> ReadS GetBlueprintRunsResponse
ReadS [GetBlueprintRunsResponse]
(Int -> ReadS GetBlueprintRunsResponse)
-> ReadS [GetBlueprintRunsResponse]
-> ReadPrec GetBlueprintRunsResponse
-> ReadPrec [GetBlueprintRunsResponse]
-> Read GetBlueprintRunsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetBlueprintRunsResponse]
$creadListPrec :: ReadPrec [GetBlueprintRunsResponse]
readPrec :: ReadPrec GetBlueprintRunsResponse
$creadPrec :: ReadPrec GetBlueprintRunsResponse
readList :: ReadS [GetBlueprintRunsResponse]
$creadList :: ReadS [GetBlueprintRunsResponse]
readsPrec :: Int -> ReadS GetBlueprintRunsResponse
$creadsPrec :: Int -> ReadS GetBlueprintRunsResponse
Prelude.Read, Int -> GetBlueprintRunsResponse -> ShowS
[GetBlueprintRunsResponse] -> ShowS
GetBlueprintRunsResponse -> String
(Int -> GetBlueprintRunsResponse -> ShowS)
-> (GetBlueprintRunsResponse -> String)
-> ([GetBlueprintRunsResponse] -> ShowS)
-> Show GetBlueprintRunsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetBlueprintRunsResponse] -> ShowS
$cshowList :: [GetBlueprintRunsResponse] -> ShowS
show :: GetBlueprintRunsResponse -> String
$cshow :: GetBlueprintRunsResponse -> String
showsPrec :: Int -> GetBlueprintRunsResponse -> ShowS
$cshowsPrec :: Int -> GetBlueprintRunsResponse -> ShowS
Prelude.Show, (forall x.
 GetBlueprintRunsResponse -> Rep GetBlueprintRunsResponse x)
-> (forall x.
    Rep GetBlueprintRunsResponse x -> GetBlueprintRunsResponse)
-> Generic GetBlueprintRunsResponse
forall x.
Rep GetBlueprintRunsResponse x -> GetBlueprintRunsResponse
forall x.
GetBlueprintRunsResponse -> Rep GetBlueprintRunsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetBlueprintRunsResponse x -> GetBlueprintRunsResponse
$cfrom :: forall x.
GetBlueprintRunsResponse -> Rep GetBlueprintRunsResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetBlueprintRunsResponse' 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:
--
-- 'blueprintRuns', 'getBlueprintRunsResponse_blueprintRuns' - Returns a list of @BlueprintRun@ objects.
--
-- 'nextToken', 'getBlueprintRunsResponse_nextToken' - A continuation token, if not all blueprint runs have been returned.
--
-- 'httpStatus', 'getBlueprintRunsResponse_httpStatus' - The response's http status code.
newGetBlueprintRunsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetBlueprintRunsResponse
newGetBlueprintRunsResponse :: Int -> GetBlueprintRunsResponse
newGetBlueprintRunsResponse Int
pHttpStatus_ =
  GetBlueprintRunsResponse' :: Maybe [BlueprintRun]
-> Maybe Text -> Int -> GetBlueprintRunsResponse
GetBlueprintRunsResponse'
    { $sel:blueprintRuns:GetBlueprintRunsResponse' :: Maybe [BlueprintRun]
blueprintRuns =
        Maybe [BlueprintRun]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:GetBlueprintRunsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetBlueprintRunsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Returns a list of @BlueprintRun@ objects.
getBlueprintRunsResponse_blueprintRuns :: Lens.Lens' GetBlueprintRunsResponse (Prelude.Maybe [BlueprintRun])
getBlueprintRunsResponse_blueprintRuns :: (Maybe [BlueprintRun] -> f (Maybe [BlueprintRun]))
-> GetBlueprintRunsResponse -> f GetBlueprintRunsResponse
getBlueprintRunsResponse_blueprintRuns = (GetBlueprintRunsResponse -> Maybe [BlueprintRun])
-> (GetBlueprintRunsResponse
    -> Maybe [BlueprintRun] -> GetBlueprintRunsResponse)
-> Lens
     GetBlueprintRunsResponse
     GetBlueprintRunsResponse
     (Maybe [BlueprintRun])
     (Maybe [BlueprintRun])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBlueprintRunsResponse' {Maybe [BlueprintRun]
blueprintRuns :: Maybe [BlueprintRun]
$sel:blueprintRuns:GetBlueprintRunsResponse' :: GetBlueprintRunsResponse -> Maybe [BlueprintRun]
blueprintRuns} -> Maybe [BlueprintRun]
blueprintRuns) (\s :: GetBlueprintRunsResponse
s@GetBlueprintRunsResponse' {} Maybe [BlueprintRun]
a -> GetBlueprintRunsResponse
s {$sel:blueprintRuns:GetBlueprintRunsResponse' :: Maybe [BlueprintRun]
blueprintRuns = Maybe [BlueprintRun]
a} :: GetBlueprintRunsResponse) ((Maybe [BlueprintRun] -> f (Maybe [BlueprintRun]))
 -> GetBlueprintRunsResponse -> f GetBlueprintRunsResponse)
-> ((Maybe [BlueprintRun] -> f (Maybe [BlueprintRun]))
    -> Maybe [BlueprintRun] -> f (Maybe [BlueprintRun]))
-> (Maybe [BlueprintRun] -> f (Maybe [BlueprintRun]))
-> GetBlueprintRunsResponse
-> f GetBlueprintRunsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [BlueprintRun] [BlueprintRun] [BlueprintRun] [BlueprintRun]
-> Iso
     (Maybe [BlueprintRun])
     (Maybe [BlueprintRun])
     (Maybe [BlueprintRun])
     (Maybe [BlueprintRun])
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 [BlueprintRun] [BlueprintRun] [BlueprintRun] [BlueprintRun]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A continuation token, if not all blueprint runs have been returned.
getBlueprintRunsResponse_nextToken :: Lens.Lens' GetBlueprintRunsResponse (Prelude.Maybe Prelude.Text)
getBlueprintRunsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetBlueprintRunsResponse -> f GetBlueprintRunsResponse
getBlueprintRunsResponse_nextToken = (GetBlueprintRunsResponse -> Maybe Text)
-> (GetBlueprintRunsResponse
    -> Maybe Text -> GetBlueprintRunsResponse)
-> Lens
     GetBlueprintRunsResponse
     GetBlueprintRunsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBlueprintRunsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetBlueprintRunsResponse' :: GetBlueprintRunsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetBlueprintRunsResponse
s@GetBlueprintRunsResponse' {} Maybe Text
a -> GetBlueprintRunsResponse
s {$sel:nextToken:GetBlueprintRunsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetBlueprintRunsResponse)

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

instance Prelude.NFData GetBlueprintRunsResponse