google-cloud-policysimulator overview (0.2.0)

com.google.cloud.policysimulator.v1

A client to Policy Simulator API

The interfaces provided are listed below, along with usage samples.

SimulatorClient

Service Description: Policy Simulator API service.

Policy Simulator is a collection of endpoints for creating, running, and viewing aReplay. AReplay is a type of simulation that lets you see how your principals' access to resources might change if you changed your IAM policy.

During aReplay, 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.

Sample for SimulatorClient:

// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_librarytry(SimulatorClientsimulatorClient=SimulatorClient.create()){ReplayNamename=ReplayName.ofProjectLocationReplayName("[PROJECT]","[LOCATION]","[REPLAY]");Replayresponse=simulatorClient.getReplay(name);}

com.google.cloud.policysimulator.v1.stub

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-30 UTC.