> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vantage.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# vantage_access_policy (Resource)

> Terraform resource reference for vantage_access_policy (Resource). Auto-generated from the vantage-sh/terraform-provider-vantage repository.

<Note>
  This page is auto-generated based on the official [Terraform documentation](https://registry.terraform.io/providers/vantage-sh/vantage/latest/docs).
</Note>

## Overview

Use this resource with the [Vantage Terraform provider](/terraform). For installation and authentication, see the [Terraform provider quickstart](/terraform#quickstart). The schema below is generated directly from the provider source.

Manages an Access Policy.

## Example Usage

```terraform theme={null}
resource "vantage_access_policy" "demo_access_policy" {
  title       = "Engineering costs"
  description = "Limits cost visibility to the Engineering team."
  team_tokens = [vantage_team.demo_team.token]

  policy = {
    api_version = "v1"
    filter      = "(vantage.provider = 'aws')"
  }
}
```

## Schema

### Required

* `policy` (Attributes) Access Policy definition using vantage.\* VQL. (see [below for nested schema](#nestedatt--policy))
* `title` (String) Title of the Access Policy.

### Optional

* `description` (String) Description of the Access Policy.
* `team_tokens` (List of String) Tokens for Teams this Access Policy is assigned to.

### Read-Only

* `id` (String) Same as token, for Terraform import compatibility.
* `token` (String) Unique Access Policy identifier.

<a id="nestedatt--policy" />

### Nested Schema for `policy`

Required:

* `api_version` (String) Access Policy document version. Currently only `v1` is supported.
* `filter` (String) Vantage Query Language (VQL) that controls which costs this Access Policy allows.
