# ProtectedResourceConditionsProperty

The conditions that you define for resources in your restore testing plan using tags.

- Source: Generated at build time
- Type last changed: v2.110.0 · 17 Nov 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 protectedResourceConditionsProperty: backup.CfnRestoreTestingSelection.ProtectedResourceConditionsProperty = {
  stringEquals: [{
    key: 'key',
    value: 'value',
  }],
  stringNotEquals: [{
    key: 'key',
    value: 'value',
  }],
};
```

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

protected_resource_conditions_property = backup.CfnRestoreTestingSelection.ProtectedResourceConditionsProperty(
    string_equals=[backup.CfnRestoreTestingSelection.KeyValueProperty(
        key="key",
        value="value"
    )],
    string_not_equals=[backup.CfnRestoreTestingSelection.KeyValueProperty(
        key="key",
        value="value"
    )]
)
```

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

ProtectedResourceConditionsProperty protectedResourceConditionsProperty = ProtectedResourceConditionsProperty.builder()
        .stringEquals(List.of(KeyValueProperty.builder()
                .key("key")
                .value("value")
                .build()))
        .stringNotEquals(List.of(KeyValueProperty.builder()
                .key("key")
                .value("value")
                .build()))
        .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 protectedResourceConditionsProperty = new ProtectedResourceConditionsProperty {
    StringEquals = new [] { new KeyValueProperty {
        Key = "key",
        Value = "value"
    } },
    StringNotEquals = new [] { new KeyValueProperty {
        Key = "key",
        Value = "value"
    } }
};
```

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"

protectedResourceConditionsProperty := &ProtectedResourceConditionsProperty{
	StringEquals: []interface{}{
		&KeyValueProperty{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	StringNotEquals: []interface{}{
		&KeyValueProperty{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## 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) | [CfnRestoreTestingSelection.KeyValueProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_backup.CfnRestoreTestingSelection.KeyValueProperty.html)[] — Filters the values of your tagged resources for only those resources that you tagged with the same value.

  Also called "exact matching."

- `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) | [CfnRestoreTestingSelection.KeyValueProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_backup.CfnRestoreTestingSelection.KeyValueProperty.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."
