Playbook
This page is auto-generated from the formations OpenAPI spec. Do not edit manually — run
pnpm generate-formations-resource-docsto regenerate.
Creates a playbook — a versioned template of nodes that cases are filled against. An executor's id and a transformation's tool accept a { "ref": … } to a resource in the same template. The version a deploy writes runs under its policy_ids, checked as a direct write is: playbooks:CreatePlaybook plus the start action of every executor it names, holding every grant of its policy_ids. Only a change to definition or policy_ids archives a new version; a playbook with cases is not deleted. Mirrors the playbooks REST contract.
Syntax
type: playbook
properties:
name: String
description: String
definition: Any
policy_ids: String[]
Output
The physical resource ID is the public ID of the created resource. Reference it from other resources with a ref expression:
some_field:
ref: MyPlaybook
Properties
name
Human-readable name, unique per project
Required: Yes Type: String
description
What the playbook is for
Required: No Type: String Nullable: Yes
definition
The nodes and how their inputs are sourced
Required: Yes Type: Any
policy_ids
The policies every execution of the version runs under. Use { "ref": "LogicalId" } for a policy in the template. The deploying caller must hold every grant they carry inside the project, else the resource fails with POLICY_GRANT_NOT_HELD.
Required: Yes Type: Array of String