Skip to content
v2.277.0

ProtectedResourceConditionsProperty Struct ​

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

Example ​

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
# 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
// 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();
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"
    } }
};
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 ​

stringEqualsoptionalIResolvable | IResolvable | CfnRestoreTestingSelection.KeyValueProperty[]string_equalsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, KeyValueProperty]]]stringEqualsoptionalIResolvableStringEqualsoptionalIResolvableStringEqualsoptionalinterface{} #
Filters the values of your tagged resources for only those resources that you tagged with the same value.

Also called "exact matching."

stringNotEqualsoptionalIResolvable | IResolvable | CfnRestoreTestingSelection.KeyValueProperty[]string_not_equalsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, KeyValueProperty]]]stringNotEqualsoptionalIResolvableStringNotEqualsoptionalIResolvableStringNotEqualsoptionalinterface{} #
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."