> For the complete documentation index, see [llms.txt](https://docs.finops.softwareone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.finops.softwareone.com/insights/resources/resources-constraint-policies.md).

# Apply Constraints

To address the ever-dynamic cloud infrastructure where resources are being created and deleted continuously, FinOps for Cloud contains a set of tools to help limit the related expenses and the lifetime of individual assets.

This is implemented in the form of constraints that you can set for a specific resource or generally for a pool. You can set two types of constraints:

* **TTL** - Represents time to live. A resource must not live for more than the specified period.
  * For a resource, specify a date and time.
  * For a pool, input an integer between 1 and 720 hours.
* **Daily expenses limit** - The resource spending must not exceed the specified amount in dollars. Input as an integer, min $ 1, 0 - unlimited.

When FinOps discovers active resources in the connected source, it checks that they don't violate any existing pool constraints that were applied as policies before.

When a resource hits a constraint, both the Manager and Owner of the resource are alerted through email. If a resource is unassigned, alerts are sent to the organization managers. An exclamation mark also appears next to the pool name on the **Pools** page.

{% hint style="info" %}
FinOps for Cloud sends notifications about violated constraints and doesn't interact with the connected source itself to perform any constraint-related adjustments.
{% endhint %}

### Applying constraints to a resource <a href="#resources-constraints" id="resources-constraints"></a>

To apply constraints to a resource:

1. On the **Resources** page, select the required resource.
2. On the resource details page, select the **Constraints** tab.

<figure><img src="/files/gO56bSTztvKG8kTFhx88" alt=""><figcaption><p>The Constraints tab on the resource details page.</p></figcaption></figure>

3. Use the slider to enable the required setting. Then, select edit to enter the value. When done, select <img src="/files/rCLMDoTPyjmNC43pHWEt" alt="pencil" data-size="line"> to save your changes.

<figure><img src="/files/RKEtrOcOARKJ4Qjrs9RX" alt=""><figcaption><p>Available constraint type</p></figcaption></figure>

{% hint style="info" %}
If a resource doesn't have a specific constraint set, it inherits the policies from its Pool. However, the resource owner or manager can override an existing Pool constraint policy for an individual resource by issuing a custom constraint for any given asset.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.finops.softwareone.com/insights/resources/resources-constraint-policies.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
