aws-cdk-lib.aws_backup.CfnBackupSelection.ConditionsProperty

interface ConditionsProperty

LanguageType name
.NETAmazon.CDK.AWS.Backup.CfnBackupSelection.ConditionsProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsbackup#CfnBackupSelection_ConditionsProperty
Javasoftware.amazon.awscdk.services.backup.CfnBackupSelection.ConditionsProperty
Pythonaws_cdk.aws_backup.CfnBackupSelection.ConditionsProperty
TypeScript aws-cdk-lib » aws_backup » CfnBackupSelection » ConditionsProperty

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 { aws_backup as backup } from 'aws-cdk-lib';
const conditionsProperty: backup.CfnBackupSelection.ConditionsProperty = {
  stringEquals: [{
    conditionKey: 'conditionKey',
    conditionValue: 'conditionValue',
  }],
  stringLike: [{
    conditionKey: 'conditionKey',
    conditionValue: 'conditionValue',
  }],
  stringNotEquals: [{
    conditionKey: 'conditionKey',
    conditionValue: 'conditionValue',
  }],
  stringNotLike: [{
    conditionKey: 'conditionKey',
    conditionValue: 'conditionValue',
  }],
};

Properties

NameTypeDescription
stringEquals?IResolvable | IResolvable | ConditionParameterProperty[]Filters the values of your tagged resources for only those resources that you tagged with the same value.
stringLike?IResolvable | IResolvable | ConditionParameterProperty[]Filters the values of your tagged resources for matching tag values with the use of a wildcard character (*) anywhere in the string.
stringNotEquals?IResolvable | IResolvable | ConditionParameterProperty[]Filters the values of your tagged resources for only those resources that you tagged that do not have the same value.
stringNotLike?IResolvable | IResolvable | ConditionParameterProperty[]Filters the values of your tagged resources for non-matching tag values with the use of a wildcard character (*) anywhere in the string.

stringEquals?

Type: IResolvable | IResolvable | ConditionParameterProperty[] (optional)

Filters the values of your tagged resources for only those resources that you tagged with the same value.

Also called "exact matching."


stringLike?

Type: IResolvable | IResolvable | ConditionParameterProperty[] (optional)

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".


stringNotEquals?

Type: IResolvable | IResolvable | ConditionParameterProperty[] (optional)

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."


stringNotLike?

Type: IResolvable | IResolvable | ConditionParameterProperty[] (optional)

Filters the values of your tagged resources for non-matching tag values with the use of a wildcard character (*) anywhere in the string.