# ConditionsProperty

Struct · External

Contains information about which resources to include or exclude from a backup plan using their tags.

Conditions are case sensitive.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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';
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',
  }],
};
```

Python:

```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

conditions_property = backup.CfnBackupSelection.ConditionsProperty(
    string_equals=[backup.CfnBackupSelection.ConditionParameterProperty(
        condition_key="conditionKey",
        condition_value="conditionValue"
    )],
    string_like=[backup.CfnBackupSelection.ConditionParameterProperty(
        condition_key="conditionKey",
        condition_value="conditionValue"
    )],
    string_not_equals=[backup.CfnBackupSelection.ConditionParameterProperty(
        condition_key="conditionKey",
        condition_value="conditionValue"
    )],
    string_not_like=[backup.CfnBackupSelection.ConditionParameterProperty(
        condition_key="conditionKey",
        condition_value="conditionValue"
    )]
)
```

Java:

```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.*;

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();
```

C#:

```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;

var conditionsProperty = new ConditionsProperty {
    StringEquals = new [] { new ConditionParameterProperty {
        ConditionKey = "conditionKey",
        ConditionValue = "conditionValue"
    } },
    StringLike = new [] { new ConditionParameterProperty {
        ConditionKey = "conditionKey",
        ConditionValue = "conditionValue"
    } },
    StringNotEquals = new [] { new ConditionParameterProperty {
        ConditionKey = "conditionKey",
        ConditionValue = "conditionValue"
    } },
    StringNotLike = new [] { new ConditionParameterProperty {
        ConditionKey = "conditionKey",
        ConditionValue = "conditionValue"
    } }
};
```

Go:

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

conditionsProperty := &ConditionsProperty{
	StringEquals: []interface{}{
		&ConditionParameterProperty{
			ConditionKey: jsii.String("conditionKey"),
			ConditionValue: jsii.String("conditionValue"),
		},
	},
	StringLike: []interface{}{
		&ConditionParameterProperty{
			ConditionKey: jsii.String("conditionKey"),
			ConditionValue: jsii.String("conditionValue"),
		},
	},
	StringNotEquals: []interface{}{
		&ConditionParameterProperty{
			ConditionKey: jsii.String("conditionKey"),
			ConditionValue: jsii.String("conditionValue"),
		},
	},
	StringNotLike: []interface{}{
		&ConditionParameterProperty{
			ConditionKey: jsii.String("conditionKey"),
			ConditionValue: jsii.String("conditionValue"),
		},
	},
}
```

## Properties

- `stringEquals`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBackupSelection.ConditionParameterProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_backup.CfnBackupSelection.ConditionParameterProperty.html)[] — Filters the values of your tagged resources for only those resources that you tagged with the same value.

  Also called "exact matching."

- `stringLike`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBackupSelection.ConditionParameterProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_backup.CfnBackupSelection.ConditionParameterProperty.html)[] — 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`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBackupSelection.ConditionParameterProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_backup.CfnBackupSelection.ConditionParameterProperty.html)[] — 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`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBackupSelection.ConditionParameterProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_backup.CfnBackupSelection.ConditionParameterProperty.html)[] — Filters the values of your tagged resources for non-matching tag values with the use of a wildcard character (*) anywhere in the string.
