{-# 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 #-}
module Amazonka.MacieV2.ListCustomDataIdentifiers
(
ListCustomDataIdentifiers (..),
newListCustomDataIdentifiers,
listCustomDataIdentifiers_nextToken,
listCustomDataIdentifiers_maxResults,
ListCustomDataIdentifiersResponse (..),
newListCustomDataIdentifiersResponse,
listCustomDataIdentifiersResponse_items,
listCustomDataIdentifiersResponse_nextToken,
listCustomDataIdentifiersResponse_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
data ListCustomDataIdentifiers = ListCustomDataIdentifiers'
{
ListCustomDataIdentifiers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListCustomDataIdentifiers -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int
}
deriving (ListCustomDataIdentifiers -> ListCustomDataIdentifiers -> Bool
(ListCustomDataIdentifiers -> ListCustomDataIdentifiers -> Bool)
-> (ListCustomDataIdentifiers -> ListCustomDataIdentifiers -> Bool)
-> Eq ListCustomDataIdentifiers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCustomDataIdentifiers -> ListCustomDataIdentifiers -> Bool
$c/= :: ListCustomDataIdentifiers -> ListCustomDataIdentifiers -> Bool
== :: ListCustomDataIdentifiers -> ListCustomDataIdentifiers -> Bool
$c== :: ListCustomDataIdentifiers -> ListCustomDataIdentifiers -> Bool
Prelude.Eq, ReadPrec [ListCustomDataIdentifiers]
ReadPrec ListCustomDataIdentifiers
Int -> ReadS ListCustomDataIdentifiers
ReadS [ListCustomDataIdentifiers]
(Int -> ReadS ListCustomDataIdentifiers)
-> ReadS [ListCustomDataIdentifiers]
-> ReadPrec ListCustomDataIdentifiers
-> ReadPrec [ListCustomDataIdentifiers]
-> Read ListCustomDataIdentifiers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCustomDataIdentifiers]
$creadListPrec :: ReadPrec [ListCustomDataIdentifiers]
readPrec :: ReadPrec ListCustomDataIdentifiers
$creadPrec :: ReadPrec ListCustomDataIdentifiers
readList :: ReadS [ListCustomDataIdentifiers]
$creadList :: ReadS [ListCustomDataIdentifiers]
readsPrec :: Int -> ReadS ListCustomDataIdentifiers
$creadsPrec :: Int -> ReadS ListCustomDataIdentifiers
Prelude.Read, Int -> ListCustomDataIdentifiers -> ShowS
[ListCustomDataIdentifiers] -> ShowS
ListCustomDataIdentifiers -> String
(Int -> ListCustomDataIdentifiers -> ShowS)
-> (ListCustomDataIdentifiers -> String)
-> ([ListCustomDataIdentifiers] -> ShowS)
-> Show ListCustomDataIdentifiers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCustomDataIdentifiers] -> ShowS
$cshowList :: [ListCustomDataIdentifiers] -> ShowS
show :: ListCustomDataIdentifiers -> String
$cshow :: ListCustomDataIdentifiers -> String
showsPrec :: Int -> ListCustomDataIdentifiers -> ShowS
$cshowsPrec :: Int -> ListCustomDataIdentifiers -> ShowS
Prelude.Show, (forall x.
ListCustomDataIdentifiers -> Rep ListCustomDataIdentifiers x)
-> (forall x.
Rep ListCustomDataIdentifiers x -> ListCustomDataIdentifiers)
-> Generic ListCustomDataIdentifiers
forall x.
Rep ListCustomDataIdentifiers x -> ListCustomDataIdentifiers
forall x.
ListCustomDataIdentifiers -> Rep ListCustomDataIdentifiers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListCustomDataIdentifiers x -> ListCustomDataIdentifiers
$cfrom :: forall x.
ListCustomDataIdentifiers -> Rep ListCustomDataIdentifiers x
Prelude.Generic)
newListCustomDataIdentifiers ::
ListCustomDataIdentifiers
newListCustomDataIdentifiers :: ListCustomDataIdentifiers
newListCustomDataIdentifiers =
ListCustomDataIdentifiers' :: Maybe Text -> Maybe Int -> ListCustomDataIdentifiers
ListCustomDataIdentifiers'
{ $sel:nextToken:ListCustomDataIdentifiers' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListCustomDataIdentifiers' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
listCustomDataIdentifiers_nextToken :: Lens.Lens' ListCustomDataIdentifiers (Prelude.Maybe Prelude.Text)
listCustomDataIdentifiers_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListCustomDataIdentifiers -> f ListCustomDataIdentifiers
listCustomDataIdentifiers_nextToken = (ListCustomDataIdentifiers -> Maybe Text)
-> (ListCustomDataIdentifiers
-> Maybe Text -> ListCustomDataIdentifiers)
-> Lens
ListCustomDataIdentifiers
ListCustomDataIdentifiers
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCustomDataIdentifiers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListCustomDataIdentifiers' :: ListCustomDataIdentifiers -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListCustomDataIdentifiers
s@ListCustomDataIdentifiers' {} Maybe Text
a -> ListCustomDataIdentifiers
s {$sel:nextToken:ListCustomDataIdentifiers' :: Maybe Text
nextToken = Maybe Text
a} :: ListCustomDataIdentifiers)
listCustomDataIdentifiers_maxResults :: Lens.Lens' ListCustomDataIdentifiers (Prelude.Maybe Prelude.Int)
listCustomDataIdentifiers_maxResults :: (Maybe Int -> f (Maybe Int))
-> ListCustomDataIdentifiers -> f ListCustomDataIdentifiers
listCustomDataIdentifiers_maxResults = (ListCustomDataIdentifiers -> Maybe Int)
-> (ListCustomDataIdentifiers
-> Maybe Int -> ListCustomDataIdentifiers)
-> Lens
ListCustomDataIdentifiers
ListCustomDataIdentifiers
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCustomDataIdentifiers' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:ListCustomDataIdentifiers' :: ListCustomDataIdentifiers -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: ListCustomDataIdentifiers
s@ListCustomDataIdentifiers' {} Maybe Int
a -> ListCustomDataIdentifiers
s {$sel:maxResults:ListCustomDataIdentifiers' :: Maybe Int
maxResults = Maybe Int
a} :: ListCustomDataIdentifiers)
instance Core.AWSPager ListCustomDataIdentifiers where
page :: ListCustomDataIdentifiers
-> AWSResponse ListCustomDataIdentifiers
-> Maybe ListCustomDataIdentifiers
page ListCustomDataIdentifiers
rq AWSResponse ListCustomDataIdentifiers
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListCustomDataIdentifiers
ListCustomDataIdentifiersResponse
rs
ListCustomDataIdentifiersResponse
-> Getting (First Text) ListCustomDataIdentifiersResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListCustomDataIdentifiersResponse
-> Const (First Text) ListCustomDataIdentifiersResponse
Lens' ListCustomDataIdentifiersResponse (Maybe Text)
listCustomDataIdentifiersResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListCustomDataIdentifiersResponse
-> Const (First Text) ListCustomDataIdentifiersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListCustomDataIdentifiersResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListCustomDataIdentifiers
forall a. Maybe a
Prelude.Nothing
| Maybe [CustomDataIdentifierSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListCustomDataIdentifiers
ListCustomDataIdentifiersResponse
rs
ListCustomDataIdentifiersResponse
-> Getting
(First [CustomDataIdentifierSummary])
ListCustomDataIdentifiersResponse
[CustomDataIdentifierSummary]
-> Maybe [CustomDataIdentifierSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [CustomDataIdentifierSummary]
-> Const
(First [CustomDataIdentifierSummary])
(Maybe [CustomDataIdentifierSummary]))
-> ListCustomDataIdentifiersResponse
-> Const
(First [CustomDataIdentifierSummary])
ListCustomDataIdentifiersResponse
Lens'
ListCustomDataIdentifiersResponse
(Maybe [CustomDataIdentifierSummary])
listCustomDataIdentifiersResponse_items
((Maybe [CustomDataIdentifierSummary]
-> Const
(First [CustomDataIdentifierSummary])
(Maybe [CustomDataIdentifierSummary]))
-> ListCustomDataIdentifiersResponse
-> Const
(First [CustomDataIdentifierSummary])
ListCustomDataIdentifiersResponse)
-> (([CustomDataIdentifierSummary]
-> Const
(First [CustomDataIdentifierSummary])
[CustomDataIdentifierSummary])
-> Maybe [CustomDataIdentifierSummary]
-> Const
(First [CustomDataIdentifierSummary])
(Maybe [CustomDataIdentifierSummary]))
-> Getting
(First [CustomDataIdentifierSummary])
ListCustomDataIdentifiersResponse
[CustomDataIdentifierSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([CustomDataIdentifierSummary]
-> Const
(First [CustomDataIdentifierSummary])
[CustomDataIdentifierSummary])
-> Maybe [CustomDataIdentifierSummary]
-> Const
(First [CustomDataIdentifierSummary])
(Maybe [CustomDataIdentifierSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListCustomDataIdentifiers
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListCustomDataIdentifiers -> Maybe ListCustomDataIdentifiers
forall a. a -> Maybe a
Prelude.Just (ListCustomDataIdentifiers -> Maybe ListCustomDataIdentifiers)
-> ListCustomDataIdentifiers -> Maybe ListCustomDataIdentifiers
forall a b. (a -> b) -> a -> b
Prelude.$
ListCustomDataIdentifiers
rq
ListCustomDataIdentifiers
-> (ListCustomDataIdentifiers -> ListCustomDataIdentifiers)
-> ListCustomDataIdentifiers
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListCustomDataIdentifiers -> Identity ListCustomDataIdentifiers
Lens
ListCustomDataIdentifiers
ListCustomDataIdentifiers
(Maybe Text)
(Maybe Text)
listCustomDataIdentifiers_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListCustomDataIdentifiers -> Identity ListCustomDataIdentifiers)
-> Maybe Text
-> ListCustomDataIdentifiers
-> ListCustomDataIdentifiers
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListCustomDataIdentifiers
ListCustomDataIdentifiersResponse
rs
ListCustomDataIdentifiersResponse
-> Getting (First Text) ListCustomDataIdentifiersResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListCustomDataIdentifiersResponse
-> Const (First Text) ListCustomDataIdentifiersResponse
Lens' ListCustomDataIdentifiersResponse (Maybe Text)
listCustomDataIdentifiersResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListCustomDataIdentifiersResponse
-> Const (First Text) ListCustomDataIdentifiersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListCustomDataIdentifiersResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListCustomDataIdentifiers where
type
AWSResponse ListCustomDataIdentifiers =
ListCustomDataIdentifiersResponse
request :: ListCustomDataIdentifiers -> Request ListCustomDataIdentifiers
request = Service
-> ListCustomDataIdentifiers -> Request ListCustomDataIdentifiers
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListCustomDataIdentifiers
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListCustomDataIdentifiers)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListCustomDataIdentifiers))
-> Logger
-> Service
-> Proxy ListCustomDataIdentifiers
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListCustomDataIdentifiers)))
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 [CustomDataIdentifierSummary]
-> Maybe Text -> Int -> ListCustomDataIdentifiersResponse
ListCustomDataIdentifiersResponse'
(Maybe [CustomDataIdentifierSummary]
-> Maybe Text -> Int -> ListCustomDataIdentifiersResponse)
-> Either String (Maybe [CustomDataIdentifierSummary])
-> Either
String (Maybe Text -> Int -> ListCustomDataIdentifiersResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text
-> Either String (Maybe (Maybe [CustomDataIdentifierSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"items" Either String (Maybe (Maybe [CustomDataIdentifierSummary]))
-> Maybe [CustomDataIdentifierSummary]
-> Either String (Maybe [CustomDataIdentifierSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [CustomDataIdentifierSummary]
forall a. Monoid a => a
Prelude.mempty)
Either
String (Maybe Text -> Int -> ListCustomDataIdentifiersResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListCustomDataIdentifiersResponse)
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 -> ListCustomDataIdentifiersResponse)
-> Either String Int
-> Either String ListCustomDataIdentifiersResponse
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 ListCustomDataIdentifiers
instance Prelude.NFData ListCustomDataIdentifiers
instance Core.ToHeaders ListCustomDataIdentifiers where
toHeaders :: ListCustomDataIdentifiers -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListCustomDataIdentifiers -> 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 ListCustomDataIdentifiers where
toJSON :: ListCustomDataIdentifiers -> Value
toJSON ListCustomDataIdentifiers' {Maybe Int
Maybe Text
maxResults :: Maybe Int
nextToken :: Maybe Text
$sel:maxResults:ListCustomDataIdentifiers' :: ListCustomDataIdentifiers -> Maybe Int
$sel:nextToken:ListCustomDataIdentifiers' :: ListCustomDataIdentifiers -> 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 -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxResults
]
)
instance Core.ToPath ListCustomDataIdentifiers where
toPath :: ListCustomDataIdentifiers -> ByteString
toPath =
ByteString -> ListCustomDataIdentifiers -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/custom-data-identifiers/list"
instance Core.ToQuery ListCustomDataIdentifiers where
toQuery :: ListCustomDataIdentifiers -> QueryString
toQuery = QueryString -> ListCustomDataIdentifiers -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListCustomDataIdentifiersResponse = ListCustomDataIdentifiersResponse'
{
ListCustomDataIdentifiersResponse
-> Maybe [CustomDataIdentifierSummary]
items :: Prelude.Maybe [CustomDataIdentifierSummary],
ListCustomDataIdentifiersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListCustomDataIdentifiersResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListCustomDataIdentifiersResponse
-> ListCustomDataIdentifiersResponse -> Bool
(ListCustomDataIdentifiersResponse
-> ListCustomDataIdentifiersResponse -> Bool)
-> (ListCustomDataIdentifiersResponse
-> ListCustomDataIdentifiersResponse -> Bool)
-> Eq ListCustomDataIdentifiersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCustomDataIdentifiersResponse
-> ListCustomDataIdentifiersResponse -> Bool
$c/= :: ListCustomDataIdentifiersResponse
-> ListCustomDataIdentifiersResponse -> Bool
== :: ListCustomDataIdentifiersResponse
-> ListCustomDataIdentifiersResponse -> Bool
$c== :: ListCustomDataIdentifiersResponse
-> ListCustomDataIdentifiersResponse -> Bool
Prelude.Eq, ReadPrec [ListCustomDataIdentifiersResponse]
ReadPrec ListCustomDataIdentifiersResponse
Int -> ReadS ListCustomDataIdentifiersResponse
ReadS [ListCustomDataIdentifiersResponse]
(Int -> ReadS ListCustomDataIdentifiersResponse)
-> ReadS [ListCustomDataIdentifiersResponse]
-> ReadPrec ListCustomDataIdentifiersResponse
-> ReadPrec [ListCustomDataIdentifiersResponse]
-> Read ListCustomDataIdentifiersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCustomDataIdentifiersResponse]
$creadListPrec :: ReadPrec [ListCustomDataIdentifiersResponse]
readPrec :: ReadPrec ListCustomDataIdentifiersResponse
$creadPrec :: ReadPrec ListCustomDataIdentifiersResponse
readList :: ReadS [ListCustomDataIdentifiersResponse]
$creadList :: ReadS [ListCustomDataIdentifiersResponse]
readsPrec :: Int -> ReadS ListCustomDataIdentifiersResponse
$creadsPrec :: Int -> ReadS ListCustomDataIdentifiersResponse
Prelude.Read, Int -> ListCustomDataIdentifiersResponse -> ShowS
[ListCustomDataIdentifiersResponse] -> ShowS
ListCustomDataIdentifiersResponse -> String
(Int -> ListCustomDataIdentifiersResponse -> ShowS)
-> (ListCustomDataIdentifiersResponse -> String)
-> ([ListCustomDataIdentifiersResponse] -> ShowS)
-> Show ListCustomDataIdentifiersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCustomDataIdentifiersResponse] -> ShowS
$cshowList :: [ListCustomDataIdentifiersResponse] -> ShowS
show :: ListCustomDataIdentifiersResponse -> String
$cshow :: ListCustomDataIdentifiersResponse -> String
showsPrec :: Int -> ListCustomDataIdentifiersResponse -> ShowS
$cshowsPrec :: Int -> ListCustomDataIdentifiersResponse -> ShowS
Prelude.Show, (forall x.
ListCustomDataIdentifiersResponse
-> Rep ListCustomDataIdentifiersResponse x)
-> (forall x.
Rep ListCustomDataIdentifiersResponse x
-> ListCustomDataIdentifiersResponse)
-> Generic ListCustomDataIdentifiersResponse
forall x.
Rep ListCustomDataIdentifiersResponse x
-> ListCustomDataIdentifiersResponse
forall x.
ListCustomDataIdentifiersResponse
-> Rep ListCustomDataIdentifiersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListCustomDataIdentifiersResponse x
-> ListCustomDataIdentifiersResponse
$cfrom :: forall x.
ListCustomDataIdentifiersResponse
-> Rep ListCustomDataIdentifiersResponse x
Prelude.Generic)
newListCustomDataIdentifiersResponse ::
Prelude.Int ->
ListCustomDataIdentifiersResponse
newListCustomDataIdentifiersResponse :: Int -> ListCustomDataIdentifiersResponse
newListCustomDataIdentifiersResponse Int
pHttpStatus_ =
ListCustomDataIdentifiersResponse' :: Maybe [CustomDataIdentifierSummary]
-> Maybe Text -> Int -> ListCustomDataIdentifiersResponse
ListCustomDataIdentifiersResponse'
{ $sel:items:ListCustomDataIdentifiersResponse' :: Maybe [CustomDataIdentifierSummary]
items =
Maybe [CustomDataIdentifierSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListCustomDataIdentifiersResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListCustomDataIdentifiersResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listCustomDataIdentifiersResponse_items :: Lens.Lens' ListCustomDataIdentifiersResponse (Prelude.Maybe [CustomDataIdentifierSummary])
listCustomDataIdentifiersResponse_items :: (Maybe [CustomDataIdentifierSummary]
-> f (Maybe [CustomDataIdentifierSummary]))
-> ListCustomDataIdentifiersResponse
-> f ListCustomDataIdentifiersResponse
listCustomDataIdentifiersResponse_items = (ListCustomDataIdentifiersResponse
-> Maybe [CustomDataIdentifierSummary])
-> (ListCustomDataIdentifiersResponse
-> Maybe [CustomDataIdentifierSummary]
-> ListCustomDataIdentifiersResponse)
-> Lens'
ListCustomDataIdentifiersResponse
(Maybe [CustomDataIdentifierSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCustomDataIdentifiersResponse' {Maybe [CustomDataIdentifierSummary]
items :: Maybe [CustomDataIdentifierSummary]
$sel:items:ListCustomDataIdentifiersResponse' :: ListCustomDataIdentifiersResponse
-> Maybe [CustomDataIdentifierSummary]
items} -> Maybe [CustomDataIdentifierSummary]
items) (\s :: ListCustomDataIdentifiersResponse
s@ListCustomDataIdentifiersResponse' {} Maybe [CustomDataIdentifierSummary]
a -> ListCustomDataIdentifiersResponse
s {$sel:items:ListCustomDataIdentifiersResponse' :: Maybe [CustomDataIdentifierSummary]
items = Maybe [CustomDataIdentifierSummary]
a} :: ListCustomDataIdentifiersResponse) ((Maybe [CustomDataIdentifierSummary]
-> f (Maybe [CustomDataIdentifierSummary]))
-> ListCustomDataIdentifiersResponse
-> f ListCustomDataIdentifiersResponse)
-> ((Maybe [CustomDataIdentifierSummary]
-> f (Maybe [CustomDataIdentifierSummary]))
-> Maybe [CustomDataIdentifierSummary]
-> f (Maybe [CustomDataIdentifierSummary]))
-> (Maybe [CustomDataIdentifierSummary]
-> f (Maybe [CustomDataIdentifierSummary]))
-> ListCustomDataIdentifiersResponse
-> f ListCustomDataIdentifiersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[CustomDataIdentifierSummary]
[CustomDataIdentifierSummary]
[CustomDataIdentifierSummary]
[CustomDataIdentifierSummary]
-> Iso
(Maybe [CustomDataIdentifierSummary])
(Maybe [CustomDataIdentifierSummary])
(Maybe [CustomDataIdentifierSummary])
(Maybe [CustomDataIdentifierSummary])
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
[CustomDataIdentifierSummary]
[CustomDataIdentifierSummary]
[CustomDataIdentifierSummary]
[CustomDataIdentifierSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listCustomDataIdentifiersResponse_nextToken :: Lens.Lens' ListCustomDataIdentifiersResponse (Prelude.Maybe Prelude.Text)
listCustomDataIdentifiersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListCustomDataIdentifiersResponse
-> f ListCustomDataIdentifiersResponse
listCustomDataIdentifiersResponse_nextToken = (ListCustomDataIdentifiersResponse -> Maybe Text)
-> (ListCustomDataIdentifiersResponse
-> Maybe Text -> ListCustomDataIdentifiersResponse)
-> Lens' ListCustomDataIdentifiersResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCustomDataIdentifiersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListCustomDataIdentifiersResponse' :: ListCustomDataIdentifiersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListCustomDataIdentifiersResponse
s@ListCustomDataIdentifiersResponse' {} Maybe Text
a -> ListCustomDataIdentifiersResponse
s {$sel:nextToken:ListCustomDataIdentifiersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListCustomDataIdentifiersResponse)
listCustomDataIdentifiersResponse_httpStatus :: Lens.Lens' ListCustomDataIdentifiersResponse Prelude.Int
listCustomDataIdentifiersResponse_httpStatus :: (Int -> f Int)
-> ListCustomDataIdentifiersResponse
-> f ListCustomDataIdentifiersResponse
listCustomDataIdentifiersResponse_httpStatus = (ListCustomDataIdentifiersResponse -> Int)
-> (ListCustomDataIdentifiersResponse
-> Int -> ListCustomDataIdentifiersResponse)
-> Lens
ListCustomDataIdentifiersResponse
ListCustomDataIdentifiersResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCustomDataIdentifiersResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListCustomDataIdentifiersResponse' :: ListCustomDataIdentifiersResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListCustomDataIdentifiersResponse
s@ListCustomDataIdentifiersResponse' {} Int
a -> ListCustomDataIdentifiersResponse
s {$sel:httpStatus:ListCustomDataIdentifiersResponse' :: Int
httpStatus = Int
a} :: ListCustomDataIdentifiersResponse)
instance
Prelude.NFData
ListCustomDataIdentifiersResponse