{-# 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.DirectoryService.DescribeLDAPSSettings
(
DescribeLDAPSSettings (..),
newDescribeLDAPSSettings,
describeLDAPSSettings_nextToken,
describeLDAPSSettings_limit,
describeLDAPSSettings_type,
describeLDAPSSettings_directoryId,
DescribeLDAPSSettingsResponse (..),
newDescribeLDAPSSettingsResponse,
describeLDAPSSettingsResponse_lDAPSSettingsInfo,
describeLDAPSSettingsResponse_nextToken,
describeLDAPSSettingsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DirectoryService.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 DescribeLDAPSSettings = DescribeLDAPSSettings'
{
DescribeLDAPSSettings -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeLDAPSSettings -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural,
DescribeLDAPSSettings -> Maybe LDAPSType
type' :: Prelude.Maybe LDAPSType,
DescribeLDAPSSettings -> Text
directoryId :: Prelude.Text
}
deriving (DescribeLDAPSSettings -> DescribeLDAPSSettings -> Bool
(DescribeLDAPSSettings -> DescribeLDAPSSettings -> Bool)
-> (DescribeLDAPSSettings -> DescribeLDAPSSettings -> Bool)
-> Eq DescribeLDAPSSettings
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLDAPSSettings -> DescribeLDAPSSettings -> Bool
$c/= :: DescribeLDAPSSettings -> DescribeLDAPSSettings -> Bool
== :: DescribeLDAPSSettings -> DescribeLDAPSSettings -> Bool
$c== :: DescribeLDAPSSettings -> DescribeLDAPSSettings -> Bool
Prelude.Eq, ReadPrec [DescribeLDAPSSettings]
ReadPrec DescribeLDAPSSettings
Int -> ReadS DescribeLDAPSSettings
ReadS [DescribeLDAPSSettings]
(Int -> ReadS DescribeLDAPSSettings)
-> ReadS [DescribeLDAPSSettings]
-> ReadPrec DescribeLDAPSSettings
-> ReadPrec [DescribeLDAPSSettings]
-> Read DescribeLDAPSSettings
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLDAPSSettings]
$creadListPrec :: ReadPrec [DescribeLDAPSSettings]
readPrec :: ReadPrec DescribeLDAPSSettings
$creadPrec :: ReadPrec DescribeLDAPSSettings
readList :: ReadS [DescribeLDAPSSettings]
$creadList :: ReadS [DescribeLDAPSSettings]
readsPrec :: Int -> ReadS DescribeLDAPSSettings
$creadsPrec :: Int -> ReadS DescribeLDAPSSettings
Prelude.Read, Int -> DescribeLDAPSSettings -> ShowS
[DescribeLDAPSSettings] -> ShowS
DescribeLDAPSSettings -> String
(Int -> DescribeLDAPSSettings -> ShowS)
-> (DescribeLDAPSSettings -> String)
-> ([DescribeLDAPSSettings] -> ShowS)
-> Show DescribeLDAPSSettings
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLDAPSSettings] -> ShowS
$cshowList :: [DescribeLDAPSSettings] -> ShowS
show :: DescribeLDAPSSettings -> String
$cshow :: DescribeLDAPSSettings -> String
showsPrec :: Int -> DescribeLDAPSSettings -> ShowS
$cshowsPrec :: Int -> DescribeLDAPSSettings -> ShowS
Prelude.Show, (forall x. DescribeLDAPSSettings -> Rep DescribeLDAPSSettings x)
-> (forall x. Rep DescribeLDAPSSettings x -> DescribeLDAPSSettings)
-> Generic DescribeLDAPSSettings
forall x. Rep DescribeLDAPSSettings x -> DescribeLDAPSSettings
forall x. DescribeLDAPSSettings -> Rep DescribeLDAPSSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeLDAPSSettings x -> DescribeLDAPSSettings
$cfrom :: forall x. DescribeLDAPSSettings -> Rep DescribeLDAPSSettings x
Prelude.Generic)
newDescribeLDAPSSettings ::
Prelude.Text ->
DescribeLDAPSSettings
newDescribeLDAPSSettings :: Text -> DescribeLDAPSSettings
newDescribeLDAPSSettings Text
pDirectoryId_ =
DescribeLDAPSSettings' :: Maybe Text
-> Maybe Natural
-> Maybe LDAPSType
-> Text
-> DescribeLDAPSSettings
DescribeLDAPSSettings'
{ $sel:nextToken:DescribeLDAPSSettings' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:DescribeLDAPSSettings' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:type':DescribeLDAPSSettings' :: Maybe LDAPSType
type' = Maybe LDAPSType
forall a. Maybe a
Prelude.Nothing,
$sel:directoryId:DescribeLDAPSSettings' :: Text
directoryId = Text
pDirectoryId_
}
describeLDAPSSettings_nextToken :: Lens.Lens' DescribeLDAPSSettings (Prelude.Maybe Prelude.Text)
describeLDAPSSettings_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeLDAPSSettings -> f DescribeLDAPSSettings
describeLDAPSSettings_nextToken = (DescribeLDAPSSettings -> Maybe Text)
-> (DescribeLDAPSSettings -> Maybe Text -> DescribeLDAPSSettings)
-> Lens
DescribeLDAPSSettings
DescribeLDAPSSettings
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLDAPSSettings' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeLDAPSSettings' :: DescribeLDAPSSettings -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeLDAPSSettings
s@DescribeLDAPSSettings' {} Maybe Text
a -> DescribeLDAPSSettings
s {$sel:nextToken:DescribeLDAPSSettings' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeLDAPSSettings)
describeLDAPSSettings_limit :: Lens.Lens' DescribeLDAPSSettings (Prelude.Maybe Prelude.Natural)
describeLDAPSSettings_limit :: (Maybe Natural -> f (Maybe Natural))
-> DescribeLDAPSSettings -> f DescribeLDAPSSettings
describeLDAPSSettings_limit = (DescribeLDAPSSettings -> Maybe Natural)
-> (DescribeLDAPSSettings
-> Maybe Natural -> DescribeLDAPSSettings)
-> Lens
DescribeLDAPSSettings
DescribeLDAPSSettings
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLDAPSSettings' {Maybe Natural
limit :: Maybe Natural
$sel:limit:DescribeLDAPSSettings' :: DescribeLDAPSSettings -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: DescribeLDAPSSettings
s@DescribeLDAPSSettings' {} Maybe Natural
a -> DescribeLDAPSSettings
s {$sel:limit:DescribeLDAPSSettings' :: Maybe Natural
limit = Maybe Natural
a} :: DescribeLDAPSSettings)
describeLDAPSSettings_type :: Lens.Lens' DescribeLDAPSSettings (Prelude.Maybe LDAPSType)
describeLDAPSSettings_type :: (Maybe LDAPSType -> f (Maybe LDAPSType))
-> DescribeLDAPSSettings -> f DescribeLDAPSSettings
describeLDAPSSettings_type = (DescribeLDAPSSettings -> Maybe LDAPSType)
-> (DescribeLDAPSSettings
-> Maybe LDAPSType -> DescribeLDAPSSettings)
-> Lens
DescribeLDAPSSettings
DescribeLDAPSSettings
(Maybe LDAPSType)
(Maybe LDAPSType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLDAPSSettings' {Maybe LDAPSType
type' :: Maybe LDAPSType
$sel:type':DescribeLDAPSSettings' :: DescribeLDAPSSettings -> Maybe LDAPSType
type'} -> Maybe LDAPSType
type') (\s :: DescribeLDAPSSettings
s@DescribeLDAPSSettings' {} Maybe LDAPSType
a -> DescribeLDAPSSettings
s {$sel:type':DescribeLDAPSSettings' :: Maybe LDAPSType
type' = Maybe LDAPSType
a} :: DescribeLDAPSSettings)
describeLDAPSSettings_directoryId :: Lens.Lens' DescribeLDAPSSettings Prelude.Text
describeLDAPSSettings_directoryId :: (Text -> f Text)
-> DescribeLDAPSSettings -> f DescribeLDAPSSettings
describeLDAPSSettings_directoryId = (DescribeLDAPSSettings -> Text)
-> (DescribeLDAPSSettings -> Text -> DescribeLDAPSSettings)
-> Lens DescribeLDAPSSettings DescribeLDAPSSettings Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLDAPSSettings' {Text
directoryId :: Text
$sel:directoryId:DescribeLDAPSSettings' :: DescribeLDAPSSettings -> Text
directoryId} -> Text
directoryId) (\s :: DescribeLDAPSSettings
s@DescribeLDAPSSettings' {} Text
a -> DescribeLDAPSSettings
s {$sel:directoryId:DescribeLDAPSSettings' :: Text
directoryId = Text
a} :: DescribeLDAPSSettings)
instance Core.AWSRequest DescribeLDAPSSettings where
type
AWSResponse DescribeLDAPSSettings =
DescribeLDAPSSettingsResponse
request :: DescribeLDAPSSettings -> Request DescribeLDAPSSettings
request = Service -> DescribeLDAPSSettings -> Request DescribeLDAPSSettings
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeLDAPSSettings
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeLDAPSSettings)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeLDAPSSettings))
-> Logger
-> Service
-> Proxy DescribeLDAPSSettings
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeLDAPSSettings)))
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 [LDAPSSettingInfo]
-> Maybe Text -> Int -> DescribeLDAPSSettingsResponse
DescribeLDAPSSettingsResponse'
(Maybe [LDAPSSettingInfo]
-> Maybe Text -> Int -> DescribeLDAPSSettingsResponse)
-> Either String (Maybe [LDAPSSettingInfo])
-> Either
String (Maybe Text -> Int -> DescribeLDAPSSettingsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object -> Text -> Either String (Maybe (Maybe [LDAPSSettingInfo]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LDAPSSettingsInfo"
Either String (Maybe (Maybe [LDAPSSettingInfo]))
-> Maybe [LDAPSSettingInfo]
-> Either String (Maybe [LDAPSSettingInfo])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [LDAPSSettingInfo]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Maybe Text -> Int -> DescribeLDAPSSettingsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeLDAPSSettingsResponse)
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 -> DescribeLDAPSSettingsResponse)
-> Either String Int -> Either String DescribeLDAPSSettingsResponse
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 DescribeLDAPSSettings
instance Prelude.NFData DescribeLDAPSSettings
instance Core.ToHeaders DescribeLDAPSSettings where
toHeaders :: DescribeLDAPSSettings -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeLDAPSSettings -> 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
"DirectoryService_20150416.DescribeLDAPSSettings" ::
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 DescribeLDAPSSettings where
toJSON :: DescribeLDAPSSettings -> Value
toJSON DescribeLDAPSSettings' {Maybe Natural
Maybe Text
Maybe LDAPSType
Text
directoryId :: Text
type' :: Maybe LDAPSType
limit :: Maybe Natural
nextToken :: Maybe Text
$sel:directoryId:DescribeLDAPSSettings' :: DescribeLDAPSSettings -> Text
$sel:type':DescribeLDAPSSettings' :: DescribeLDAPSSettings -> Maybe LDAPSType
$sel:limit:DescribeLDAPSSettings' :: DescribeLDAPSSettings -> Maybe Natural
$sel:nextToken:DescribeLDAPSSettings' :: DescribeLDAPSSettings -> 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
"Limit" 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
limit,
(Text
"Type" Text -> LDAPSType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (LDAPSType -> Pair) -> Maybe LDAPSType -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LDAPSType
type',
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DirectoryId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
directoryId)
]
)
instance Core.ToPath DescribeLDAPSSettings where
toPath :: DescribeLDAPSSettings -> ByteString
toPath = ByteString -> DescribeLDAPSSettings -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeLDAPSSettings where
toQuery :: DescribeLDAPSSettings -> QueryString
toQuery = QueryString -> DescribeLDAPSSettings -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeLDAPSSettingsResponse = DescribeLDAPSSettingsResponse'
{
DescribeLDAPSSettingsResponse -> Maybe [LDAPSSettingInfo]
lDAPSSettingsInfo :: Prelude.Maybe [LDAPSSettingInfo],
DescribeLDAPSSettingsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeLDAPSSettingsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeLDAPSSettingsResponse
-> DescribeLDAPSSettingsResponse -> Bool
(DescribeLDAPSSettingsResponse
-> DescribeLDAPSSettingsResponse -> Bool)
-> (DescribeLDAPSSettingsResponse
-> DescribeLDAPSSettingsResponse -> Bool)
-> Eq DescribeLDAPSSettingsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLDAPSSettingsResponse
-> DescribeLDAPSSettingsResponse -> Bool
$c/= :: DescribeLDAPSSettingsResponse
-> DescribeLDAPSSettingsResponse -> Bool
== :: DescribeLDAPSSettingsResponse
-> DescribeLDAPSSettingsResponse -> Bool
$c== :: DescribeLDAPSSettingsResponse
-> DescribeLDAPSSettingsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeLDAPSSettingsResponse]
ReadPrec DescribeLDAPSSettingsResponse
Int -> ReadS DescribeLDAPSSettingsResponse
ReadS [DescribeLDAPSSettingsResponse]
(Int -> ReadS DescribeLDAPSSettingsResponse)
-> ReadS [DescribeLDAPSSettingsResponse]
-> ReadPrec DescribeLDAPSSettingsResponse
-> ReadPrec [DescribeLDAPSSettingsResponse]
-> Read DescribeLDAPSSettingsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLDAPSSettingsResponse]
$creadListPrec :: ReadPrec [DescribeLDAPSSettingsResponse]
readPrec :: ReadPrec DescribeLDAPSSettingsResponse
$creadPrec :: ReadPrec DescribeLDAPSSettingsResponse
readList :: ReadS [DescribeLDAPSSettingsResponse]
$creadList :: ReadS [DescribeLDAPSSettingsResponse]
readsPrec :: Int -> ReadS DescribeLDAPSSettingsResponse
$creadsPrec :: Int -> ReadS DescribeLDAPSSettingsResponse
Prelude.Read, Int -> DescribeLDAPSSettingsResponse -> ShowS
[DescribeLDAPSSettingsResponse] -> ShowS
DescribeLDAPSSettingsResponse -> String
(Int -> DescribeLDAPSSettingsResponse -> ShowS)
-> (DescribeLDAPSSettingsResponse -> String)
-> ([DescribeLDAPSSettingsResponse] -> ShowS)
-> Show DescribeLDAPSSettingsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLDAPSSettingsResponse] -> ShowS
$cshowList :: [DescribeLDAPSSettingsResponse] -> ShowS
show :: DescribeLDAPSSettingsResponse -> String
$cshow :: DescribeLDAPSSettingsResponse -> String
showsPrec :: Int -> DescribeLDAPSSettingsResponse -> ShowS
$cshowsPrec :: Int -> DescribeLDAPSSettingsResponse -> ShowS
Prelude.Show, (forall x.
DescribeLDAPSSettingsResponse
-> Rep DescribeLDAPSSettingsResponse x)
-> (forall x.
Rep DescribeLDAPSSettingsResponse x
-> DescribeLDAPSSettingsResponse)
-> Generic DescribeLDAPSSettingsResponse
forall x.
Rep DescribeLDAPSSettingsResponse x
-> DescribeLDAPSSettingsResponse
forall x.
DescribeLDAPSSettingsResponse
-> Rep DescribeLDAPSSettingsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeLDAPSSettingsResponse x
-> DescribeLDAPSSettingsResponse
$cfrom :: forall x.
DescribeLDAPSSettingsResponse
-> Rep DescribeLDAPSSettingsResponse x
Prelude.Generic)
newDescribeLDAPSSettingsResponse ::
Prelude.Int ->
DescribeLDAPSSettingsResponse
newDescribeLDAPSSettingsResponse :: Int -> DescribeLDAPSSettingsResponse
newDescribeLDAPSSettingsResponse Int
pHttpStatus_ =
DescribeLDAPSSettingsResponse' :: Maybe [LDAPSSettingInfo]
-> Maybe Text -> Int -> DescribeLDAPSSettingsResponse
DescribeLDAPSSettingsResponse'
{ $sel:lDAPSSettingsInfo:DescribeLDAPSSettingsResponse' :: Maybe [LDAPSSettingInfo]
lDAPSSettingsInfo =
Maybe [LDAPSSettingInfo]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeLDAPSSettingsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeLDAPSSettingsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeLDAPSSettingsResponse_lDAPSSettingsInfo :: Lens.Lens' DescribeLDAPSSettingsResponse (Prelude.Maybe [LDAPSSettingInfo])
describeLDAPSSettingsResponse_lDAPSSettingsInfo :: (Maybe [LDAPSSettingInfo] -> f (Maybe [LDAPSSettingInfo]))
-> DescribeLDAPSSettingsResponse -> f DescribeLDAPSSettingsResponse
describeLDAPSSettingsResponse_lDAPSSettingsInfo = (DescribeLDAPSSettingsResponse -> Maybe [LDAPSSettingInfo])
-> (DescribeLDAPSSettingsResponse
-> Maybe [LDAPSSettingInfo] -> DescribeLDAPSSettingsResponse)
-> Lens
DescribeLDAPSSettingsResponse
DescribeLDAPSSettingsResponse
(Maybe [LDAPSSettingInfo])
(Maybe [LDAPSSettingInfo])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLDAPSSettingsResponse' {Maybe [LDAPSSettingInfo]
lDAPSSettingsInfo :: Maybe [LDAPSSettingInfo]
$sel:lDAPSSettingsInfo:DescribeLDAPSSettingsResponse' :: DescribeLDAPSSettingsResponse -> Maybe [LDAPSSettingInfo]
lDAPSSettingsInfo} -> Maybe [LDAPSSettingInfo]
lDAPSSettingsInfo) (\s :: DescribeLDAPSSettingsResponse
s@DescribeLDAPSSettingsResponse' {} Maybe [LDAPSSettingInfo]
a -> DescribeLDAPSSettingsResponse
s {$sel:lDAPSSettingsInfo:DescribeLDAPSSettingsResponse' :: Maybe [LDAPSSettingInfo]
lDAPSSettingsInfo = Maybe [LDAPSSettingInfo]
a} :: DescribeLDAPSSettingsResponse) ((Maybe [LDAPSSettingInfo] -> f (Maybe [LDAPSSettingInfo]))
-> DescribeLDAPSSettingsResponse
-> f DescribeLDAPSSettingsResponse)
-> ((Maybe [LDAPSSettingInfo] -> f (Maybe [LDAPSSettingInfo]))
-> Maybe [LDAPSSettingInfo] -> f (Maybe [LDAPSSettingInfo]))
-> (Maybe [LDAPSSettingInfo] -> f (Maybe [LDAPSSettingInfo]))
-> DescribeLDAPSSettingsResponse
-> f DescribeLDAPSSettingsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[LDAPSSettingInfo]
[LDAPSSettingInfo]
[LDAPSSettingInfo]
[LDAPSSettingInfo]
-> Iso
(Maybe [LDAPSSettingInfo])
(Maybe [LDAPSSettingInfo])
(Maybe [LDAPSSettingInfo])
(Maybe [LDAPSSettingInfo])
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
[LDAPSSettingInfo]
[LDAPSSettingInfo]
[LDAPSSettingInfo]
[LDAPSSettingInfo]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeLDAPSSettingsResponse_nextToken :: Lens.Lens' DescribeLDAPSSettingsResponse (Prelude.Maybe Prelude.Text)
describeLDAPSSettingsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeLDAPSSettingsResponse -> f DescribeLDAPSSettingsResponse
describeLDAPSSettingsResponse_nextToken = (DescribeLDAPSSettingsResponse -> Maybe Text)
-> (DescribeLDAPSSettingsResponse
-> Maybe Text -> DescribeLDAPSSettingsResponse)
-> Lens
DescribeLDAPSSettingsResponse
DescribeLDAPSSettingsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLDAPSSettingsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeLDAPSSettingsResponse' :: DescribeLDAPSSettingsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeLDAPSSettingsResponse
s@DescribeLDAPSSettingsResponse' {} Maybe Text
a -> DescribeLDAPSSettingsResponse
s {$sel:nextToken:DescribeLDAPSSettingsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeLDAPSSettingsResponse)
describeLDAPSSettingsResponse_httpStatus :: Lens.Lens' DescribeLDAPSSettingsResponse Prelude.Int
describeLDAPSSettingsResponse_httpStatus :: (Int -> f Int)
-> DescribeLDAPSSettingsResponse -> f DescribeLDAPSSettingsResponse
describeLDAPSSettingsResponse_httpStatus = (DescribeLDAPSSettingsResponse -> Int)
-> (DescribeLDAPSSettingsResponse
-> Int -> DescribeLDAPSSettingsResponse)
-> Lens
DescribeLDAPSSettingsResponse DescribeLDAPSSettingsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLDAPSSettingsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeLDAPSSettingsResponse' :: DescribeLDAPSSettingsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeLDAPSSettingsResponse
s@DescribeLDAPSSettingsResponse' {} Int
a -> DescribeLDAPSSettingsResponse
s {$sel:httpStatus:DescribeLDAPSSettingsResponse' :: Int
httpStatus = Int
a} :: DescribeLDAPSSettingsResponse)
instance Prelude.NFData DescribeLDAPSSettingsResponse