{-# 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.ListDevEndpoints
-- 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 names of all @DevEndpoint@ resources in this Amazon Web
-- Services account, or the resources with the specified tag. This
-- operation allows you to see which resources are available in your
-- account, and their names.
--
-- This operation takes the optional @Tags@ field, which you can use as a
-- filter on the response so that tagged resources can be retrieved as a
-- group. If you choose to use tags filtering, only resources with the tag
-- are retrieved.
module Amazonka.Glue.ListDevEndpoints
  ( -- * Creating a Request
    ListDevEndpoints (..),
    newListDevEndpoints,

    -- * Request Lenses
    listDevEndpoints_nextToken,
    listDevEndpoints_maxResults,
    listDevEndpoints_tags,

    -- * Destructuring the Response
    ListDevEndpointsResponse (..),
    newListDevEndpointsResponse,

    -- * Response Lenses
    listDevEndpointsResponse_nextToken,
    listDevEndpointsResponse_devEndpointNames,
    listDevEndpointsResponse_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:/ 'newListDevEndpoints' smart constructor.
data ListDevEndpoints = ListDevEndpoints'
  { -- | A continuation token, if this is a continuation request.
    ListDevEndpoints -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum size of a list to return.
    ListDevEndpoints -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | Specifies to return only these tagged resources.
    ListDevEndpoints -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)
  }
  deriving (ListDevEndpoints -> ListDevEndpoints -> Bool
(ListDevEndpoints -> ListDevEndpoints -> Bool)
-> (ListDevEndpoints -> ListDevEndpoints -> Bool)
-> Eq ListDevEndpoints
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDevEndpoints -> ListDevEndpoints -> Bool
$c/= :: ListDevEndpoints -> ListDevEndpoints -> Bool
== :: ListDevEndpoints -> ListDevEndpoints -> Bool
$c== :: ListDevEndpoints -> ListDevEndpoints -> Bool
Prelude.Eq, ReadPrec [ListDevEndpoints]
ReadPrec ListDevEndpoints
Int -> ReadS ListDevEndpoints
ReadS [ListDevEndpoints]
(Int -> ReadS ListDevEndpoints)
-> ReadS [ListDevEndpoints]
-> ReadPrec ListDevEndpoints
-> ReadPrec [ListDevEndpoints]
-> Read ListDevEndpoints
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDevEndpoints]
$creadListPrec :: ReadPrec [ListDevEndpoints]
readPrec :: ReadPrec ListDevEndpoints
$creadPrec :: ReadPrec ListDevEndpoints
readList :: ReadS [ListDevEndpoints]
$creadList :: ReadS [ListDevEndpoints]
readsPrec :: Int -> ReadS ListDevEndpoints
$creadsPrec :: Int -> ReadS ListDevEndpoints
Prelude.Read, Int -> ListDevEndpoints -> ShowS
[ListDevEndpoints] -> ShowS
ListDevEndpoints -> String
(Int -> ListDevEndpoints -> ShowS)
-> (ListDevEndpoints -> String)
-> ([ListDevEndpoints] -> ShowS)
-> Show ListDevEndpoints
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDevEndpoints] -> ShowS
$cshowList :: [ListDevEndpoints] -> ShowS
show :: ListDevEndpoints -> String
$cshow :: ListDevEndpoints -> String
showsPrec :: Int -> ListDevEndpoints -> ShowS
$cshowsPrec :: Int -> ListDevEndpoints -> ShowS
Prelude.Show, (forall x. ListDevEndpoints -> Rep ListDevEndpoints x)
-> (forall x. Rep ListDevEndpoints x -> ListDevEndpoints)
-> Generic ListDevEndpoints
forall x. Rep ListDevEndpoints x -> ListDevEndpoints
forall x. ListDevEndpoints -> Rep ListDevEndpoints x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListDevEndpoints x -> ListDevEndpoints
$cfrom :: forall x. ListDevEndpoints -> Rep ListDevEndpoints x
Prelude.Generic)

-- |
-- Create a value of 'ListDevEndpoints' 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', 'listDevEndpoints_nextToken' - A continuation token, if this is a continuation request.
--
-- 'maxResults', 'listDevEndpoints_maxResults' - The maximum size of a list to return.
--
-- 'tags', 'listDevEndpoints_tags' - Specifies to return only these tagged resources.
newListDevEndpoints ::
  ListDevEndpoints
newListDevEndpoints :: ListDevEndpoints
newListDevEndpoints =
  ListDevEndpoints' :: Maybe Text
-> Maybe Natural -> Maybe (HashMap Text Text) -> ListDevEndpoints
ListDevEndpoints'
    { $sel:nextToken:ListDevEndpoints' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListDevEndpoints' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:ListDevEndpoints' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing
    }

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

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

-- | Specifies to return only these tagged resources.
listDevEndpoints_tags :: Lens.Lens' ListDevEndpoints (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
listDevEndpoints_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ListDevEndpoints -> f ListDevEndpoints
listDevEndpoints_tags = (ListDevEndpoints -> Maybe (HashMap Text Text))
-> (ListDevEndpoints
    -> Maybe (HashMap Text Text) -> ListDevEndpoints)
-> Lens
     ListDevEndpoints
     ListDevEndpoints
     (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 (\ListDevEndpoints' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:ListDevEndpoints' :: ListDevEndpoints -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: ListDevEndpoints
s@ListDevEndpoints' {} Maybe (HashMap Text Text)
a -> ListDevEndpoints
s {$sel:tags:ListDevEndpoints' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: ListDevEndpoints) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> ListDevEndpoints -> f ListDevEndpoints)
-> ((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)))
-> ListDevEndpoints
-> f ListDevEndpoints
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 ListDevEndpoints where
  type
    AWSResponse ListDevEndpoints =
      ListDevEndpointsResponse
  request :: ListDevEndpoints -> Request ListDevEndpoints
request = Service -> ListDevEndpoints -> Request ListDevEndpoints
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListDevEndpoints
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListDevEndpoints)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListDevEndpoints))
-> Logger
-> Service
-> Proxy ListDevEndpoints
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListDevEndpoints)))
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 -> ListDevEndpointsResponse
ListDevEndpointsResponse'
            (Maybe Text -> Maybe [Text] -> Int -> ListDevEndpointsResponse)
-> Either String (Maybe Text)
-> Either String (Maybe [Text] -> Int -> ListDevEndpointsResponse)
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
"NextToken")
            Either String (Maybe [Text] -> Int -> ListDevEndpointsResponse)
-> Either String (Maybe [Text])
-> Either String (Int -> ListDevEndpointsResponse)
forall (f :: * -> *) a b. Applicative f => 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
"DevEndpointNames"
                            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 (Int -> ListDevEndpointsResponse)
-> Either String Int -> Either String ListDevEndpointsResponse
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 ListDevEndpoints

instance Prelude.NFData ListDevEndpoints

instance Core.ToHeaders ListDevEndpoints where
  toHeaders :: ListDevEndpoints -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListDevEndpoints -> 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.ListDevEndpoints" :: 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 ListDevEndpoints where
  toJSON :: ListDevEndpoints -> Value
toJSON ListDevEndpoints' {Maybe Natural
Maybe Text
Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:tags:ListDevEndpoints' :: ListDevEndpoints -> Maybe (HashMap Text Text)
$sel:maxResults:ListDevEndpoints' :: ListDevEndpoints -> Maybe Natural
$sel:nextToken:ListDevEndpoints' :: ListDevEndpoints -> 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 ListDevEndpoints where
  toPath :: ListDevEndpoints -> ByteString
toPath = ByteString -> ListDevEndpoints -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

-- | /See:/ 'newListDevEndpointsResponse' smart constructor.
data ListDevEndpointsResponse = ListDevEndpointsResponse'
  { -- | A continuation token, if the returned list does not contain the last
    -- metric available.
    ListDevEndpointsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The names of all the @DevEndpoint@s in the account, or the
    -- @DevEndpoint@s with the specified tags.
    ListDevEndpointsResponse -> Maybe [Text]
devEndpointNames :: Prelude.Maybe [Prelude.Text],
    -- | The response's http status code.
    ListDevEndpointsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListDevEndpointsResponse -> ListDevEndpointsResponse -> Bool
(ListDevEndpointsResponse -> ListDevEndpointsResponse -> Bool)
-> (ListDevEndpointsResponse -> ListDevEndpointsResponse -> Bool)
-> Eq ListDevEndpointsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDevEndpointsResponse -> ListDevEndpointsResponse -> Bool
$c/= :: ListDevEndpointsResponse -> ListDevEndpointsResponse -> Bool
== :: ListDevEndpointsResponse -> ListDevEndpointsResponse -> Bool
$c== :: ListDevEndpointsResponse -> ListDevEndpointsResponse -> Bool
Prelude.Eq, ReadPrec [ListDevEndpointsResponse]
ReadPrec ListDevEndpointsResponse
Int -> ReadS ListDevEndpointsResponse
ReadS [ListDevEndpointsResponse]
(Int -> ReadS ListDevEndpointsResponse)
-> ReadS [ListDevEndpointsResponse]
-> ReadPrec ListDevEndpointsResponse
-> ReadPrec [ListDevEndpointsResponse]
-> Read ListDevEndpointsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDevEndpointsResponse]
$creadListPrec :: ReadPrec [ListDevEndpointsResponse]
readPrec :: ReadPrec ListDevEndpointsResponse
$creadPrec :: ReadPrec ListDevEndpointsResponse
readList :: ReadS [ListDevEndpointsResponse]
$creadList :: ReadS [ListDevEndpointsResponse]
readsPrec :: Int -> ReadS ListDevEndpointsResponse
$creadsPrec :: Int -> ReadS ListDevEndpointsResponse
Prelude.Read, Int -> ListDevEndpointsResponse -> ShowS
[ListDevEndpointsResponse] -> ShowS
ListDevEndpointsResponse -> String
(Int -> ListDevEndpointsResponse -> ShowS)
-> (ListDevEndpointsResponse -> String)
-> ([ListDevEndpointsResponse] -> ShowS)
-> Show ListDevEndpointsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDevEndpointsResponse] -> ShowS
$cshowList :: [ListDevEndpointsResponse] -> ShowS
show :: ListDevEndpointsResponse -> String
$cshow :: ListDevEndpointsResponse -> String
showsPrec :: Int -> ListDevEndpointsResponse -> ShowS
$cshowsPrec :: Int -> ListDevEndpointsResponse -> ShowS
Prelude.Show, (forall x.
 ListDevEndpointsResponse -> Rep ListDevEndpointsResponse x)
-> (forall x.
    Rep ListDevEndpointsResponse x -> ListDevEndpointsResponse)
-> Generic ListDevEndpointsResponse
forall x.
Rep ListDevEndpointsResponse x -> ListDevEndpointsResponse
forall x.
ListDevEndpointsResponse -> Rep ListDevEndpointsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDevEndpointsResponse x -> ListDevEndpointsResponse
$cfrom :: forall x.
ListDevEndpointsResponse -> Rep ListDevEndpointsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListDevEndpointsResponse' 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', 'listDevEndpointsResponse_nextToken' - A continuation token, if the returned list does not contain the last
-- metric available.
--
-- 'devEndpointNames', 'listDevEndpointsResponse_devEndpointNames' - The names of all the @DevEndpoint@s in the account, or the
-- @DevEndpoint@s with the specified tags.
--
-- 'httpStatus', 'listDevEndpointsResponse_httpStatus' - The response's http status code.
newListDevEndpointsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListDevEndpointsResponse
newListDevEndpointsResponse :: Int -> ListDevEndpointsResponse
newListDevEndpointsResponse Int
pHttpStatus_ =
  ListDevEndpointsResponse' :: Maybe Text -> Maybe [Text] -> Int -> ListDevEndpointsResponse
ListDevEndpointsResponse'
    { $sel:nextToken:ListDevEndpointsResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:devEndpointNames:ListDevEndpointsResponse' :: Maybe [Text]
devEndpointNames = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListDevEndpointsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A continuation token, if the returned list does not contain the last
-- metric available.
listDevEndpointsResponse_nextToken :: Lens.Lens' ListDevEndpointsResponse (Prelude.Maybe Prelude.Text)
listDevEndpointsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDevEndpointsResponse -> f ListDevEndpointsResponse
listDevEndpointsResponse_nextToken = (ListDevEndpointsResponse -> Maybe Text)
-> (ListDevEndpointsResponse
    -> Maybe Text -> ListDevEndpointsResponse)
-> Lens
     ListDevEndpointsResponse
     ListDevEndpointsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDevEndpointsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDevEndpointsResponse' :: ListDevEndpointsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDevEndpointsResponse
s@ListDevEndpointsResponse' {} Maybe Text
a -> ListDevEndpointsResponse
s {$sel:nextToken:ListDevEndpointsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListDevEndpointsResponse)

-- | The names of all the @DevEndpoint@s in the account, or the
-- @DevEndpoint@s with the specified tags.
listDevEndpointsResponse_devEndpointNames :: Lens.Lens' ListDevEndpointsResponse (Prelude.Maybe [Prelude.Text])
listDevEndpointsResponse_devEndpointNames :: (Maybe [Text] -> f (Maybe [Text]))
-> ListDevEndpointsResponse -> f ListDevEndpointsResponse
listDevEndpointsResponse_devEndpointNames = (ListDevEndpointsResponse -> Maybe [Text])
-> (ListDevEndpointsResponse
    -> Maybe [Text] -> ListDevEndpointsResponse)
-> Lens
     ListDevEndpointsResponse
     ListDevEndpointsResponse
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDevEndpointsResponse' {Maybe [Text]
devEndpointNames :: Maybe [Text]
$sel:devEndpointNames:ListDevEndpointsResponse' :: ListDevEndpointsResponse -> Maybe [Text]
devEndpointNames} -> Maybe [Text]
devEndpointNames) (\s :: ListDevEndpointsResponse
s@ListDevEndpointsResponse' {} Maybe [Text]
a -> ListDevEndpointsResponse
s {$sel:devEndpointNames:ListDevEndpointsResponse' :: Maybe [Text]
devEndpointNames = Maybe [Text]
a} :: ListDevEndpointsResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> ListDevEndpointsResponse -> f ListDevEndpointsResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ListDevEndpointsResponse
-> f ListDevEndpointsResponse
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

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

instance Prelude.NFData ListDevEndpointsResponse