{-# 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.MacieV2.ListManagedDataIdentifiers
-- 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 information about all the managed data identifiers that Amazon
-- Macie currently provides.
module Amazonka.MacieV2.ListManagedDataIdentifiers
  ( -- * Creating a Request
    ListManagedDataIdentifiers (..),
    newListManagedDataIdentifiers,

    -- * Request Lenses
    listManagedDataIdentifiers_nextToken,

    -- * Destructuring the Response
    ListManagedDataIdentifiersResponse (..),
    newListManagedDataIdentifiersResponse,

    -- * Response Lenses
    listManagedDataIdentifiersResponse_items,
    listManagedDataIdentifiersResponse_nextToken,
    listManagedDataIdentifiersResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MacieV2.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListManagedDataIdentifiers' smart constructor.
data ListManagedDataIdentifiers = ListManagedDataIdentifiers'
  { -- | The nextToken string that specifies which page of results to return in a
    -- paginated response.
    ListManagedDataIdentifiers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListManagedDataIdentifiers -> ListManagedDataIdentifiers -> Bool
(ListManagedDataIdentifiers -> ListManagedDataIdentifiers -> Bool)
-> (ListManagedDataIdentifiers
    -> ListManagedDataIdentifiers -> Bool)
-> Eq ListManagedDataIdentifiers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListManagedDataIdentifiers -> ListManagedDataIdentifiers -> Bool
$c/= :: ListManagedDataIdentifiers -> ListManagedDataIdentifiers -> Bool
== :: ListManagedDataIdentifiers -> ListManagedDataIdentifiers -> Bool
$c== :: ListManagedDataIdentifiers -> ListManagedDataIdentifiers -> Bool
Prelude.Eq, ReadPrec [ListManagedDataIdentifiers]
ReadPrec ListManagedDataIdentifiers
Int -> ReadS ListManagedDataIdentifiers
ReadS [ListManagedDataIdentifiers]
(Int -> ReadS ListManagedDataIdentifiers)
-> ReadS [ListManagedDataIdentifiers]
-> ReadPrec ListManagedDataIdentifiers
-> ReadPrec [ListManagedDataIdentifiers]
-> Read ListManagedDataIdentifiers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListManagedDataIdentifiers]
$creadListPrec :: ReadPrec [ListManagedDataIdentifiers]
readPrec :: ReadPrec ListManagedDataIdentifiers
$creadPrec :: ReadPrec ListManagedDataIdentifiers
readList :: ReadS [ListManagedDataIdentifiers]
$creadList :: ReadS [ListManagedDataIdentifiers]
readsPrec :: Int -> ReadS ListManagedDataIdentifiers
$creadsPrec :: Int -> ReadS ListManagedDataIdentifiers
Prelude.Read, Int -> ListManagedDataIdentifiers -> ShowS
[ListManagedDataIdentifiers] -> ShowS
ListManagedDataIdentifiers -> String
(Int -> ListManagedDataIdentifiers -> ShowS)
-> (ListManagedDataIdentifiers -> String)
-> ([ListManagedDataIdentifiers] -> ShowS)
-> Show ListManagedDataIdentifiers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListManagedDataIdentifiers] -> ShowS
$cshowList :: [ListManagedDataIdentifiers] -> ShowS
show :: ListManagedDataIdentifiers -> String
$cshow :: ListManagedDataIdentifiers -> String
showsPrec :: Int -> ListManagedDataIdentifiers -> ShowS
$cshowsPrec :: Int -> ListManagedDataIdentifiers -> ShowS
Prelude.Show, (forall x.
 ListManagedDataIdentifiers -> Rep ListManagedDataIdentifiers x)
-> (forall x.
    Rep ListManagedDataIdentifiers x -> ListManagedDataIdentifiers)
-> Generic ListManagedDataIdentifiers
forall x.
Rep ListManagedDataIdentifiers x -> ListManagedDataIdentifiers
forall x.
ListManagedDataIdentifiers -> Rep ListManagedDataIdentifiers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListManagedDataIdentifiers x -> ListManagedDataIdentifiers
$cfrom :: forall x.
ListManagedDataIdentifiers -> Rep ListManagedDataIdentifiers x
Prelude.Generic)

-- |
-- Create a value of 'ListManagedDataIdentifiers' 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', 'listManagedDataIdentifiers_nextToken' - The nextToken string that specifies which page of results to return in a
-- paginated response.
newListManagedDataIdentifiers ::
  ListManagedDataIdentifiers
newListManagedDataIdentifiers :: ListManagedDataIdentifiers
newListManagedDataIdentifiers =
  ListManagedDataIdentifiers' :: Maybe Text -> ListManagedDataIdentifiers
ListManagedDataIdentifiers'
    { $sel:nextToken:ListManagedDataIdentifiers' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The nextToken string that specifies which page of results to return in a
-- paginated response.
listManagedDataIdentifiers_nextToken :: Lens.Lens' ListManagedDataIdentifiers (Prelude.Maybe Prelude.Text)
listManagedDataIdentifiers_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListManagedDataIdentifiers -> f ListManagedDataIdentifiers
listManagedDataIdentifiers_nextToken = (ListManagedDataIdentifiers -> Maybe Text)
-> (ListManagedDataIdentifiers
    -> Maybe Text -> ListManagedDataIdentifiers)
-> Lens
     ListManagedDataIdentifiers
     ListManagedDataIdentifiers
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListManagedDataIdentifiers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListManagedDataIdentifiers' :: ListManagedDataIdentifiers -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListManagedDataIdentifiers
s@ListManagedDataIdentifiers' {} Maybe Text
a -> ListManagedDataIdentifiers
s {$sel:nextToken:ListManagedDataIdentifiers' :: Maybe Text
nextToken = Maybe Text
a} :: ListManagedDataIdentifiers)

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

instance Prelude.NFData ListManagedDataIdentifiers

instance Core.ToHeaders ListManagedDataIdentifiers where
  toHeaders :: ListManagedDataIdentifiers -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListManagedDataIdentifiers -> 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 ListManagedDataIdentifiers where
  toJSON :: ListManagedDataIdentifiers -> Value
toJSON ListManagedDataIdentifiers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListManagedDataIdentifiers' :: ListManagedDataIdentifiers -> 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]
      )

instance Core.ToPath ListManagedDataIdentifiers where
  toPath :: ListManagedDataIdentifiers -> ByteString
toPath =
    ByteString -> ListManagedDataIdentifiers -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/managed-data-identifiers/list"

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

-- | /See:/ 'newListManagedDataIdentifiersResponse' smart constructor.
data ListManagedDataIdentifiersResponse = ListManagedDataIdentifiersResponse'
  { -- | An array of objects, one for each managed data identifier.
    ListManagedDataIdentifiersResponse
-> Maybe [ManagedDataIdentifierSummary]
items :: Prelude.Maybe [ManagedDataIdentifierSummary],
    -- | The string to use in a subsequent request to get the next page of
    -- results in a paginated response. This value is null if there are no
    -- additional pages.
    ListManagedDataIdentifiersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListManagedDataIdentifiersResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListManagedDataIdentifiersResponse
-> ListManagedDataIdentifiersResponse -> Bool
(ListManagedDataIdentifiersResponse
 -> ListManagedDataIdentifiersResponse -> Bool)
-> (ListManagedDataIdentifiersResponse
    -> ListManagedDataIdentifiersResponse -> Bool)
-> Eq ListManagedDataIdentifiersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListManagedDataIdentifiersResponse
-> ListManagedDataIdentifiersResponse -> Bool
$c/= :: ListManagedDataIdentifiersResponse
-> ListManagedDataIdentifiersResponse -> Bool
== :: ListManagedDataIdentifiersResponse
-> ListManagedDataIdentifiersResponse -> Bool
$c== :: ListManagedDataIdentifiersResponse
-> ListManagedDataIdentifiersResponse -> Bool
Prelude.Eq, ReadPrec [ListManagedDataIdentifiersResponse]
ReadPrec ListManagedDataIdentifiersResponse
Int -> ReadS ListManagedDataIdentifiersResponse
ReadS [ListManagedDataIdentifiersResponse]
(Int -> ReadS ListManagedDataIdentifiersResponse)
-> ReadS [ListManagedDataIdentifiersResponse]
-> ReadPrec ListManagedDataIdentifiersResponse
-> ReadPrec [ListManagedDataIdentifiersResponse]
-> Read ListManagedDataIdentifiersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListManagedDataIdentifiersResponse]
$creadListPrec :: ReadPrec [ListManagedDataIdentifiersResponse]
readPrec :: ReadPrec ListManagedDataIdentifiersResponse
$creadPrec :: ReadPrec ListManagedDataIdentifiersResponse
readList :: ReadS [ListManagedDataIdentifiersResponse]
$creadList :: ReadS [ListManagedDataIdentifiersResponse]
readsPrec :: Int -> ReadS ListManagedDataIdentifiersResponse
$creadsPrec :: Int -> ReadS ListManagedDataIdentifiersResponse
Prelude.Read, Int -> ListManagedDataIdentifiersResponse -> ShowS
[ListManagedDataIdentifiersResponse] -> ShowS
ListManagedDataIdentifiersResponse -> String
(Int -> ListManagedDataIdentifiersResponse -> ShowS)
-> (ListManagedDataIdentifiersResponse -> String)
-> ([ListManagedDataIdentifiersResponse] -> ShowS)
-> Show ListManagedDataIdentifiersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListManagedDataIdentifiersResponse] -> ShowS
$cshowList :: [ListManagedDataIdentifiersResponse] -> ShowS
show :: ListManagedDataIdentifiersResponse -> String
$cshow :: ListManagedDataIdentifiersResponse -> String
showsPrec :: Int -> ListManagedDataIdentifiersResponse -> ShowS
$cshowsPrec :: Int -> ListManagedDataIdentifiersResponse -> ShowS
Prelude.Show, (forall x.
 ListManagedDataIdentifiersResponse
 -> Rep ListManagedDataIdentifiersResponse x)
-> (forall x.
    Rep ListManagedDataIdentifiersResponse x
    -> ListManagedDataIdentifiersResponse)
-> Generic ListManagedDataIdentifiersResponse
forall x.
Rep ListManagedDataIdentifiersResponse x
-> ListManagedDataIdentifiersResponse
forall x.
ListManagedDataIdentifiersResponse
-> Rep ListManagedDataIdentifiersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListManagedDataIdentifiersResponse x
-> ListManagedDataIdentifiersResponse
$cfrom :: forall x.
ListManagedDataIdentifiersResponse
-> Rep ListManagedDataIdentifiersResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListManagedDataIdentifiersResponse' 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:
--
-- 'items', 'listManagedDataIdentifiersResponse_items' - An array of objects, one for each managed data identifier.
--
-- 'nextToken', 'listManagedDataIdentifiersResponse_nextToken' - The string to use in a subsequent request to get the next page of
-- results in a paginated response. This value is null if there are no
-- additional pages.
--
-- 'httpStatus', 'listManagedDataIdentifiersResponse_httpStatus' - The response's http status code.
newListManagedDataIdentifiersResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListManagedDataIdentifiersResponse
newListManagedDataIdentifiersResponse :: Int -> ListManagedDataIdentifiersResponse
newListManagedDataIdentifiersResponse Int
pHttpStatus_ =
  ListManagedDataIdentifiersResponse' :: Maybe [ManagedDataIdentifierSummary]
-> Maybe Text -> Int -> ListManagedDataIdentifiersResponse
ListManagedDataIdentifiersResponse'
    { $sel:items:ListManagedDataIdentifiersResponse' :: Maybe [ManagedDataIdentifierSummary]
items =
        Maybe [ManagedDataIdentifierSummary]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListManagedDataIdentifiersResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListManagedDataIdentifiersResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | An array of objects, one for each managed data identifier.
listManagedDataIdentifiersResponse_items :: Lens.Lens' ListManagedDataIdentifiersResponse (Prelude.Maybe [ManagedDataIdentifierSummary])
listManagedDataIdentifiersResponse_items :: (Maybe [ManagedDataIdentifierSummary]
 -> f (Maybe [ManagedDataIdentifierSummary]))
-> ListManagedDataIdentifiersResponse
-> f ListManagedDataIdentifiersResponse
listManagedDataIdentifiersResponse_items = (ListManagedDataIdentifiersResponse
 -> Maybe [ManagedDataIdentifierSummary])
-> (ListManagedDataIdentifiersResponse
    -> Maybe [ManagedDataIdentifierSummary]
    -> ListManagedDataIdentifiersResponse)
-> Lens
     ListManagedDataIdentifiersResponse
     ListManagedDataIdentifiersResponse
     (Maybe [ManagedDataIdentifierSummary])
     (Maybe [ManagedDataIdentifierSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListManagedDataIdentifiersResponse' {Maybe [ManagedDataIdentifierSummary]
items :: Maybe [ManagedDataIdentifierSummary]
$sel:items:ListManagedDataIdentifiersResponse' :: ListManagedDataIdentifiersResponse
-> Maybe [ManagedDataIdentifierSummary]
items} -> Maybe [ManagedDataIdentifierSummary]
items) (\s :: ListManagedDataIdentifiersResponse
s@ListManagedDataIdentifiersResponse' {} Maybe [ManagedDataIdentifierSummary]
a -> ListManagedDataIdentifiersResponse
s {$sel:items:ListManagedDataIdentifiersResponse' :: Maybe [ManagedDataIdentifierSummary]
items = Maybe [ManagedDataIdentifierSummary]
a} :: ListManagedDataIdentifiersResponse) ((Maybe [ManagedDataIdentifierSummary]
  -> f (Maybe [ManagedDataIdentifierSummary]))
 -> ListManagedDataIdentifiersResponse
 -> f ListManagedDataIdentifiersResponse)
-> ((Maybe [ManagedDataIdentifierSummary]
     -> f (Maybe [ManagedDataIdentifierSummary]))
    -> Maybe [ManagedDataIdentifierSummary]
    -> f (Maybe [ManagedDataIdentifierSummary]))
-> (Maybe [ManagedDataIdentifierSummary]
    -> f (Maybe [ManagedDataIdentifierSummary]))
-> ListManagedDataIdentifiersResponse
-> f ListManagedDataIdentifiersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ManagedDataIdentifierSummary]
  [ManagedDataIdentifierSummary]
  [ManagedDataIdentifierSummary]
  [ManagedDataIdentifierSummary]
-> Iso
     (Maybe [ManagedDataIdentifierSummary])
     (Maybe [ManagedDataIdentifierSummary])
     (Maybe [ManagedDataIdentifierSummary])
     (Maybe [ManagedDataIdentifierSummary])
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
  [ManagedDataIdentifierSummary]
  [ManagedDataIdentifierSummary]
  [ManagedDataIdentifierSummary]
  [ManagedDataIdentifierSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The string to use in a subsequent request to get the next page of
-- results in a paginated response. This value is null if there are no
-- additional pages.
listManagedDataIdentifiersResponse_nextToken :: Lens.Lens' ListManagedDataIdentifiersResponse (Prelude.Maybe Prelude.Text)
listManagedDataIdentifiersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListManagedDataIdentifiersResponse
-> f ListManagedDataIdentifiersResponse
listManagedDataIdentifiersResponse_nextToken = (ListManagedDataIdentifiersResponse -> Maybe Text)
-> (ListManagedDataIdentifiersResponse
    -> Maybe Text -> ListManagedDataIdentifiersResponse)
-> Lens
     ListManagedDataIdentifiersResponse
     ListManagedDataIdentifiersResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListManagedDataIdentifiersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListManagedDataIdentifiersResponse' :: ListManagedDataIdentifiersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListManagedDataIdentifiersResponse
s@ListManagedDataIdentifiersResponse' {} Maybe Text
a -> ListManagedDataIdentifiersResponse
s {$sel:nextToken:ListManagedDataIdentifiersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListManagedDataIdentifiersResponse)

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

instance
  Prelude.NFData
    ListManagedDataIdentifiersResponse