Interface CfnBackupSelectionProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnBackupSelectionProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.646Z") @Stability(Stable) public interface CfnBackupSelectionProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnBackupSelection.

Example:

 // 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.*;
 Object conditions;
 CfnBackupSelectionProps cfnBackupSelectionProps = CfnBackupSelectionProps.builder()
         .backupPlanId("backupPlanId")
         .backupSelection(BackupSelectionResourceTypeProperty.builder()
                 .iamRoleArn("iamRoleArn")
                 .selectionName("selectionName")
                 // the properties below are optional
                 .conditions(conditions)
                 .listOfTags(List.of(ConditionResourceTypeProperty.builder()
                         .conditionKey("conditionKey")
                         .conditionType("conditionType")
                         .conditionValue("conditionValue")
                         .build()))
                 .notResources(List.of("notResources"))
                 .resources(List.of("resources"))
                 .build())
         .build();
 
  • Method Details

    • getBackupPlanId

      @Stability(Stable) @NotNull String getBackupPlanId()
      Uniquely identifies a backup plan.
    • getBackupSelection

      @Stability(Stable) @NotNull Object getBackupSelection()
      Specifies the body of a request to assign a set of resources to a backup plan.

      It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.

    • builder

      @Stability(Stable) static CfnBackupSelectionProps.Builder builder()
      Returns:
      a CfnBackupSelectionProps.Builder of CfnBackupSelectionProps