Skip to content
v2.278.0

BackupPlanIndexActionProps Struct ​

Properties for a BackupPlanIndexAction.

Example ​

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
# 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
// 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();
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 }
};
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 ​

resourceTypesIndexActionResourceType[]resource_typestyping.List[IndexActionResourceType]resourceTypesList<IndexActionResourceType>ResourceTypesIndexActionResourceType[]ResourceTypes*[]IndexActionResourceType 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.