ConditionResourceTypeProperty Struct
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 | |
|---|---|
| Type last changed |
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 conditionResourceTypeProperty: backup.CfnBackupSelection.ConditionResourceTypeProperty = {
conditionKey: 'conditionKey',
conditionType: 'conditionType',
conditionValue: 'conditionValue',
};
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
// 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();
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"
};
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
conditionKeystringcondition_keystrconditionKeyStringConditionKeystringConditionKey*string required #The key in a key-value pair.
For example, in "Department": "accounting" , "Department" is the key.
conditionTypestringcondition_typestrconditionTypeStringConditionTypestringConditionType*string required #An operation, such as `STRINGEQUALS` , that is applied to a key-value pair used to filter resources in a selection.
conditionValuestringcondition_valuestrconditionValueStringConditionValuestringConditionValue*string required #The value in a key-value pair.
For example, in "Department": "accounting" , "accounting" is the value.