# BackupPlanIndexActionProps

Properties for a BackupPlanIndexAction.

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

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_backup as backup } from 'aws-cdk-lib';

declare const indexActionResourceType: backup.IndexActionResourceType;
const backupPlanIndexActionProps: backup.BackupPlanIndexActionProps = {
  resourceTypes: [indexActionResourceType],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_backup as backup

# index_action_resource_type: backup.IndexActionResourceType

backup_plan_index_action_props = backup.BackupPlanIndexActionProps(
    resource_types=[index_action_resource_type]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.backup.*;

IndexActionResourceType indexActionResourceType;

BackupPlanIndexActionProps backupPlanIndexActionProps = BackupPlanIndexActionProps.builder()
        .resourceTypes(List.of(indexActionResourceType))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Backup;

IndexActionResourceType indexActionResourceType;

var backupPlanIndexActionProps = new BackupPlanIndexActionProps {
    ResourceTypes = new [] { indexActionResourceType }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var indexActionResourceType IndexActionResourceType

backupPlanIndexActionProps := &BackupPlanIndexActionProps{
	ResourceTypes: []IndexActionResourceType{
		indexActionResourceType,
	},
}
```

## Properties

- `resourceTypes`: [IndexActionResourceType](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_backup.IndexActionResourceType.html)[] (required) — Specifies the resource types to include in the index action.

  A backup index is only created when this is set, so at least one resource
  type must be provided.
