{-# 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.EFS.DescribeFileSystems
(
DescribeFileSystems (..),
newDescribeFileSystems,
describeFileSystems_fileSystemId,
describeFileSystems_creationToken,
describeFileSystems_marker,
describeFileSystems_maxItems,
DescribeFileSystemsResponse (..),
newDescribeFileSystemsResponse,
describeFileSystemsResponse_fileSystems,
describeFileSystemsResponse_marker,
describeFileSystemsResponse_nextMarker,
describeFileSystemsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.EFS.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 DescribeFileSystems = DescribeFileSystems'
{
DescribeFileSystems -> Maybe Text
fileSystemId :: Prelude.Maybe Prelude.Text,
DescribeFileSystems -> Maybe Text
creationToken :: Prelude.Maybe Prelude.Text,
DescribeFileSystems -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeFileSystems -> Maybe Natural
maxItems :: Prelude.Maybe Prelude.Natural
}
deriving (DescribeFileSystems -> DescribeFileSystems -> Bool
(DescribeFileSystems -> DescribeFileSystems -> Bool)
-> (DescribeFileSystems -> DescribeFileSystems -> Bool)
-> Eq DescribeFileSystems
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeFileSystems -> DescribeFileSystems -> Bool
$c/= :: DescribeFileSystems -> DescribeFileSystems -> Bool
== :: DescribeFileSystems -> DescribeFileSystems -> Bool
$c== :: DescribeFileSystems -> DescribeFileSystems -> Bool
Prelude.Eq, ReadPrec [DescribeFileSystems]
ReadPrec DescribeFileSystems
Int -> ReadS DescribeFileSystems
ReadS [DescribeFileSystems]
(Int -> ReadS DescribeFileSystems)
-> ReadS [DescribeFileSystems]
-> ReadPrec DescribeFileSystems
-> ReadPrec [DescribeFileSystems]
-> Read DescribeFileSystems
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeFileSystems]
$creadListPrec :: ReadPrec [DescribeFileSystems]
readPrec :: ReadPrec DescribeFileSystems
$creadPrec :: ReadPrec DescribeFileSystems
readList :: ReadS [DescribeFileSystems]
$creadList :: ReadS [DescribeFileSystems]
readsPrec :: Int -> ReadS DescribeFileSystems
$creadsPrec :: Int -> ReadS DescribeFileSystems
Prelude.Read, Int -> DescribeFileSystems -> ShowS
[DescribeFileSystems] -> ShowS
DescribeFileSystems -> String
(Int -> DescribeFileSystems -> ShowS)
-> (DescribeFileSystems -> String)
-> ([DescribeFileSystems] -> ShowS)
-> Show DescribeFileSystems
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeFileSystems] -> ShowS
$cshowList :: [DescribeFileSystems] -> ShowS
show :: DescribeFileSystems -> String
$cshow :: DescribeFileSystems -> String
showsPrec :: Int -> DescribeFileSystems -> ShowS
$cshowsPrec :: Int -> DescribeFileSystems -> ShowS
Prelude.Show, (forall x. DescribeFileSystems -> Rep DescribeFileSystems x)
-> (forall x. Rep DescribeFileSystems x -> DescribeFileSystems)
-> Generic DescribeFileSystems
forall x. Rep DescribeFileSystems x -> DescribeFileSystems
forall x. DescribeFileSystems -> Rep DescribeFileSystems x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeFileSystems x -> DescribeFileSystems
$cfrom :: forall x. DescribeFileSystems -> Rep DescribeFileSystems x
Prelude.Generic)
newDescribeFileSystems ::
DescribeFileSystems
newDescribeFileSystems :: DescribeFileSystems
newDescribeFileSystems =
DescribeFileSystems' :: Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Natural -> DescribeFileSystems
DescribeFileSystems'
{ $sel:fileSystemId:DescribeFileSystems' :: Maybe Text
fileSystemId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creationToken:DescribeFileSystems' :: Maybe Text
creationToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeFileSystems' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxItems:DescribeFileSystems' :: Maybe Natural
maxItems = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
describeFileSystems_fileSystemId :: Lens.Lens' DescribeFileSystems (Prelude.Maybe Prelude.Text)
describeFileSystems_fileSystemId :: (Maybe Text -> f (Maybe Text))
-> DescribeFileSystems -> f DescribeFileSystems
describeFileSystems_fileSystemId = (DescribeFileSystems -> Maybe Text)
-> (DescribeFileSystems -> Maybe Text -> DescribeFileSystems)
-> Lens
DescribeFileSystems DescribeFileSystems (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFileSystems' {Maybe Text
fileSystemId :: Maybe Text
$sel:fileSystemId:DescribeFileSystems' :: DescribeFileSystems -> Maybe Text
fileSystemId} -> Maybe Text
fileSystemId) (\s :: DescribeFileSystems
s@DescribeFileSystems' {} Maybe Text
a -> DescribeFileSystems
s {$sel:fileSystemId:DescribeFileSystems' :: Maybe Text
fileSystemId = Maybe Text
a} :: DescribeFileSystems)
describeFileSystems_creationToken :: Lens.Lens' DescribeFileSystems (Prelude.Maybe Prelude.Text)
describeFileSystems_creationToken :: (Maybe Text -> f (Maybe Text))
-> DescribeFileSystems -> f DescribeFileSystems
describeFileSystems_creationToken = (DescribeFileSystems -> Maybe Text)
-> (DescribeFileSystems -> Maybe Text -> DescribeFileSystems)
-> Lens
DescribeFileSystems DescribeFileSystems (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFileSystems' {Maybe Text
creationToken :: Maybe Text
$sel:creationToken:DescribeFileSystems' :: DescribeFileSystems -> Maybe Text
creationToken} -> Maybe Text
creationToken) (\s :: DescribeFileSystems
s@DescribeFileSystems' {} Maybe Text
a -> DescribeFileSystems
s {$sel:creationToken:DescribeFileSystems' :: Maybe Text
creationToken = Maybe Text
a} :: DescribeFileSystems)
describeFileSystems_marker :: Lens.Lens' DescribeFileSystems (Prelude.Maybe Prelude.Text)
describeFileSystems_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeFileSystems -> f DescribeFileSystems
describeFileSystems_marker = (DescribeFileSystems -> Maybe Text)
-> (DescribeFileSystems -> Maybe Text -> DescribeFileSystems)
-> Lens
DescribeFileSystems DescribeFileSystems (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFileSystems' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeFileSystems' :: DescribeFileSystems -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeFileSystems
s@DescribeFileSystems' {} Maybe Text
a -> DescribeFileSystems
s {$sel:marker:DescribeFileSystems' :: Maybe Text
marker = Maybe Text
a} :: DescribeFileSystems)
describeFileSystems_maxItems :: Lens.Lens' DescribeFileSystems (Prelude.Maybe Prelude.Natural)
describeFileSystems_maxItems :: (Maybe Natural -> f (Maybe Natural))
-> DescribeFileSystems -> f DescribeFileSystems
describeFileSystems_maxItems = (DescribeFileSystems -> Maybe Natural)
-> (DescribeFileSystems -> Maybe Natural -> DescribeFileSystems)
-> Lens
DescribeFileSystems
DescribeFileSystems
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFileSystems' {Maybe Natural
maxItems :: Maybe Natural
$sel:maxItems:DescribeFileSystems' :: DescribeFileSystems -> Maybe Natural
maxItems} -> Maybe Natural
maxItems) (\s :: DescribeFileSystems
s@DescribeFileSystems' {} Maybe Natural
a -> DescribeFileSystems
s {$sel:maxItems:DescribeFileSystems' :: Maybe Natural
maxItems = Maybe Natural
a} :: DescribeFileSystems)
instance Core.AWSPager DescribeFileSystems where
page :: DescribeFileSystems
-> AWSResponse DescribeFileSystems -> Maybe DescribeFileSystems
page DescribeFileSystems
rq AWSResponse DescribeFileSystems
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeFileSystems
DescribeFileSystemsResponse
rs
DescribeFileSystemsResponse
-> Getting (First Text) DescribeFileSystemsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeFileSystemsResponse
-> Const (First Text) DescribeFileSystemsResponse
Lens' DescribeFileSystemsResponse (Maybe Text)
describeFileSystemsResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeFileSystemsResponse
-> Const (First Text) DescribeFileSystemsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeFileSystemsResponse 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 DescribeFileSystems
forall a. Maybe a
Prelude.Nothing
| Maybe [FileSystemDescription] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeFileSystems
DescribeFileSystemsResponse
rs
DescribeFileSystemsResponse
-> Getting
(First [FileSystemDescription])
DescribeFileSystemsResponse
[FileSystemDescription]
-> Maybe [FileSystemDescription]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [FileSystemDescription]
-> Const
(First [FileSystemDescription]) (Maybe [FileSystemDescription]))
-> DescribeFileSystemsResponse
-> Const
(First [FileSystemDescription]) DescribeFileSystemsResponse
Lens' DescribeFileSystemsResponse (Maybe [FileSystemDescription])
describeFileSystemsResponse_fileSystems
((Maybe [FileSystemDescription]
-> Const
(First [FileSystemDescription]) (Maybe [FileSystemDescription]))
-> DescribeFileSystemsResponse
-> Const
(First [FileSystemDescription]) DescribeFileSystemsResponse)
-> (([FileSystemDescription]
-> Const (First [FileSystemDescription]) [FileSystemDescription])
-> Maybe [FileSystemDescription]
-> Const
(First [FileSystemDescription]) (Maybe [FileSystemDescription]))
-> Getting
(First [FileSystemDescription])
DescribeFileSystemsResponse
[FileSystemDescription]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([FileSystemDescription]
-> Const (First [FileSystemDescription]) [FileSystemDescription])
-> Maybe [FileSystemDescription]
-> Const
(First [FileSystemDescription]) (Maybe [FileSystemDescription])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeFileSystems
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeFileSystems -> Maybe DescribeFileSystems
forall a. a -> Maybe a
Prelude.Just (DescribeFileSystems -> Maybe DescribeFileSystems)
-> DescribeFileSystems -> Maybe DescribeFileSystems
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeFileSystems
rq
DescribeFileSystems
-> (DescribeFileSystems -> DescribeFileSystems)
-> DescribeFileSystems
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeFileSystems -> Identity DescribeFileSystems
Lens
DescribeFileSystems DescribeFileSystems (Maybe Text) (Maybe Text)
describeFileSystems_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeFileSystems -> Identity DescribeFileSystems)
-> Maybe Text -> DescribeFileSystems -> DescribeFileSystems
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeFileSystems
DescribeFileSystemsResponse
rs
DescribeFileSystemsResponse
-> Getting (First Text) DescribeFileSystemsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeFileSystemsResponse
-> Const (First Text) DescribeFileSystemsResponse
Lens' DescribeFileSystemsResponse (Maybe Text)
describeFileSystemsResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeFileSystemsResponse
-> Const (First Text) DescribeFileSystemsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeFileSystemsResponse 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 DescribeFileSystems where
type
AWSResponse DescribeFileSystems =
DescribeFileSystemsResponse
request :: DescribeFileSystems -> Request DescribeFileSystems
request = Service -> DescribeFileSystems -> Request DescribeFileSystems
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeFileSystems
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeFileSystems)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeFileSystems))
-> Logger
-> Service
-> Proxy DescribeFileSystems
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeFileSystems)))
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 [FileSystemDescription]
-> Maybe Text -> Maybe Text -> Int -> DescribeFileSystemsResponse
DescribeFileSystemsResponse'
(Maybe [FileSystemDescription]
-> Maybe Text -> Maybe Text -> Int -> DescribeFileSystemsResponse)
-> Either String (Maybe [FileSystemDescription])
-> Either
String
(Maybe Text -> Maybe Text -> Int -> DescribeFileSystemsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe (Maybe [FileSystemDescription]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"FileSystems" Either String (Maybe (Maybe [FileSystemDescription]))
-> Maybe [FileSystemDescription]
-> Either String (Maybe [FileSystemDescription])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [FileSystemDescription]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe Text -> Maybe Text -> Int -> DescribeFileSystemsResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> DescribeFileSystemsResponse)
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
"Marker")
Either String (Maybe Text -> Int -> DescribeFileSystemsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeFileSystemsResponse)
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
"NextMarker")
Either String (Int -> DescribeFileSystemsResponse)
-> Either String Int -> Either String DescribeFileSystemsResponse
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 DescribeFileSystems
instance Prelude.NFData DescribeFileSystems
instance Core.ToHeaders DescribeFileSystems where
toHeaders :: DescribeFileSystems -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeFileSystems -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DescribeFileSystems where
toPath :: DescribeFileSystems -> ByteString
toPath = ByteString -> DescribeFileSystems -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/2015-02-01/file-systems"
instance Core.ToQuery DescribeFileSystems where
toQuery :: DescribeFileSystems -> QueryString
toQuery DescribeFileSystems' {Maybe Natural
Maybe Text
maxItems :: Maybe Natural
marker :: Maybe Text
creationToken :: Maybe Text
fileSystemId :: Maybe Text
$sel:maxItems:DescribeFileSystems' :: DescribeFileSystems -> Maybe Natural
$sel:marker:DescribeFileSystems' :: DescribeFileSystems -> Maybe Text
$sel:creationToken:DescribeFileSystems' :: DescribeFileSystems -> Maybe Text
$sel:fileSystemId:DescribeFileSystems' :: DescribeFileSystems -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"FileSystemId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
fileSystemId,
ByteString
"CreationToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
creationToken,
ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
ByteString
"MaxItems" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxItems
]
data DescribeFileSystemsResponse = DescribeFileSystemsResponse'
{
DescribeFileSystemsResponse -> Maybe [FileSystemDescription]
fileSystems :: Prelude.Maybe [FileSystemDescription],
DescribeFileSystemsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeFileSystemsResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
DescribeFileSystemsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeFileSystemsResponse -> DescribeFileSystemsResponse -> Bool
(DescribeFileSystemsResponse
-> DescribeFileSystemsResponse -> Bool)
-> (DescribeFileSystemsResponse
-> DescribeFileSystemsResponse -> Bool)
-> Eq DescribeFileSystemsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeFileSystemsResponse -> DescribeFileSystemsResponse -> Bool
$c/= :: DescribeFileSystemsResponse -> DescribeFileSystemsResponse -> Bool
== :: DescribeFileSystemsResponse -> DescribeFileSystemsResponse -> Bool
$c== :: DescribeFileSystemsResponse -> DescribeFileSystemsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeFileSystemsResponse]
ReadPrec DescribeFileSystemsResponse
Int -> ReadS DescribeFileSystemsResponse
ReadS [DescribeFileSystemsResponse]
(Int -> ReadS DescribeFileSystemsResponse)
-> ReadS [DescribeFileSystemsResponse]
-> ReadPrec DescribeFileSystemsResponse
-> ReadPrec [DescribeFileSystemsResponse]
-> Read DescribeFileSystemsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeFileSystemsResponse]
$creadListPrec :: ReadPrec [DescribeFileSystemsResponse]
readPrec :: ReadPrec DescribeFileSystemsResponse
$creadPrec :: ReadPrec DescribeFileSystemsResponse
readList :: ReadS [DescribeFileSystemsResponse]
$creadList :: ReadS [DescribeFileSystemsResponse]
readsPrec :: Int -> ReadS DescribeFileSystemsResponse
$creadsPrec :: Int -> ReadS DescribeFileSystemsResponse
Prelude.Read, Int -> DescribeFileSystemsResponse -> ShowS
[DescribeFileSystemsResponse] -> ShowS
DescribeFileSystemsResponse -> String
(Int -> DescribeFileSystemsResponse -> ShowS)
-> (DescribeFileSystemsResponse -> String)
-> ([DescribeFileSystemsResponse] -> ShowS)
-> Show DescribeFileSystemsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeFileSystemsResponse] -> ShowS
$cshowList :: [DescribeFileSystemsResponse] -> ShowS
show :: DescribeFileSystemsResponse -> String
$cshow :: DescribeFileSystemsResponse -> String
showsPrec :: Int -> DescribeFileSystemsResponse -> ShowS
$cshowsPrec :: Int -> DescribeFileSystemsResponse -> ShowS
Prelude.Show, (forall x.
DescribeFileSystemsResponse -> Rep DescribeFileSystemsResponse x)
-> (forall x.
Rep DescribeFileSystemsResponse x -> DescribeFileSystemsResponse)
-> Generic DescribeFileSystemsResponse
forall x.
Rep DescribeFileSystemsResponse x -> DescribeFileSystemsResponse
forall x.
DescribeFileSystemsResponse -> Rep DescribeFileSystemsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeFileSystemsResponse x -> DescribeFileSystemsResponse
$cfrom :: forall x.
DescribeFileSystemsResponse -> Rep DescribeFileSystemsResponse x
Prelude.Generic)
newDescribeFileSystemsResponse ::
Prelude.Int ->
DescribeFileSystemsResponse
newDescribeFileSystemsResponse :: Int -> DescribeFileSystemsResponse
newDescribeFileSystemsResponse Int
pHttpStatus_ =
DescribeFileSystemsResponse' :: Maybe [FileSystemDescription]
-> Maybe Text -> Maybe Text -> Int -> DescribeFileSystemsResponse
DescribeFileSystemsResponse'
{ $sel:fileSystems:DescribeFileSystemsResponse' :: Maybe [FileSystemDescription]
fileSystems =
Maybe [FileSystemDescription]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeFileSystemsResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextMarker:DescribeFileSystemsResponse' :: Maybe Text
nextMarker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeFileSystemsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeFileSystemsResponse_fileSystems :: Lens.Lens' DescribeFileSystemsResponse (Prelude.Maybe [FileSystemDescription])
describeFileSystemsResponse_fileSystems :: (Maybe [FileSystemDescription]
-> f (Maybe [FileSystemDescription]))
-> DescribeFileSystemsResponse -> f DescribeFileSystemsResponse
describeFileSystemsResponse_fileSystems = (DescribeFileSystemsResponse -> Maybe [FileSystemDescription])
-> (DescribeFileSystemsResponse
-> Maybe [FileSystemDescription] -> DescribeFileSystemsResponse)
-> Lens'
DescribeFileSystemsResponse (Maybe [FileSystemDescription])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFileSystemsResponse' {Maybe [FileSystemDescription]
fileSystems :: Maybe [FileSystemDescription]
$sel:fileSystems:DescribeFileSystemsResponse' :: DescribeFileSystemsResponse -> Maybe [FileSystemDescription]
fileSystems} -> Maybe [FileSystemDescription]
fileSystems) (\s :: DescribeFileSystemsResponse
s@DescribeFileSystemsResponse' {} Maybe [FileSystemDescription]
a -> DescribeFileSystemsResponse
s {$sel:fileSystems:DescribeFileSystemsResponse' :: Maybe [FileSystemDescription]
fileSystems = Maybe [FileSystemDescription]
a} :: DescribeFileSystemsResponse) ((Maybe [FileSystemDescription]
-> f (Maybe [FileSystemDescription]))
-> DescribeFileSystemsResponse -> f DescribeFileSystemsResponse)
-> ((Maybe [FileSystemDescription]
-> f (Maybe [FileSystemDescription]))
-> Maybe [FileSystemDescription]
-> f (Maybe [FileSystemDescription]))
-> (Maybe [FileSystemDescription]
-> f (Maybe [FileSystemDescription]))
-> DescribeFileSystemsResponse
-> f DescribeFileSystemsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[FileSystemDescription]
[FileSystemDescription]
[FileSystemDescription]
[FileSystemDescription]
-> Iso
(Maybe [FileSystemDescription])
(Maybe [FileSystemDescription])
(Maybe [FileSystemDescription])
(Maybe [FileSystemDescription])
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
[FileSystemDescription]
[FileSystemDescription]
[FileSystemDescription]
[FileSystemDescription]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeFileSystemsResponse_marker :: Lens.Lens' DescribeFileSystemsResponse (Prelude.Maybe Prelude.Text)
describeFileSystemsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeFileSystemsResponse -> f DescribeFileSystemsResponse
describeFileSystemsResponse_marker = (DescribeFileSystemsResponse -> Maybe Text)
-> (DescribeFileSystemsResponse
-> Maybe Text -> DescribeFileSystemsResponse)
-> Lens' DescribeFileSystemsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFileSystemsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeFileSystemsResponse' :: DescribeFileSystemsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeFileSystemsResponse
s@DescribeFileSystemsResponse' {} Maybe Text
a -> DescribeFileSystemsResponse
s {$sel:marker:DescribeFileSystemsResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeFileSystemsResponse)
describeFileSystemsResponse_nextMarker :: Lens.Lens' DescribeFileSystemsResponse (Prelude.Maybe Prelude.Text)
describeFileSystemsResponse_nextMarker :: (Maybe Text -> f (Maybe Text))
-> DescribeFileSystemsResponse -> f DescribeFileSystemsResponse
describeFileSystemsResponse_nextMarker = (DescribeFileSystemsResponse -> Maybe Text)
-> (DescribeFileSystemsResponse
-> Maybe Text -> DescribeFileSystemsResponse)
-> Lens' DescribeFileSystemsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFileSystemsResponse' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:DescribeFileSystemsResponse' :: DescribeFileSystemsResponse -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: DescribeFileSystemsResponse
s@DescribeFileSystemsResponse' {} Maybe Text
a -> DescribeFileSystemsResponse
s {$sel:nextMarker:DescribeFileSystemsResponse' :: Maybe Text
nextMarker = Maybe Text
a} :: DescribeFileSystemsResponse)
describeFileSystemsResponse_httpStatus :: Lens.Lens' DescribeFileSystemsResponse Prelude.Int
describeFileSystemsResponse_httpStatus :: (Int -> f Int)
-> DescribeFileSystemsResponse -> f DescribeFileSystemsResponse
describeFileSystemsResponse_httpStatus = (DescribeFileSystemsResponse -> Int)
-> (DescribeFileSystemsResponse
-> Int -> DescribeFileSystemsResponse)
-> Lens
DescribeFileSystemsResponse DescribeFileSystemsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFileSystemsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeFileSystemsResponse' :: DescribeFileSystemsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeFileSystemsResponse
s@DescribeFileSystemsResponse' {} Int
a -> DescribeFileSystemsResponse
s {$sel:httpStatus:DescribeFileSystemsResponse' :: Int
httpStatus = Int
a} :: DescribeFileSystemsResponse)
instance Prelude.NFData DescribeFileSystemsResponse