{-# 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.AppStream.DescribeDirectoryConfigs
(
DescribeDirectoryConfigs (..),
newDescribeDirectoryConfigs,
describeDirectoryConfigs_nextToken,
describeDirectoryConfigs_directoryNames,
describeDirectoryConfigs_maxResults,
DescribeDirectoryConfigsResponse (..),
newDescribeDirectoryConfigsResponse,
describeDirectoryConfigsResponse_nextToken,
describeDirectoryConfigsResponse_directoryConfigs,
describeDirectoryConfigsResponse_httpStatus,
)
where
import Amazonka.AppStream.Types
import qualified Amazonka.Core as Core
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 DescribeDirectoryConfigs = DescribeDirectoryConfigs'
{
DescribeDirectoryConfigs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeDirectoryConfigs -> Maybe [Text]
directoryNames :: Prelude.Maybe [Prelude.Text],
DescribeDirectoryConfigs -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int
}
deriving (DescribeDirectoryConfigs -> DescribeDirectoryConfigs -> Bool
(DescribeDirectoryConfigs -> DescribeDirectoryConfigs -> Bool)
-> (DescribeDirectoryConfigs -> DescribeDirectoryConfigs -> Bool)
-> Eq DescribeDirectoryConfigs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDirectoryConfigs -> DescribeDirectoryConfigs -> Bool
$c/= :: DescribeDirectoryConfigs -> DescribeDirectoryConfigs -> Bool
== :: DescribeDirectoryConfigs -> DescribeDirectoryConfigs -> Bool
$c== :: DescribeDirectoryConfigs -> DescribeDirectoryConfigs -> Bool
Prelude.Eq, ReadPrec [DescribeDirectoryConfigs]
ReadPrec DescribeDirectoryConfigs
Int -> ReadS DescribeDirectoryConfigs
ReadS [DescribeDirectoryConfigs]
(Int -> ReadS DescribeDirectoryConfigs)
-> ReadS [DescribeDirectoryConfigs]
-> ReadPrec DescribeDirectoryConfigs
-> ReadPrec [DescribeDirectoryConfigs]
-> Read DescribeDirectoryConfigs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDirectoryConfigs]
$creadListPrec :: ReadPrec [DescribeDirectoryConfigs]
readPrec :: ReadPrec DescribeDirectoryConfigs
$creadPrec :: ReadPrec DescribeDirectoryConfigs
readList :: ReadS [DescribeDirectoryConfigs]
$creadList :: ReadS [DescribeDirectoryConfigs]
readsPrec :: Int -> ReadS DescribeDirectoryConfigs
$creadsPrec :: Int -> ReadS DescribeDirectoryConfigs
Prelude.Read, Int -> DescribeDirectoryConfigs -> ShowS
[DescribeDirectoryConfigs] -> ShowS
DescribeDirectoryConfigs -> String
(Int -> DescribeDirectoryConfigs -> ShowS)
-> (DescribeDirectoryConfigs -> String)
-> ([DescribeDirectoryConfigs] -> ShowS)
-> Show DescribeDirectoryConfigs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDirectoryConfigs] -> ShowS
$cshowList :: [DescribeDirectoryConfigs] -> ShowS
show :: DescribeDirectoryConfigs -> String
$cshow :: DescribeDirectoryConfigs -> String
showsPrec :: Int -> DescribeDirectoryConfigs -> ShowS
$cshowsPrec :: Int -> DescribeDirectoryConfigs -> ShowS
Prelude.Show, (forall x.
DescribeDirectoryConfigs -> Rep DescribeDirectoryConfigs x)
-> (forall x.
Rep DescribeDirectoryConfigs x -> DescribeDirectoryConfigs)
-> Generic DescribeDirectoryConfigs
forall x.
Rep DescribeDirectoryConfigs x -> DescribeDirectoryConfigs
forall x.
DescribeDirectoryConfigs -> Rep DescribeDirectoryConfigs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDirectoryConfigs x -> DescribeDirectoryConfigs
$cfrom :: forall x.
DescribeDirectoryConfigs -> Rep DescribeDirectoryConfigs x
Prelude.Generic)
newDescribeDirectoryConfigs ::
DescribeDirectoryConfigs
newDescribeDirectoryConfigs :: DescribeDirectoryConfigs
newDescribeDirectoryConfigs =
DescribeDirectoryConfigs' :: Maybe Text -> Maybe [Text] -> Maybe Int -> DescribeDirectoryConfigs
DescribeDirectoryConfigs'
{ $sel:nextToken:DescribeDirectoryConfigs' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:directoryNames:DescribeDirectoryConfigs' :: Maybe [Text]
directoryNames = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeDirectoryConfigs' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
describeDirectoryConfigs_nextToken :: Lens.Lens' DescribeDirectoryConfigs (Prelude.Maybe Prelude.Text)
describeDirectoryConfigs_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeDirectoryConfigs -> f DescribeDirectoryConfigs
describeDirectoryConfigs_nextToken = (DescribeDirectoryConfigs -> Maybe Text)
-> (DescribeDirectoryConfigs
-> Maybe Text -> DescribeDirectoryConfigs)
-> Lens
DescribeDirectoryConfigs
DescribeDirectoryConfigs
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDirectoryConfigs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeDirectoryConfigs' :: DescribeDirectoryConfigs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeDirectoryConfigs
s@DescribeDirectoryConfigs' {} Maybe Text
a -> DescribeDirectoryConfigs
s {$sel:nextToken:DescribeDirectoryConfigs' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeDirectoryConfigs)
describeDirectoryConfigs_directoryNames :: Lens.Lens' DescribeDirectoryConfigs (Prelude.Maybe [Prelude.Text])
describeDirectoryConfigs_directoryNames :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeDirectoryConfigs -> f DescribeDirectoryConfigs
describeDirectoryConfigs_directoryNames = (DescribeDirectoryConfigs -> Maybe [Text])
-> (DescribeDirectoryConfigs
-> Maybe [Text] -> DescribeDirectoryConfigs)
-> Lens
DescribeDirectoryConfigs
DescribeDirectoryConfigs
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDirectoryConfigs' {Maybe [Text]
directoryNames :: Maybe [Text]
$sel:directoryNames:DescribeDirectoryConfigs' :: DescribeDirectoryConfigs -> Maybe [Text]
directoryNames} -> Maybe [Text]
directoryNames) (\s :: DescribeDirectoryConfigs
s@DescribeDirectoryConfigs' {} Maybe [Text]
a -> DescribeDirectoryConfigs
s {$sel:directoryNames:DescribeDirectoryConfigs' :: Maybe [Text]
directoryNames = Maybe [Text]
a} :: DescribeDirectoryConfigs) ((Maybe [Text] -> f (Maybe [Text]))
-> DescribeDirectoryConfigs -> f DescribeDirectoryConfigs)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeDirectoryConfigs
-> f DescribeDirectoryConfigs
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeDirectoryConfigs_maxResults :: Lens.Lens' DescribeDirectoryConfigs (Prelude.Maybe Prelude.Int)
describeDirectoryConfigs_maxResults :: (Maybe Int -> f (Maybe Int))
-> DescribeDirectoryConfigs -> f DescribeDirectoryConfigs
describeDirectoryConfigs_maxResults = (DescribeDirectoryConfigs -> Maybe Int)
-> (DescribeDirectoryConfigs
-> Maybe Int -> DescribeDirectoryConfigs)
-> Lens
DescribeDirectoryConfigs
DescribeDirectoryConfigs
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDirectoryConfigs' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:DescribeDirectoryConfigs' :: DescribeDirectoryConfigs -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: DescribeDirectoryConfigs
s@DescribeDirectoryConfigs' {} Maybe Int
a -> DescribeDirectoryConfigs
s {$sel:maxResults:DescribeDirectoryConfigs' :: Maybe Int
maxResults = Maybe Int
a} :: DescribeDirectoryConfigs)
instance Core.AWSPager DescribeDirectoryConfigs where
page :: DescribeDirectoryConfigs
-> AWSResponse DescribeDirectoryConfigs
-> Maybe DescribeDirectoryConfigs
page DescribeDirectoryConfigs
rq AWSResponse DescribeDirectoryConfigs
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeDirectoryConfigs
DescribeDirectoryConfigsResponse
rs
DescribeDirectoryConfigsResponse
-> Getting (First Text) DescribeDirectoryConfigsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDirectoryConfigsResponse
-> Const (First Text) DescribeDirectoryConfigsResponse
Lens' DescribeDirectoryConfigsResponse (Maybe Text)
describeDirectoryConfigsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDirectoryConfigsResponse
-> Const (First Text) DescribeDirectoryConfigsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeDirectoryConfigsResponse 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 DescribeDirectoryConfigs
forall a. Maybe a
Prelude.Nothing
| Maybe [DirectoryConfig] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeDirectoryConfigs
DescribeDirectoryConfigsResponse
rs
DescribeDirectoryConfigsResponse
-> Getting
(First [DirectoryConfig])
DescribeDirectoryConfigsResponse
[DirectoryConfig]
-> Maybe [DirectoryConfig]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [DirectoryConfig]
-> Const (First [DirectoryConfig]) (Maybe [DirectoryConfig]))
-> DescribeDirectoryConfigsResponse
-> Const (First [DirectoryConfig]) DescribeDirectoryConfigsResponse
Lens' DescribeDirectoryConfigsResponse (Maybe [DirectoryConfig])
describeDirectoryConfigsResponse_directoryConfigs
((Maybe [DirectoryConfig]
-> Const (First [DirectoryConfig]) (Maybe [DirectoryConfig]))
-> DescribeDirectoryConfigsResponse
-> Const
(First [DirectoryConfig]) DescribeDirectoryConfigsResponse)
-> (([DirectoryConfig]
-> Const (First [DirectoryConfig]) [DirectoryConfig])
-> Maybe [DirectoryConfig]
-> Const (First [DirectoryConfig]) (Maybe [DirectoryConfig]))
-> Getting
(First [DirectoryConfig])
DescribeDirectoryConfigsResponse
[DirectoryConfig]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([DirectoryConfig]
-> Const (First [DirectoryConfig]) [DirectoryConfig])
-> Maybe [DirectoryConfig]
-> Const (First [DirectoryConfig]) (Maybe [DirectoryConfig])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeDirectoryConfigs
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeDirectoryConfigs -> Maybe DescribeDirectoryConfigs
forall a. a -> Maybe a
Prelude.Just (DescribeDirectoryConfigs -> Maybe DescribeDirectoryConfigs)
-> DescribeDirectoryConfigs -> Maybe DescribeDirectoryConfigs
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeDirectoryConfigs
rq
DescribeDirectoryConfigs
-> (DescribeDirectoryConfigs -> DescribeDirectoryConfigs)
-> DescribeDirectoryConfigs
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeDirectoryConfigs -> Identity DescribeDirectoryConfigs
Lens
DescribeDirectoryConfigs
DescribeDirectoryConfigs
(Maybe Text)
(Maybe Text)
describeDirectoryConfigs_nextToken
((Maybe Text -> Identity (Maybe Text))
-> DescribeDirectoryConfigs -> Identity DescribeDirectoryConfigs)
-> Maybe Text
-> DescribeDirectoryConfigs
-> DescribeDirectoryConfigs
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeDirectoryConfigs
DescribeDirectoryConfigsResponse
rs
DescribeDirectoryConfigsResponse
-> Getting (First Text) DescribeDirectoryConfigsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDirectoryConfigsResponse
-> Const (First Text) DescribeDirectoryConfigsResponse
Lens' DescribeDirectoryConfigsResponse (Maybe Text)
describeDirectoryConfigsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDirectoryConfigsResponse
-> Const (First Text) DescribeDirectoryConfigsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeDirectoryConfigsResponse 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 DescribeDirectoryConfigs where
type
AWSResponse DescribeDirectoryConfigs =
DescribeDirectoryConfigsResponse
request :: DescribeDirectoryConfigs -> Request DescribeDirectoryConfigs
request = Service
-> DescribeDirectoryConfigs -> Request DescribeDirectoryConfigs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeDirectoryConfigs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeDirectoryConfigs)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeDirectoryConfigs))
-> Logger
-> Service
-> Proxy DescribeDirectoryConfigs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeDirectoryConfigs)))
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 Text
-> Maybe [DirectoryConfig]
-> Int
-> DescribeDirectoryConfigsResponse
DescribeDirectoryConfigsResponse'
(Maybe Text
-> Maybe [DirectoryConfig]
-> Int
-> DescribeDirectoryConfigsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [DirectoryConfig]
-> Int -> DescribeDirectoryConfigsResponse)
forall (f :: * -> *) a b. Functor 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
(Maybe [DirectoryConfig]
-> Int -> DescribeDirectoryConfigsResponse)
-> Either String (Maybe [DirectoryConfig])
-> Either String (Int -> DescribeDirectoryConfigsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [DirectoryConfig]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DirectoryConfigs"
Either String (Maybe (Maybe [DirectoryConfig]))
-> Maybe [DirectoryConfig]
-> Either String (Maybe [DirectoryConfig])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [DirectoryConfig]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> DescribeDirectoryConfigsResponse)
-> Either String Int
-> Either String DescribeDirectoryConfigsResponse
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 DescribeDirectoryConfigs
instance Prelude.NFData DescribeDirectoryConfigs
instance Core.ToHeaders DescribeDirectoryConfigs where
toHeaders :: DescribeDirectoryConfigs -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeDirectoryConfigs -> 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
"PhotonAdminProxyService.DescribeDirectoryConfigs" ::
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 DescribeDirectoryConfigs where
toJSON :: DescribeDirectoryConfigs -> Value
toJSON DescribeDirectoryConfigs' {Maybe Int
Maybe [Text]
Maybe Text
maxResults :: Maybe Int
directoryNames :: Maybe [Text]
nextToken :: Maybe Text
$sel:maxResults:DescribeDirectoryConfigs' :: DescribeDirectoryConfigs -> Maybe Int
$sel:directoryNames:DescribeDirectoryConfigs' :: DescribeDirectoryConfigs -> Maybe [Text]
$sel:nextToken:DescribeDirectoryConfigs' :: DescribeDirectoryConfigs -> 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
"DirectoryNames" 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]
directoryNames,
(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 DescribeDirectoryConfigs where
toPath :: DescribeDirectoryConfigs -> ByteString
toPath = ByteString -> DescribeDirectoryConfigs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeDirectoryConfigs where
toQuery :: DescribeDirectoryConfigs -> QueryString
toQuery = QueryString -> DescribeDirectoryConfigs -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeDirectoryConfigsResponse = DescribeDirectoryConfigsResponse'
{
DescribeDirectoryConfigsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeDirectoryConfigsResponse -> Maybe [DirectoryConfig]
directoryConfigs :: Prelude.Maybe [DirectoryConfig],
DescribeDirectoryConfigsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeDirectoryConfigsResponse
-> DescribeDirectoryConfigsResponse -> Bool
(DescribeDirectoryConfigsResponse
-> DescribeDirectoryConfigsResponse -> Bool)
-> (DescribeDirectoryConfigsResponse
-> DescribeDirectoryConfigsResponse -> Bool)
-> Eq DescribeDirectoryConfigsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDirectoryConfigsResponse
-> DescribeDirectoryConfigsResponse -> Bool
$c/= :: DescribeDirectoryConfigsResponse
-> DescribeDirectoryConfigsResponse -> Bool
== :: DescribeDirectoryConfigsResponse
-> DescribeDirectoryConfigsResponse -> Bool
$c== :: DescribeDirectoryConfigsResponse
-> DescribeDirectoryConfigsResponse -> Bool
Prelude.Eq, Int -> DescribeDirectoryConfigsResponse -> ShowS
[DescribeDirectoryConfigsResponse] -> ShowS
DescribeDirectoryConfigsResponse -> String
(Int -> DescribeDirectoryConfigsResponse -> ShowS)
-> (DescribeDirectoryConfigsResponse -> String)
-> ([DescribeDirectoryConfigsResponse] -> ShowS)
-> Show DescribeDirectoryConfigsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDirectoryConfigsResponse] -> ShowS
$cshowList :: [DescribeDirectoryConfigsResponse] -> ShowS
show :: DescribeDirectoryConfigsResponse -> String
$cshow :: DescribeDirectoryConfigsResponse -> String
showsPrec :: Int -> DescribeDirectoryConfigsResponse -> ShowS
$cshowsPrec :: Int -> DescribeDirectoryConfigsResponse -> ShowS
Prelude.Show, (forall x.
DescribeDirectoryConfigsResponse
-> Rep DescribeDirectoryConfigsResponse x)
-> (forall x.
Rep DescribeDirectoryConfigsResponse x
-> DescribeDirectoryConfigsResponse)
-> Generic DescribeDirectoryConfigsResponse
forall x.
Rep DescribeDirectoryConfigsResponse x
-> DescribeDirectoryConfigsResponse
forall x.
DescribeDirectoryConfigsResponse
-> Rep DescribeDirectoryConfigsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDirectoryConfigsResponse x
-> DescribeDirectoryConfigsResponse
$cfrom :: forall x.
DescribeDirectoryConfigsResponse
-> Rep DescribeDirectoryConfigsResponse x
Prelude.Generic)
newDescribeDirectoryConfigsResponse ::
Prelude.Int ->
DescribeDirectoryConfigsResponse
newDescribeDirectoryConfigsResponse :: Int -> DescribeDirectoryConfigsResponse
newDescribeDirectoryConfigsResponse Int
pHttpStatus_ =
DescribeDirectoryConfigsResponse' :: Maybe Text
-> Maybe [DirectoryConfig]
-> Int
-> DescribeDirectoryConfigsResponse
DescribeDirectoryConfigsResponse'
{ $sel:nextToken:DescribeDirectoryConfigsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:directoryConfigs:DescribeDirectoryConfigsResponse' :: Maybe [DirectoryConfig]
directoryConfigs = Maybe [DirectoryConfig]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeDirectoryConfigsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeDirectoryConfigsResponse_nextToken :: Lens.Lens' DescribeDirectoryConfigsResponse (Prelude.Maybe Prelude.Text)
describeDirectoryConfigsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeDirectoryConfigsResponse
-> f DescribeDirectoryConfigsResponse
describeDirectoryConfigsResponse_nextToken = (DescribeDirectoryConfigsResponse -> Maybe Text)
-> (DescribeDirectoryConfigsResponse
-> Maybe Text -> DescribeDirectoryConfigsResponse)
-> Lens' DescribeDirectoryConfigsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDirectoryConfigsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeDirectoryConfigsResponse' :: DescribeDirectoryConfigsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeDirectoryConfigsResponse
s@DescribeDirectoryConfigsResponse' {} Maybe Text
a -> DescribeDirectoryConfigsResponse
s {$sel:nextToken:DescribeDirectoryConfigsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeDirectoryConfigsResponse)
describeDirectoryConfigsResponse_directoryConfigs :: Lens.Lens' DescribeDirectoryConfigsResponse (Prelude.Maybe [DirectoryConfig])
describeDirectoryConfigsResponse_directoryConfigs :: (Maybe [DirectoryConfig] -> f (Maybe [DirectoryConfig]))
-> DescribeDirectoryConfigsResponse
-> f DescribeDirectoryConfigsResponse
describeDirectoryConfigsResponse_directoryConfigs = (DescribeDirectoryConfigsResponse -> Maybe [DirectoryConfig])
-> (DescribeDirectoryConfigsResponse
-> Maybe [DirectoryConfig] -> DescribeDirectoryConfigsResponse)
-> Lens' DescribeDirectoryConfigsResponse (Maybe [DirectoryConfig])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDirectoryConfigsResponse' {Maybe [DirectoryConfig]
directoryConfigs :: Maybe [DirectoryConfig]
$sel:directoryConfigs:DescribeDirectoryConfigsResponse' :: DescribeDirectoryConfigsResponse -> Maybe [DirectoryConfig]
directoryConfigs} -> Maybe [DirectoryConfig]
directoryConfigs) (\s :: DescribeDirectoryConfigsResponse
s@DescribeDirectoryConfigsResponse' {} Maybe [DirectoryConfig]
a -> DescribeDirectoryConfigsResponse
s {$sel:directoryConfigs:DescribeDirectoryConfigsResponse' :: Maybe [DirectoryConfig]
directoryConfigs = Maybe [DirectoryConfig]
a} :: DescribeDirectoryConfigsResponse) ((Maybe [DirectoryConfig] -> f (Maybe [DirectoryConfig]))
-> DescribeDirectoryConfigsResponse
-> f DescribeDirectoryConfigsResponse)
-> ((Maybe [DirectoryConfig] -> f (Maybe [DirectoryConfig]))
-> Maybe [DirectoryConfig] -> f (Maybe [DirectoryConfig]))
-> (Maybe [DirectoryConfig] -> f (Maybe [DirectoryConfig]))
-> DescribeDirectoryConfigsResponse
-> f DescribeDirectoryConfigsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[DirectoryConfig]
[DirectoryConfig]
[DirectoryConfig]
[DirectoryConfig]
-> Iso
(Maybe [DirectoryConfig])
(Maybe [DirectoryConfig])
(Maybe [DirectoryConfig])
(Maybe [DirectoryConfig])
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
[DirectoryConfig]
[DirectoryConfig]
[DirectoryConfig]
[DirectoryConfig]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeDirectoryConfigsResponse_httpStatus :: Lens.Lens' DescribeDirectoryConfigsResponse Prelude.Int
describeDirectoryConfigsResponse_httpStatus :: (Int -> f Int)
-> DescribeDirectoryConfigsResponse
-> f DescribeDirectoryConfigsResponse
describeDirectoryConfigsResponse_httpStatus = (DescribeDirectoryConfigsResponse -> Int)
-> (DescribeDirectoryConfigsResponse
-> Int -> DescribeDirectoryConfigsResponse)
-> Lens
DescribeDirectoryConfigsResponse
DescribeDirectoryConfigsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDirectoryConfigsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeDirectoryConfigsResponse' :: DescribeDirectoryConfigsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeDirectoryConfigsResponse
s@DescribeDirectoryConfigsResponse' {} Int
a -> DescribeDirectoryConfigsResponse
s {$sel:httpStatus:DescribeDirectoryConfigsResponse' :: Int
httpStatus = Int
a} :: DescribeDirectoryConfigsResponse)
instance
Prelude.NFData
DescribeDirectoryConfigsResponse