---
title: RDS Resource Recycle Bin Rule
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > DDSQL Reference > Data Directory > RDS Resource Recycle Bin Rule
---

# RDS Resource Recycle Bin Rule

An RDS Resource Recycle Bin Rule in AWS defines retention policies for RDS resources that are deleted, allowing them to be recovered within a specified time frame. It helps protect against accidental deletions by retaining snapshots or instances in the recycle bin until the retention period expires.

```
aws.rbin_rule
```

## Fields

| Title                 | ID   | Type       | Data Type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Description |
| --------------------- | ---- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| _key                  | core | string     |
| account_id            | core | string     |
| description           | core | string     | The retention rule description.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| exclude_resource_tags | core | json       | [Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be excluded, or ignored, by the retention rule.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| identifier            | core | string     | The unique ID of the retention rule.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| lock_configuration    | core | json       | Information about the retention rule lock configuration.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| lock_end_time         | core | timestamp  | The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| lock_state            | core | string     | [Region-level retention rules only] The lock state for the retention rule. locked - The retention rule is locked and can't be modified or deleted. pending_unlock - The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired. unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the required permissions. null - The retention rule has never been locked. Once a retention rule has been locked, it can transition between the locked and unlocked states only; it can never transition back to null. |
| resource_tags         | core | json       | [Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| resource_type         | core | string     | The resource type retained by the retention rule.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| retention_period      | core | json       | Information about the retention period for which the retention rule is to retain resources.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| rule_arn              | core | string     | The Amazon Resource Name (ARN) of the retention rule.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| status                | core | string     | The state of the retention rule. Only retention rules that are in the available state retain resources.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| tags                  | core | hstore_csv |
