Reference documentation and code samples for the Policy Simulator v1 API class Simulator.
Policy Simulator API service.
Policy Simulator is a collection of endpoints for creating, running, and
viewing a [Replay][google.cloud.policysimulator.v1.Replay]. A
[Replay][google.cloud.policysimulator.v1.Replay] is a type of simulation that
lets you see how your principals' access to resources might change if you
changed your IAM policy.
During a [Replay][google.cloud.policysimulator.v1.Replay], Policy Simulator
re-evaluates, or replays, past access attempts under both the current policy
and your proposed policy, and compares those results to determine how your
principals' access might change under the proposed policy.
public static void BindService(ServiceBinderBase serviceBinder, Simulator.SimulatorBase serviceImpl)
Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
Note: this method is part of an experimental API that can change or be removed without any prior notice.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe Policy Simulator v1 API class \u003ccode\u003eSimulator\u003c/code\u003e allows users to create, run, and view replays, which are simulations to assess potential changes in principal access due to IAM policy modifications.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSimulator\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.PolicySimulator.V1\u003c/code\u003e namespace and is included in the \u003ccode\u003eGoogle.Cloud.PolicySimulator.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBindService\u003c/code\u003e method, with its various parameters and return types, allows for the registration of service definitions and methods, both with and without implementations.\u003c/p\u003e\n"],["\u003cp\u003eThe Replay feature within the Simulator lets you compare the results between the current policy and a proposed one, allowing you to determine how principals' access may be altered under the proposed policy.\u003c/p\u003e\n"]]],[],null,[]]