# IndexActionResourceType

The resource type to index.

This is implemented as an enum-like class so that resource types the AWS Backup
service adds in the future can be used before they are added to the CDK, e.g.
`new IndexActionResourceType('EFS')`.

- Source: [`aws-backup/lib/rule.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-backup/lib/rule.ts#L153)
- Type last changed: v2.267.0 · 27 Aug 2026

## Example

```ts
declare const plan: backup.BackupPlan;
plan.addRule(new backup.BackupPlanRule({
  indexActions: [{
      resourceTypes: [backup.IndexActionResourceType.S3],
  }],
}));
```

## Initializer

```ts
new IndexActionResourceType(value: string)
```

## Properties

- `EBS`: [IndexActionResourceType](/cdk/api/v2/docs/aws-cdk-lib.aws_backup.IndexActionResourceType.html) (static) — Amazon Elastic Block Store (Amazon EBS).

- `S3`: [IndexActionResourceType](/cdk/api/v2/docs/aws-cdk-lib.aws_backup.IndexActionResourceType.html) (static) — Amazon Simple Storage Service (Amazon S3).

- `value`: string — the resource type string value, e.g. `S3` or `EBS`.

## Methods

- `toString(): string` — Returns the string representation of this resource type.
