{-# 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.IAM.Types.ResourceSpecificResult
-- 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.IAM.Types.ResourceSpecificResult where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.IAM.Types.PermissionsBoundaryDecisionDetail
import Amazonka.IAM.Types.PolicyEvaluationDecisionType
import Amazonka.IAM.Types.Statement
import qualified Amazonka.Prelude as Prelude

-- | Contains the result of the simulation of a single API operation call on
-- a single resource.
--
-- This data type is used by a member of the EvaluationResult data type.
--
-- /See:/ 'newResourceSpecificResult' smart constructor.
data ResourceSpecificResult = ResourceSpecificResult'
  { -- | Additional details about the results of the evaluation decision on a
    -- single resource. This parameter is returned only for cross-account
    -- simulations. This parameter explains how each policy type contributes to
    -- the resource-specific evaluation decision.
    ResourceSpecificResult
-> Maybe (HashMap Text PolicyEvaluationDecisionType)
evalDecisionDetails :: Prelude.Maybe (Prelude.HashMap Prelude.Text PolicyEvaluationDecisionType),
    -- | A list of the statements in the input policies that determine the result
    -- for this part of the simulation. Remember that even if multiple
    -- statements allow the operation on the resource, if /any/ statement
    -- denies that operation, then the explicit deny overrides any allow. In
    -- addition, the deny statement is the only entry included in the result.
    ResourceSpecificResult -> Maybe [Statement]
matchedStatements :: Prelude.Maybe [Statement],
    -- | A list of context keys that are required by the included input policies
    -- but that were not provided by one of the input parameters. This list is
    -- used when a list of ARNs is included in the @ResourceArns@ parameter
    -- instead of \"*\". If you do not specify individual resources, by setting
    -- @ResourceArns@ to \"*\" or by not including the @ResourceArns@
    -- parameter, then any missing context values are instead included under
    -- the @EvaluationResults@ section. To discover the context keys used by a
    -- set of policies, you can call GetContextKeysForCustomPolicy or
    -- GetContextKeysForPrincipalPolicy.
    ResourceSpecificResult -> Maybe [Text]
missingContextValues :: Prelude.Maybe [Prelude.Text],
    -- | Contains information about the effect that a permissions boundary has on
    -- a policy simulation when that boundary is applied to an IAM entity.
    ResourceSpecificResult -> Maybe PermissionsBoundaryDecisionDetail
permissionsBoundaryDecisionDetail :: Prelude.Maybe PermissionsBoundaryDecisionDetail,
    -- | The name of the simulated resource, in Amazon Resource Name (ARN)
    -- format.
    ResourceSpecificResult -> Text
evalResourceName :: Prelude.Text,
    -- | The result of the simulation of the simulated API operation on the
    -- resource specified in @EvalResourceName@.
    ResourceSpecificResult -> PolicyEvaluationDecisionType
evalResourceDecision :: PolicyEvaluationDecisionType
  }
  deriving (ResourceSpecificResult -> ResourceSpecificResult -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResourceSpecificResult -> ResourceSpecificResult -> Bool
$c/= :: ResourceSpecificResult -> ResourceSpecificResult -> Bool
== :: ResourceSpecificResult -> ResourceSpecificResult -> Bool
$c== :: ResourceSpecificResult -> ResourceSpecificResult -> Bool
Prelude.Eq, ReadPrec [ResourceSpecificResult]
ReadPrec ResourceSpecificResult
Int -> ReadS ResourceSpecificResult
ReadS [ResourceSpecificResult]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ResourceSpecificResult]
$creadListPrec :: ReadPrec [ResourceSpecificResult]
readPrec :: ReadPrec ResourceSpecificResult
$creadPrec :: ReadPrec ResourceSpecificResult
readList :: ReadS [ResourceSpecificResult]
$creadList :: ReadS [ResourceSpecificResult]
readsPrec :: Int -> ReadS ResourceSpecificResult
$creadsPrec :: Int -> ReadS ResourceSpecificResult
Prelude.Read, Int -> ResourceSpecificResult -> ShowS
[ResourceSpecificResult] -> ShowS
ResourceSpecificResult -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResourceSpecificResult] -> ShowS
$cshowList :: [ResourceSpecificResult] -> ShowS
show :: ResourceSpecificResult -> String
$cshow :: ResourceSpecificResult -> String
showsPrec :: Int -> ResourceSpecificResult -> ShowS
$cshowsPrec :: Int -> ResourceSpecificResult -> ShowS
Prelude.Show, forall x. Rep ResourceSpecificResult x -> ResourceSpecificResult
forall x. ResourceSpecificResult -> Rep ResourceSpecificResult x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ResourceSpecificResult x -> ResourceSpecificResult
$cfrom :: forall x. ResourceSpecificResult -> Rep ResourceSpecificResult x
Prelude.Generic)

-- |
-- Create a value of 'ResourceSpecificResult' 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:
--
-- 'evalDecisionDetails', 'resourceSpecificResult_evalDecisionDetails' - Additional details about the results of the evaluation decision on a
-- single resource. This parameter is returned only for cross-account
-- simulations. This parameter explains how each policy type contributes to
-- the resource-specific evaluation decision.
--
-- 'matchedStatements', 'resourceSpecificResult_matchedStatements' - A list of the statements in the input policies that determine the result
-- for this part of the simulation. Remember that even if multiple
-- statements allow the operation on the resource, if /any/ statement
-- denies that operation, then the explicit deny overrides any allow. In
-- addition, the deny statement is the only entry included in the result.
--
-- 'missingContextValues', 'resourceSpecificResult_missingContextValues' - A list of context keys that are required by the included input policies
-- but that were not provided by one of the input parameters. This list is
-- used when a list of ARNs is included in the @ResourceArns@ parameter
-- instead of \"*\". If you do not specify individual resources, by setting
-- @ResourceArns@ to \"*\" or by not including the @ResourceArns@
-- parameter, then any missing context values are instead included under
-- the @EvaluationResults@ section. To discover the context keys used by a
-- set of policies, you can call GetContextKeysForCustomPolicy or
-- GetContextKeysForPrincipalPolicy.
--
-- 'permissionsBoundaryDecisionDetail', 'resourceSpecificResult_permissionsBoundaryDecisionDetail' - Contains information about the effect that a permissions boundary has on
-- a policy simulation when that boundary is applied to an IAM entity.
--
-- 'evalResourceName', 'resourceSpecificResult_evalResourceName' - The name of the simulated resource, in Amazon Resource Name (ARN)
-- format.
--
-- 'evalResourceDecision', 'resourceSpecificResult_evalResourceDecision' - The result of the simulation of the simulated API operation on the
-- resource specified in @EvalResourceName@.
newResourceSpecificResult ::
  -- | 'evalResourceName'
  Prelude.Text ->
  -- | 'evalResourceDecision'
  PolicyEvaluationDecisionType ->
  ResourceSpecificResult
newResourceSpecificResult :: Text -> PolicyEvaluationDecisionType -> ResourceSpecificResult
newResourceSpecificResult
  Text
pEvalResourceName_
  PolicyEvaluationDecisionType
pEvalResourceDecision_ =
    ResourceSpecificResult'
      { $sel:evalDecisionDetails:ResourceSpecificResult' :: Maybe (HashMap Text PolicyEvaluationDecisionType)
evalDecisionDetails =
          forall a. Maybe a
Prelude.Nothing,
        $sel:matchedStatements:ResourceSpecificResult' :: Maybe [Statement]
matchedStatements = forall a. Maybe a
Prelude.Nothing,
        $sel:missingContextValues:ResourceSpecificResult' :: Maybe [Text]
missingContextValues = forall a. Maybe a
Prelude.Nothing,
        $sel:permissionsBoundaryDecisionDetail:ResourceSpecificResult' :: Maybe PermissionsBoundaryDecisionDetail
permissionsBoundaryDecisionDetail = forall a. Maybe a
Prelude.Nothing,
        $sel:evalResourceName:ResourceSpecificResult' :: Text
evalResourceName = Text
pEvalResourceName_,
        $sel:evalResourceDecision:ResourceSpecificResult' :: PolicyEvaluationDecisionType
evalResourceDecision = PolicyEvaluationDecisionType
pEvalResourceDecision_
      }

-- | Additional details about the results of the evaluation decision on a
-- single resource. This parameter is returned only for cross-account
-- simulations. This parameter explains how each policy type contributes to
-- the resource-specific evaluation decision.
resourceSpecificResult_evalDecisionDetails :: Lens.Lens' ResourceSpecificResult (Prelude.Maybe (Prelude.HashMap Prelude.Text PolicyEvaluationDecisionType))
resourceSpecificResult_evalDecisionDetails :: Lens'
  ResourceSpecificResult
  (Maybe (HashMap Text PolicyEvaluationDecisionType))
resourceSpecificResult_evalDecisionDetails = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSpecificResult' {Maybe (HashMap Text PolicyEvaluationDecisionType)
evalDecisionDetails :: Maybe (HashMap Text PolicyEvaluationDecisionType)
$sel:evalDecisionDetails:ResourceSpecificResult' :: ResourceSpecificResult
-> Maybe (HashMap Text PolicyEvaluationDecisionType)
evalDecisionDetails} -> Maybe (HashMap Text PolicyEvaluationDecisionType)
evalDecisionDetails) (\s :: ResourceSpecificResult
s@ResourceSpecificResult' {} Maybe (HashMap Text PolicyEvaluationDecisionType)
a -> ResourceSpecificResult
s {$sel:evalDecisionDetails:ResourceSpecificResult' :: Maybe (HashMap Text PolicyEvaluationDecisionType)
evalDecisionDetails = Maybe (HashMap Text PolicyEvaluationDecisionType)
a} :: ResourceSpecificResult) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A list of the statements in the input policies that determine the result
-- for this part of the simulation. Remember that even if multiple
-- statements allow the operation on the resource, if /any/ statement
-- denies that operation, then the explicit deny overrides any allow. In
-- addition, the deny statement is the only entry included in the result.
resourceSpecificResult_matchedStatements :: Lens.Lens' ResourceSpecificResult (Prelude.Maybe [Statement])
resourceSpecificResult_matchedStatements :: Lens' ResourceSpecificResult (Maybe [Statement])
resourceSpecificResult_matchedStatements = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSpecificResult' {Maybe [Statement]
matchedStatements :: Maybe [Statement]
$sel:matchedStatements:ResourceSpecificResult' :: ResourceSpecificResult -> Maybe [Statement]
matchedStatements} -> Maybe [Statement]
matchedStatements) (\s :: ResourceSpecificResult
s@ResourceSpecificResult' {} Maybe [Statement]
a -> ResourceSpecificResult
s {$sel:matchedStatements:ResourceSpecificResult' :: Maybe [Statement]
matchedStatements = Maybe [Statement]
a} :: ResourceSpecificResult) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A list of context keys that are required by the included input policies
-- but that were not provided by one of the input parameters. This list is
-- used when a list of ARNs is included in the @ResourceArns@ parameter
-- instead of \"*\". If you do not specify individual resources, by setting
-- @ResourceArns@ to \"*\" or by not including the @ResourceArns@
-- parameter, then any missing context values are instead included under
-- the @EvaluationResults@ section. To discover the context keys used by a
-- set of policies, you can call GetContextKeysForCustomPolicy or
-- GetContextKeysForPrincipalPolicy.
resourceSpecificResult_missingContextValues :: Lens.Lens' ResourceSpecificResult (Prelude.Maybe [Prelude.Text])
resourceSpecificResult_missingContextValues :: Lens' ResourceSpecificResult (Maybe [Text])
resourceSpecificResult_missingContextValues = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSpecificResult' {Maybe [Text]
missingContextValues :: Maybe [Text]
$sel:missingContextValues:ResourceSpecificResult' :: ResourceSpecificResult -> Maybe [Text]
missingContextValues} -> Maybe [Text]
missingContextValues) (\s :: ResourceSpecificResult
s@ResourceSpecificResult' {} Maybe [Text]
a -> ResourceSpecificResult
s {$sel:missingContextValues:ResourceSpecificResult' :: Maybe [Text]
missingContextValues = Maybe [Text]
a} :: ResourceSpecificResult) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Contains information about the effect that a permissions boundary has on
-- a policy simulation when that boundary is applied to an IAM entity.
resourceSpecificResult_permissionsBoundaryDecisionDetail :: Lens.Lens' ResourceSpecificResult (Prelude.Maybe PermissionsBoundaryDecisionDetail)
resourceSpecificResult_permissionsBoundaryDecisionDetail :: Lens'
  ResourceSpecificResult (Maybe PermissionsBoundaryDecisionDetail)
resourceSpecificResult_permissionsBoundaryDecisionDetail = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSpecificResult' {Maybe PermissionsBoundaryDecisionDetail
permissionsBoundaryDecisionDetail :: Maybe PermissionsBoundaryDecisionDetail
$sel:permissionsBoundaryDecisionDetail:ResourceSpecificResult' :: ResourceSpecificResult -> Maybe PermissionsBoundaryDecisionDetail
permissionsBoundaryDecisionDetail} -> Maybe PermissionsBoundaryDecisionDetail
permissionsBoundaryDecisionDetail) (\s :: ResourceSpecificResult
s@ResourceSpecificResult' {} Maybe PermissionsBoundaryDecisionDetail
a -> ResourceSpecificResult
s {$sel:permissionsBoundaryDecisionDetail:ResourceSpecificResult' :: Maybe PermissionsBoundaryDecisionDetail
permissionsBoundaryDecisionDetail = Maybe PermissionsBoundaryDecisionDetail
a} :: ResourceSpecificResult)

-- | The name of the simulated resource, in Amazon Resource Name (ARN)
-- format.
resourceSpecificResult_evalResourceName :: Lens.Lens' ResourceSpecificResult Prelude.Text
resourceSpecificResult_evalResourceName :: Lens' ResourceSpecificResult Text
resourceSpecificResult_evalResourceName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSpecificResult' {Text
evalResourceName :: Text
$sel:evalResourceName:ResourceSpecificResult' :: ResourceSpecificResult -> Text
evalResourceName} -> Text
evalResourceName) (\s :: ResourceSpecificResult
s@ResourceSpecificResult' {} Text
a -> ResourceSpecificResult
s {$sel:evalResourceName:ResourceSpecificResult' :: Text
evalResourceName = Text
a} :: ResourceSpecificResult)

-- | The result of the simulation of the simulated API operation on the
-- resource specified in @EvalResourceName@.
resourceSpecificResult_evalResourceDecision :: Lens.Lens' ResourceSpecificResult PolicyEvaluationDecisionType
resourceSpecificResult_evalResourceDecision :: Lens' ResourceSpecificResult PolicyEvaluationDecisionType
resourceSpecificResult_evalResourceDecision = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceSpecificResult' {PolicyEvaluationDecisionType
evalResourceDecision :: PolicyEvaluationDecisionType
$sel:evalResourceDecision:ResourceSpecificResult' :: ResourceSpecificResult -> PolicyEvaluationDecisionType
evalResourceDecision} -> PolicyEvaluationDecisionType
evalResourceDecision) (\s :: ResourceSpecificResult
s@ResourceSpecificResult' {} PolicyEvaluationDecisionType
a -> ResourceSpecificResult
s {$sel:evalResourceDecision:ResourceSpecificResult' :: PolicyEvaluationDecisionType
evalResourceDecision = PolicyEvaluationDecisionType
a} :: ResourceSpecificResult)

instance Data.FromXML ResourceSpecificResult where
  parseXML :: [Node] -> Either String ResourceSpecificResult
parseXML [Node]
x =
    Maybe (HashMap Text PolicyEvaluationDecisionType)
-> Maybe [Statement]
-> Maybe [Text]
-> Maybe PermissionsBoundaryDecisionDetail
-> Text
-> PolicyEvaluationDecisionType
-> ResourceSpecificResult
ResourceSpecificResult'
      forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x
                      forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"EvalDecisionDetails"
                      forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                      forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall k v.
(Eq k, Hashable k, FromText k, FromXML v) =>
Text -> Text -> Text -> [Node] -> Either String (HashMap k v)
Data.parseXMLMap Text
"entry" Text
"key" Text
"value")
                  )
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x
                      forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"MatchedStatements"
                      forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                      forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"member")
                  )
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x
                      forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"MissingContextValues"
                      forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                      forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"member")
                  )
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"PermissionsBoundaryDecisionDetail")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String a
Data..@ Text
"EvalResourceName")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String a
Data..@ Text
"EvalResourceDecision")

instance Prelude.Hashable ResourceSpecificResult where
  hashWithSalt :: Int -> ResourceSpecificResult -> Int
hashWithSalt Int
_salt ResourceSpecificResult' {Maybe [Text]
Maybe [Statement]
Maybe (HashMap Text PolicyEvaluationDecisionType)
Maybe PermissionsBoundaryDecisionDetail
Text
PolicyEvaluationDecisionType
evalResourceDecision :: PolicyEvaluationDecisionType
evalResourceName :: Text
permissionsBoundaryDecisionDetail :: Maybe PermissionsBoundaryDecisionDetail
missingContextValues :: Maybe [Text]
matchedStatements :: Maybe [Statement]
evalDecisionDetails :: Maybe (HashMap Text PolicyEvaluationDecisionType)
$sel:evalResourceDecision:ResourceSpecificResult' :: ResourceSpecificResult -> PolicyEvaluationDecisionType
$sel:evalResourceName:ResourceSpecificResult' :: ResourceSpecificResult -> Text
$sel:permissionsBoundaryDecisionDetail:ResourceSpecificResult' :: ResourceSpecificResult -> Maybe PermissionsBoundaryDecisionDetail
$sel:missingContextValues:ResourceSpecificResult' :: ResourceSpecificResult -> Maybe [Text]
$sel:matchedStatements:ResourceSpecificResult' :: ResourceSpecificResult -> Maybe [Statement]
$sel:evalDecisionDetails:ResourceSpecificResult' :: ResourceSpecificResult
-> Maybe (HashMap Text PolicyEvaluationDecisionType)
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text PolicyEvaluationDecisionType)
evalDecisionDetails
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Statement]
matchedStatements
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
missingContextValues
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe PermissionsBoundaryDecisionDetail
permissionsBoundaryDecisionDetail
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
evalResourceName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` PolicyEvaluationDecisionType
evalResourceDecision

instance Prelude.NFData ResourceSpecificResult where
  rnf :: ResourceSpecificResult -> ()
rnf ResourceSpecificResult' {Maybe [Text]
Maybe [Statement]
Maybe (HashMap Text PolicyEvaluationDecisionType)
Maybe PermissionsBoundaryDecisionDetail
Text
PolicyEvaluationDecisionType
evalResourceDecision :: PolicyEvaluationDecisionType
evalResourceName :: Text
permissionsBoundaryDecisionDetail :: Maybe PermissionsBoundaryDecisionDetail
missingContextValues :: Maybe [Text]
matchedStatements :: Maybe [Statement]
evalDecisionDetails :: Maybe (HashMap Text PolicyEvaluationDecisionType)
$sel:evalResourceDecision:ResourceSpecificResult' :: ResourceSpecificResult -> PolicyEvaluationDecisionType
$sel:evalResourceName:ResourceSpecificResult' :: ResourceSpecificResult -> Text
$sel:permissionsBoundaryDecisionDetail:ResourceSpecificResult' :: ResourceSpecificResult -> Maybe PermissionsBoundaryDecisionDetail
$sel:missingContextValues:ResourceSpecificResult' :: ResourceSpecificResult -> Maybe [Text]
$sel:matchedStatements:ResourceSpecificResult' :: ResourceSpecificResult -> Maybe [Statement]
$sel:evalDecisionDetails:ResourceSpecificResult' :: ResourceSpecificResult
-> Maybe (HashMap Text PolicyEvaluationDecisionType)
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text PolicyEvaluationDecisionType)
evalDecisionDetails
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Statement]
matchedStatements
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
missingContextValues
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe PermissionsBoundaryDecisionDetail
permissionsBoundaryDecisionDetail
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
evalResourceName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf PolicyEvaluationDecisionType
evalResourceDecision