{
  "slug": "generated-go-and-python-programs-can-check-resource-existence-3e4abdc5595e",
  "title": "Generated Go and Python programs can check resource existence",
  "tools": [
    "pulumi"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-11-04T12:04:08.000Z",
  "announced_at": "2026-11-04T12:04:08.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "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.",
    "gotchas": [
      "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."
    ]
  },
  "why_it_matters": "Check whether a resource with a known ID exists without adopting it into the stack in a generated Go or Python program.",
  "sources": [
    "https://github.com/pulumi/pulumi/releases/tag/v3.274.0",
    "https://github.com/pulumi/pulumi/pull/25326",
    "https://github.com/pulumi/pulumi/pull/25336"
  ],
  "rank": 0.93031,
  "review_state": "approved",
  "provenance": {
    "run_id": "daily-20261104-13",
    "verdict_id": "daily-20261104-13:daily-20261104-13-0e9c7e0cf571a3f0-10:gate",
    "evidence_hash": "2dc467742e6ac0a9687cb2d7cd0d82169d458e92d94476c1c90ec83f5f4dbe02"
  }
}
