Generated Go and Python programs can check resource existence
Introduced 2026-11-04 · score 0.93
HOW TO USE IT
When a generated Go or Python program needs to check a resource ID, call its generated `<Resource>Exists` function or static `exists` method. The check does not adopt the resource into the stack.
WHY THIS HELPS
Check whether a resource with a known ID exists without adopting it into the stack in a generated Go or Python program.
REQUIREMENTS AND LIMITATIONS
- Version: 3.274.0
- Prerequisite: Generated Go modules and Python packages require Pulumi 3.269.0 or later.
- Prerequisite: Generated Python packages require Pulumi 3.269.0 or later.
- The existence check does not adopt the resource into the stack.
FIRST-PARTY EVIDENCE
- https://github.com/pulumi/pulumi/releases/tag/v3.274.0
- https://github.com/pulumi/pulumi/pull/25326
- https://github.com/pulumi/pulumi/pull/25336
Check the installed version and the source before using it. Entry JSON