IndexActionResourceType Class
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 |
|---|---|
| Type last changed |
Example
ts
declare const plan: backup.BackupPlan;
plan.addRule(new backup.BackupPlanRule({
indexActions: [{
resourceTypes: [backup.IndexActionResourceType.S3],
}],
}));
python
# plan: backup.BackupPlan
plan.add_rule(backup.BackupPlanRule(
index_actions=[backup.BackupPlanIndexActionProps(
resource_types=[backup.IndexActionResourceType.S3]
)]
))
java
BackupPlan plan;
plan.addRule(BackupPlanRule.Builder.create()
.indexActions(List.of(BackupPlanIndexActionProps.builder()
.resourceTypes(List.of(IndexActionResourceType.S3))
.build()))
.build());
csharp
// Install: dotnet add package Amazon.CDK.Lib
BackupPlan plan;
plan.AddRule(new BackupPlanRule(new BackupPlanRuleProps {
IndexActions = new [] { new BackupPlanIndexActionProps {
ResourceTypes = new [] { IndexActionResourceType.S3 }
} }
}));
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var plan BackupPlan
plan.AddRule(backup.NewBackupPlanRule(&BackupPlanRuleProps{
IndexActions: []BackupPlanIndexActionProps{
&BackupPlanIndexActionProps{
ResourceTypes: []IndexActionResourceType{
backup.IndexActionResourceType_S3(),
},
},
},
}))
Initializer
ts
new IndexActionResourceType(value: string)
python
IndexActionResourceType(value: str)
java
new IndexActionResourceType(String value)
csharp
new IndexActionResourceType(string value)
go
NewIndexActionResourceType(Value *string)
Properties
EBSIndexActionResourceTypeEBSIndexActionResourceTypeEBSIndexActionResourceTypeEBSIndexActionResourceTypeEBSIndexActionResourceType static #Amazon Elastic Block Store (Amazon EBS).
S3IndexActionResourceTypeS3IndexActionResourceTypeS3IndexActionResourceTypeS3IndexActionResourceTypeS3IndexActionResourceType static #Amazon Simple Storage Service (Amazon S3).
the resource type string value, e.g. `S3` or `EBS`.
Methods
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string #Returns the string representation of this resource type.