# ConditionResourceTypeProperty

Specifies an object that contains an array of triplets made up of a condition type (such as `STRINGEQUALS` ), a key, and a value.

Conditions are used to filter resources in a selection that is assigned to a backup plan.

- 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 conditionResourceTypeProperty: backup.CfnBackupSelection.ConditionResourceTypeProperty = {
  conditionKey: 'conditionKey',
  conditionType: 'conditionType',
  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

condition_resource_type_property = backup.CfnBackupSelection.ConditionResourceTypeProperty(
    condition_key="conditionKey",
    condition_type="conditionType",
    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.*;

ConditionResourceTypeProperty conditionResourceTypeProperty = ConditionResourceTypeProperty.builder()
        .conditionKey("conditionKey")
        .conditionType("conditionType")
        .conditionValue("conditionValue")
        .build();
```

C# / .NET:

```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 conditionResourceTypeProperty = new ConditionResourceTypeProperty {
    ConditionKey = "conditionKey",
    ConditionType = "conditionType",
    ConditionValue = "conditionValue"
};
```

Golang:

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

conditionResourceTypeProperty := &ConditionResourceTypeProperty{
	ConditionKey: jsii.String("conditionKey"),
	ConditionType: jsii.String("conditionType"),
	ConditionValue: jsii.String("conditionValue"),
}
```

## Properties

- `conditionKey`: string (required) — The key in a key-value pair.

  For example, in `"Department": "accounting"` , `"Department"` is the key.

- `conditionType`: string (required) — An operation, such as `STRINGEQUALS` , that is applied to a key-value pair used to filter resources in a selection.

- `conditionValue`: string (required) — The value in a key-value pair.

  For example, in `"Department": "accounting"` , `"accounting"` is the value.
