{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

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

-- |
-- Module      : Amazonka.EFS.Types.MountTargetDescription
-- 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)
module Amazonka.EFS.Types.MountTargetDescription where

import qualified Amazonka.Core as Core
import Amazonka.EFS.Types.LifeCycleState
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Provides a description of a mount target.
--
-- /See:/ 'newMountTargetDescription' smart constructor.
data MountTargetDescription = MountTargetDescription'
  { -- | Address at which the file system can be mounted by using the mount
    -- target.
    MountTargetDescription -> Maybe Text
ipAddress :: Prelude.Maybe Prelude.Text,
    -- | The unique and consistent identifier of the Availability Zone that the
    -- mount target resides in. For example, @use1-az1@ is an AZ ID for the
    -- us-east-1 Region and it has the same location in every Amazon Web
    -- Services account.
    MountTargetDescription -> Maybe Text
availabilityZoneId :: Prelude.Maybe Prelude.Text,
    -- | The virtual private cloud (VPC) ID that the mount target is configured
    -- in.
    MountTargetDescription -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text,
    -- | The name of the Availability Zone in which the mount target is located.
    -- Availability Zones are independently mapped to names for each Amazon Web
    -- Services account. For example, the Availability Zone @us-east-1a@ for
    -- your Amazon Web Services account might not be the same location as
    -- @us-east-1a@ for another Amazon Web Services account.
    MountTargetDescription -> Maybe Text
availabilityZoneName :: Prelude.Maybe Prelude.Text,
    -- | The ID of the network interface that Amazon EFS created when it created
    -- the mount target.
    MountTargetDescription -> Maybe Text
networkInterfaceId :: Prelude.Maybe Prelude.Text,
    -- | Amazon Web Services account ID that owns the resource.
    MountTargetDescription -> Maybe Text
ownerId :: Prelude.Maybe Prelude.Text,
    -- | System-assigned mount target ID.
    MountTargetDescription -> Text
mountTargetId :: Prelude.Text,
    -- | The ID of the file system for which the mount target is intended.
    MountTargetDescription -> Text
fileSystemId :: Prelude.Text,
    -- | The ID of the mount target\'s subnet.
    MountTargetDescription -> Text
subnetId :: Prelude.Text,
    -- | Lifecycle state of the mount target.
    MountTargetDescription -> LifeCycleState
lifeCycleState :: LifeCycleState
  }
  deriving (MountTargetDescription -> MountTargetDescription -> Bool
(MountTargetDescription -> MountTargetDescription -> Bool)
-> (MountTargetDescription -> MountTargetDescription -> Bool)
-> Eq MountTargetDescription
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MountTargetDescription -> MountTargetDescription -> Bool
$c/= :: MountTargetDescription -> MountTargetDescription -> Bool
== :: MountTargetDescription -> MountTargetDescription -> Bool
$c== :: MountTargetDescription -> MountTargetDescription -> Bool
Prelude.Eq, ReadPrec [MountTargetDescription]
ReadPrec MountTargetDescription
Int -> ReadS MountTargetDescription
ReadS [MountTargetDescription]
(Int -> ReadS MountTargetDescription)
-> ReadS [MountTargetDescription]
-> ReadPrec MountTargetDescription
-> ReadPrec [MountTargetDescription]
-> Read MountTargetDescription
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MountTargetDescription]
$creadListPrec :: ReadPrec [MountTargetDescription]
readPrec :: ReadPrec MountTargetDescription
$creadPrec :: ReadPrec MountTargetDescription
readList :: ReadS [MountTargetDescription]
$creadList :: ReadS [MountTargetDescription]
readsPrec :: Int -> ReadS MountTargetDescription
$creadsPrec :: Int -> ReadS MountTargetDescription
Prelude.Read, Int -> MountTargetDescription -> ShowS
[MountTargetDescription] -> ShowS
MountTargetDescription -> String
(Int -> MountTargetDescription -> ShowS)
-> (MountTargetDescription -> String)
-> ([MountTargetDescription] -> ShowS)
-> Show MountTargetDescription
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MountTargetDescription] -> ShowS
$cshowList :: [MountTargetDescription] -> ShowS
show :: MountTargetDescription -> String
$cshow :: MountTargetDescription -> String
showsPrec :: Int -> MountTargetDescription -> ShowS
$cshowsPrec :: Int -> MountTargetDescription -> ShowS
Prelude.Show, (forall x. MountTargetDescription -> Rep MountTargetDescription x)
-> (forall x.
    Rep MountTargetDescription x -> MountTargetDescription)
-> Generic MountTargetDescription
forall x. Rep MountTargetDescription x -> MountTargetDescription
forall x. MountTargetDescription -> Rep MountTargetDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MountTargetDescription x -> MountTargetDescription
$cfrom :: forall x. MountTargetDescription -> Rep MountTargetDescription x
Prelude.Generic)

-- |
-- Create a value of 'MountTargetDescription' 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:
--
-- 'ipAddress', 'mountTargetDescription_ipAddress' - Address at which the file system can be mounted by using the mount
-- target.
--
-- 'availabilityZoneId', 'mountTargetDescription_availabilityZoneId' - The unique and consistent identifier of the Availability Zone that the
-- mount target resides in. For example, @use1-az1@ is an AZ ID for the
-- us-east-1 Region and it has the same location in every Amazon Web
-- Services account.
--
-- 'vpcId', 'mountTargetDescription_vpcId' - The virtual private cloud (VPC) ID that the mount target is configured
-- in.
--
-- 'availabilityZoneName', 'mountTargetDescription_availabilityZoneName' - The name of the Availability Zone in which the mount target is located.
-- Availability Zones are independently mapped to names for each Amazon Web
-- Services account. For example, the Availability Zone @us-east-1a@ for
-- your Amazon Web Services account might not be the same location as
-- @us-east-1a@ for another Amazon Web Services account.
--
-- 'networkInterfaceId', 'mountTargetDescription_networkInterfaceId' - The ID of the network interface that Amazon EFS created when it created
-- the mount target.
--
-- 'ownerId', 'mountTargetDescription_ownerId' - Amazon Web Services account ID that owns the resource.
--
-- 'mountTargetId', 'mountTargetDescription_mountTargetId' - System-assigned mount target ID.
--
-- 'fileSystemId', 'mountTargetDescription_fileSystemId' - The ID of the file system for which the mount target is intended.
--
-- 'subnetId', 'mountTargetDescription_subnetId' - The ID of the mount target\'s subnet.
--
-- 'lifeCycleState', 'mountTargetDescription_lifeCycleState' - Lifecycle state of the mount target.
newMountTargetDescription ::
  -- | 'mountTargetId'
  Prelude.Text ->
  -- | 'fileSystemId'
  Prelude.Text ->
  -- | 'subnetId'
  Prelude.Text ->
  -- | 'lifeCycleState'
  LifeCycleState ->
  MountTargetDescription
newMountTargetDescription :: Text -> Text -> Text -> LifeCycleState -> MountTargetDescription
newMountTargetDescription
  Text
pMountTargetId_
  Text
pFileSystemId_
  Text
pSubnetId_
  LifeCycleState
pLifeCycleState_ =
    MountTargetDescription' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> LifeCycleState
-> MountTargetDescription
MountTargetDescription'
      { $sel:ipAddress:MountTargetDescription' :: Maybe Text
ipAddress =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:availabilityZoneId:MountTargetDescription' :: Maybe Text
availabilityZoneId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:vpcId:MountTargetDescription' :: Maybe Text
vpcId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:availabilityZoneName:MountTargetDescription' :: Maybe Text
availabilityZoneName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:networkInterfaceId:MountTargetDescription' :: Maybe Text
networkInterfaceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:ownerId:MountTargetDescription' :: Maybe Text
ownerId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:mountTargetId:MountTargetDescription' :: Text
mountTargetId = Text
pMountTargetId_,
        $sel:fileSystemId:MountTargetDescription' :: Text
fileSystemId = Text
pFileSystemId_,
        $sel:subnetId:MountTargetDescription' :: Text
subnetId = Text
pSubnetId_,
        $sel:lifeCycleState:MountTargetDescription' :: LifeCycleState
lifeCycleState = LifeCycleState
pLifeCycleState_
      }

-- | Address at which the file system can be mounted by using the mount
-- target.
mountTargetDescription_ipAddress :: Lens.Lens' MountTargetDescription (Prelude.Maybe Prelude.Text)
mountTargetDescription_ipAddress :: (Maybe Text -> f (Maybe Text))
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_ipAddress = (MountTargetDescription -> Maybe Text)
-> (MountTargetDescription -> Maybe Text -> MountTargetDescription)
-> Lens
     MountTargetDescription
     MountTargetDescription
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {Maybe Text
ipAddress :: Maybe Text
$sel:ipAddress:MountTargetDescription' :: MountTargetDescription -> Maybe Text
ipAddress} -> Maybe Text
ipAddress) (\s :: MountTargetDescription
s@MountTargetDescription' {} Maybe Text
a -> MountTargetDescription
s {$sel:ipAddress:MountTargetDescription' :: Maybe Text
ipAddress = Maybe Text
a} :: MountTargetDescription)

-- | The unique and consistent identifier of the Availability Zone that the
-- mount target resides in. For example, @use1-az1@ is an AZ ID for the
-- us-east-1 Region and it has the same location in every Amazon Web
-- Services account.
mountTargetDescription_availabilityZoneId :: Lens.Lens' MountTargetDescription (Prelude.Maybe Prelude.Text)
mountTargetDescription_availabilityZoneId :: (Maybe Text -> f (Maybe Text))
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_availabilityZoneId = (MountTargetDescription -> Maybe Text)
-> (MountTargetDescription -> Maybe Text -> MountTargetDescription)
-> Lens
     MountTargetDescription
     MountTargetDescription
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {Maybe Text
availabilityZoneId :: Maybe Text
$sel:availabilityZoneId:MountTargetDescription' :: MountTargetDescription -> Maybe Text
availabilityZoneId} -> Maybe Text
availabilityZoneId) (\s :: MountTargetDescription
s@MountTargetDescription' {} Maybe Text
a -> MountTargetDescription
s {$sel:availabilityZoneId:MountTargetDescription' :: Maybe Text
availabilityZoneId = Maybe Text
a} :: MountTargetDescription)

-- | The virtual private cloud (VPC) ID that the mount target is configured
-- in.
mountTargetDescription_vpcId :: Lens.Lens' MountTargetDescription (Prelude.Maybe Prelude.Text)
mountTargetDescription_vpcId :: (Maybe Text -> f (Maybe Text))
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_vpcId = (MountTargetDescription -> Maybe Text)
-> (MountTargetDescription -> Maybe Text -> MountTargetDescription)
-> Lens
     MountTargetDescription
     MountTargetDescription
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {Maybe Text
vpcId :: Maybe Text
$sel:vpcId:MountTargetDescription' :: MountTargetDescription -> Maybe Text
vpcId} -> Maybe Text
vpcId) (\s :: MountTargetDescription
s@MountTargetDescription' {} Maybe Text
a -> MountTargetDescription
s {$sel:vpcId:MountTargetDescription' :: Maybe Text
vpcId = Maybe Text
a} :: MountTargetDescription)

-- | The name of the Availability Zone in which the mount target is located.
-- Availability Zones are independently mapped to names for each Amazon Web
-- Services account. For example, the Availability Zone @us-east-1a@ for
-- your Amazon Web Services account might not be the same location as
-- @us-east-1a@ for another Amazon Web Services account.
mountTargetDescription_availabilityZoneName :: Lens.Lens' MountTargetDescription (Prelude.Maybe Prelude.Text)
mountTargetDescription_availabilityZoneName :: (Maybe Text -> f (Maybe Text))
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_availabilityZoneName = (MountTargetDescription -> Maybe Text)
-> (MountTargetDescription -> Maybe Text -> MountTargetDescription)
-> Lens
     MountTargetDescription
     MountTargetDescription
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {Maybe Text
availabilityZoneName :: Maybe Text
$sel:availabilityZoneName:MountTargetDescription' :: MountTargetDescription -> Maybe Text
availabilityZoneName} -> Maybe Text
availabilityZoneName) (\s :: MountTargetDescription
s@MountTargetDescription' {} Maybe Text
a -> MountTargetDescription
s {$sel:availabilityZoneName:MountTargetDescription' :: Maybe Text
availabilityZoneName = Maybe Text
a} :: MountTargetDescription)

-- | The ID of the network interface that Amazon EFS created when it created
-- the mount target.
mountTargetDescription_networkInterfaceId :: Lens.Lens' MountTargetDescription (Prelude.Maybe Prelude.Text)
mountTargetDescription_networkInterfaceId :: (Maybe Text -> f (Maybe Text))
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_networkInterfaceId = (MountTargetDescription -> Maybe Text)
-> (MountTargetDescription -> Maybe Text -> MountTargetDescription)
-> Lens
     MountTargetDescription
     MountTargetDescription
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {Maybe Text
networkInterfaceId :: Maybe Text
$sel:networkInterfaceId:MountTargetDescription' :: MountTargetDescription -> Maybe Text
networkInterfaceId} -> Maybe Text
networkInterfaceId) (\s :: MountTargetDescription
s@MountTargetDescription' {} Maybe Text
a -> MountTargetDescription
s {$sel:networkInterfaceId:MountTargetDescription' :: Maybe Text
networkInterfaceId = Maybe Text
a} :: MountTargetDescription)

-- | Amazon Web Services account ID that owns the resource.
mountTargetDescription_ownerId :: Lens.Lens' MountTargetDescription (Prelude.Maybe Prelude.Text)
mountTargetDescription_ownerId :: (Maybe Text -> f (Maybe Text))
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_ownerId = (MountTargetDescription -> Maybe Text)
-> (MountTargetDescription -> Maybe Text -> MountTargetDescription)
-> Lens
     MountTargetDescription
     MountTargetDescription
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {Maybe Text
ownerId :: Maybe Text
$sel:ownerId:MountTargetDescription' :: MountTargetDescription -> Maybe Text
ownerId} -> Maybe Text
ownerId) (\s :: MountTargetDescription
s@MountTargetDescription' {} Maybe Text
a -> MountTargetDescription
s {$sel:ownerId:MountTargetDescription' :: Maybe Text
ownerId = Maybe Text
a} :: MountTargetDescription)

-- | System-assigned mount target ID.
mountTargetDescription_mountTargetId :: Lens.Lens' MountTargetDescription Prelude.Text
mountTargetDescription_mountTargetId :: (Text -> f Text)
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_mountTargetId = (MountTargetDescription -> Text)
-> (MountTargetDescription -> Text -> MountTargetDescription)
-> Lens MountTargetDescription MountTargetDescription Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {Text
mountTargetId :: Text
$sel:mountTargetId:MountTargetDescription' :: MountTargetDescription -> Text
mountTargetId} -> Text
mountTargetId) (\s :: MountTargetDescription
s@MountTargetDescription' {} Text
a -> MountTargetDescription
s {$sel:mountTargetId:MountTargetDescription' :: Text
mountTargetId = Text
a} :: MountTargetDescription)

-- | The ID of the file system for which the mount target is intended.
mountTargetDescription_fileSystemId :: Lens.Lens' MountTargetDescription Prelude.Text
mountTargetDescription_fileSystemId :: (Text -> f Text)
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_fileSystemId = (MountTargetDescription -> Text)
-> (MountTargetDescription -> Text -> MountTargetDescription)
-> Lens MountTargetDescription MountTargetDescription Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {Text
fileSystemId :: Text
$sel:fileSystemId:MountTargetDescription' :: MountTargetDescription -> Text
fileSystemId} -> Text
fileSystemId) (\s :: MountTargetDescription
s@MountTargetDescription' {} Text
a -> MountTargetDescription
s {$sel:fileSystemId:MountTargetDescription' :: Text
fileSystemId = Text
a} :: MountTargetDescription)

-- | The ID of the mount target\'s subnet.
mountTargetDescription_subnetId :: Lens.Lens' MountTargetDescription Prelude.Text
mountTargetDescription_subnetId :: (Text -> f Text)
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_subnetId = (MountTargetDescription -> Text)
-> (MountTargetDescription -> Text -> MountTargetDescription)
-> Lens MountTargetDescription MountTargetDescription Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {Text
subnetId :: Text
$sel:subnetId:MountTargetDescription' :: MountTargetDescription -> Text
subnetId} -> Text
subnetId) (\s :: MountTargetDescription
s@MountTargetDescription' {} Text
a -> MountTargetDescription
s {$sel:subnetId:MountTargetDescription' :: Text
subnetId = Text
a} :: MountTargetDescription)

-- | Lifecycle state of the mount target.
mountTargetDescription_lifeCycleState :: Lens.Lens' MountTargetDescription LifeCycleState
mountTargetDescription_lifeCycleState :: (LifeCycleState -> f LifeCycleState)
-> MountTargetDescription -> f MountTargetDescription
mountTargetDescription_lifeCycleState = (MountTargetDescription -> LifeCycleState)
-> (MountTargetDescription
    -> LifeCycleState -> MountTargetDescription)
-> Lens
     MountTargetDescription
     MountTargetDescription
     LifeCycleState
     LifeCycleState
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MountTargetDescription' {LifeCycleState
lifeCycleState :: LifeCycleState
$sel:lifeCycleState:MountTargetDescription' :: MountTargetDescription -> LifeCycleState
lifeCycleState} -> LifeCycleState
lifeCycleState) (\s :: MountTargetDescription
s@MountTargetDescription' {} LifeCycleState
a -> MountTargetDescription
s {$sel:lifeCycleState:MountTargetDescription' :: LifeCycleState
lifeCycleState = LifeCycleState
a} :: MountTargetDescription)

instance Core.FromJSON MountTargetDescription where
  parseJSON :: Value -> Parser MountTargetDescription
parseJSON =
    String
-> (Object -> Parser MountTargetDescription)
-> Value
-> Parser MountTargetDescription
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"MountTargetDescription"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> LifeCycleState
-> MountTargetDescription
MountTargetDescription'
            (Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Text
 -> Text
 -> Text
 -> LifeCycleState
 -> MountTargetDescription)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Text
      -> Text
      -> Text
      -> LifeCycleState
      -> MountTargetDescription)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"IpAddress")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Text
   -> Text
   -> Text
   -> LifeCycleState
   -> MountTargetDescription)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Text
      -> Text
      -> Text
      -> LifeCycleState
      -> MountTargetDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AvailabilityZoneId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Text
   -> Text
   -> Text
   -> LifeCycleState
   -> MountTargetDescription)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Text
      -> Text
      -> Text
      -> LifeCycleState
      -> MountTargetDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VpcId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Text
   -> Text
   -> Text
   -> LifeCycleState
   -> MountTargetDescription)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Text
      -> Text
      -> Text
      -> LifeCycleState
      -> MountTargetDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AvailabilityZoneName")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Text
   -> Text
   -> Text
   -> LifeCycleState
   -> MountTargetDescription)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Text
      -> Text
      -> Text
      -> LifeCycleState
      -> MountTargetDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"NetworkInterfaceId")
            Parser
  (Maybe Text
   -> Text
   -> Text
   -> Text
   -> LifeCycleState
   -> MountTargetDescription)
-> Parser (Maybe Text)
-> Parser
     (Text -> Text -> Text -> LifeCycleState -> MountTargetDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"OwnerId")
            Parser
  (Text -> Text -> Text -> LifeCycleState -> MountTargetDescription)
-> Parser Text
-> Parser
     (Text -> Text -> LifeCycleState -> MountTargetDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"MountTargetId")
            Parser (Text -> Text -> LifeCycleState -> MountTargetDescription)
-> Parser Text
-> Parser (Text -> LifeCycleState -> MountTargetDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"FileSystemId")
            Parser (Text -> LifeCycleState -> MountTargetDescription)
-> Parser Text -> Parser (LifeCycleState -> MountTargetDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"SubnetId")
            Parser (LifeCycleState -> MountTargetDescription)
-> Parser LifeCycleState -> Parser MountTargetDescription
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser LifeCycleState
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"LifeCycleState")
      )

instance Prelude.Hashable MountTargetDescription

instance Prelude.NFData MountTargetDescription