← All types

IAMPolicyPreview

Simulated effect of a draft policy on a user's access. Reads no resource records and changes nothing.

Fields

How allows and denies combine across policies in this preview

Always true: the result is a simulation and changes no access

Whether conditional policy authoring is enabled for this tenant

Instant the policies were evaluated at

Network zones assumed for the request; null when unknown

Number of policies attached to the user

Decision for the user's currently attached policies

Decision for the draft document on its own

Decision for the attached policies with the draft added, or replacing replacingPolicyId

errors

[FieldError!]!Non-null

Validation errors in the preview input or draft document

Referenced by (1)
Exact type SDL
"""
Simulated effect of a draft policy on a user's access. Reads no resource records and changes nothing.
"""
type IAMPolicyPreview {
  """How allows and denies combine across policies in this preview"""
  explanation: String!
  """Always true: the result is a simulation and changes no access"""
  simulated: Boolean!
  """Whether conditional policy authoring is enabled for this tenant"""
  authoringEnabled: Boolean!
  """Instant the policies were evaluated at"""
  evaluatedAt: IAMPolicyInstant!
  """Network zones assumed for the request; null when unknown"""
  networkZones: [String!]
  """Number of policies attached to the user"""
  attachedPolicyCount: Int!
  """Decision for the user's currently attached policies"""
  existing: IAMPreviewDecision
  """Decision for the draft document on its own"""
  draft: IAMPreviewDecision
  """
  Decision for the attached policies with the draft added, or replacing replacingPolicyId
  """
  proposed: IAMPreviewDecision
  """Validation errors in the preview input or draft document"""
  errors: [FieldError!]!
}