{-# 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.CloudDirectory.ListDirectories
(
ListDirectories (..),
newListDirectories,
listDirectories_state,
listDirectories_nextToken,
listDirectories_maxResults,
ListDirectoriesResponse (..),
newListDirectoriesResponse,
listDirectoriesResponse_nextToken,
listDirectoriesResponse_httpStatus,
listDirectoriesResponse_directories,
)
where
import Amazonka.CloudDirectory.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 ListDirectories = ListDirectories'
{
ListDirectories -> Maybe DirectoryState
state :: Prelude.Maybe DirectoryState,
ListDirectories -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListDirectories -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListDirectories -> ListDirectories -> Bool
(ListDirectories -> ListDirectories -> Bool)
-> (ListDirectories -> ListDirectories -> Bool)
-> Eq ListDirectories
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDirectories -> ListDirectories -> Bool
$c/= :: ListDirectories -> ListDirectories -> Bool
== :: ListDirectories -> ListDirectories -> Bool
$c== :: ListDirectories -> ListDirectories -> Bool
Prelude.Eq, ReadPrec [ListDirectories]
ReadPrec ListDirectories
Int -> ReadS ListDirectories
ReadS [ListDirectories]
(Int -> ReadS ListDirectories)
-> ReadS [ListDirectories]
-> ReadPrec ListDirectories
-> ReadPrec [ListDirectories]
-> Read ListDirectories
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDirectories]
$creadListPrec :: ReadPrec [ListDirectories]
readPrec :: ReadPrec ListDirectories
$creadPrec :: ReadPrec ListDirectories
readList :: ReadS [ListDirectories]
$creadList :: ReadS [ListDirectories]
readsPrec :: Int -> ReadS ListDirectories
$creadsPrec :: Int -> ReadS ListDirectories
Prelude.Read, Int -> ListDirectories -> ShowS
[ListDirectories] -> ShowS
ListDirectories -> String
(Int -> ListDirectories -> ShowS)
-> (ListDirectories -> String)
-> ([ListDirectories] -> ShowS)
-> Show ListDirectories
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDirectories] -> ShowS
$cshowList :: [ListDirectories] -> ShowS
show :: ListDirectories -> String
$cshow :: ListDirectories -> String
showsPrec :: Int -> ListDirectories -> ShowS
$cshowsPrec :: Int -> ListDirectories -> ShowS
Prelude.Show, (forall x. ListDirectories -> Rep ListDirectories x)
-> (forall x. Rep ListDirectories x -> ListDirectories)
-> Generic ListDirectories
forall x. Rep ListDirectories x -> ListDirectories
forall x. ListDirectories -> Rep ListDirectories x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListDirectories x -> ListDirectories
$cfrom :: forall x. ListDirectories -> Rep ListDirectories x
Prelude.Generic)
newListDirectories ::
ListDirectories
newListDirectories :: ListDirectories
newListDirectories =
ListDirectories' :: Maybe DirectoryState
-> Maybe Text -> Maybe Natural -> ListDirectories
ListDirectories'
{ $sel:state:ListDirectories' :: Maybe DirectoryState
state = Maybe DirectoryState
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListDirectories' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListDirectories' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listDirectories_state :: Lens.Lens' ListDirectories (Prelude.Maybe DirectoryState)
listDirectories_state :: (Maybe DirectoryState -> f (Maybe DirectoryState))
-> ListDirectories -> f ListDirectories
listDirectories_state = (ListDirectories -> Maybe DirectoryState)
-> (ListDirectories -> Maybe DirectoryState -> ListDirectories)
-> Lens
ListDirectories
ListDirectories
(Maybe DirectoryState)
(Maybe DirectoryState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDirectories' {Maybe DirectoryState
state :: Maybe DirectoryState
$sel:state:ListDirectories' :: ListDirectories -> Maybe DirectoryState
state} -> Maybe DirectoryState
state) (\s :: ListDirectories
s@ListDirectories' {} Maybe DirectoryState
a -> ListDirectories
s {$sel:state:ListDirectories' :: Maybe DirectoryState
state = Maybe DirectoryState
a} :: ListDirectories)
listDirectories_nextToken :: Lens.Lens' ListDirectories (Prelude.Maybe Prelude.Text)
listDirectories_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDirectories -> f ListDirectories
listDirectories_nextToken = (ListDirectories -> Maybe Text)
-> (ListDirectories -> Maybe Text -> ListDirectories)
-> Lens ListDirectories ListDirectories (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDirectories' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDirectories' :: ListDirectories -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDirectories
s@ListDirectories' {} Maybe Text
a -> ListDirectories
s {$sel:nextToken:ListDirectories' :: Maybe Text
nextToken = Maybe Text
a} :: ListDirectories)
listDirectories_maxResults :: Lens.Lens' ListDirectories (Prelude.Maybe Prelude.Natural)
listDirectories_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListDirectories -> f ListDirectories
listDirectories_maxResults = (ListDirectories -> Maybe Natural)
-> (ListDirectories -> Maybe Natural -> ListDirectories)
-> Lens
ListDirectories ListDirectories (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDirectories' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListDirectories' :: ListDirectories -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListDirectories
s@ListDirectories' {} Maybe Natural
a -> ListDirectories
s {$sel:maxResults:ListDirectories' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListDirectories)
instance Core.AWSPager ListDirectories where
page :: ListDirectories
-> AWSResponse ListDirectories -> Maybe ListDirectories
page ListDirectories
rq AWSResponse ListDirectories
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListDirectories
ListDirectoriesResponse
rs
ListDirectoriesResponse
-> Getting (First Text) ListDirectoriesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListDirectoriesResponse
-> Const (First Text) ListDirectoriesResponse
Lens' ListDirectoriesResponse (Maybe Text)
listDirectoriesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListDirectoriesResponse
-> Const (First Text) ListDirectoriesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListDirectoriesResponse 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 ListDirectories
forall a. Maybe a
Prelude.Nothing
| [Directory] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
(AWSResponse ListDirectories
ListDirectoriesResponse
rs ListDirectoriesResponse
-> Getting [Directory] ListDirectoriesResponse [Directory]
-> [Directory]
forall s a. s -> Getting a s a -> a
Lens.^. Getting [Directory] ListDirectoriesResponse [Directory]
Lens' ListDirectoriesResponse [Directory]
listDirectoriesResponse_directories) =
Maybe ListDirectories
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListDirectories -> Maybe ListDirectories
forall a. a -> Maybe a
Prelude.Just (ListDirectories -> Maybe ListDirectories)
-> ListDirectories -> Maybe ListDirectories
forall a b. (a -> b) -> a -> b
Prelude.$
ListDirectories
rq
ListDirectories
-> (ListDirectories -> ListDirectories) -> ListDirectories
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListDirectories -> Identity ListDirectories
Lens ListDirectories ListDirectories (Maybe Text) (Maybe Text)
listDirectories_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListDirectories -> Identity ListDirectories)
-> Maybe Text -> ListDirectories -> ListDirectories
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListDirectories
ListDirectoriesResponse
rs
ListDirectoriesResponse
-> Getting (First Text) ListDirectoriesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListDirectoriesResponse
-> Const (First Text) ListDirectoriesResponse
Lens' ListDirectoriesResponse (Maybe Text)
listDirectoriesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListDirectoriesResponse
-> Const (First Text) ListDirectoriesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListDirectoriesResponse 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 ListDirectories where
type
AWSResponse ListDirectories =
ListDirectoriesResponse
request :: ListDirectories -> Request ListDirectories
request = Service -> ListDirectories -> Request ListDirectories
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListDirectories
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListDirectories)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListDirectories))
-> Logger
-> Service
-> Proxy ListDirectories
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListDirectories)))
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 -> Int -> [Directory] -> ListDirectoriesResponse
ListDirectoriesResponse'
(Maybe Text -> Int -> [Directory] -> ListDirectoriesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> [Directory] -> ListDirectoriesResponse)
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 (Int -> [Directory] -> ListDirectoriesResponse)
-> Either String Int
-> Either String ([Directory] -> ListDirectoriesResponse)
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))
Either String ([Directory] -> ListDirectoriesResponse)
-> Either String [Directory]
-> Either String ListDirectoriesResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe [Directory])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Directories" Either String (Maybe [Directory])
-> [Directory] -> Either String [Directory]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Directory]
forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable ListDirectories
instance Prelude.NFData ListDirectories
instance Core.ToHeaders ListDirectories where
toHeaders :: ListDirectories -> ResponseHeaders
toHeaders = ResponseHeaders -> ListDirectories -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToJSON ListDirectories where
toJSON :: ListDirectories -> Value
toJSON ListDirectories' {Maybe Natural
Maybe Text
Maybe DirectoryState
maxResults :: Maybe Natural
nextToken :: Maybe Text
state :: Maybe DirectoryState
$sel:maxResults:ListDirectories' :: ListDirectories -> Maybe Natural
$sel:nextToken:ListDirectories' :: ListDirectories -> Maybe Text
$sel:state:ListDirectories' :: ListDirectories -> Maybe DirectoryState
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"state" Text -> DirectoryState -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (DirectoryState -> Pair) -> Maybe DirectoryState -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DirectoryState
state,
(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 -> 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
maxResults
]
)
instance Core.ToPath ListDirectories where
toPath :: ListDirectories -> ByteString
toPath =
ByteString -> ListDirectories -> ByteString
forall a b. a -> b -> a
Prelude.const
ByteString
"/amazonclouddirectory/2017-01-11/directory/list"
instance Core.ToQuery ListDirectories where
toQuery :: ListDirectories -> QueryString
toQuery = QueryString -> ListDirectories -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListDirectoriesResponse = ListDirectoriesResponse'
{
ListDirectoriesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListDirectoriesResponse -> Int
httpStatus :: Prelude.Int,
ListDirectoriesResponse -> [Directory]
directories :: [Directory]
}
deriving (ListDirectoriesResponse -> ListDirectoriesResponse -> Bool
(ListDirectoriesResponse -> ListDirectoriesResponse -> Bool)
-> (ListDirectoriesResponse -> ListDirectoriesResponse -> Bool)
-> Eq ListDirectoriesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDirectoriesResponse -> ListDirectoriesResponse -> Bool
$c/= :: ListDirectoriesResponse -> ListDirectoriesResponse -> Bool
== :: ListDirectoriesResponse -> ListDirectoriesResponse -> Bool
$c== :: ListDirectoriesResponse -> ListDirectoriesResponse -> Bool
Prelude.Eq, ReadPrec [ListDirectoriesResponse]
ReadPrec ListDirectoriesResponse
Int -> ReadS ListDirectoriesResponse
ReadS [ListDirectoriesResponse]
(Int -> ReadS ListDirectoriesResponse)
-> ReadS [ListDirectoriesResponse]
-> ReadPrec ListDirectoriesResponse
-> ReadPrec [ListDirectoriesResponse]
-> Read ListDirectoriesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDirectoriesResponse]
$creadListPrec :: ReadPrec [ListDirectoriesResponse]
readPrec :: ReadPrec ListDirectoriesResponse
$creadPrec :: ReadPrec ListDirectoriesResponse
readList :: ReadS [ListDirectoriesResponse]
$creadList :: ReadS [ListDirectoriesResponse]
readsPrec :: Int -> ReadS ListDirectoriesResponse
$creadsPrec :: Int -> ReadS ListDirectoriesResponse
Prelude.Read, Int -> ListDirectoriesResponse -> ShowS
[ListDirectoriesResponse] -> ShowS
ListDirectoriesResponse -> String
(Int -> ListDirectoriesResponse -> ShowS)
-> (ListDirectoriesResponse -> String)
-> ([ListDirectoriesResponse] -> ShowS)
-> Show ListDirectoriesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDirectoriesResponse] -> ShowS
$cshowList :: [ListDirectoriesResponse] -> ShowS
show :: ListDirectoriesResponse -> String
$cshow :: ListDirectoriesResponse -> String
showsPrec :: Int -> ListDirectoriesResponse -> ShowS
$cshowsPrec :: Int -> ListDirectoriesResponse -> ShowS
Prelude.Show, (forall x.
ListDirectoriesResponse -> Rep ListDirectoriesResponse x)
-> (forall x.
Rep ListDirectoriesResponse x -> ListDirectoriesResponse)
-> Generic ListDirectoriesResponse
forall x. Rep ListDirectoriesResponse x -> ListDirectoriesResponse
forall x. ListDirectoriesResponse -> Rep ListDirectoriesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListDirectoriesResponse x -> ListDirectoriesResponse
$cfrom :: forall x. ListDirectoriesResponse -> Rep ListDirectoriesResponse x
Prelude.Generic)
newListDirectoriesResponse ::
Prelude.Int ->
ListDirectoriesResponse
newListDirectoriesResponse :: Int -> ListDirectoriesResponse
newListDirectoriesResponse Int
pHttpStatus_ =
ListDirectoriesResponse' :: Maybe Text -> Int -> [Directory] -> ListDirectoriesResponse
ListDirectoriesResponse'
{ $sel:nextToken:ListDirectoriesResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListDirectoriesResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:directories:ListDirectoriesResponse' :: [Directory]
directories = [Directory]
forall a. Monoid a => a
Prelude.mempty
}
listDirectoriesResponse_nextToken :: Lens.Lens' ListDirectoriesResponse (Prelude.Maybe Prelude.Text)
listDirectoriesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDirectoriesResponse -> f ListDirectoriesResponse
listDirectoriesResponse_nextToken = (ListDirectoriesResponse -> Maybe Text)
-> (ListDirectoriesResponse
-> Maybe Text -> ListDirectoriesResponse)
-> Lens' ListDirectoriesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDirectoriesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDirectoriesResponse' :: ListDirectoriesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDirectoriesResponse
s@ListDirectoriesResponse' {} Maybe Text
a -> ListDirectoriesResponse
s {$sel:nextToken:ListDirectoriesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListDirectoriesResponse)
listDirectoriesResponse_httpStatus :: Lens.Lens' ListDirectoriesResponse Prelude.Int
listDirectoriesResponse_httpStatus :: (Int -> f Int)
-> ListDirectoriesResponse -> f ListDirectoriesResponse
listDirectoriesResponse_httpStatus = (ListDirectoriesResponse -> Int)
-> (ListDirectoriesResponse -> Int -> ListDirectoriesResponse)
-> Lens ListDirectoriesResponse ListDirectoriesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDirectoriesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListDirectoriesResponse' :: ListDirectoriesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListDirectoriesResponse
s@ListDirectoriesResponse' {} Int
a -> ListDirectoriesResponse
s {$sel:httpStatus:ListDirectoriesResponse' :: Int
httpStatus = Int
a} :: ListDirectoriesResponse)
listDirectoriesResponse_directories :: Lens.Lens' ListDirectoriesResponse [Directory]
listDirectoriesResponse_directories :: ([Directory] -> f [Directory])
-> ListDirectoriesResponse -> f ListDirectoriesResponse
listDirectoriesResponse_directories = (ListDirectoriesResponse -> [Directory])
-> (ListDirectoriesResponse
-> [Directory] -> ListDirectoriesResponse)
-> Lens' ListDirectoriesResponse [Directory]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDirectoriesResponse' {[Directory]
directories :: [Directory]
$sel:directories:ListDirectoriesResponse' :: ListDirectoriesResponse -> [Directory]
directories} -> [Directory]
directories) (\s :: ListDirectoriesResponse
s@ListDirectoriesResponse' {} [Directory]
a -> ListDirectoriesResponse
s {$sel:directories:ListDirectoriesResponse' :: [Directory]
directories = [Directory]
a} :: ListDirectoriesResponse) (([Directory] -> f [Directory])
-> ListDirectoriesResponse -> f ListDirectoriesResponse)
-> (([Directory] -> f [Directory]) -> [Directory] -> f [Directory])
-> ([Directory] -> f [Directory])
-> ListDirectoriesResponse
-> f ListDirectoriesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Directory] -> f [Directory]) -> [Directory] -> f [Directory]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData ListDirectoriesResponse