# AWS::Rbin Construct Library

---

![cfn-resources: Stable](https://img.shields.io/badge/cfn--resources-stable-success.svg?style=for-the-badge)

> All classes with the `Cfn` prefix in this module ([CFN Resources]) are always stable and safe to use.
>
> [CFN Resources]: https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib

---

This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.

TypeScript:

```ts
import * as rbin from 'aws-cdk-lib/aws-rbin';
```

Python:

```python
import aws_cdk.aws_rbin as rbin
```

Java:

```java
import software.amazon.awscdk.services.rbin.*;
```

C# / .NET:

```csharp
using Amazon.CDK.AWS.Rbin;
```

Golang:

```go
import rbin "github.com/aws/aws-cdk-go/awscdk"
```

There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:

- Search [Construct Hub for Rbin construct libraries](https://constructs.dev/search?q=rbin)
- Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::Rbin resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_Rbin.html) directly.

There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::Rbin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_Rbin.html).

(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)

## Types

### Constructs (L1)

- [`CfnRule`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rbin.CfnRule.html) Construct (L1) Creates a Recycle Bin retention rule. You can create two types of retention rules:.

### Structs

- [`CfnRule.ResourceTagProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rbin.CfnRule.ResourceTagProperty.html) Struct [Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.
- [`CfnRule.RetentionPeriodProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rbin.CfnRule.RetentionPeriodProperty.html) Struct Information about the retention period for which the retention rule is to retain resources.
- [`CfnRule.UnlockDelayProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rbin.CfnRule.UnlockDelayProperty.html) Struct Information about the retention rule unlock delay.
- [`CfnRuleProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rbin.CfnRuleProps.html) Struct Properties for defining a `CfnRule`.
