{-# 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.DataSync.DescribeLocationNfs
(
DescribeLocationNfs (..),
newDescribeLocationNfs,
describeLocationNfs_locationArn,
DescribeLocationNfsResponse (..),
newDescribeLocationNfsResponse,
describeLocationNfsResponse_creationTime,
describeLocationNfsResponse_locationUri,
describeLocationNfsResponse_onPremConfig,
describeLocationNfsResponse_mountOptions,
describeLocationNfsResponse_locationArn,
describeLocationNfsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DataSync.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 DescribeLocationNfs = DescribeLocationNfs'
{
DescribeLocationNfs -> Text
locationArn :: Prelude.Text
}
deriving (DescribeLocationNfs -> DescribeLocationNfs -> Bool
(DescribeLocationNfs -> DescribeLocationNfs -> Bool)
-> (DescribeLocationNfs -> DescribeLocationNfs -> Bool)
-> Eq DescribeLocationNfs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLocationNfs -> DescribeLocationNfs -> Bool
$c/= :: DescribeLocationNfs -> DescribeLocationNfs -> Bool
== :: DescribeLocationNfs -> DescribeLocationNfs -> Bool
$c== :: DescribeLocationNfs -> DescribeLocationNfs -> Bool
Prelude.Eq, ReadPrec [DescribeLocationNfs]
ReadPrec DescribeLocationNfs
Int -> ReadS DescribeLocationNfs
ReadS [DescribeLocationNfs]
(Int -> ReadS DescribeLocationNfs)
-> ReadS [DescribeLocationNfs]
-> ReadPrec DescribeLocationNfs
-> ReadPrec [DescribeLocationNfs]
-> Read DescribeLocationNfs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLocationNfs]
$creadListPrec :: ReadPrec [DescribeLocationNfs]
readPrec :: ReadPrec DescribeLocationNfs
$creadPrec :: ReadPrec DescribeLocationNfs
readList :: ReadS [DescribeLocationNfs]
$creadList :: ReadS [DescribeLocationNfs]
readsPrec :: Int -> ReadS DescribeLocationNfs
$creadsPrec :: Int -> ReadS DescribeLocationNfs
Prelude.Read, Int -> DescribeLocationNfs -> ShowS
[DescribeLocationNfs] -> ShowS
DescribeLocationNfs -> String
(Int -> DescribeLocationNfs -> ShowS)
-> (DescribeLocationNfs -> String)
-> ([DescribeLocationNfs] -> ShowS)
-> Show DescribeLocationNfs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLocationNfs] -> ShowS
$cshowList :: [DescribeLocationNfs] -> ShowS
show :: DescribeLocationNfs -> String
$cshow :: DescribeLocationNfs -> String
showsPrec :: Int -> DescribeLocationNfs -> ShowS
$cshowsPrec :: Int -> DescribeLocationNfs -> ShowS
Prelude.Show, (forall x. DescribeLocationNfs -> Rep DescribeLocationNfs x)
-> (forall x. Rep DescribeLocationNfs x -> DescribeLocationNfs)
-> Generic DescribeLocationNfs
forall x. Rep DescribeLocationNfs x -> DescribeLocationNfs
forall x. DescribeLocationNfs -> Rep DescribeLocationNfs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeLocationNfs x -> DescribeLocationNfs
$cfrom :: forall x. DescribeLocationNfs -> Rep DescribeLocationNfs x
Prelude.Generic)
newDescribeLocationNfs ::
Prelude.Text ->
DescribeLocationNfs
newDescribeLocationNfs :: Text -> DescribeLocationNfs
newDescribeLocationNfs Text
pLocationArn_ =
DescribeLocationNfs' :: Text -> DescribeLocationNfs
DescribeLocationNfs' {$sel:locationArn:DescribeLocationNfs' :: Text
locationArn = Text
pLocationArn_}
describeLocationNfs_locationArn :: Lens.Lens' DescribeLocationNfs Prelude.Text
describeLocationNfs_locationArn :: (Text -> f Text) -> DescribeLocationNfs -> f DescribeLocationNfs
describeLocationNfs_locationArn = (DescribeLocationNfs -> Text)
-> (DescribeLocationNfs -> Text -> DescribeLocationNfs)
-> Lens DescribeLocationNfs DescribeLocationNfs Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationNfs' {Text
locationArn :: Text
$sel:locationArn:DescribeLocationNfs' :: DescribeLocationNfs -> Text
locationArn} -> Text
locationArn) (\s :: DescribeLocationNfs
s@DescribeLocationNfs' {} Text
a -> DescribeLocationNfs
s {$sel:locationArn:DescribeLocationNfs' :: Text
locationArn = Text
a} :: DescribeLocationNfs)
instance Core.AWSRequest DescribeLocationNfs where
type
AWSResponse DescribeLocationNfs =
DescribeLocationNfsResponse
request :: DescribeLocationNfs -> Request DescribeLocationNfs
request = Service -> DescribeLocationNfs -> Request DescribeLocationNfs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeLocationNfs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeLocationNfs)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeLocationNfs))
-> Logger
-> Service
-> Proxy DescribeLocationNfs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeLocationNfs)))
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 POSIX
-> Maybe Text
-> Maybe OnPremConfig
-> Maybe NfsMountOptions
-> Maybe Text
-> Int
-> DescribeLocationNfsResponse
DescribeLocationNfsResponse'
(Maybe POSIX
-> Maybe Text
-> Maybe OnPremConfig
-> Maybe NfsMountOptions
-> Maybe Text
-> Int
-> DescribeLocationNfsResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe OnPremConfig
-> Maybe NfsMountOptions
-> Maybe Text
-> Int
-> DescribeLocationNfsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreationTime")
Either
String
(Maybe Text
-> Maybe OnPremConfig
-> Maybe NfsMountOptions
-> Maybe Text
-> Int
-> DescribeLocationNfsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe OnPremConfig
-> Maybe NfsMountOptions
-> Maybe Text
-> Int
-> DescribeLocationNfsResponse)
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
"LocationUri")
Either
String
(Maybe OnPremConfig
-> Maybe NfsMountOptions
-> Maybe Text
-> Int
-> DescribeLocationNfsResponse)
-> Either String (Maybe OnPremConfig)
-> Either
String
(Maybe NfsMountOptions
-> Maybe Text -> Int -> DescribeLocationNfsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe OnPremConfig)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"OnPremConfig")
Either
String
(Maybe NfsMountOptions
-> Maybe Text -> Int -> DescribeLocationNfsResponse)
-> Either String (Maybe NfsMountOptions)
-> Either String (Maybe Text -> Int -> DescribeLocationNfsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe NfsMountOptions)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"MountOptions")
Either String (Maybe Text -> Int -> DescribeLocationNfsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeLocationNfsResponse)
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
"LocationArn")
Either String (Int -> DescribeLocationNfsResponse)
-> Either String Int -> Either String DescribeLocationNfsResponse
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 DescribeLocationNfs
instance Prelude.NFData DescribeLocationNfs
instance Core.ToHeaders DescribeLocationNfs where
toHeaders :: DescribeLocationNfs -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeLocationNfs -> 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
"FmrsService.DescribeLocationNfs" ::
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 DescribeLocationNfs where
toJSON :: DescribeLocationNfs -> Value
toJSON DescribeLocationNfs' {Text
locationArn :: Text
$sel:locationArn:DescribeLocationNfs' :: DescribeLocationNfs -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"LocationArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
locationArn)]
)
instance Core.ToPath DescribeLocationNfs where
toPath :: DescribeLocationNfs -> ByteString
toPath = ByteString -> DescribeLocationNfs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeLocationNfs where
toQuery :: DescribeLocationNfs -> QueryString
toQuery = QueryString -> DescribeLocationNfs -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeLocationNfsResponse = DescribeLocationNfsResponse'
{
DescribeLocationNfsResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
DescribeLocationNfsResponse -> Maybe Text
locationUri :: Prelude.Maybe Prelude.Text,
DescribeLocationNfsResponse -> Maybe OnPremConfig
onPremConfig :: Prelude.Maybe OnPremConfig,
DescribeLocationNfsResponse -> Maybe NfsMountOptions
mountOptions :: Prelude.Maybe NfsMountOptions,
DescribeLocationNfsResponse -> Maybe Text
locationArn :: Prelude.Maybe Prelude.Text,
DescribeLocationNfsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeLocationNfsResponse -> DescribeLocationNfsResponse -> Bool
(DescribeLocationNfsResponse
-> DescribeLocationNfsResponse -> Bool)
-> (DescribeLocationNfsResponse
-> DescribeLocationNfsResponse -> Bool)
-> Eq DescribeLocationNfsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLocationNfsResponse -> DescribeLocationNfsResponse -> Bool
$c/= :: DescribeLocationNfsResponse -> DescribeLocationNfsResponse -> Bool
== :: DescribeLocationNfsResponse -> DescribeLocationNfsResponse -> Bool
$c== :: DescribeLocationNfsResponse -> DescribeLocationNfsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeLocationNfsResponse]
ReadPrec DescribeLocationNfsResponse
Int -> ReadS DescribeLocationNfsResponse
ReadS [DescribeLocationNfsResponse]
(Int -> ReadS DescribeLocationNfsResponse)
-> ReadS [DescribeLocationNfsResponse]
-> ReadPrec DescribeLocationNfsResponse
-> ReadPrec [DescribeLocationNfsResponse]
-> Read DescribeLocationNfsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLocationNfsResponse]
$creadListPrec :: ReadPrec [DescribeLocationNfsResponse]
readPrec :: ReadPrec DescribeLocationNfsResponse
$creadPrec :: ReadPrec DescribeLocationNfsResponse
readList :: ReadS [DescribeLocationNfsResponse]
$creadList :: ReadS [DescribeLocationNfsResponse]
readsPrec :: Int -> ReadS DescribeLocationNfsResponse
$creadsPrec :: Int -> ReadS DescribeLocationNfsResponse
Prelude.Read, Int -> DescribeLocationNfsResponse -> ShowS
[DescribeLocationNfsResponse] -> ShowS
DescribeLocationNfsResponse -> String
(Int -> DescribeLocationNfsResponse -> ShowS)
-> (DescribeLocationNfsResponse -> String)
-> ([DescribeLocationNfsResponse] -> ShowS)
-> Show DescribeLocationNfsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLocationNfsResponse] -> ShowS
$cshowList :: [DescribeLocationNfsResponse] -> ShowS
show :: DescribeLocationNfsResponse -> String
$cshow :: DescribeLocationNfsResponse -> String
showsPrec :: Int -> DescribeLocationNfsResponse -> ShowS
$cshowsPrec :: Int -> DescribeLocationNfsResponse -> ShowS
Prelude.Show, (forall x.
DescribeLocationNfsResponse -> Rep DescribeLocationNfsResponse x)
-> (forall x.
Rep DescribeLocationNfsResponse x -> DescribeLocationNfsResponse)
-> Generic DescribeLocationNfsResponse
forall x.
Rep DescribeLocationNfsResponse x -> DescribeLocationNfsResponse
forall x.
DescribeLocationNfsResponse -> Rep DescribeLocationNfsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeLocationNfsResponse x -> DescribeLocationNfsResponse
$cfrom :: forall x.
DescribeLocationNfsResponse -> Rep DescribeLocationNfsResponse x
Prelude.Generic)
newDescribeLocationNfsResponse ::
Prelude.Int ->
DescribeLocationNfsResponse
newDescribeLocationNfsResponse :: Int -> DescribeLocationNfsResponse
newDescribeLocationNfsResponse Int
pHttpStatus_ =
DescribeLocationNfsResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe OnPremConfig
-> Maybe NfsMountOptions
-> Maybe Text
-> Int
-> DescribeLocationNfsResponse
DescribeLocationNfsResponse'
{ $sel:creationTime:DescribeLocationNfsResponse' :: Maybe POSIX
creationTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:locationUri:DescribeLocationNfsResponse' :: Maybe Text
locationUri = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:onPremConfig:DescribeLocationNfsResponse' :: Maybe OnPremConfig
onPremConfig = Maybe OnPremConfig
forall a. Maybe a
Prelude.Nothing,
$sel:mountOptions:DescribeLocationNfsResponse' :: Maybe NfsMountOptions
mountOptions = Maybe NfsMountOptions
forall a. Maybe a
Prelude.Nothing,
$sel:locationArn:DescribeLocationNfsResponse' :: Maybe Text
locationArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeLocationNfsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeLocationNfsResponse_creationTime :: Lens.Lens' DescribeLocationNfsResponse (Prelude.Maybe Prelude.UTCTime)
describeLocationNfsResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeLocationNfsResponse -> f DescribeLocationNfsResponse
describeLocationNfsResponse_creationTime = (DescribeLocationNfsResponse -> Maybe POSIX)
-> (DescribeLocationNfsResponse
-> Maybe POSIX -> DescribeLocationNfsResponse)
-> Lens
DescribeLocationNfsResponse
DescribeLocationNfsResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationNfsResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeLocationNfsResponse' :: DescribeLocationNfsResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeLocationNfsResponse
s@DescribeLocationNfsResponse' {} Maybe POSIX
a -> DescribeLocationNfsResponse
s {$sel:creationTime:DescribeLocationNfsResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeLocationNfsResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeLocationNfsResponse -> f DescribeLocationNfsResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeLocationNfsResponse
-> f DescribeLocationNfsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeLocationNfsResponse_locationUri :: Lens.Lens' DescribeLocationNfsResponse (Prelude.Maybe Prelude.Text)
describeLocationNfsResponse_locationUri :: (Maybe Text -> f (Maybe Text))
-> DescribeLocationNfsResponse -> f DescribeLocationNfsResponse
describeLocationNfsResponse_locationUri = (DescribeLocationNfsResponse -> Maybe Text)
-> (DescribeLocationNfsResponse
-> Maybe Text -> DescribeLocationNfsResponse)
-> Lens
DescribeLocationNfsResponse
DescribeLocationNfsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationNfsResponse' {Maybe Text
locationUri :: Maybe Text
$sel:locationUri:DescribeLocationNfsResponse' :: DescribeLocationNfsResponse -> Maybe Text
locationUri} -> Maybe Text
locationUri) (\s :: DescribeLocationNfsResponse
s@DescribeLocationNfsResponse' {} Maybe Text
a -> DescribeLocationNfsResponse
s {$sel:locationUri:DescribeLocationNfsResponse' :: Maybe Text
locationUri = Maybe Text
a} :: DescribeLocationNfsResponse)
describeLocationNfsResponse_onPremConfig :: Lens.Lens' DescribeLocationNfsResponse (Prelude.Maybe OnPremConfig)
describeLocationNfsResponse_onPremConfig :: (Maybe OnPremConfig -> f (Maybe OnPremConfig))
-> DescribeLocationNfsResponse -> f DescribeLocationNfsResponse
describeLocationNfsResponse_onPremConfig = (DescribeLocationNfsResponse -> Maybe OnPremConfig)
-> (DescribeLocationNfsResponse
-> Maybe OnPremConfig -> DescribeLocationNfsResponse)
-> Lens
DescribeLocationNfsResponse
DescribeLocationNfsResponse
(Maybe OnPremConfig)
(Maybe OnPremConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationNfsResponse' {Maybe OnPremConfig
onPremConfig :: Maybe OnPremConfig
$sel:onPremConfig:DescribeLocationNfsResponse' :: DescribeLocationNfsResponse -> Maybe OnPremConfig
onPremConfig} -> Maybe OnPremConfig
onPremConfig) (\s :: DescribeLocationNfsResponse
s@DescribeLocationNfsResponse' {} Maybe OnPremConfig
a -> DescribeLocationNfsResponse
s {$sel:onPremConfig:DescribeLocationNfsResponse' :: Maybe OnPremConfig
onPremConfig = Maybe OnPremConfig
a} :: DescribeLocationNfsResponse)
describeLocationNfsResponse_mountOptions :: Lens.Lens' DescribeLocationNfsResponse (Prelude.Maybe NfsMountOptions)
describeLocationNfsResponse_mountOptions :: (Maybe NfsMountOptions -> f (Maybe NfsMountOptions))
-> DescribeLocationNfsResponse -> f DescribeLocationNfsResponse
describeLocationNfsResponse_mountOptions = (DescribeLocationNfsResponse -> Maybe NfsMountOptions)
-> (DescribeLocationNfsResponse
-> Maybe NfsMountOptions -> DescribeLocationNfsResponse)
-> Lens
DescribeLocationNfsResponse
DescribeLocationNfsResponse
(Maybe NfsMountOptions)
(Maybe NfsMountOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationNfsResponse' {Maybe NfsMountOptions
mountOptions :: Maybe NfsMountOptions
$sel:mountOptions:DescribeLocationNfsResponse' :: DescribeLocationNfsResponse -> Maybe NfsMountOptions
mountOptions} -> Maybe NfsMountOptions
mountOptions) (\s :: DescribeLocationNfsResponse
s@DescribeLocationNfsResponse' {} Maybe NfsMountOptions
a -> DescribeLocationNfsResponse
s {$sel:mountOptions:DescribeLocationNfsResponse' :: Maybe NfsMountOptions
mountOptions = Maybe NfsMountOptions
a} :: DescribeLocationNfsResponse)
describeLocationNfsResponse_locationArn :: Lens.Lens' DescribeLocationNfsResponse (Prelude.Maybe Prelude.Text)
describeLocationNfsResponse_locationArn :: (Maybe Text -> f (Maybe Text))
-> DescribeLocationNfsResponse -> f DescribeLocationNfsResponse
describeLocationNfsResponse_locationArn = (DescribeLocationNfsResponse -> Maybe Text)
-> (DescribeLocationNfsResponse
-> Maybe Text -> DescribeLocationNfsResponse)
-> Lens
DescribeLocationNfsResponse
DescribeLocationNfsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationNfsResponse' {Maybe Text
locationArn :: Maybe Text
$sel:locationArn:DescribeLocationNfsResponse' :: DescribeLocationNfsResponse -> Maybe Text
locationArn} -> Maybe Text
locationArn) (\s :: DescribeLocationNfsResponse
s@DescribeLocationNfsResponse' {} Maybe Text
a -> DescribeLocationNfsResponse
s {$sel:locationArn:DescribeLocationNfsResponse' :: Maybe Text
locationArn = Maybe Text
a} :: DescribeLocationNfsResponse)
describeLocationNfsResponse_httpStatus :: Lens.Lens' DescribeLocationNfsResponse Prelude.Int
describeLocationNfsResponse_httpStatus :: (Int -> f Int)
-> DescribeLocationNfsResponse -> f DescribeLocationNfsResponse
describeLocationNfsResponse_httpStatus = (DescribeLocationNfsResponse -> Int)
-> (DescribeLocationNfsResponse
-> Int -> DescribeLocationNfsResponse)
-> Lens
DescribeLocationNfsResponse DescribeLocationNfsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationNfsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeLocationNfsResponse' :: DescribeLocationNfsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeLocationNfsResponse
s@DescribeLocationNfsResponse' {} Int
a -> DescribeLocationNfsResponse
s {$sel:httpStatus:DescribeLocationNfsResponse' :: Int
httpStatus = Int
a} :: DescribeLocationNfsResponse)
instance Prelude.NFData DescribeLocationNfsResponse