{-# 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.GuardDuty.GetMemberDetectors
(
GetMemberDetectors (..),
newGetMemberDetectors,
getMemberDetectors_detectorId,
getMemberDetectors_accountIds,
GetMemberDetectorsResponse (..),
newGetMemberDetectorsResponse,
getMemberDetectorsResponse_httpStatus,
getMemberDetectorsResponse_memberDataSourceConfigurations,
getMemberDetectorsResponse_unprocessedAccounts,
)
where
import qualified Amazonka.Core as Core
import Amazonka.GuardDuty.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
data GetMemberDetectors = GetMemberDetectors'
{
GetMemberDetectors -> Text
detectorId :: Prelude.Text,
GetMemberDetectors -> NonEmpty Text
accountIds :: Prelude.NonEmpty Prelude.Text
}
deriving (GetMemberDetectors -> GetMemberDetectors -> Bool
(GetMemberDetectors -> GetMemberDetectors -> Bool)
-> (GetMemberDetectors -> GetMemberDetectors -> Bool)
-> Eq GetMemberDetectors
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetMemberDetectors -> GetMemberDetectors -> Bool
$c/= :: GetMemberDetectors -> GetMemberDetectors -> Bool
== :: GetMemberDetectors -> GetMemberDetectors -> Bool
$c== :: GetMemberDetectors -> GetMemberDetectors -> Bool
Prelude.Eq, ReadPrec [GetMemberDetectors]
ReadPrec GetMemberDetectors
Int -> ReadS GetMemberDetectors
ReadS [GetMemberDetectors]
(Int -> ReadS GetMemberDetectors)
-> ReadS [GetMemberDetectors]
-> ReadPrec GetMemberDetectors
-> ReadPrec [GetMemberDetectors]
-> Read GetMemberDetectors
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetMemberDetectors]
$creadListPrec :: ReadPrec [GetMemberDetectors]
readPrec :: ReadPrec GetMemberDetectors
$creadPrec :: ReadPrec GetMemberDetectors
readList :: ReadS [GetMemberDetectors]
$creadList :: ReadS [GetMemberDetectors]
readsPrec :: Int -> ReadS GetMemberDetectors
$creadsPrec :: Int -> ReadS GetMemberDetectors
Prelude.Read, Int -> GetMemberDetectors -> ShowS
[GetMemberDetectors] -> ShowS
GetMemberDetectors -> String
(Int -> GetMemberDetectors -> ShowS)
-> (GetMemberDetectors -> String)
-> ([GetMemberDetectors] -> ShowS)
-> Show GetMemberDetectors
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetMemberDetectors] -> ShowS
$cshowList :: [GetMemberDetectors] -> ShowS
show :: GetMemberDetectors -> String
$cshow :: GetMemberDetectors -> String
showsPrec :: Int -> GetMemberDetectors -> ShowS
$cshowsPrec :: Int -> GetMemberDetectors -> ShowS
Prelude.Show, (forall x. GetMemberDetectors -> Rep GetMemberDetectors x)
-> (forall x. Rep GetMemberDetectors x -> GetMemberDetectors)
-> Generic GetMemberDetectors
forall x. Rep GetMemberDetectors x -> GetMemberDetectors
forall x. GetMemberDetectors -> Rep GetMemberDetectors x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetMemberDetectors x -> GetMemberDetectors
$cfrom :: forall x. GetMemberDetectors -> Rep GetMemberDetectors x
Prelude.Generic)
newGetMemberDetectors ::
Prelude.Text ->
Prelude.NonEmpty Prelude.Text ->
GetMemberDetectors
newGetMemberDetectors :: Text -> NonEmpty Text -> GetMemberDetectors
newGetMemberDetectors Text
pDetectorId_ NonEmpty Text
pAccountIds_ =
GetMemberDetectors' :: Text -> NonEmpty Text -> GetMemberDetectors
GetMemberDetectors'
{ $sel:detectorId:GetMemberDetectors' :: Text
detectorId = Text
pDetectorId_,
$sel:accountIds:GetMemberDetectors' :: NonEmpty Text
accountIds = 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
pAccountIds_
}
getMemberDetectors_detectorId :: Lens.Lens' GetMemberDetectors Prelude.Text
getMemberDetectors_detectorId :: (Text -> f Text) -> GetMemberDetectors -> f GetMemberDetectors
getMemberDetectors_detectorId = (GetMemberDetectors -> Text)
-> (GetMemberDetectors -> Text -> GetMemberDetectors)
-> Lens GetMemberDetectors GetMemberDetectors Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMemberDetectors' {Text
detectorId :: Text
$sel:detectorId:GetMemberDetectors' :: GetMemberDetectors -> Text
detectorId} -> Text
detectorId) (\s :: GetMemberDetectors
s@GetMemberDetectors' {} Text
a -> GetMemberDetectors
s {$sel:detectorId:GetMemberDetectors' :: Text
detectorId = Text
a} :: GetMemberDetectors)
getMemberDetectors_accountIds :: Lens.Lens' GetMemberDetectors (Prelude.NonEmpty Prelude.Text)
getMemberDetectors_accountIds :: (NonEmpty Text -> f (NonEmpty Text))
-> GetMemberDetectors -> f GetMemberDetectors
getMemberDetectors_accountIds = (GetMemberDetectors -> NonEmpty Text)
-> (GetMemberDetectors -> NonEmpty Text -> GetMemberDetectors)
-> Lens
GetMemberDetectors
GetMemberDetectors
(NonEmpty Text)
(NonEmpty Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMemberDetectors' {NonEmpty Text
accountIds :: NonEmpty Text
$sel:accountIds:GetMemberDetectors' :: GetMemberDetectors -> NonEmpty Text
accountIds} -> NonEmpty Text
accountIds) (\s :: GetMemberDetectors
s@GetMemberDetectors' {} NonEmpty Text
a -> GetMemberDetectors
s {$sel:accountIds:GetMemberDetectors' :: NonEmpty Text
accountIds = NonEmpty Text
a} :: GetMemberDetectors) ((NonEmpty Text -> f (NonEmpty Text))
-> GetMemberDetectors -> f GetMemberDetectors)
-> ((NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text))
-> (NonEmpty Text -> f (NonEmpty Text))
-> GetMemberDetectors
-> f GetMemberDetectors
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 GetMemberDetectors where
type
AWSResponse GetMemberDetectors =
GetMemberDetectorsResponse
request :: GetMemberDetectors -> Request GetMemberDetectors
request = Service -> GetMemberDetectors -> Request GetMemberDetectors
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetMemberDetectors
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetMemberDetectors)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetMemberDetectors))
-> Logger
-> Service
-> Proxy GetMemberDetectors
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetMemberDetectors)))
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 ->
Int
-> NonEmpty MemberDataSourceConfiguration
-> [UnprocessedAccount]
-> GetMemberDetectorsResponse
GetMemberDetectorsResponse'
(Int
-> NonEmpty MemberDataSourceConfiguration
-> [UnprocessedAccount]
-> GetMemberDetectorsResponse)
-> Either String Int
-> Either
String
(NonEmpty MemberDataSourceConfiguration
-> [UnprocessedAccount] -> GetMemberDetectorsResponse)
forall (f :: * -> *) a b. Functor 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))
Either
String
(NonEmpty MemberDataSourceConfiguration
-> [UnprocessedAccount] -> GetMemberDetectorsResponse)
-> Either String (NonEmpty MemberDataSourceConfiguration)
-> Either
String ([UnprocessedAccount] -> GetMemberDetectorsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (NonEmpty MemberDataSourceConfiguration)
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"members")
Either String ([UnprocessedAccount] -> GetMemberDetectorsResponse)
-> Either String [UnprocessedAccount]
-> Either String GetMemberDetectorsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe [UnprocessedAccount])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"unprocessedAccounts"
Either String (Maybe [UnprocessedAccount])
-> [UnprocessedAccount] -> Either String [UnprocessedAccount]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [UnprocessedAccount]
forall a. Monoid a => a
Prelude.mempty
)
)
instance Prelude.Hashable GetMemberDetectors
instance Prelude.NFData GetMemberDetectors
instance Core.ToHeaders GetMemberDetectors where
toHeaders :: GetMemberDetectors -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetMemberDetectors -> 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 GetMemberDetectors where
toJSON :: GetMemberDetectors -> Value
toJSON GetMemberDetectors' {NonEmpty Text
Text
accountIds :: NonEmpty Text
detectorId :: Text
$sel:accountIds:GetMemberDetectors' :: GetMemberDetectors -> NonEmpty Text
$sel:detectorId:GetMemberDetectors' :: GetMemberDetectors -> 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
"accountIds" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty Text
accountIds)]
)
instance Core.ToPath GetMemberDetectors where
toPath :: GetMemberDetectors -> ByteString
toPath GetMemberDetectors' {NonEmpty Text
Text
accountIds :: NonEmpty Text
detectorId :: Text
$sel:accountIds:GetMemberDetectors' :: GetMemberDetectors -> NonEmpty Text
$sel:detectorId:GetMemberDetectors' :: GetMemberDetectors -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/detector/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
detectorId,
ByteString
"/member/detector/get"
]
instance Core.ToQuery GetMemberDetectors where
toQuery :: GetMemberDetectors -> QueryString
toQuery = QueryString -> GetMemberDetectors -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetMemberDetectorsResponse = GetMemberDetectorsResponse'
{
GetMemberDetectorsResponse -> Int
httpStatus :: Prelude.Int,
GetMemberDetectorsResponse
-> NonEmpty MemberDataSourceConfiguration
memberDataSourceConfigurations :: Prelude.NonEmpty MemberDataSourceConfiguration,
GetMemberDetectorsResponse -> [UnprocessedAccount]
unprocessedAccounts :: [UnprocessedAccount]
}
deriving (GetMemberDetectorsResponse -> GetMemberDetectorsResponse -> Bool
(GetMemberDetectorsResponse -> GetMemberDetectorsResponse -> Bool)
-> (GetMemberDetectorsResponse
-> GetMemberDetectorsResponse -> Bool)
-> Eq GetMemberDetectorsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetMemberDetectorsResponse -> GetMemberDetectorsResponse -> Bool
$c/= :: GetMemberDetectorsResponse -> GetMemberDetectorsResponse -> Bool
== :: GetMemberDetectorsResponse -> GetMemberDetectorsResponse -> Bool
$c== :: GetMemberDetectorsResponse -> GetMemberDetectorsResponse -> Bool
Prelude.Eq, ReadPrec [GetMemberDetectorsResponse]
ReadPrec GetMemberDetectorsResponse
Int -> ReadS GetMemberDetectorsResponse
ReadS [GetMemberDetectorsResponse]
(Int -> ReadS GetMemberDetectorsResponse)
-> ReadS [GetMemberDetectorsResponse]
-> ReadPrec GetMemberDetectorsResponse
-> ReadPrec [GetMemberDetectorsResponse]
-> Read GetMemberDetectorsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetMemberDetectorsResponse]
$creadListPrec :: ReadPrec [GetMemberDetectorsResponse]
readPrec :: ReadPrec GetMemberDetectorsResponse
$creadPrec :: ReadPrec GetMemberDetectorsResponse
readList :: ReadS [GetMemberDetectorsResponse]
$creadList :: ReadS [GetMemberDetectorsResponse]
readsPrec :: Int -> ReadS GetMemberDetectorsResponse
$creadsPrec :: Int -> ReadS GetMemberDetectorsResponse
Prelude.Read, Int -> GetMemberDetectorsResponse -> ShowS
[GetMemberDetectorsResponse] -> ShowS
GetMemberDetectorsResponse -> String
(Int -> GetMemberDetectorsResponse -> ShowS)
-> (GetMemberDetectorsResponse -> String)
-> ([GetMemberDetectorsResponse] -> ShowS)
-> Show GetMemberDetectorsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetMemberDetectorsResponse] -> ShowS
$cshowList :: [GetMemberDetectorsResponse] -> ShowS
show :: GetMemberDetectorsResponse -> String
$cshow :: GetMemberDetectorsResponse -> String
showsPrec :: Int -> GetMemberDetectorsResponse -> ShowS
$cshowsPrec :: Int -> GetMemberDetectorsResponse -> ShowS
Prelude.Show, (forall x.
GetMemberDetectorsResponse -> Rep GetMemberDetectorsResponse x)
-> (forall x.
Rep GetMemberDetectorsResponse x -> GetMemberDetectorsResponse)
-> Generic GetMemberDetectorsResponse
forall x.
Rep GetMemberDetectorsResponse x -> GetMemberDetectorsResponse
forall x.
GetMemberDetectorsResponse -> Rep GetMemberDetectorsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetMemberDetectorsResponse x -> GetMemberDetectorsResponse
$cfrom :: forall x.
GetMemberDetectorsResponse -> Rep GetMemberDetectorsResponse x
Prelude.Generic)
newGetMemberDetectorsResponse ::
Prelude.Int ->
Prelude.NonEmpty MemberDataSourceConfiguration ->
GetMemberDetectorsResponse
newGetMemberDetectorsResponse :: Int
-> NonEmpty MemberDataSourceConfiguration
-> GetMemberDetectorsResponse
newGetMemberDetectorsResponse
Int
pHttpStatus_
NonEmpty MemberDataSourceConfiguration
pMemberDataSourceConfigurations_ =
GetMemberDetectorsResponse' :: Int
-> NonEmpty MemberDataSourceConfiguration
-> [UnprocessedAccount]
-> GetMemberDetectorsResponse
GetMemberDetectorsResponse'
{ $sel:httpStatus:GetMemberDetectorsResponse' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:memberDataSourceConfigurations:GetMemberDetectorsResponse' :: NonEmpty MemberDataSourceConfiguration
memberDataSourceConfigurations =
Tagged
(NonEmpty MemberDataSourceConfiguration)
(Identity (NonEmpty MemberDataSourceConfiguration))
-> Tagged
(NonEmpty MemberDataSourceConfiguration)
(Identity (NonEmpty MemberDataSourceConfiguration))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
(Tagged
(NonEmpty MemberDataSourceConfiguration)
(Identity (NonEmpty MemberDataSourceConfiguration))
-> Tagged
(NonEmpty MemberDataSourceConfiguration)
(Identity (NonEmpty MemberDataSourceConfiguration)))
-> NonEmpty MemberDataSourceConfiguration
-> NonEmpty MemberDataSourceConfiguration
forall t b. AReview t b -> b -> t
Lens.# NonEmpty MemberDataSourceConfiguration
pMemberDataSourceConfigurations_,
$sel:unprocessedAccounts:GetMemberDetectorsResponse' :: [UnprocessedAccount]
unprocessedAccounts = [UnprocessedAccount]
forall a. Monoid a => a
Prelude.mempty
}
getMemberDetectorsResponse_httpStatus :: Lens.Lens' GetMemberDetectorsResponse Prelude.Int
getMemberDetectorsResponse_httpStatus :: (Int -> f Int)
-> GetMemberDetectorsResponse -> f GetMemberDetectorsResponse
getMemberDetectorsResponse_httpStatus = (GetMemberDetectorsResponse -> Int)
-> (GetMemberDetectorsResponse
-> Int -> GetMemberDetectorsResponse)
-> Lens
GetMemberDetectorsResponse GetMemberDetectorsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMemberDetectorsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetMemberDetectorsResponse' :: GetMemberDetectorsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetMemberDetectorsResponse
s@GetMemberDetectorsResponse' {} Int
a -> GetMemberDetectorsResponse
s {$sel:httpStatus:GetMemberDetectorsResponse' :: Int
httpStatus = Int
a} :: GetMemberDetectorsResponse)
getMemberDetectorsResponse_memberDataSourceConfigurations :: Lens.Lens' GetMemberDetectorsResponse (Prelude.NonEmpty MemberDataSourceConfiguration)
getMemberDetectorsResponse_memberDataSourceConfigurations :: (NonEmpty MemberDataSourceConfiguration
-> f (NonEmpty MemberDataSourceConfiguration))
-> GetMemberDetectorsResponse -> f GetMemberDetectorsResponse
getMemberDetectorsResponse_memberDataSourceConfigurations = (GetMemberDetectorsResponse
-> NonEmpty MemberDataSourceConfiguration)
-> (GetMemberDetectorsResponse
-> NonEmpty MemberDataSourceConfiguration
-> GetMemberDetectorsResponse)
-> Lens
GetMemberDetectorsResponse
GetMemberDetectorsResponse
(NonEmpty MemberDataSourceConfiguration)
(NonEmpty MemberDataSourceConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMemberDetectorsResponse' {NonEmpty MemberDataSourceConfiguration
memberDataSourceConfigurations :: NonEmpty MemberDataSourceConfiguration
$sel:memberDataSourceConfigurations:GetMemberDetectorsResponse' :: GetMemberDetectorsResponse
-> NonEmpty MemberDataSourceConfiguration
memberDataSourceConfigurations} -> NonEmpty MemberDataSourceConfiguration
memberDataSourceConfigurations) (\s :: GetMemberDetectorsResponse
s@GetMemberDetectorsResponse' {} NonEmpty MemberDataSourceConfiguration
a -> GetMemberDetectorsResponse
s {$sel:memberDataSourceConfigurations:GetMemberDetectorsResponse' :: NonEmpty MemberDataSourceConfiguration
memberDataSourceConfigurations = NonEmpty MemberDataSourceConfiguration
a} :: GetMemberDetectorsResponse) ((NonEmpty MemberDataSourceConfiguration
-> f (NonEmpty MemberDataSourceConfiguration))
-> GetMemberDetectorsResponse -> f GetMemberDetectorsResponse)
-> ((NonEmpty MemberDataSourceConfiguration
-> f (NonEmpty MemberDataSourceConfiguration))
-> NonEmpty MemberDataSourceConfiguration
-> f (NonEmpty MemberDataSourceConfiguration))
-> (NonEmpty MemberDataSourceConfiguration
-> f (NonEmpty MemberDataSourceConfiguration))
-> GetMemberDetectorsResponse
-> f GetMemberDetectorsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty MemberDataSourceConfiguration
-> f (NonEmpty MemberDataSourceConfiguration))
-> NonEmpty MemberDataSourceConfiguration
-> f (NonEmpty MemberDataSourceConfiguration)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getMemberDetectorsResponse_unprocessedAccounts :: Lens.Lens' GetMemberDetectorsResponse [UnprocessedAccount]
getMemberDetectorsResponse_unprocessedAccounts :: ([UnprocessedAccount] -> f [UnprocessedAccount])
-> GetMemberDetectorsResponse -> f GetMemberDetectorsResponse
getMemberDetectorsResponse_unprocessedAccounts = (GetMemberDetectorsResponse -> [UnprocessedAccount])
-> (GetMemberDetectorsResponse
-> [UnprocessedAccount] -> GetMemberDetectorsResponse)
-> Lens
GetMemberDetectorsResponse
GetMemberDetectorsResponse
[UnprocessedAccount]
[UnprocessedAccount]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMemberDetectorsResponse' {[UnprocessedAccount]
unprocessedAccounts :: [UnprocessedAccount]
$sel:unprocessedAccounts:GetMemberDetectorsResponse' :: GetMemberDetectorsResponse -> [UnprocessedAccount]
unprocessedAccounts} -> [UnprocessedAccount]
unprocessedAccounts) (\s :: GetMemberDetectorsResponse
s@GetMemberDetectorsResponse' {} [UnprocessedAccount]
a -> GetMemberDetectorsResponse
s {$sel:unprocessedAccounts:GetMemberDetectorsResponse' :: [UnprocessedAccount]
unprocessedAccounts = [UnprocessedAccount]
a} :: GetMemberDetectorsResponse) (([UnprocessedAccount] -> f [UnprocessedAccount])
-> GetMemberDetectorsResponse -> f GetMemberDetectorsResponse)
-> (([UnprocessedAccount] -> f [UnprocessedAccount])
-> [UnprocessedAccount] -> f [UnprocessedAccount])
-> ([UnprocessedAccount] -> f [UnprocessedAccount])
-> GetMemberDetectorsResponse
-> f GetMemberDetectorsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([UnprocessedAccount] -> f [UnprocessedAccount])
-> [UnprocessedAccount] -> f [UnprocessedAccount]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData GetMemberDetectorsResponse