{-# 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.RAM.Types.ResourceSharePermissionDetail
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.RAM.Types.ResourceSharePermissionDetail where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Information about an RAM permission.
--
-- /See:/ 'newResourceSharePermissionDetail' smart constructor.
data ResourceSharePermissionDetail = ResourceSharePermissionDetail'
  { -- | The
    -- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
    -- of this RAM permission.
    ResourceSharePermissionDetail -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The date and time when the permission was created.
    ResourceSharePermissionDetail -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
    -- | Specifies whether the version of the permission represented in this
    -- structure is the default version for this permission.
    ResourceSharePermissionDetail -> Maybe Bool
defaultVersion :: Prelude.Maybe Prelude.Bool,
    -- | Specifies whether the version of the permission represented in this
    -- structure is the default version for all resources of this resource
    -- type.
    ResourceSharePermissionDetail -> Maybe Bool
isResourceTypeDefault :: Prelude.Maybe Prelude.Bool,
    -- | The date and time when the permission was last updated.
    ResourceSharePermissionDetail -> Maybe POSIX
lastUpdatedTime :: Prelude.Maybe Data.POSIX,
    -- | The name of this permission.
    ResourceSharePermissionDetail -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The permission\'s effect and actions in JSON format. The @effect@
    -- indicates whether the specified actions are allowed or denied. The
    -- @actions@ list the operations to which the principal is granted or
    -- denied access.
    ResourceSharePermissionDetail -> Maybe Text
permission :: Prelude.Maybe Prelude.Text,
    -- | The resource type to which this permission applies.
    ResourceSharePermissionDetail -> Maybe Text
resourceType :: Prelude.Maybe Prelude.Text,
    -- | The version of the permission represented in this structure.
    ResourceSharePermissionDetail -> Maybe Text
version :: Prelude.Maybe Prelude.Text
  }
  deriving (ResourceSharePermissionDetail
-> ResourceSharePermissionDetail -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResourceSharePermissionDetail
-> ResourceSharePermissionDetail -> Bool
$c/= :: ResourceSharePermissionDetail
-> ResourceSharePermissionDetail -> Bool
== :: ResourceSharePermissionDetail
-> ResourceSharePermissionDetail -> Bool
$c== :: ResourceSharePermissionDetail
-> ResourceSharePermissionDetail -> Bool
Prelude.Eq, ReadPrec [ResourceSharePermissionDetail]
ReadPrec ResourceSharePermissionDetail
Int -> ReadS ResourceSharePermissionDetail
ReadS [ResourceSharePermissionDetail]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ResourceSharePermissionDetail]
$creadListPrec :: ReadPrec [ResourceSharePermissionDetail]
readPrec :: ReadPrec ResourceSharePermissionDetail
$creadPrec :: ReadPrec ResourceSharePermissionDetail
readList :: ReadS [ResourceSharePermissionDetail]
$creadList :: ReadS [ResourceSharePermissionDetail]
readsPrec :: Int -> ReadS ResourceSharePermissionDetail
$creadsPrec :: Int -> ReadS ResourceSharePermissionDetail
Prelude.Read, Int -> ResourceSharePermissionDetail -> ShowS
[ResourceSharePermissionDetail] -> ShowS
ResourceSharePermissionDetail -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResourceSharePermissionDetail] -> ShowS
$cshowList :: [ResourceSharePermissionDetail] -> ShowS
show :: ResourceSharePermissionDetail -> String
$cshow :: ResourceSharePermissionDetail -> String
showsPrec :: Int -> ResourceSharePermissionDetail -> ShowS
$cshowsPrec :: Int -> ResourceSharePermissionDetail -> ShowS
Prelude.Show, forall x.
Rep ResourceSharePermissionDetail x
-> ResourceSharePermissionDetail
forall x.
ResourceSharePermissionDetail
-> Rep ResourceSharePermissionDetail x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ResourceSharePermissionDetail x
-> ResourceSharePermissionDetail
$cfrom :: forall x.
ResourceSharePermissionDetail
-> Rep ResourceSharePermissionDetail x
Prelude.Generic)

-- |
-- Create a value of 'ResourceSharePermissionDetail' 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:
--
-- 'arn', 'resourceSharePermissionDetail_arn' - The
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
-- of this RAM permission.
--
-- 'creationTime', 'resourceSharePermissionDetail_creationTime' - The date and time when the permission was created.
--
-- 'defaultVersion', 'resourceSharePermissionDetail_defaultVersion' - Specifies whether the version of the permission represented in this
-- structure is the default version for this permission.
--
-- 'isResourceTypeDefault', 'resourceSharePermissionDetail_isResourceTypeDefault' - Specifies whether the version of the permission represented in this
-- structure is the default version for all resources of this resource
-- type.
--
-- 'lastUpdatedTime', 'resourceSharePermissionDetail_lastUpdatedTime' - The date and time when the permission was last updated.
--
-- 'name', 'resourceSharePermissionDetail_name' - The name of this permission.
--
-- 'permission', 'resourceSharePermissionDetail_permission' - The permission\'s effect and actions in JSON format. The @effect@
-- indicates whether the specified actions are allowed or denied. The
-- @actions@ list the operations to which the principal is granted or
-- denied access.
--
-- 'resourceType', 'resourceSharePermissionDetail_resourceType' - The resource type to which this permission applies.
--
-- 'version', 'resourceSharePermissionDetail_version' - The version of the permission represented in this structure.
newResourceSharePermissionDetail ::
  ResourceSharePermissionDetail
newResourceSharePermissionDetail :: ResourceSharePermissionDetail
newResourceSharePermissionDetail =
  ResourceSharePermissionDetail'
    { $sel:arn:ResourceSharePermissionDetail' :: Maybe Text
arn =
        forall a. Maybe a
Prelude.Nothing,
      $sel:creationTime:ResourceSharePermissionDetail' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:defaultVersion:ResourceSharePermissionDetail' :: Maybe Bool
defaultVersion = forall a. Maybe a
Prelude.Nothing,
      $sel:isResourceTypeDefault:ResourceSharePermissionDetail' :: Maybe Bool
isResourceTypeDefault = forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedTime:ResourceSharePermissionDetail' :: Maybe POSIX
lastUpdatedTime = forall a. Maybe a
Prelude.Nothing,
      $sel:name:ResourceSharePermissionDetail' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:permission:ResourceSharePermissionDetail' :: Maybe Text
permission = forall a. Maybe a
Prelude.Nothing,
      $sel:resourceType:ResourceSharePermissionDetail' :: Maybe Text
resourceType = forall a. Maybe a
Prelude.Nothing,
      $sel:version:ResourceSharePermissionDetail' :: Maybe Text
version = forall a. Maybe a
Prelude.Nothing
    }

-- | The
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resoure Name (ARN)>
-- of this RAM permission.
resourceSharePermissionDetail_arn :: Lens.Lens' ResourceSharePermissionDetail (Prelude.Maybe Prelude.Text)
resourceSharePermissionDetail_arn :: Lens' ResourceSharePermissionDetail (Maybe Text)
resourceSharePermissionDetail_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSharePermissionDetail' {Maybe Text
arn :: Maybe Text
$sel:arn:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Text
arn} -> Maybe Text
arn) (\s :: ResourceSharePermissionDetail
s@ResourceSharePermissionDetail' {} Maybe Text
a -> ResourceSharePermissionDetail
s {$sel:arn:ResourceSharePermissionDetail' :: Maybe Text
arn = Maybe Text
a} :: ResourceSharePermissionDetail)

-- | The date and time when the permission was created.
resourceSharePermissionDetail_creationTime :: Lens.Lens' ResourceSharePermissionDetail (Prelude.Maybe Prelude.UTCTime)
resourceSharePermissionDetail_creationTime :: Lens' ResourceSharePermissionDetail (Maybe UTCTime)
resourceSharePermissionDetail_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSharePermissionDetail' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: ResourceSharePermissionDetail
s@ResourceSharePermissionDetail' {} Maybe POSIX
a -> ResourceSharePermissionDetail
s {$sel:creationTime:ResourceSharePermissionDetail' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: ResourceSharePermissionDetail) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | Specifies whether the version of the permission represented in this
-- structure is the default version for this permission.
resourceSharePermissionDetail_defaultVersion :: Lens.Lens' ResourceSharePermissionDetail (Prelude.Maybe Prelude.Bool)
resourceSharePermissionDetail_defaultVersion :: Lens' ResourceSharePermissionDetail (Maybe Bool)
resourceSharePermissionDetail_defaultVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSharePermissionDetail' {Maybe Bool
defaultVersion :: Maybe Bool
$sel:defaultVersion:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Bool
defaultVersion} -> Maybe Bool
defaultVersion) (\s :: ResourceSharePermissionDetail
s@ResourceSharePermissionDetail' {} Maybe Bool
a -> ResourceSharePermissionDetail
s {$sel:defaultVersion:ResourceSharePermissionDetail' :: Maybe Bool
defaultVersion = Maybe Bool
a} :: ResourceSharePermissionDetail)

-- | Specifies whether the version of the permission represented in this
-- structure is the default version for all resources of this resource
-- type.
resourceSharePermissionDetail_isResourceTypeDefault :: Lens.Lens' ResourceSharePermissionDetail (Prelude.Maybe Prelude.Bool)
resourceSharePermissionDetail_isResourceTypeDefault :: Lens' ResourceSharePermissionDetail (Maybe Bool)
resourceSharePermissionDetail_isResourceTypeDefault = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSharePermissionDetail' {Maybe Bool
isResourceTypeDefault :: Maybe Bool
$sel:isResourceTypeDefault:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Bool
isResourceTypeDefault} -> Maybe Bool
isResourceTypeDefault) (\s :: ResourceSharePermissionDetail
s@ResourceSharePermissionDetail' {} Maybe Bool
a -> ResourceSharePermissionDetail
s {$sel:isResourceTypeDefault:ResourceSharePermissionDetail' :: Maybe Bool
isResourceTypeDefault = Maybe Bool
a} :: ResourceSharePermissionDetail)

-- | The date and time when the permission was last updated.
resourceSharePermissionDetail_lastUpdatedTime :: Lens.Lens' ResourceSharePermissionDetail (Prelude.Maybe Prelude.UTCTime)
resourceSharePermissionDetail_lastUpdatedTime :: Lens' ResourceSharePermissionDetail (Maybe UTCTime)
resourceSharePermissionDetail_lastUpdatedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSharePermissionDetail' {Maybe POSIX
lastUpdatedTime :: Maybe POSIX
$sel:lastUpdatedTime:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe POSIX
lastUpdatedTime} -> Maybe POSIX
lastUpdatedTime) (\s :: ResourceSharePermissionDetail
s@ResourceSharePermissionDetail' {} Maybe POSIX
a -> ResourceSharePermissionDetail
s {$sel:lastUpdatedTime:ResourceSharePermissionDetail' :: Maybe POSIX
lastUpdatedTime = Maybe POSIX
a} :: ResourceSharePermissionDetail) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The name of this permission.
resourceSharePermissionDetail_name :: Lens.Lens' ResourceSharePermissionDetail (Prelude.Maybe Prelude.Text)
resourceSharePermissionDetail_name :: Lens' ResourceSharePermissionDetail (Maybe Text)
resourceSharePermissionDetail_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSharePermissionDetail' {Maybe Text
name :: Maybe Text
$sel:name:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Text
name} -> Maybe Text
name) (\s :: ResourceSharePermissionDetail
s@ResourceSharePermissionDetail' {} Maybe Text
a -> ResourceSharePermissionDetail
s {$sel:name:ResourceSharePermissionDetail' :: Maybe Text
name = Maybe Text
a} :: ResourceSharePermissionDetail)

-- | The permission\'s effect and actions in JSON format. The @effect@
-- indicates whether the specified actions are allowed or denied. The
-- @actions@ list the operations to which the principal is granted or
-- denied access.
resourceSharePermissionDetail_permission :: Lens.Lens' ResourceSharePermissionDetail (Prelude.Maybe Prelude.Text)
resourceSharePermissionDetail_permission :: Lens' ResourceSharePermissionDetail (Maybe Text)
resourceSharePermissionDetail_permission = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSharePermissionDetail' {Maybe Text
permission :: Maybe Text
$sel:permission:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Text
permission} -> Maybe Text
permission) (\s :: ResourceSharePermissionDetail
s@ResourceSharePermissionDetail' {} Maybe Text
a -> ResourceSharePermissionDetail
s {$sel:permission:ResourceSharePermissionDetail' :: Maybe Text
permission = Maybe Text
a} :: ResourceSharePermissionDetail)

-- | The resource type to which this permission applies.
resourceSharePermissionDetail_resourceType :: Lens.Lens' ResourceSharePermissionDetail (Prelude.Maybe Prelude.Text)
resourceSharePermissionDetail_resourceType :: Lens' ResourceSharePermissionDetail (Maybe Text)
resourceSharePermissionDetail_resourceType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSharePermissionDetail' {Maybe Text
resourceType :: Maybe Text
$sel:resourceType:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Text
resourceType} -> Maybe Text
resourceType) (\s :: ResourceSharePermissionDetail
s@ResourceSharePermissionDetail' {} Maybe Text
a -> ResourceSharePermissionDetail
s {$sel:resourceType:ResourceSharePermissionDetail' :: Maybe Text
resourceType = Maybe Text
a} :: ResourceSharePermissionDetail)

-- | The version of the permission represented in this structure.
resourceSharePermissionDetail_version :: Lens.Lens' ResourceSharePermissionDetail (Prelude.Maybe Prelude.Text)
resourceSharePermissionDetail_version :: Lens' ResourceSharePermissionDetail (Maybe Text)
resourceSharePermissionDetail_version = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSharePermissionDetail' {Maybe Text
version :: Maybe Text
$sel:version:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Text
version} -> Maybe Text
version) (\s :: ResourceSharePermissionDetail
s@ResourceSharePermissionDetail' {} Maybe Text
a -> ResourceSharePermissionDetail
s {$sel:version:ResourceSharePermissionDetail' :: Maybe Text
version = Maybe Text
a} :: ResourceSharePermissionDetail)

instance Data.FromJSON ResourceSharePermissionDetail where
  parseJSON :: Value -> Parser ResourceSharePermissionDetail
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ResourceSharePermissionDetail"
      ( \Object
x ->
          Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Bool
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ResourceSharePermissionDetail
ResourceSharePermissionDetail'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"arn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"creationTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"defaultVersion")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"isResourceTypeDefault")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"lastUpdatedTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"name")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"permission")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"resourceType")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"version")
      )

instance
  Prelude.Hashable
    ResourceSharePermissionDetail
  where
  hashWithSalt :: Int -> ResourceSharePermissionDetail -> Int
hashWithSalt Int
_salt ResourceSharePermissionDetail' {Maybe Bool
Maybe Text
Maybe POSIX
version :: Maybe Text
resourceType :: Maybe Text
permission :: Maybe Text
name :: Maybe Text
lastUpdatedTime :: Maybe POSIX
isResourceTypeDefault :: Maybe Bool
defaultVersion :: Maybe Bool
creationTime :: Maybe POSIX
arn :: Maybe Text
$sel:version:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Text
$sel:resourceType:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Text
$sel:permission:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Text
$sel:name:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Text
$sel:lastUpdatedTime:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe POSIX
$sel:isResourceTypeDefault:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Bool
$sel:defaultVersion:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Bool
$sel:creationTime:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe POSIX
$sel:arn:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
defaultVersion
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
isResourceTypeDefault
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastUpdatedTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
permission
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resourceType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
version

instance Prelude.NFData ResourceSharePermissionDetail where
  rnf :: ResourceSharePermissionDetail -> ()
rnf ResourceSharePermissionDetail' {Maybe Bool
Maybe Text
Maybe POSIX
version :: Maybe Text
resourceType :: Maybe Text
permission :: Maybe Text
name :: Maybe Text
lastUpdatedTime :: Maybe POSIX
isResourceTypeDefault :: Maybe Bool
defaultVersion :: Maybe Bool
creationTime :: Maybe POSIX
arn :: Maybe Text
$sel:version:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Text
$sel:resourceType:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Text
$sel:permission:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Text
$sel:name:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Text
$sel:lastUpdatedTime:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe POSIX
$sel:isResourceTypeDefault:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Bool
$sel:defaultVersion:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Bool
$sel:creationTime:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe POSIX
$sel:arn:ResourceSharePermissionDetail' :: ResourceSharePermissionDetail -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
defaultVersion
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
isResourceTypeDefault
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastUpdatedTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
permission
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resourceType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
version