Interface CfnBackupSelection.IConditionsProperty
Contains information about which resources to include or exclude from a backup plan using their tags.
Namespace: Amazon.CDK.AWS.Backup
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnBackupSelection.IConditionsProperty
Syntax (vb)
Public Interface CfnBackupSelection.IConditionsProperty
Remarks
Conditions are case sensitive.
ExampleMetadata: fixture=_generated
Examples
// 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"
} }
};
Synopsis
Properties
| StringEquals | Filters the values of your tagged resources for only those resources that you tagged with the same value. |
| StringLike | Filters the values of your tagged resources for matching tag values with the use of a wildcard character (*) anywhere in the string. |
| StringNotEquals | Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. |
| StringNotLike | Filters the values of your tagged resources for non-matching tag values with the use of a wildcard character (*) anywhere in the string. |
Properties
StringEquals
Filters the values of your tagged resources for only those resources that you tagged with the same value.
object? StringEquals { get; }
Property Value
Remarks
Also called "exact matching."
Type union: either IResolvable or (either IResolvable or CfnBackupSelection.IConditionParameterProperty)[]
StringLike
Filters the values of your tagged resources for matching tag values with the use of a wildcard character (*) anywhere in the string.
object? StringLike { get; }
Property Value
Remarks
For example, "prod*" or "rod" matches the tag value "production".
Type union: either IResolvable or (either IResolvable or CfnBackupSelection.IConditionParameterProperty)[]
StringNotEquals
Filters the values of your tagged resources for only those resources that you tagged that do not have the same value.
object? StringNotEquals { get; }
Property Value
Remarks
Also called "negated matching."
Type union: either IResolvable or (either IResolvable or CfnBackupSelection.IConditionParameterProperty)[]
StringNotLike
Filters the values of your tagged resources for non-matching tag values with the use of a wildcard character (*) anywhere in the string.
object? StringNotLike { get; }