# Policy

> > This page is auto-generated from the formations OpenAPI spec.
> Do not edit manually — run `pnpm generate-formations-resource-docs` to regenerate.

# Policy

> This page is auto-generated from the formations OpenAPI spec.
> Do not edit manually — run `pnpm generate-formations-resource-docs` to regenerate.

Creates an access-control policy within the formation's project.

## Syntax

```yaml
type: policy
properties:
  name: String
  description: String
  document: Object
```

## Output

The physical resource ID is the **public ID** of the created resource. Reference it from other resources with a `ref` expression:

```yaml
      some_field:
        ref: MyPolicy
```

## Properties

**`name`**

Human-readable label for the policy

_Required_: No
_Type_: String
_Nullable_: Yes

---

**`description`**

Description of what the policy grants

_Required_: No
_Type_: String
_Nullable_: Yes

---

**`document`**

Policy document containing an array of statements

_Required_: Yes
_Type_: Object

---
