Interface CfnBackupSelection.ConditionsProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnBackupSelection.ConditionsProperty.Jsii$Proxy
Enclosing class:
CfnBackupSelection

@Stability(Stable) public static interface CfnBackupSelection.ConditionsProperty extends software.amazon.jsii.JsiiSerializable
Contains information about which resources to include or exclude from a backup plan using their tags.

Conditions are case sensitive.

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.*;
 ConditionsProperty conditionsProperty = ConditionsProperty.builder()
         .stringEquals(List.of(ConditionParameterProperty.builder()
                 .conditionKey("conditionKey")
                 .conditionValue("conditionValue")
                 .build()))
         .stringLike(List.of(ConditionParameterProperty.builder()
                 .conditionKey("conditionKey")
                 .conditionValue("conditionValue")
                 .build()))
         .stringNotEquals(List.of(ConditionParameterProperty.builder()
                 .conditionKey("conditionKey")
                 .conditionValue("conditionValue")
                 .build()))
         .stringNotLike(List.of(ConditionParameterProperty.builder()
                 .conditionKey("conditionKey")
                 .conditionValue("conditionValue")
                 .build()))
         .build();
 
  • Method Details

    • getStringEquals

      @Stability(Stable) @Nullable default Object getStringEquals()
      Filters the values of your tagged resources for only those resources that you tagged with the same value.

      Also called "exact matching."

    • getStringLike

      @Stability(Stable) @Nullable default Object getStringLike()
      Filters the values of your tagged resources for matching tag values with the use of a wildcard character (*) anywhere in the string.

      For example, "prod*" or "rod" matches the tag value "production".

    • getStringNotEquals

      @Stability(Stable) @Nullable default Object getStringNotEquals()
      Filters the values of your tagged resources for only those resources that you tagged that do not have the same value.

      Also called "negated matching."

    • getStringNotLike

      @Stability(Stable) @Nullable default Object getStringNotLike()
      Filters the values of your tagged resources for non-matching tag values with the use of a wildcard character (*) anywhere in the string.
    • builder

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