{-# 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.AccessPointDescription
-- 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.AccessPointDescription where

import qualified Amazonka.Core as Core
import Amazonka.EFS.Types.LifeCycleState
import Amazonka.EFS.Types.PosixUser
import Amazonka.EFS.Types.RootDirectory
import Amazonka.EFS.Types.Tag
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Provides a description of an EFS file system access point.
--
-- /See:/ 'newAccessPointDescription' smart constructor.
data AccessPointDescription = AccessPointDescription'
  { -- | The full POSIX identity, including the user ID, group ID, and secondary
    -- group IDs on the access point that is used for all file operations by
    -- NFS clients using the access point.
    AccessPointDescription -> Maybe PosixUser
posixUser :: Prelude.Maybe PosixUser,
    -- | The directory on the Amazon EFS file system that the access point
    -- exposes as the root directory to NFS clients using the access point.
    AccessPointDescription -> Maybe RootDirectory
rootDirectory :: Prelude.Maybe RootDirectory,
    -- | The opaque string specified in the request to ensure idempotent
    -- creation.
    AccessPointDescription -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
    -- | The ID of the access point, assigned by Amazon EFS.
    AccessPointDescription -> Maybe Text
accessPointId :: Prelude.Maybe Prelude.Text,
    -- | The ID of the EFS file system that the access point applies to.
    AccessPointDescription -> Maybe Text
fileSystemId :: Prelude.Maybe Prelude.Text,
    -- | Identified the Amazon Web Services account that owns the access point
    -- resource.
    AccessPointDescription -> Maybe Text
ownerId :: Prelude.Maybe Prelude.Text,
    -- | The name of the access point. This is the value of the @Name@ tag.
    AccessPointDescription -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The unique Amazon Resource Name (ARN) associated with the access point.
    AccessPointDescription -> Maybe Text
accessPointArn :: Prelude.Maybe Prelude.Text,
    -- | Identifies the lifecycle phase of the access point.
    AccessPointDescription -> Maybe LifeCycleState
lifeCycleState :: Prelude.Maybe LifeCycleState,
    -- | The tags associated with the access point, presented as an array of Tag
    -- objects.
    AccessPointDescription -> Maybe [Tag]
tags :: Prelude.Maybe [Tag]
  }
  deriving (AccessPointDescription -> AccessPointDescription -> Bool
(AccessPointDescription -> AccessPointDescription -> Bool)
-> (AccessPointDescription -> AccessPointDescription -> Bool)
-> Eq AccessPointDescription
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AccessPointDescription -> AccessPointDescription -> Bool
$c/= :: AccessPointDescription -> AccessPointDescription -> Bool
== :: AccessPointDescription -> AccessPointDescription -> Bool
$c== :: AccessPointDescription -> AccessPointDescription -> Bool
Prelude.Eq, ReadPrec [AccessPointDescription]
ReadPrec AccessPointDescription
Int -> ReadS AccessPointDescription
ReadS [AccessPointDescription]
(Int -> ReadS AccessPointDescription)
-> ReadS [AccessPointDescription]
-> ReadPrec AccessPointDescription
-> ReadPrec [AccessPointDescription]
-> Read AccessPointDescription
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AccessPointDescription]
$creadListPrec :: ReadPrec [AccessPointDescription]
readPrec :: ReadPrec AccessPointDescription
$creadPrec :: ReadPrec AccessPointDescription
readList :: ReadS [AccessPointDescription]
$creadList :: ReadS [AccessPointDescription]
readsPrec :: Int -> ReadS AccessPointDescription
$creadsPrec :: Int -> ReadS AccessPointDescription
Prelude.Read, Int -> AccessPointDescription -> ShowS
[AccessPointDescription] -> ShowS
AccessPointDescription -> String
(Int -> AccessPointDescription -> ShowS)
-> (AccessPointDescription -> String)
-> ([AccessPointDescription] -> ShowS)
-> Show AccessPointDescription
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AccessPointDescription] -> ShowS
$cshowList :: [AccessPointDescription] -> ShowS
show :: AccessPointDescription -> String
$cshow :: AccessPointDescription -> String
showsPrec :: Int -> AccessPointDescription -> ShowS
$cshowsPrec :: Int -> AccessPointDescription -> ShowS
Prelude.Show, (forall x. AccessPointDescription -> Rep AccessPointDescription x)
-> (forall x.
    Rep AccessPointDescription x -> AccessPointDescription)
-> Generic AccessPointDescription
forall x. Rep AccessPointDescription x -> AccessPointDescription
forall x. AccessPointDescription -> Rep AccessPointDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AccessPointDescription x -> AccessPointDescription
$cfrom :: forall x. AccessPointDescription -> Rep AccessPointDescription x
Prelude.Generic)

-- |
-- Create a value of 'AccessPointDescription' 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:
--
-- 'posixUser', 'accessPointDescription_posixUser' - The full POSIX identity, including the user ID, group ID, and secondary
-- group IDs on the access point that is used for all file operations by
-- NFS clients using the access point.
--
-- 'rootDirectory', 'accessPointDescription_rootDirectory' - The directory on the Amazon EFS file system that the access point
-- exposes as the root directory to NFS clients using the access point.
--
-- 'clientToken', 'accessPointDescription_clientToken' - The opaque string specified in the request to ensure idempotent
-- creation.
--
-- 'accessPointId', 'accessPointDescription_accessPointId' - The ID of the access point, assigned by Amazon EFS.
--
-- 'fileSystemId', 'accessPointDescription_fileSystemId' - The ID of the EFS file system that the access point applies to.
--
-- 'ownerId', 'accessPointDescription_ownerId' - Identified the Amazon Web Services account that owns the access point
-- resource.
--
-- 'name', 'accessPointDescription_name' - The name of the access point. This is the value of the @Name@ tag.
--
-- 'accessPointArn', 'accessPointDescription_accessPointArn' - The unique Amazon Resource Name (ARN) associated with the access point.
--
-- 'lifeCycleState', 'accessPointDescription_lifeCycleState' - Identifies the lifecycle phase of the access point.
--
-- 'tags', 'accessPointDescription_tags' - The tags associated with the access point, presented as an array of Tag
-- objects.
newAccessPointDescription ::
  AccessPointDescription
newAccessPointDescription :: AccessPointDescription
newAccessPointDescription =
  AccessPointDescription' :: Maybe PosixUser
-> Maybe RootDirectory
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe LifeCycleState
-> Maybe [Tag]
-> AccessPointDescription
AccessPointDescription'
    { $sel:posixUser:AccessPointDescription' :: Maybe PosixUser
posixUser =
        Maybe PosixUser
forall a. Maybe a
Prelude.Nothing,
      $sel:rootDirectory:AccessPointDescription' :: Maybe RootDirectory
rootDirectory = Maybe RootDirectory
forall a. Maybe a
Prelude.Nothing,
      $sel:clientToken:AccessPointDescription' :: Maybe Text
clientToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:accessPointId:AccessPointDescription' :: Maybe Text
accessPointId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:fileSystemId:AccessPointDescription' :: Maybe Text
fileSystemId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:ownerId:AccessPointDescription' :: Maybe Text
ownerId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:name:AccessPointDescription' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:accessPointArn:AccessPointDescription' :: Maybe Text
accessPointArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lifeCycleState:AccessPointDescription' :: Maybe LifeCycleState
lifeCycleState = Maybe LifeCycleState
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:AccessPointDescription' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing
    }

-- | The full POSIX identity, including the user ID, group ID, and secondary
-- group IDs on the access point that is used for all file operations by
-- NFS clients using the access point.
accessPointDescription_posixUser :: Lens.Lens' AccessPointDescription (Prelude.Maybe PosixUser)
accessPointDescription_posixUser :: (Maybe PosixUser -> f (Maybe PosixUser))
-> AccessPointDescription -> f AccessPointDescription
accessPointDescription_posixUser = (AccessPointDescription -> Maybe PosixUser)
-> (AccessPointDescription
    -> Maybe PosixUser -> AccessPointDescription)
-> Lens
     AccessPointDescription
     AccessPointDescription
     (Maybe PosixUser)
     (Maybe PosixUser)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AccessPointDescription' {Maybe PosixUser
posixUser :: Maybe PosixUser
$sel:posixUser:AccessPointDescription' :: AccessPointDescription -> Maybe PosixUser
posixUser} -> Maybe PosixUser
posixUser) (\s :: AccessPointDescription
s@AccessPointDescription' {} Maybe PosixUser
a -> AccessPointDescription
s {$sel:posixUser:AccessPointDescription' :: Maybe PosixUser
posixUser = Maybe PosixUser
a} :: AccessPointDescription)

-- | The directory on the Amazon EFS file system that the access point
-- exposes as the root directory to NFS clients using the access point.
accessPointDescription_rootDirectory :: Lens.Lens' AccessPointDescription (Prelude.Maybe RootDirectory)
accessPointDescription_rootDirectory :: (Maybe RootDirectory -> f (Maybe RootDirectory))
-> AccessPointDescription -> f AccessPointDescription
accessPointDescription_rootDirectory = (AccessPointDescription -> Maybe RootDirectory)
-> (AccessPointDescription
    -> Maybe RootDirectory -> AccessPointDescription)
-> Lens
     AccessPointDescription
     AccessPointDescription
     (Maybe RootDirectory)
     (Maybe RootDirectory)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AccessPointDescription' {Maybe RootDirectory
rootDirectory :: Maybe RootDirectory
$sel:rootDirectory:AccessPointDescription' :: AccessPointDescription -> Maybe RootDirectory
rootDirectory} -> Maybe RootDirectory
rootDirectory) (\s :: AccessPointDescription
s@AccessPointDescription' {} Maybe RootDirectory
a -> AccessPointDescription
s {$sel:rootDirectory:AccessPointDescription' :: Maybe RootDirectory
rootDirectory = Maybe RootDirectory
a} :: AccessPointDescription)

-- | The opaque string specified in the request to ensure idempotent
-- creation.
accessPointDescription_clientToken :: Lens.Lens' AccessPointDescription (Prelude.Maybe Prelude.Text)
accessPointDescription_clientToken :: (Maybe Text -> f (Maybe Text))
-> AccessPointDescription -> f AccessPointDescription
accessPointDescription_clientToken = (AccessPointDescription -> Maybe Text)
-> (AccessPointDescription -> Maybe Text -> AccessPointDescription)
-> Lens
     AccessPointDescription
     AccessPointDescription
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AccessPointDescription' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:AccessPointDescription' :: AccessPointDescription -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: AccessPointDescription
s@AccessPointDescription' {} Maybe Text
a -> AccessPointDescription
s {$sel:clientToken:AccessPointDescription' :: Maybe Text
clientToken = Maybe Text
a} :: AccessPointDescription)

-- | The ID of the access point, assigned by Amazon EFS.
accessPointDescription_accessPointId :: Lens.Lens' AccessPointDescription (Prelude.Maybe Prelude.Text)
accessPointDescription_accessPointId :: (Maybe Text -> f (Maybe Text))
-> AccessPointDescription -> f AccessPointDescription
accessPointDescription_accessPointId = (AccessPointDescription -> Maybe Text)
-> (AccessPointDescription -> Maybe Text -> AccessPointDescription)
-> Lens
     AccessPointDescription
     AccessPointDescription
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AccessPointDescription' {Maybe Text
accessPointId :: Maybe Text
$sel:accessPointId:AccessPointDescription' :: AccessPointDescription -> Maybe Text
accessPointId} -> Maybe Text
accessPointId) (\s :: AccessPointDescription
s@AccessPointDescription' {} Maybe Text
a -> AccessPointDescription
s {$sel:accessPointId:AccessPointDescription' :: Maybe Text
accessPointId = Maybe Text
a} :: AccessPointDescription)

-- | The ID of the EFS file system that the access point applies to.
accessPointDescription_fileSystemId :: Lens.Lens' AccessPointDescription (Prelude.Maybe Prelude.Text)
accessPointDescription_fileSystemId :: (Maybe Text -> f (Maybe Text))
-> AccessPointDescription -> f AccessPointDescription
accessPointDescription_fileSystemId = (AccessPointDescription -> Maybe Text)
-> (AccessPointDescription -> Maybe Text -> AccessPointDescription)
-> Lens
     AccessPointDescription
     AccessPointDescription
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AccessPointDescription' {Maybe Text
fileSystemId :: Maybe Text
$sel:fileSystemId:AccessPointDescription' :: AccessPointDescription -> Maybe Text
fileSystemId} -> Maybe Text
fileSystemId) (\s :: AccessPointDescription
s@AccessPointDescription' {} Maybe Text
a -> AccessPointDescription
s {$sel:fileSystemId:AccessPointDescription' :: Maybe Text
fileSystemId = Maybe Text
a} :: AccessPointDescription)

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

-- | The name of the access point. This is the value of the @Name@ tag.
accessPointDescription_name :: Lens.Lens' AccessPointDescription (Prelude.Maybe Prelude.Text)
accessPointDescription_name :: (Maybe Text -> f (Maybe Text))
-> AccessPointDescription -> f AccessPointDescription
accessPointDescription_name = (AccessPointDescription -> Maybe Text)
-> (AccessPointDescription -> Maybe Text -> AccessPointDescription)
-> Lens
     AccessPointDescription
     AccessPointDescription
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AccessPointDescription' {Maybe Text
name :: Maybe Text
$sel:name:AccessPointDescription' :: AccessPointDescription -> Maybe Text
name} -> Maybe Text
name) (\s :: AccessPointDescription
s@AccessPointDescription' {} Maybe Text
a -> AccessPointDescription
s {$sel:name:AccessPointDescription' :: Maybe Text
name = Maybe Text
a} :: AccessPointDescription)

-- | The unique Amazon Resource Name (ARN) associated with the access point.
accessPointDescription_accessPointArn :: Lens.Lens' AccessPointDescription (Prelude.Maybe Prelude.Text)
accessPointDescription_accessPointArn :: (Maybe Text -> f (Maybe Text))
-> AccessPointDescription -> f AccessPointDescription
accessPointDescription_accessPointArn = (AccessPointDescription -> Maybe Text)
-> (AccessPointDescription -> Maybe Text -> AccessPointDescription)
-> Lens
     AccessPointDescription
     AccessPointDescription
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AccessPointDescription' {Maybe Text
accessPointArn :: Maybe Text
$sel:accessPointArn:AccessPointDescription' :: AccessPointDescription -> Maybe Text
accessPointArn} -> Maybe Text
accessPointArn) (\s :: AccessPointDescription
s@AccessPointDescription' {} Maybe Text
a -> AccessPointDescription
s {$sel:accessPointArn:AccessPointDescription' :: Maybe Text
accessPointArn = Maybe Text
a} :: AccessPointDescription)

-- | Identifies the lifecycle phase of the access point.
accessPointDescription_lifeCycleState :: Lens.Lens' AccessPointDescription (Prelude.Maybe LifeCycleState)
accessPointDescription_lifeCycleState :: (Maybe LifeCycleState -> f (Maybe LifeCycleState))
-> AccessPointDescription -> f AccessPointDescription
accessPointDescription_lifeCycleState = (AccessPointDescription -> Maybe LifeCycleState)
-> (AccessPointDescription
    -> Maybe LifeCycleState -> AccessPointDescription)
-> Lens
     AccessPointDescription
     AccessPointDescription
     (Maybe LifeCycleState)
     (Maybe LifeCycleState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AccessPointDescription' {Maybe LifeCycleState
lifeCycleState :: Maybe LifeCycleState
$sel:lifeCycleState:AccessPointDescription' :: AccessPointDescription -> Maybe LifeCycleState
lifeCycleState} -> Maybe LifeCycleState
lifeCycleState) (\s :: AccessPointDescription
s@AccessPointDescription' {} Maybe LifeCycleState
a -> AccessPointDescription
s {$sel:lifeCycleState:AccessPointDescription' :: Maybe LifeCycleState
lifeCycleState = Maybe LifeCycleState
a} :: AccessPointDescription)

-- | The tags associated with the access point, presented as an array of Tag
-- objects.
accessPointDescription_tags :: Lens.Lens' AccessPointDescription (Prelude.Maybe [Tag])
accessPointDescription_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> AccessPointDescription -> f AccessPointDescription
accessPointDescription_tags = (AccessPointDescription -> Maybe [Tag])
-> (AccessPointDescription
    -> Maybe [Tag] -> AccessPointDescription)
-> Lens
     AccessPointDescription
     AccessPointDescription
     (Maybe [Tag])
     (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AccessPointDescription' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:AccessPointDescription' :: AccessPointDescription -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: AccessPointDescription
s@AccessPointDescription' {} Maybe [Tag]
a -> AccessPointDescription
s {$sel:tags:AccessPointDescription' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: AccessPointDescription) ((Maybe [Tag] -> f (Maybe [Tag]))
 -> AccessPointDescription -> f AccessPointDescription)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
    -> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> AccessPointDescription
-> f AccessPointDescription
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.FromJSON AccessPointDescription where
  parseJSON :: Value -> Parser AccessPointDescription
parseJSON =
    String
-> (Object -> Parser AccessPointDescription)
-> Value
-> Parser AccessPointDescription
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"AccessPointDescription"
      ( \Object
x ->
          Maybe PosixUser
-> Maybe RootDirectory
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe LifeCycleState
-> Maybe [Tag]
-> AccessPointDescription
AccessPointDescription'
            (Maybe PosixUser
 -> Maybe RootDirectory
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe LifeCycleState
 -> Maybe [Tag]
 -> AccessPointDescription)
-> Parser (Maybe PosixUser)
-> Parser
     (Maybe RootDirectory
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe LifeCycleState
      -> Maybe [Tag]
      -> AccessPointDescription)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe PosixUser)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PosixUser")
            Parser
  (Maybe RootDirectory
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe LifeCycleState
   -> Maybe [Tag]
   -> AccessPointDescription)
-> Parser (Maybe RootDirectory)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe LifeCycleState
      -> Maybe [Tag]
      -> AccessPointDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe RootDirectory)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RootDirectory")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe LifeCycleState
   -> Maybe [Tag]
   -> AccessPointDescription)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe LifeCycleState
      -> Maybe [Tag]
      -> AccessPointDescription)
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
"ClientToken")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe LifeCycleState
   -> Maybe [Tag]
   -> AccessPointDescription)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe LifeCycleState
      -> Maybe [Tag]
      -> AccessPointDescription)
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
"AccessPointId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe LifeCycleState
   -> Maybe [Tag]
   -> AccessPointDescription)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe LifeCycleState
      -> Maybe [Tag]
      -> AccessPointDescription)
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
"FileSystemId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe LifeCycleState
   -> Maybe [Tag]
   -> AccessPointDescription)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe LifeCycleState
      -> Maybe [Tag]
      -> AccessPointDescription)
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
  (Maybe Text
   -> Maybe Text
   -> Maybe LifeCycleState
   -> Maybe [Tag]
   -> AccessPointDescription)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe LifeCycleState -> Maybe [Tag] -> AccessPointDescription)
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
"Name")
            Parser
  (Maybe Text
   -> Maybe LifeCycleState -> Maybe [Tag] -> AccessPointDescription)
-> Parser (Maybe Text)
-> Parser
     (Maybe LifeCycleState -> Maybe [Tag] -> AccessPointDescription)
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
"AccessPointArn")
            Parser
  (Maybe LifeCycleState -> Maybe [Tag] -> AccessPointDescription)
-> Parser (Maybe LifeCycleState)
-> Parser (Maybe [Tag] -> AccessPointDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe LifeCycleState)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LifeCycleState")
            Parser (Maybe [Tag] -> AccessPointDescription)
-> Parser (Maybe [Tag]) -> Parser AccessPointDescription
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Tag]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Tags" Parser (Maybe (Maybe [Tag])) -> Maybe [Tag] -> Parser (Maybe [Tag])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Tag]
forall a. Monoid a => a
Prelude.mempty)
      )

instance Prelude.Hashable AccessPointDescription

instance Prelude.NFData AccessPointDescription