{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.DataSync.DescribeLocationEfs
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns metadata, such as the path information about an Amazon EFS
-- location.
module Amazonka.DataSync.DescribeLocationEfs
  ( -- * Creating a Request
    DescribeLocationEfs (..),
    newDescribeLocationEfs,

    -- * Request Lenses
    describeLocationEfs_locationArn,

    -- * Destructuring the Response
    DescribeLocationEfsResponse (..),
    newDescribeLocationEfsResponse,

    -- * Response Lenses
    describeLocationEfsResponse_creationTime,
    describeLocationEfsResponse_locationUri,
    describeLocationEfsResponse_locationArn,
    describeLocationEfsResponse_ec2Config,
    describeLocationEfsResponse_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

-- | DescribeLocationEfsRequest
--
-- /See:/ 'newDescribeLocationEfs' smart constructor.
data DescribeLocationEfs = DescribeLocationEfs'
  { -- | The Amazon Resource Name (ARN) of the EFS location to describe.
    DescribeLocationEfs -> Text
locationArn :: Prelude.Text
  }
  deriving (DescribeLocationEfs -> DescribeLocationEfs -> Bool
(DescribeLocationEfs -> DescribeLocationEfs -> Bool)
-> (DescribeLocationEfs -> DescribeLocationEfs -> Bool)
-> Eq DescribeLocationEfs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLocationEfs -> DescribeLocationEfs -> Bool
$c/= :: DescribeLocationEfs -> DescribeLocationEfs -> Bool
== :: DescribeLocationEfs -> DescribeLocationEfs -> Bool
$c== :: DescribeLocationEfs -> DescribeLocationEfs -> Bool
Prelude.Eq, ReadPrec [DescribeLocationEfs]
ReadPrec DescribeLocationEfs
Int -> ReadS DescribeLocationEfs
ReadS [DescribeLocationEfs]
(Int -> ReadS DescribeLocationEfs)
-> ReadS [DescribeLocationEfs]
-> ReadPrec DescribeLocationEfs
-> ReadPrec [DescribeLocationEfs]
-> Read DescribeLocationEfs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLocationEfs]
$creadListPrec :: ReadPrec [DescribeLocationEfs]
readPrec :: ReadPrec DescribeLocationEfs
$creadPrec :: ReadPrec DescribeLocationEfs
readList :: ReadS [DescribeLocationEfs]
$creadList :: ReadS [DescribeLocationEfs]
readsPrec :: Int -> ReadS DescribeLocationEfs
$creadsPrec :: Int -> ReadS DescribeLocationEfs
Prelude.Read, Int -> DescribeLocationEfs -> ShowS
[DescribeLocationEfs] -> ShowS
DescribeLocationEfs -> String
(Int -> DescribeLocationEfs -> ShowS)
-> (DescribeLocationEfs -> String)
-> ([DescribeLocationEfs] -> ShowS)
-> Show DescribeLocationEfs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLocationEfs] -> ShowS
$cshowList :: [DescribeLocationEfs] -> ShowS
show :: DescribeLocationEfs -> String
$cshow :: DescribeLocationEfs -> String
showsPrec :: Int -> DescribeLocationEfs -> ShowS
$cshowsPrec :: Int -> DescribeLocationEfs -> ShowS
Prelude.Show, (forall x. DescribeLocationEfs -> Rep DescribeLocationEfs x)
-> (forall x. Rep DescribeLocationEfs x -> DescribeLocationEfs)
-> Generic DescribeLocationEfs
forall x. Rep DescribeLocationEfs x -> DescribeLocationEfs
forall x. DescribeLocationEfs -> Rep DescribeLocationEfs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeLocationEfs x -> DescribeLocationEfs
$cfrom :: forall x. DescribeLocationEfs -> Rep DescribeLocationEfs x
Prelude.Generic)

-- |
-- Create a value of 'DescribeLocationEfs' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'locationArn', 'describeLocationEfs_locationArn' - The Amazon Resource Name (ARN) of the EFS location to describe.
newDescribeLocationEfs ::
  -- | 'locationArn'
  Prelude.Text ->
  DescribeLocationEfs
newDescribeLocationEfs :: Text -> DescribeLocationEfs
newDescribeLocationEfs Text
pLocationArn_ =
  DescribeLocationEfs' :: Text -> DescribeLocationEfs
DescribeLocationEfs' {$sel:locationArn:DescribeLocationEfs' :: Text
locationArn = Text
pLocationArn_}

-- | The Amazon Resource Name (ARN) of the EFS location to describe.
describeLocationEfs_locationArn :: Lens.Lens' DescribeLocationEfs Prelude.Text
describeLocationEfs_locationArn :: (Text -> f Text) -> DescribeLocationEfs -> f DescribeLocationEfs
describeLocationEfs_locationArn = (DescribeLocationEfs -> Text)
-> (DescribeLocationEfs -> Text -> DescribeLocationEfs)
-> Lens DescribeLocationEfs DescribeLocationEfs Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationEfs' {Text
locationArn :: Text
$sel:locationArn:DescribeLocationEfs' :: DescribeLocationEfs -> Text
locationArn} -> Text
locationArn) (\s :: DescribeLocationEfs
s@DescribeLocationEfs' {} Text
a -> DescribeLocationEfs
s {$sel:locationArn:DescribeLocationEfs' :: Text
locationArn = Text
a} :: DescribeLocationEfs)

instance Core.AWSRequest DescribeLocationEfs where
  type
    AWSResponse DescribeLocationEfs =
      DescribeLocationEfsResponse
  request :: DescribeLocationEfs -> Request DescribeLocationEfs
request = Service -> DescribeLocationEfs -> Request DescribeLocationEfs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeLocationEfs
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeLocationEfs)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeLocationEfs))
-> Logger
-> Service
-> Proxy DescribeLocationEfs
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeLocationEfs)))
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 Text
-> Maybe Ec2Config
-> Int
-> DescribeLocationEfsResponse
DescribeLocationEfsResponse'
            (Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe Ec2Config
 -> Int
 -> DescribeLocationEfsResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Ec2Config
      -> Int
      -> DescribeLocationEfsResponse)
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 Text
   -> Maybe Ec2Config
   -> Int
   -> DescribeLocationEfsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Ec2Config -> Int -> DescribeLocationEfsResponse)
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 Text
   -> Maybe Ec2Config -> Int -> DescribeLocationEfsResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe Ec2Config -> Int -> DescribeLocationEfsResponse)
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 (Maybe Ec2Config -> Int -> DescribeLocationEfsResponse)
-> Either String (Maybe Ec2Config)
-> Either String (Int -> DescribeLocationEfsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Ec2Config)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Ec2Config")
            Either String (Int -> DescribeLocationEfsResponse)
-> Either String Int -> Either String DescribeLocationEfsResponse
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 DescribeLocationEfs

instance Prelude.NFData DescribeLocationEfs

instance Core.ToHeaders DescribeLocationEfs where
  toHeaders :: DescribeLocationEfs -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeLocationEfs -> 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.DescribeLocationEfs" ::
                          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 DescribeLocationEfs where
  toJSON :: DescribeLocationEfs -> Value
toJSON DescribeLocationEfs' {Text
locationArn :: Text
$sel:locationArn:DescribeLocationEfs' :: DescribeLocationEfs -> 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 DescribeLocationEfs where
  toPath :: DescribeLocationEfs -> ByteString
toPath = ByteString -> DescribeLocationEfs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery DescribeLocationEfs where
  toQuery :: DescribeLocationEfs -> QueryString
toQuery = QueryString -> DescribeLocationEfs -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | DescribeLocationEfsResponse
--
-- /See:/ 'newDescribeLocationEfsResponse' smart constructor.
data DescribeLocationEfsResponse = DescribeLocationEfsResponse'
  { -- | The time that the EFS location was created.
    DescribeLocationEfsResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
    -- | The URL of the EFS location that was described.
    DescribeLocationEfsResponse -> Maybe Text
locationUri :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the EFS location that was described.
    DescribeLocationEfsResponse -> Maybe Text
locationArn :: Prelude.Maybe Prelude.Text,
    DescribeLocationEfsResponse -> Maybe Ec2Config
ec2Config :: Prelude.Maybe Ec2Config,
    -- | The response's http status code.
    DescribeLocationEfsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeLocationEfsResponse -> DescribeLocationEfsResponse -> Bool
(DescribeLocationEfsResponse
 -> DescribeLocationEfsResponse -> Bool)
-> (DescribeLocationEfsResponse
    -> DescribeLocationEfsResponse -> Bool)
-> Eq DescribeLocationEfsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLocationEfsResponse -> DescribeLocationEfsResponse -> Bool
$c/= :: DescribeLocationEfsResponse -> DescribeLocationEfsResponse -> Bool
== :: DescribeLocationEfsResponse -> DescribeLocationEfsResponse -> Bool
$c== :: DescribeLocationEfsResponse -> DescribeLocationEfsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeLocationEfsResponse]
ReadPrec DescribeLocationEfsResponse
Int -> ReadS DescribeLocationEfsResponse
ReadS [DescribeLocationEfsResponse]
(Int -> ReadS DescribeLocationEfsResponse)
-> ReadS [DescribeLocationEfsResponse]
-> ReadPrec DescribeLocationEfsResponse
-> ReadPrec [DescribeLocationEfsResponse]
-> Read DescribeLocationEfsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLocationEfsResponse]
$creadListPrec :: ReadPrec [DescribeLocationEfsResponse]
readPrec :: ReadPrec DescribeLocationEfsResponse
$creadPrec :: ReadPrec DescribeLocationEfsResponse
readList :: ReadS [DescribeLocationEfsResponse]
$creadList :: ReadS [DescribeLocationEfsResponse]
readsPrec :: Int -> ReadS DescribeLocationEfsResponse
$creadsPrec :: Int -> ReadS DescribeLocationEfsResponse
Prelude.Read, Int -> DescribeLocationEfsResponse -> ShowS
[DescribeLocationEfsResponse] -> ShowS
DescribeLocationEfsResponse -> String
(Int -> DescribeLocationEfsResponse -> ShowS)
-> (DescribeLocationEfsResponse -> String)
-> ([DescribeLocationEfsResponse] -> ShowS)
-> Show DescribeLocationEfsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLocationEfsResponse] -> ShowS
$cshowList :: [DescribeLocationEfsResponse] -> ShowS
show :: DescribeLocationEfsResponse -> String
$cshow :: DescribeLocationEfsResponse -> String
showsPrec :: Int -> DescribeLocationEfsResponse -> ShowS
$cshowsPrec :: Int -> DescribeLocationEfsResponse -> ShowS
Prelude.Show, (forall x.
 DescribeLocationEfsResponse -> Rep DescribeLocationEfsResponse x)
-> (forall x.
    Rep DescribeLocationEfsResponse x -> DescribeLocationEfsResponse)
-> Generic DescribeLocationEfsResponse
forall x.
Rep DescribeLocationEfsResponse x -> DescribeLocationEfsResponse
forall x.
DescribeLocationEfsResponse -> Rep DescribeLocationEfsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeLocationEfsResponse x -> DescribeLocationEfsResponse
$cfrom :: forall x.
DescribeLocationEfsResponse -> Rep DescribeLocationEfsResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeLocationEfsResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'creationTime', 'describeLocationEfsResponse_creationTime' - The time that the EFS location was created.
--
-- 'locationUri', 'describeLocationEfsResponse_locationUri' - The URL of the EFS location that was described.
--
-- 'locationArn', 'describeLocationEfsResponse_locationArn' - The Amazon Resource Name (ARN) of the EFS location that was described.
--
-- 'ec2Config', 'describeLocationEfsResponse_ec2Config' - Undocumented member.
--
-- 'httpStatus', 'describeLocationEfsResponse_httpStatus' - The response's http status code.
newDescribeLocationEfsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeLocationEfsResponse
newDescribeLocationEfsResponse :: Int -> DescribeLocationEfsResponse
newDescribeLocationEfsResponse Int
pHttpStatus_ =
  DescribeLocationEfsResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Ec2Config
-> Int
-> DescribeLocationEfsResponse
DescribeLocationEfsResponse'
    { $sel:creationTime:DescribeLocationEfsResponse' :: Maybe POSIX
creationTime =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:locationUri:DescribeLocationEfsResponse' :: Maybe Text
locationUri = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:locationArn:DescribeLocationEfsResponse' :: Maybe Text
locationArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:ec2Config:DescribeLocationEfsResponse' :: Maybe Ec2Config
ec2Config = Maybe Ec2Config
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeLocationEfsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The time that the EFS location was created.
describeLocationEfsResponse_creationTime :: Lens.Lens' DescribeLocationEfsResponse (Prelude.Maybe Prelude.UTCTime)
describeLocationEfsResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeLocationEfsResponse -> f DescribeLocationEfsResponse
describeLocationEfsResponse_creationTime = (DescribeLocationEfsResponse -> Maybe POSIX)
-> (DescribeLocationEfsResponse
    -> Maybe POSIX -> DescribeLocationEfsResponse)
-> Lens
     DescribeLocationEfsResponse
     DescribeLocationEfsResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationEfsResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeLocationEfsResponse' :: DescribeLocationEfsResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeLocationEfsResponse
s@DescribeLocationEfsResponse' {} Maybe POSIX
a -> DescribeLocationEfsResponse
s {$sel:creationTime:DescribeLocationEfsResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeLocationEfsResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeLocationEfsResponse -> f DescribeLocationEfsResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeLocationEfsResponse
-> f DescribeLocationEfsResponse
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

-- | The URL of the EFS location that was described.
describeLocationEfsResponse_locationUri :: Lens.Lens' DescribeLocationEfsResponse (Prelude.Maybe Prelude.Text)
describeLocationEfsResponse_locationUri :: (Maybe Text -> f (Maybe Text))
-> DescribeLocationEfsResponse -> f DescribeLocationEfsResponse
describeLocationEfsResponse_locationUri = (DescribeLocationEfsResponse -> Maybe Text)
-> (DescribeLocationEfsResponse
    -> Maybe Text -> DescribeLocationEfsResponse)
-> Lens
     DescribeLocationEfsResponse
     DescribeLocationEfsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationEfsResponse' {Maybe Text
locationUri :: Maybe Text
$sel:locationUri:DescribeLocationEfsResponse' :: DescribeLocationEfsResponse -> Maybe Text
locationUri} -> Maybe Text
locationUri) (\s :: DescribeLocationEfsResponse
s@DescribeLocationEfsResponse' {} Maybe Text
a -> DescribeLocationEfsResponse
s {$sel:locationUri:DescribeLocationEfsResponse' :: Maybe Text
locationUri = Maybe Text
a} :: DescribeLocationEfsResponse)

-- | The Amazon Resource Name (ARN) of the EFS location that was described.
describeLocationEfsResponse_locationArn :: Lens.Lens' DescribeLocationEfsResponse (Prelude.Maybe Prelude.Text)
describeLocationEfsResponse_locationArn :: (Maybe Text -> f (Maybe Text))
-> DescribeLocationEfsResponse -> f DescribeLocationEfsResponse
describeLocationEfsResponse_locationArn = (DescribeLocationEfsResponse -> Maybe Text)
-> (DescribeLocationEfsResponse
    -> Maybe Text -> DescribeLocationEfsResponse)
-> Lens
     DescribeLocationEfsResponse
     DescribeLocationEfsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationEfsResponse' {Maybe Text
locationArn :: Maybe Text
$sel:locationArn:DescribeLocationEfsResponse' :: DescribeLocationEfsResponse -> Maybe Text
locationArn} -> Maybe Text
locationArn) (\s :: DescribeLocationEfsResponse
s@DescribeLocationEfsResponse' {} Maybe Text
a -> DescribeLocationEfsResponse
s {$sel:locationArn:DescribeLocationEfsResponse' :: Maybe Text
locationArn = Maybe Text
a} :: DescribeLocationEfsResponse)

-- | Undocumented member.
describeLocationEfsResponse_ec2Config :: Lens.Lens' DescribeLocationEfsResponse (Prelude.Maybe Ec2Config)
describeLocationEfsResponse_ec2Config :: (Maybe Ec2Config -> f (Maybe Ec2Config))
-> DescribeLocationEfsResponse -> f DescribeLocationEfsResponse
describeLocationEfsResponse_ec2Config = (DescribeLocationEfsResponse -> Maybe Ec2Config)
-> (DescribeLocationEfsResponse
    -> Maybe Ec2Config -> DescribeLocationEfsResponse)
-> Lens
     DescribeLocationEfsResponse
     DescribeLocationEfsResponse
     (Maybe Ec2Config)
     (Maybe Ec2Config)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationEfsResponse' {Maybe Ec2Config
ec2Config :: Maybe Ec2Config
$sel:ec2Config:DescribeLocationEfsResponse' :: DescribeLocationEfsResponse -> Maybe Ec2Config
ec2Config} -> Maybe Ec2Config
ec2Config) (\s :: DescribeLocationEfsResponse
s@DescribeLocationEfsResponse' {} Maybe Ec2Config
a -> DescribeLocationEfsResponse
s {$sel:ec2Config:DescribeLocationEfsResponse' :: Maybe Ec2Config
ec2Config = Maybe Ec2Config
a} :: DescribeLocationEfsResponse)

-- | The response's http status code.
describeLocationEfsResponse_httpStatus :: Lens.Lens' DescribeLocationEfsResponse Prelude.Int
describeLocationEfsResponse_httpStatus :: (Int -> f Int)
-> DescribeLocationEfsResponse -> f DescribeLocationEfsResponse
describeLocationEfsResponse_httpStatus = (DescribeLocationEfsResponse -> Int)
-> (DescribeLocationEfsResponse
    -> Int -> DescribeLocationEfsResponse)
-> Lens
     DescribeLocationEfsResponse DescribeLocationEfsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationEfsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeLocationEfsResponse' :: DescribeLocationEfsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeLocationEfsResponse
s@DescribeLocationEfsResponse' {} Int
a -> DescribeLocationEfsResponse
s {$sel:httpStatus:DescribeLocationEfsResponse' :: Int
httpStatus = Int
a} :: DescribeLocationEfsResponse)

instance Prelude.NFData DescribeLocationEfsResponse