{-# 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.ListBlueprints
-- 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)
--
-- Lists all the blueprint names in an account.
module Amazonka.Glue.ListBlueprints
  ( -- * Creating a Request
    ListBlueprints (..),
    newListBlueprints,

    -- * Request Lenses
    listBlueprints_nextToken,
    listBlueprints_maxResults,
    listBlueprints_tags,

    -- * Destructuring the Response
    ListBlueprintsResponse (..),
    newListBlueprintsResponse,

    -- * Response Lenses
    listBlueprintsResponse_blueprints,
    listBlueprintsResponse_nextToken,
    listBlueprintsResponse_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:/ 'newListBlueprints' smart constructor.
data ListBlueprints = ListBlueprints'
  { -- | A continuation token, if this is a continuation request.
    ListBlueprints -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum size of a list to return.
    ListBlueprints -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | Filters the list by an Amazon Web Services resource tag.
    ListBlueprints -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)
  }
  deriving (ListBlueprints -> ListBlueprints -> Bool
(ListBlueprints -> ListBlueprints -> Bool)
-> (ListBlueprints -> ListBlueprints -> Bool) -> Eq ListBlueprints
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListBlueprints -> ListBlueprints -> Bool
$c/= :: ListBlueprints -> ListBlueprints -> Bool
== :: ListBlueprints -> ListBlueprints -> Bool
$c== :: ListBlueprints -> ListBlueprints -> Bool
Prelude.Eq, ReadPrec [ListBlueprints]
ReadPrec ListBlueprints
Int -> ReadS ListBlueprints
ReadS [ListBlueprints]
(Int -> ReadS ListBlueprints)
-> ReadS [ListBlueprints]
-> ReadPrec ListBlueprints
-> ReadPrec [ListBlueprints]
-> Read ListBlueprints
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListBlueprints]
$creadListPrec :: ReadPrec [ListBlueprints]
readPrec :: ReadPrec ListBlueprints
$creadPrec :: ReadPrec ListBlueprints
readList :: ReadS [ListBlueprints]
$creadList :: ReadS [ListBlueprints]
readsPrec :: Int -> ReadS ListBlueprints
$creadsPrec :: Int -> ReadS ListBlueprints
Prelude.Read, Int -> ListBlueprints -> ShowS
[ListBlueprints] -> ShowS
ListBlueprints -> String
(Int -> ListBlueprints -> ShowS)
-> (ListBlueprints -> String)
-> ([ListBlueprints] -> ShowS)
-> Show ListBlueprints
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListBlueprints] -> ShowS
$cshowList :: [ListBlueprints] -> ShowS
show :: ListBlueprints -> String
$cshow :: ListBlueprints -> String
showsPrec :: Int -> ListBlueprints -> ShowS
$cshowsPrec :: Int -> ListBlueprints -> ShowS
Prelude.Show, (forall x. ListBlueprints -> Rep ListBlueprints x)
-> (forall x. Rep ListBlueprints x -> ListBlueprints)
-> Generic ListBlueprints
forall x. Rep ListBlueprints x -> ListBlueprints
forall x. ListBlueprints -> Rep ListBlueprints x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListBlueprints x -> ListBlueprints
$cfrom :: forall x. ListBlueprints -> Rep ListBlueprints x
Prelude.Generic)

-- |
-- Create a value of 'ListBlueprints' 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', 'listBlueprints_nextToken' - A continuation token, if this is a continuation request.
--
-- 'maxResults', 'listBlueprints_maxResults' - The maximum size of a list to return.
--
-- 'tags', 'listBlueprints_tags' - Filters the list by an Amazon Web Services resource tag.
newListBlueprints ::
  ListBlueprints
newListBlueprints :: ListBlueprints
newListBlueprints =
  ListBlueprints' :: Maybe Text
-> Maybe Natural -> Maybe (HashMap Text Text) -> ListBlueprints
ListBlueprints'
    { $sel:nextToken:ListBlueprints' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListBlueprints' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:ListBlueprints' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing
    }

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

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

-- | Filters the list by an Amazon Web Services resource tag.
listBlueprints_tags :: Lens.Lens' ListBlueprints (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
listBlueprints_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ListBlueprints -> f ListBlueprints
listBlueprints_tags = (ListBlueprints -> Maybe (HashMap Text Text))
-> (ListBlueprints -> Maybe (HashMap Text Text) -> ListBlueprints)
-> Lens
     ListBlueprints
     ListBlueprints
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBlueprints' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:ListBlueprints' :: ListBlueprints -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: ListBlueprints
s@ListBlueprints' {} Maybe (HashMap Text Text)
a -> ListBlueprints
s {$sel:tags:ListBlueprints' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: ListBlueprints) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> ListBlueprints -> f ListBlueprints)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ListBlueprints
-> f ListBlueprints
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData ListBlueprints

instance Core.ToHeaders ListBlueprints where
  toHeaders :: ListBlueprints -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListBlueprints -> 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.ListBlueprints" :: 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 ListBlueprints where
  toJSON :: ListBlueprints -> Value
toJSON ListBlueprints' {Maybe Natural
Maybe Text
Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:tags:ListBlueprints' :: ListBlueprints -> Maybe (HashMap Text Text)
$sel:maxResults:ListBlueprints' :: ListBlueprints -> Maybe Natural
$sel:nextToken:ListBlueprints' :: ListBlueprints -> 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,
            (Text
"Tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags
          ]
      )

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

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

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

-- |
-- Create a value of 'ListBlueprintsResponse' 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:
--
-- 'blueprints', 'listBlueprintsResponse_blueprints' - List of names of blueprints in the account.
--
-- 'nextToken', 'listBlueprintsResponse_nextToken' - A continuation token, if not all blueprint names have been returned.
--
-- 'httpStatus', 'listBlueprintsResponse_httpStatus' - The response's http status code.
newListBlueprintsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListBlueprintsResponse
newListBlueprintsResponse :: Int -> ListBlueprintsResponse
newListBlueprintsResponse Int
pHttpStatus_ =
  ListBlueprintsResponse' :: Maybe [Text] -> Maybe Text -> Int -> ListBlueprintsResponse
ListBlueprintsResponse'
    { $sel:blueprints:ListBlueprintsResponse' :: Maybe [Text]
blueprints =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListBlueprintsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListBlueprintsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | List of names of blueprints in the account.
listBlueprintsResponse_blueprints :: Lens.Lens' ListBlueprintsResponse (Prelude.Maybe [Prelude.Text])
listBlueprintsResponse_blueprints :: (Maybe [Text] -> f (Maybe [Text]))
-> ListBlueprintsResponse -> f ListBlueprintsResponse
listBlueprintsResponse_blueprints = (ListBlueprintsResponse -> Maybe [Text])
-> (ListBlueprintsResponse
    -> Maybe [Text] -> ListBlueprintsResponse)
-> Lens
     ListBlueprintsResponse
     ListBlueprintsResponse
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBlueprintsResponse' {Maybe [Text]
blueprints :: Maybe [Text]
$sel:blueprints:ListBlueprintsResponse' :: ListBlueprintsResponse -> Maybe [Text]
blueprints} -> Maybe [Text]
blueprints) (\s :: ListBlueprintsResponse
s@ListBlueprintsResponse' {} Maybe [Text]
a -> ListBlueprintsResponse
s {$sel:blueprints:ListBlueprintsResponse' :: Maybe [Text]
blueprints = Maybe [Text]
a} :: ListBlueprintsResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> ListBlueprintsResponse -> f ListBlueprintsResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ListBlueprintsResponse
-> f ListBlueprintsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
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 names have been returned.
listBlueprintsResponse_nextToken :: Lens.Lens' ListBlueprintsResponse (Prelude.Maybe Prelude.Text)
listBlueprintsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListBlueprintsResponse -> f ListBlueprintsResponse
listBlueprintsResponse_nextToken = (ListBlueprintsResponse -> Maybe Text)
-> (ListBlueprintsResponse -> Maybe Text -> ListBlueprintsResponse)
-> Lens
     ListBlueprintsResponse
     ListBlueprintsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBlueprintsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListBlueprintsResponse' :: ListBlueprintsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListBlueprintsResponse
s@ListBlueprintsResponse' {} Maybe Text
a -> ListBlueprintsResponse
s {$sel:nextToken:ListBlueprintsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListBlueprintsResponse)

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

instance Prelude.NFData ListBlueprintsResponse