{-# 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 #-}
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
data AccessPointDescription = AccessPointDescription'
{
AccessPointDescription -> Maybe PosixUser
posixUser :: Prelude.Maybe PosixUser,
AccessPointDescription -> Maybe RootDirectory
rootDirectory :: Prelude.Maybe RootDirectory,
AccessPointDescription -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
AccessPointDescription -> Maybe Text
accessPointId :: Prelude.Maybe Prelude.Text,
AccessPointDescription -> Maybe Text
fileSystemId :: Prelude.Maybe Prelude.Text,
AccessPointDescription -> Maybe Text
ownerId :: Prelude.Maybe Prelude.Text,
AccessPointDescription -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
AccessPointDescription -> Maybe Text
accessPointArn :: Prelude.Maybe Prelude.Text,
AccessPointDescription -> Maybe LifeCycleState
lifeCycleState :: Prelude.Maybe LifeCycleState,
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)
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
}
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)
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)
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)
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)
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)
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)
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)
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)
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)
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