Skip to main content

@swamp/gcp/policysimulator

v2026.04.04.1

Google Cloud policysimulator infrastructure models

Labels

gcpgoogle-cloudpolicysimulatorcloudinfrastructure

Contents

Install

$ swamp extension pull @swamp/gcp/policysimulator

Release Notes

  • Updated: replays, replays_results, orgpolicyviolationspreviews

@swamp/gcp/policysimulator/orgpolicyviolationspreviewsv2026.04.04.1orgpolicyviolationspreviews.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
overlay?objectThe proposed changes to OrgPolicy.
resourceCounts?objectA summary of the state of all resources scanned for compliance with the changed OrgPolicy.
orgPolicyViolationsPreviewId?stringOptional. An optional user-specified ID for the OrgPolicyViolationsPreview. If not provided, a random ID will be generated.
parent?stringThe parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456)
createCreate a orgPolicyViolationsPreviews
getGet a orgPolicyViolationsPreviews
ArgumentTypeDescription
identifierstringThe name of the orgPolicyViolationsPreviews
syncSync orgPolicyViolationsPreviews state from GCP

Resources

state(infinite)— OrgPolicyViolationsPreview is a resource providing a preview of the violation...
@swamp/gcp/policysimulator/orgpolicyviolationspreviews-orgpolicyviolationsv2026.04.03.3orgpolicyviolationspreviews_orgpolicyviolations.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
parent?stringThe parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456)
getGet a orgPolicyViolations
ArgumentTypeDescription
identifierstringThe name of the orgPolicyViolations
syncSync orgPolicyViolations state from GCP

Resources

state(infinite)— OrgPolicyViolation is a resource representing a single resource violating a s...
@swamp/gcp/policysimulator/replaysv2026.04.04.1replays.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
config?objectThe configuration used for a Replay.
resultsSummary?objectSummary statistics about the replayed log entries.
parent?stringThe parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456)
createCreate a replays
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after creation (default: true)
getGet a replays
ArgumentTypeDescription
identifierstringThe name of the replays
syncSync replays state from GCP

Resources

state(infinite)— A resource describing a `Replay`, or simulation.
@swamp/gcp/policysimulator/replays-resultsv2026.04.04.1replays_results.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
parent?stringThe parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456)
getGet a results
ArgumentTypeDescription
identifierstringThe name of the results
syncSync results state from GCP

Resources

state(infinite)— The result of replaying a single access tuple against a simulated state.