{-# 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.RAM.Types.ResourceSharePermissionSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ResourceSharePermissionSummary = ResourceSharePermissionSummary'
{
ResourceSharePermissionSummary -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
ResourceSharePermissionSummary -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
ResourceSharePermissionSummary -> Maybe Text
resourceType :: Prelude.Maybe Prelude.Text,
ResourceSharePermissionSummary -> Maybe POSIX
lastUpdatedTime :: Prelude.Maybe Core.POSIX,
ResourceSharePermissionSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
ResourceSharePermissionSummary -> Maybe Bool
defaultVersion :: Prelude.Maybe Prelude.Bool,
ResourceSharePermissionSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
ResourceSharePermissionSummary -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
ResourceSharePermissionSummary -> Maybe Bool
isResourceTypeDefault :: Prelude.Maybe Prelude.Bool
}
deriving (ResourceSharePermissionSummary
-> ResourceSharePermissionSummary -> Bool
(ResourceSharePermissionSummary
-> ResourceSharePermissionSummary -> Bool)
-> (ResourceSharePermissionSummary
-> ResourceSharePermissionSummary -> Bool)
-> Eq ResourceSharePermissionSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResourceSharePermissionSummary
-> ResourceSharePermissionSummary -> Bool
$c/= :: ResourceSharePermissionSummary
-> ResourceSharePermissionSummary -> Bool
== :: ResourceSharePermissionSummary
-> ResourceSharePermissionSummary -> Bool
$c== :: ResourceSharePermissionSummary
-> ResourceSharePermissionSummary -> Bool
Prelude.Eq, ReadPrec [ResourceSharePermissionSummary]
ReadPrec ResourceSharePermissionSummary
Int -> ReadS ResourceSharePermissionSummary
ReadS [ResourceSharePermissionSummary]
(Int -> ReadS ResourceSharePermissionSummary)
-> ReadS [ResourceSharePermissionSummary]
-> ReadPrec ResourceSharePermissionSummary
-> ReadPrec [ResourceSharePermissionSummary]
-> Read ResourceSharePermissionSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ResourceSharePermissionSummary]
$creadListPrec :: ReadPrec [ResourceSharePermissionSummary]
readPrec :: ReadPrec ResourceSharePermissionSummary
$creadPrec :: ReadPrec ResourceSharePermissionSummary
readList :: ReadS [ResourceSharePermissionSummary]
$creadList :: ReadS [ResourceSharePermissionSummary]
readsPrec :: Int -> ReadS ResourceSharePermissionSummary
$creadsPrec :: Int -> ReadS ResourceSharePermissionSummary
Prelude.Read, Int -> ResourceSharePermissionSummary -> ShowS
[ResourceSharePermissionSummary] -> ShowS
ResourceSharePermissionSummary -> String
(Int -> ResourceSharePermissionSummary -> ShowS)
-> (ResourceSharePermissionSummary -> String)
-> ([ResourceSharePermissionSummary] -> ShowS)
-> Show ResourceSharePermissionSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResourceSharePermissionSummary] -> ShowS
$cshowList :: [ResourceSharePermissionSummary] -> ShowS
show :: ResourceSharePermissionSummary -> String
$cshow :: ResourceSharePermissionSummary -> String
showsPrec :: Int -> ResourceSharePermissionSummary -> ShowS
$cshowsPrec :: Int -> ResourceSharePermissionSummary -> ShowS
Prelude.Show, (forall x.
ResourceSharePermissionSummary
-> Rep ResourceSharePermissionSummary x)
-> (forall x.
Rep ResourceSharePermissionSummary x
-> ResourceSharePermissionSummary)
-> Generic ResourceSharePermissionSummary
forall x.
Rep ResourceSharePermissionSummary x
-> ResourceSharePermissionSummary
forall x.
ResourceSharePermissionSummary
-> Rep ResourceSharePermissionSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ResourceSharePermissionSummary x
-> ResourceSharePermissionSummary
$cfrom :: forall x.
ResourceSharePermissionSummary
-> Rep ResourceSharePermissionSummary x
Prelude.Generic)
newResourceSharePermissionSummary ::
ResourceSharePermissionSummary
newResourceSharePermissionSummary :: ResourceSharePermissionSummary
newResourceSharePermissionSummary =
ResourceSharePermissionSummary' :: Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> ResourceSharePermissionSummary
ResourceSharePermissionSummary'
{ $sel:creationTime:ResourceSharePermissionSummary' :: Maybe POSIX
creationTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:status:ResourceSharePermissionSummary' :: Maybe Text
status = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:resourceType:ResourceSharePermissionSummary' :: Maybe Text
resourceType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedTime:ResourceSharePermissionSummary' :: Maybe POSIX
lastUpdatedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:arn:ResourceSharePermissionSummary' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:defaultVersion:ResourceSharePermissionSummary' :: Maybe Bool
defaultVersion = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:name:ResourceSharePermissionSummary' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:version:ResourceSharePermissionSummary' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:isResourceTypeDefault:ResourceSharePermissionSummary' :: Maybe Bool
isResourceTypeDefault = Maybe Bool
forall a. Maybe a
Prelude.Nothing
}
resourceSharePermissionSummary_creationTime :: Lens.Lens' ResourceSharePermissionSummary (Prelude.Maybe Prelude.UTCTime)
resourceSharePermissionSummary_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ResourceSharePermissionSummary
-> f ResourceSharePermissionSummary
resourceSharePermissionSummary_creationTime = (ResourceSharePermissionSummary -> Maybe POSIX)
-> (ResourceSharePermissionSummary
-> Maybe POSIX -> ResourceSharePermissionSummary)
-> Lens
ResourceSharePermissionSummary
ResourceSharePermissionSummary
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSharePermissionSummary' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:ResourceSharePermissionSummary' :: ResourceSharePermissionSummary -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: ResourceSharePermissionSummary
s@ResourceSharePermissionSummary' {} Maybe POSIX
a -> ResourceSharePermissionSummary
s {$sel:creationTime:ResourceSharePermissionSummary' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: ResourceSharePermissionSummary) ((Maybe POSIX -> f (Maybe POSIX))
-> ResourceSharePermissionSummary
-> f ResourceSharePermissionSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ResourceSharePermissionSummary
-> f ResourceSharePermissionSummary
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
resourceSharePermissionSummary_status :: Lens.Lens' ResourceSharePermissionSummary (Prelude.Maybe Prelude.Text)
resourceSharePermissionSummary_status :: (Maybe Text -> f (Maybe Text))
-> ResourceSharePermissionSummary
-> f ResourceSharePermissionSummary
resourceSharePermissionSummary_status = (ResourceSharePermissionSummary -> Maybe Text)
-> (ResourceSharePermissionSummary
-> Maybe Text -> ResourceSharePermissionSummary)
-> Lens
ResourceSharePermissionSummary
ResourceSharePermissionSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSharePermissionSummary' {Maybe Text
status :: Maybe Text
$sel:status:ResourceSharePermissionSummary' :: ResourceSharePermissionSummary -> Maybe Text
status} -> Maybe Text
status) (\s :: ResourceSharePermissionSummary
s@ResourceSharePermissionSummary' {} Maybe Text
a -> ResourceSharePermissionSummary
s {$sel:status:ResourceSharePermissionSummary' :: Maybe Text
status = Maybe Text
a} :: ResourceSharePermissionSummary)
resourceSharePermissionSummary_resourceType :: Lens.Lens' ResourceSharePermissionSummary (Prelude.Maybe Prelude.Text)
resourceSharePermissionSummary_resourceType :: (Maybe Text -> f (Maybe Text))
-> ResourceSharePermissionSummary
-> f ResourceSharePermissionSummary
resourceSharePermissionSummary_resourceType = (ResourceSharePermissionSummary -> Maybe Text)
-> (ResourceSharePermissionSummary
-> Maybe Text -> ResourceSharePermissionSummary)
-> Lens
ResourceSharePermissionSummary
ResourceSharePermissionSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSharePermissionSummary' {Maybe Text
resourceType :: Maybe Text
$sel:resourceType:ResourceSharePermissionSummary' :: ResourceSharePermissionSummary -> Maybe Text
resourceType} -> Maybe Text
resourceType) (\s :: ResourceSharePermissionSummary
s@ResourceSharePermissionSummary' {} Maybe Text
a -> ResourceSharePermissionSummary
s {$sel:resourceType:ResourceSharePermissionSummary' :: Maybe Text
resourceType = Maybe Text
a} :: ResourceSharePermissionSummary)
resourceSharePermissionSummary_lastUpdatedTime :: Lens.Lens' ResourceSharePermissionSummary (Prelude.Maybe Prelude.UTCTime)
resourceSharePermissionSummary_lastUpdatedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ResourceSharePermissionSummary
-> f ResourceSharePermissionSummary
resourceSharePermissionSummary_lastUpdatedTime = (ResourceSharePermissionSummary -> Maybe POSIX)
-> (ResourceSharePermissionSummary
-> Maybe POSIX -> ResourceSharePermissionSummary)
-> Lens
ResourceSharePermissionSummary
ResourceSharePermissionSummary
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSharePermissionSummary' {Maybe POSIX
lastUpdatedTime :: Maybe POSIX
$sel:lastUpdatedTime:ResourceSharePermissionSummary' :: ResourceSharePermissionSummary -> Maybe POSIX
lastUpdatedTime} -> Maybe POSIX
lastUpdatedTime) (\s :: ResourceSharePermissionSummary
s@ResourceSharePermissionSummary' {} Maybe POSIX
a -> ResourceSharePermissionSummary
s {$sel:lastUpdatedTime:ResourceSharePermissionSummary' :: Maybe POSIX
lastUpdatedTime = Maybe POSIX
a} :: ResourceSharePermissionSummary) ((Maybe POSIX -> f (Maybe POSIX))
-> ResourceSharePermissionSummary
-> f ResourceSharePermissionSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ResourceSharePermissionSummary
-> f ResourceSharePermissionSummary
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
resourceSharePermissionSummary_arn :: Lens.Lens' ResourceSharePermissionSummary (Prelude.Maybe Prelude.Text)
resourceSharePermissionSummary_arn :: (Maybe Text -> f (Maybe Text))
-> ResourceSharePermissionSummary
-> f ResourceSharePermissionSummary
resourceSharePermissionSummary_arn = (ResourceSharePermissionSummary -> Maybe Text)
-> (ResourceSharePermissionSummary
-> Maybe Text -> ResourceSharePermissionSummary)
-> Lens
ResourceSharePermissionSummary
ResourceSharePermissionSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSharePermissionSummary' {Maybe Text
arn :: Maybe Text
$sel:arn:ResourceSharePermissionSummary' :: ResourceSharePermissionSummary -> Maybe Text
arn} -> Maybe Text
arn) (\s :: ResourceSharePermissionSummary
s@ResourceSharePermissionSummary' {} Maybe Text
a -> ResourceSharePermissionSummary
s {$sel:arn:ResourceSharePermissionSummary' :: Maybe Text
arn = Maybe Text
a} :: ResourceSharePermissionSummary)
resourceSharePermissionSummary_defaultVersion :: Lens.Lens' ResourceSharePermissionSummary (Prelude.Maybe Prelude.Bool)
resourceSharePermissionSummary_defaultVersion :: (Maybe Bool -> f (Maybe Bool))
-> ResourceSharePermissionSummary
-> f ResourceSharePermissionSummary
resourceSharePermissionSummary_defaultVersion = (ResourceSharePermissionSummary -> Maybe Bool)
-> (ResourceSharePermissionSummary
-> Maybe Bool -> ResourceSharePermissionSummary)
-> Lens
ResourceSharePermissionSummary
ResourceSharePermissionSummary
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSharePermissionSummary' {Maybe Bool
defaultVersion :: Maybe Bool
$sel:defaultVersion:ResourceSharePermissionSummary' :: ResourceSharePermissionSummary -> Maybe Bool
defaultVersion} -> Maybe Bool
defaultVersion) (\s :: ResourceSharePermissionSummary
s@ResourceSharePermissionSummary' {} Maybe Bool
a -> ResourceSharePermissionSummary
s {$sel:defaultVersion:ResourceSharePermissionSummary' :: Maybe Bool
defaultVersion = Maybe Bool
a} :: ResourceSharePermissionSummary)
resourceSharePermissionSummary_name :: Lens.Lens' ResourceSharePermissionSummary (Prelude.Maybe Prelude.Text)
resourceSharePermissionSummary_name :: (Maybe Text -> f (Maybe Text))
-> ResourceSharePermissionSummary
-> f ResourceSharePermissionSummary
resourceSharePermissionSummary_name = (ResourceSharePermissionSummary -> Maybe Text)
-> (ResourceSharePermissionSummary
-> Maybe Text -> ResourceSharePermissionSummary)
-> Lens
ResourceSharePermissionSummary
ResourceSharePermissionSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSharePermissionSummary' {Maybe Text
name :: Maybe Text
$sel:name:ResourceSharePermissionSummary' :: ResourceSharePermissionSummary -> Maybe Text
name} -> Maybe Text
name) (\s :: ResourceSharePermissionSummary
s@ResourceSharePermissionSummary' {} Maybe Text
a -> ResourceSharePermissionSummary
s {$sel:name:ResourceSharePermissionSummary' :: Maybe Text
name = Maybe Text
a} :: ResourceSharePermissionSummary)
resourceSharePermissionSummary_version :: Lens.Lens' ResourceSharePermissionSummary (Prelude.Maybe Prelude.Text)
resourceSharePermissionSummary_version :: (Maybe Text -> f (Maybe Text))
-> ResourceSharePermissionSummary
-> f ResourceSharePermissionSummary
resourceSharePermissionSummary_version = (ResourceSharePermissionSummary -> Maybe Text)
-> (ResourceSharePermissionSummary
-> Maybe Text -> ResourceSharePermissionSummary)
-> Lens
ResourceSharePermissionSummary
ResourceSharePermissionSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSharePermissionSummary' {Maybe Text
version :: Maybe Text
$sel:version:ResourceSharePermissionSummary' :: ResourceSharePermissionSummary -> Maybe Text
version} -> Maybe Text
version) (\s :: ResourceSharePermissionSummary
s@ResourceSharePermissionSummary' {} Maybe Text
a -> ResourceSharePermissionSummary
s {$sel:version:ResourceSharePermissionSummary' :: Maybe Text
version = Maybe Text
a} :: ResourceSharePermissionSummary)
resourceSharePermissionSummary_isResourceTypeDefault :: Lens.Lens' ResourceSharePermissionSummary (Prelude.Maybe Prelude.Bool)
resourceSharePermissionSummary_isResourceTypeDefault :: (Maybe Bool -> f (Maybe Bool))
-> ResourceSharePermissionSummary
-> f ResourceSharePermissionSummary
resourceSharePermissionSummary_isResourceTypeDefault = (ResourceSharePermissionSummary -> Maybe Bool)
-> (ResourceSharePermissionSummary
-> Maybe Bool -> ResourceSharePermissionSummary)
-> Lens
ResourceSharePermissionSummary
ResourceSharePermissionSummary
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSharePermissionSummary' {Maybe Bool
isResourceTypeDefault :: Maybe Bool
$sel:isResourceTypeDefault:ResourceSharePermissionSummary' :: ResourceSharePermissionSummary -> Maybe Bool
isResourceTypeDefault} -> Maybe Bool
isResourceTypeDefault) (\s :: ResourceSharePermissionSummary
s@ResourceSharePermissionSummary' {} Maybe Bool
a -> ResourceSharePermissionSummary
s {$sel:isResourceTypeDefault:ResourceSharePermissionSummary' :: Maybe Bool
isResourceTypeDefault = Maybe Bool
a} :: ResourceSharePermissionSummary)
instance Core.FromJSON ResourceSharePermissionSummary where
parseJSON :: Value -> Parser ResourceSharePermissionSummary
parseJSON =
String
-> (Object -> Parser ResourceSharePermissionSummary)
-> Value
-> Parser ResourceSharePermissionSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ResourceSharePermissionSummary"
( \Object
x ->
Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> ResourceSharePermissionSummary
ResourceSharePermissionSummary'
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> ResourceSharePermissionSummary)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> ResourceSharePermissionSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"creationTime")
Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> ResourceSharePermissionSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> ResourceSharePermissionSummary)
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
"status")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> ResourceSharePermissionSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> ResourceSharePermissionSummary)
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
"resourceType")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> ResourceSharePermissionSummary)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> ResourceSharePermissionSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lastUpdatedTime")
Parser
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> ResourceSharePermissionSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> ResourceSharePermissionSummary)
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
"arn")
Parser
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> ResourceSharePermissionSummary)
-> Parser (Maybe Bool)
-> Parser
(Maybe Text
-> Maybe Text -> Maybe Bool -> ResourceSharePermissionSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"defaultVersion")
Parser
(Maybe Text
-> Maybe Text -> Maybe Bool -> ResourceSharePermissionSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text -> Maybe Bool -> ResourceSharePermissionSummary)
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 Bool -> ResourceSharePermissionSummary)
-> Parser (Maybe Text)
-> Parser (Maybe Bool -> ResourceSharePermissionSummary)
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
"version")
Parser (Maybe Bool -> ResourceSharePermissionSummary)
-> Parser (Maybe Bool) -> Parser ResourceSharePermissionSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"isResourceTypeDefault")
)
instance
Prelude.Hashable
ResourceSharePermissionSummary
instance
Prelude.NFData
ResourceSharePermissionSummary