Class GetPrincipalPolicySimulationResult


  • public final class GetPrincipalPolicySimulationResult
    extends java.lang.Object
    • Method Detail

      • actionName

        public java.lang.String actionName()
        Returns:
        The name of the single IAM action used for this particular request.
      • allowed

        public java.lang.Boolean allowed()
        Returns:
        `true` if `decision` is "allowed", and `false` otherwise.
      • decision

        public java.lang.String decision()
        Returns:
        The raw decision determined from all of the policies in scope; either "allowed", "explicitDeny", or "implicitDeny".
      • decisionDetails

        public java.util.Map<java.lang.String,​java.lang.String> decisionDetails()
        Returns:
        A map of arbitrary metadata entries returned by the policy simulator for this request.
      • matchedStatements

        public java.util.List<GetPrincipalPolicySimulationResultMatchedStatement> matchedStatements()
        Returns:
        A nested set of objects describing which policies contained statements that were relevant to this simulation request. Each object has attributes `source_policy_id` and `source_policy_type` to identify one of the policies.
      • missingContextKeys

        public java.util.List<java.lang.String> missingContextKeys()
        Returns:
        A set of context keys (or condition keys) that were needed by some of the policies contributing to this result but not specified using a `context` block in the configuration. Missing or incorrect context keys will typically cause a simulated request to be disallowed.
      • resourceArn

        public java.lang.String resourceArn()
        Returns:
        ARN of the resource that was used for this particular request. When you specify multiple actions and multiple resource ARNs, that causes a separate policy request for each combination of unique action and resource.