{-# 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.BatchGetDevEndpoints
-- 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 resource metadata for a given list of development
-- endpoint names. After calling the @ListDevEndpoints@ operation, you can
-- call this operation to access the data to which you have been granted
-- permissions. This operation supports all IAM permissions, including
-- permission conditions that uses tags.
module Amazonka.Glue.BatchGetDevEndpoints
  ( -- * Creating a Request
    BatchGetDevEndpoints (..),
    newBatchGetDevEndpoints,

    -- * Request Lenses
    batchGetDevEndpoints_devEndpointNames,

    -- * Destructuring the Response
    BatchGetDevEndpointsResponse (..),
    newBatchGetDevEndpointsResponse,

    -- * Response Lenses
    batchGetDevEndpointsResponse_devEndpointsNotFound,
    batchGetDevEndpointsResponse_devEndpoints,
    batchGetDevEndpointsResponse_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:/ 'newBatchGetDevEndpoints' smart constructor.
data BatchGetDevEndpoints = BatchGetDevEndpoints'
  { -- | The list of @DevEndpoint@ names, which might be the names returned from
    -- the @ListDevEndpoint@ operation.
    BatchGetDevEndpoints -> NonEmpty Text
devEndpointNames :: Prelude.NonEmpty Prelude.Text
  }
  deriving (BatchGetDevEndpoints -> BatchGetDevEndpoints -> Bool
(BatchGetDevEndpoints -> BatchGetDevEndpoints -> Bool)
-> (BatchGetDevEndpoints -> BatchGetDevEndpoints -> Bool)
-> Eq BatchGetDevEndpoints
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchGetDevEndpoints -> BatchGetDevEndpoints -> Bool
$c/= :: BatchGetDevEndpoints -> BatchGetDevEndpoints -> Bool
== :: BatchGetDevEndpoints -> BatchGetDevEndpoints -> Bool
$c== :: BatchGetDevEndpoints -> BatchGetDevEndpoints -> Bool
Prelude.Eq, ReadPrec [BatchGetDevEndpoints]
ReadPrec BatchGetDevEndpoints
Int -> ReadS BatchGetDevEndpoints
ReadS [BatchGetDevEndpoints]
(Int -> ReadS BatchGetDevEndpoints)
-> ReadS [BatchGetDevEndpoints]
-> ReadPrec BatchGetDevEndpoints
-> ReadPrec [BatchGetDevEndpoints]
-> Read BatchGetDevEndpoints
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchGetDevEndpoints]
$creadListPrec :: ReadPrec [BatchGetDevEndpoints]
readPrec :: ReadPrec BatchGetDevEndpoints
$creadPrec :: ReadPrec BatchGetDevEndpoints
readList :: ReadS [BatchGetDevEndpoints]
$creadList :: ReadS [BatchGetDevEndpoints]
readsPrec :: Int -> ReadS BatchGetDevEndpoints
$creadsPrec :: Int -> ReadS BatchGetDevEndpoints
Prelude.Read, Int -> BatchGetDevEndpoints -> ShowS
[BatchGetDevEndpoints] -> ShowS
BatchGetDevEndpoints -> String
(Int -> BatchGetDevEndpoints -> ShowS)
-> (BatchGetDevEndpoints -> String)
-> ([BatchGetDevEndpoints] -> ShowS)
-> Show BatchGetDevEndpoints
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchGetDevEndpoints] -> ShowS
$cshowList :: [BatchGetDevEndpoints] -> ShowS
show :: BatchGetDevEndpoints -> String
$cshow :: BatchGetDevEndpoints -> String
showsPrec :: Int -> BatchGetDevEndpoints -> ShowS
$cshowsPrec :: Int -> BatchGetDevEndpoints -> ShowS
Prelude.Show, (forall x. BatchGetDevEndpoints -> Rep BatchGetDevEndpoints x)
-> (forall x. Rep BatchGetDevEndpoints x -> BatchGetDevEndpoints)
-> Generic BatchGetDevEndpoints
forall x. Rep BatchGetDevEndpoints x -> BatchGetDevEndpoints
forall x. BatchGetDevEndpoints -> Rep BatchGetDevEndpoints x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchGetDevEndpoints x -> BatchGetDevEndpoints
$cfrom :: forall x. BatchGetDevEndpoints -> Rep BatchGetDevEndpoints x
Prelude.Generic)

-- |
-- Create a value of 'BatchGetDevEndpoints' 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:
--
-- 'devEndpointNames', 'batchGetDevEndpoints_devEndpointNames' - The list of @DevEndpoint@ names, which might be the names returned from
-- the @ListDevEndpoint@ operation.
newBatchGetDevEndpoints ::
  -- | 'devEndpointNames'
  Prelude.NonEmpty Prelude.Text ->
  BatchGetDevEndpoints
newBatchGetDevEndpoints :: NonEmpty Text -> BatchGetDevEndpoints
newBatchGetDevEndpoints NonEmpty Text
pDevEndpointNames_ =
  BatchGetDevEndpoints' :: NonEmpty Text -> BatchGetDevEndpoints
BatchGetDevEndpoints'
    { $sel:devEndpointNames:BatchGetDevEndpoints' :: NonEmpty Text
devEndpointNames =
        Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged (NonEmpty Text) (Identity (NonEmpty Text))
 -> Tagged (NonEmpty Text) (Identity (NonEmpty Text)))
-> NonEmpty Text -> NonEmpty Text
forall t b. AReview t b -> b -> t
Lens.# NonEmpty Text
pDevEndpointNames_
    }

-- | The list of @DevEndpoint@ names, which might be the names returned from
-- the @ListDevEndpoint@ operation.
batchGetDevEndpoints_devEndpointNames :: Lens.Lens' BatchGetDevEndpoints (Prelude.NonEmpty Prelude.Text)
batchGetDevEndpoints_devEndpointNames :: (NonEmpty Text -> f (NonEmpty Text))
-> BatchGetDevEndpoints -> f BatchGetDevEndpoints
batchGetDevEndpoints_devEndpointNames = (BatchGetDevEndpoints -> NonEmpty Text)
-> (BatchGetDevEndpoints -> NonEmpty Text -> BatchGetDevEndpoints)
-> Lens
     BatchGetDevEndpoints
     BatchGetDevEndpoints
     (NonEmpty Text)
     (NonEmpty Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetDevEndpoints' {NonEmpty Text
devEndpointNames :: NonEmpty Text
$sel:devEndpointNames:BatchGetDevEndpoints' :: BatchGetDevEndpoints -> NonEmpty Text
devEndpointNames} -> NonEmpty Text
devEndpointNames) (\s :: BatchGetDevEndpoints
s@BatchGetDevEndpoints' {} NonEmpty Text
a -> BatchGetDevEndpoints
s {$sel:devEndpointNames:BatchGetDevEndpoints' :: NonEmpty Text
devEndpointNames = NonEmpty Text
a} :: BatchGetDevEndpoints) ((NonEmpty Text -> f (NonEmpty Text))
 -> BatchGetDevEndpoints -> f BatchGetDevEndpoints)
-> ((NonEmpty Text -> f (NonEmpty Text))
    -> NonEmpty Text -> f (NonEmpty Text))
-> (NonEmpty Text -> f (NonEmpty Text))
-> BatchGetDevEndpoints
-> f BatchGetDevEndpoints
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData BatchGetDevEndpoints

instance Core.ToHeaders BatchGetDevEndpoints where
  toHeaders :: BatchGetDevEndpoints -> ResponseHeaders
toHeaders =
    ResponseHeaders -> BatchGetDevEndpoints -> 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.BatchGetDevEndpoints" ::
                          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 BatchGetDevEndpoints where
  toJSON :: BatchGetDevEndpoints -> Value
toJSON BatchGetDevEndpoints' {NonEmpty Text
devEndpointNames :: NonEmpty Text
$sel:devEndpointNames:BatchGetDevEndpoints' :: BatchGetDevEndpoints -> NonEmpty Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"DevEndpointNames" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty Text
devEndpointNames)
          ]
      )

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

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

-- | /See:/ 'newBatchGetDevEndpointsResponse' smart constructor.
data BatchGetDevEndpointsResponse = BatchGetDevEndpointsResponse'
  { -- | A list of @DevEndpoints@ not found.
    BatchGetDevEndpointsResponse -> Maybe (NonEmpty Text)
devEndpointsNotFound :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
    -- | A list of @DevEndpoint@ definitions.
    BatchGetDevEndpointsResponse -> Maybe [DevEndpoint]
devEndpoints :: Prelude.Maybe [DevEndpoint],
    -- | The response's http status code.
    BatchGetDevEndpointsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (BatchGetDevEndpointsResponse
-> BatchGetDevEndpointsResponse -> Bool
(BatchGetDevEndpointsResponse
 -> BatchGetDevEndpointsResponse -> Bool)
-> (BatchGetDevEndpointsResponse
    -> BatchGetDevEndpointsResponse -> Bool)
-> Eq BatchGetDevEndpointsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchGetDevEndpointsResponse
-> BatchGetDevEndpointsResponse -> Bool
$c/= :: BatchGetDevEndpointsResponse
-> BatchGetDevEndpointsResponse -> Bool
== :: BatchGetDevEndpointsResponse
-> BatchGetDevEndpointsResponse -> Bool
$c== :: BatchGetDevEndpointsResponse
-> BatchGetDevEndpointsResponse -> Bool
Prelude.Eq, ReadPrec [BatchGetDevEndpointsResponse]
ReadPrec BatchGetDevEndpointsResponse
Int -> ReadS BatchGetDevEndpointsResponse
ReadS [BatchGetDevEndpointsResponse]
(Int -> ReadS BatchGetDevEndpointsResponse)
-> ReadS [BatchGetDevEndpointsResponse]
-> ReadPrec BatchGetDevEndpointsResponse
-> ReadPrec [BatchGetDevEndpointsResponse]
-> Read BatchGetDevEndpointsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchGetDevEndpointsResponse]
$creadListPrec :: ReadPrec [BatchGetDevEndpointsResponse]
readPrec :: ReadPrec BatchGetDevEndpointsResponse
$creadPrec :: ReadPrec BatchGetDevEndpointsResponse
readList :: ReadS [BatchGetDevEndpointsResponse]
$creadList :: ReadS [BatchGetDevEndpointsResponse]
readsPrec :: Int -> ReadS BatchGetDevEndpointsResponse
$creadsPrec :: Int -> ReadS BatchGetDevEndpointsResponse
Prelude.Read, Int -> BatchGetDevEndpointsResponse -> ShowS
[BatchGetDevEndpointsResponse] -> ShowS
BatchGetDevEndpointsResponse -> String
(Int -> BatchGetDevEndpointsResponse -> ShowS)
-> (BatchGetDevEndpointsResponse -> String)
-> ([BatchGetDevEndpointsResponse] -> ShowS)
-> Show BatchGetDevEndpointsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchGetDevEndpointsResponse] -> ShowS
$cshowList :: [BatchGetDevEndpointsResponse] -> ShowS
show :: BatchGetDevEndpointsResponse -> String
$cshow :: BatchGetDevEndpointsResponse -> String
showsPrec :: Int -> BatchGetDevEndpointsResponse -> ShowS
$cshowsPrec :: Int -> BatchGetDevEndpointsResponse -> ShowS
Prelude.Show, (forall x.
 BatchGetDevEndpointsResponse -> Rep BatchGetDevEndpointsResponse x)
-> (forall x.
    Rep BatchGetDevEndpointsResponse x -> BatchGetDevEndpointsResponse)
-> Generic BatchGetDevEndpointsResponse
forall x.
Rep BatchGetDevEndpointsResponse x -> BatchGetDevEndpointsResponse
forall x.
BatchGetDevEndpointsResponse -> Rep BatchGetDevEndpointsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchGetDevEndpointsResponse x -> BatchGetDevEndpointsResponse
$cfrom :: forall x.
BatchGetDevEndpointsResponse -> Rep BatchGetDevEndpointsResponse x
Prelude.Generic)

-- |
-- Create a value of 'BatchGetDevEndpointsResponse' 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:
--
-- 'devEndpointsNotFound', 'batchGetDevEndpointsResponse_devEndpointsNotFound' - A list of @DevEndpoints@ not found.
--
-- 'devEndpoints', 'batchGetDevEndpointsResponse_devEndpoints' - A list of @DevEndpoint@ definitions.
--
-- 'httpStatus', 'batchGetDevEndpointsResponse_httpStatus' - The response's http status code.
newBatchGetDevEndpointsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  BatchGetDevEndpointsResponse
newBatchGetDevEndpointsResponse :: Int -> BatchGetDevEndpointsResponse
newBatchGetDevEndpointsResponse Int
pHttpStatus_ =
  BatchGetDevEndpointsResponse' :: Maybe (NonEmpty Text)
-> Maybe [DevEndpoint] -> Int -> BatchGetDevEndpointsResponse
BatchGetDevEndpointsResponse'
    { $sel:devEndpointsNotFound:BatchGetDevEndpointsResponse' :: Maybe (NonEmpty Text)
devEndpointsNotFound =
        Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:devEndpoints:BatchGetDevEndpointsResponse' :: Maybe [DevEndpoint]
devEndpoints = Maybe [DevEndpoint]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:BatchGetDevEndpointsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of @DevEndpoints@ not found.
batchGetDevEndpointsResponse_devEndpointsNotFound :: Lens.Lens' BatchGetDevEndpointsResponse (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
batchGetDevEndpointsResponse_devEndpointsNotFound :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> BatchGetDevEndpointsResponse -> f BatchGetDevEndpointsResponse
batchGetDevEndpointsResponse_devEndpointsNotFound = (BatchGetDevEndpointsResponse -> Maybe (NonEmpty Text))
-> (BatchGetDevEndpointsResponse
    -> Maybe (NonEmpty Text) -> BatchGetDevEndpointsResponse)
-> Lens
     BatchGetDevEndpointsResponse
     BatchGetDevEndpointsResponse
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetDevEndpointsResponse' {Maybe (NonEmpty Text)
devEndpointsNotFound :: Maybe (NonEmpty Text)
$sel:devEndpointsNotFound:BatchGetDevEndpointsResponse' :: BatchGetDevEndpointsResponse -> Maybe (NonEmpty Text)
devEndpointsNotFound} -> Maybe (NonEmpty Text)
devEndpointsNotFound) (\s :: BatchGetDevEndpointsResponse
s@BatchGetDevEndpointsResponse' {} Maybe (NonEmpty Text)
a -> BatchGetDevEndpointsResponse
s {$sel:devEndpointsNotFound:BatchGetDevEndpointsResponse' :: Maybe (NonEmpty Text)
devEndpointsNotFound = Maybe (NonEmpty Text)
a} :: BatchGetDevEndpointsResponse) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
 -> BatchGetDevEndpointsResponse -> f BatchGetDevEndpointsResponse)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
    -> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> BatchGetDevEndpointsResponse
-> f BatchGetDevEndpointsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty 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
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A list of @DevEndpoint@ definitions.
batchGetDevEndpointsResponse_devEndpoints :: Lens.Lens' BatchGetDevEndpointsResponse (Prelude.Maybe [DevEndpoint])
batchGetDevEndpointsResponse_devEndpoints :: (Maybe [DevEndpoint] -> f (Maybe [DevEndpoint]))
-> BatchGetDevEndpointsResponse -> f BatchGetDevEndpointsResponse
batchGetDevEndpointsResponse_devEndpoints = (BatchGetDevEndpointsResponse -> Maybe [DevEndpoint])
-> (BatchGetDevEndpointsResponse
    -> Maybe [DevEndpoint] -> BatchGetDevEndpointsResponse)
-> Lens
     BatchGetDevEndpointsResponse
     BatchGetDevEndpointsResponse
     (Maybe [DevEndpoint])
     (Maybe [DevEndpoint])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetDevEndpointsResponse' {Maybe [DevEndpoint]
devEndpoints :: Maybe [DevEndpoint]
$sel:devEndpoints:BatchGetDevEndpointsResponse' :: BatchGetDevEndpointsResponse -> Maybe [DevEndpoint]
devEndpoints} -> Maybe [DevEndpoint]
devEndpoints) (\s :: BatchGetDevEndpointsResponse
s@BatchGetDevEndpointsResponse' {} Maybe [DevEndpoint]
a -> BatchGetDevEndpointsResponse
s {$sel:devEndpoints:BatchGetDevEndpointsResponse' :: Maybe [DevEndpoint]
devEndpoints = Maybe [DevEndpoint]
a} :: BatchGetDevEndpointsResponse) ((Maybe [DevEndpoint] -> f (Maybe [DevEndpoint]))
 -> BatchGetDevEndpointsResponse -> f BatchGetDevEndpointsResponse)
-> ((Maybe [DevEndpoint] -> f (Maybe [DevEndpoint]))
    -> Maybe [DevEndpoint] -> f (Maybe [DevEndpoint]))
-> (Maybe [DevEndpoint] -> f (Maybe [DevEndpoint]))
-> BatchGetDevEndpointsResponse
-> f BatchGetDevEndpointsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [DevEndpoint] [DevEndpoint] [DevEndpoint] [DevEndpoint]
-> Iso
     (Maybe [DevEndpoint])
     (Maybe [DevEndpoint])
     (Maybe [DevEndpoint])
     (Maybe [DevEndpoint])
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 [DevEndpoint] [DevEndpoint] [DevEndpoint] [DevEndpoint]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData BatchGetDevEndpointsResponse