Class CfnCaseRulePropsMixin.RequiredCaseRuleProperty
Required rule type, used to indicate whether a field is required.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.Cases.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnCaseRulePropsMixin.RequiredCaseRuleProperty : CfnCaseRulePropsMixin.IRequiredCaseRuleProperty
Syntax (vb)
Public Class CfnCaseRulePropsMixin.RequiredCaseRuleProperty Implements CfnCaseRulePropsMixin.IRequiredCaseRuleProperty
Remarks
In the Amazon Connect admin website, case rules are known as case field conditions . For more information about case field conditions, see Add case field conditions to a case template .
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.Mixins.Preview.AWS.Cases.Mixins;
var emptyValue;
var requiredCaseRuleProperty = new RequiredCaseRuleProperty {
Conditions = new [] { new BooleanConditionProperty {
EqualTo = new BooleanOperandsProperty {
OperandOne = new OperandOneProperty {
FieldId = "fieldId"
},
OperandTwo = new OperandTwoProperty {
BooleanValue = false,
DoubleValue = 123,
EmptyValue = emptyValue,
StringValue = "stringValue"
},
Result = false
},
NotEqualTo = new BooleanOperandsProperty {
OperandOne = new OperandOneProperty {
FieldId = "fieldId"
},
OperandTwo = new OperandTwoProperty {
BooleanValue = false,
DoubleValue = 123,
EmptyValue = emptyValue,
StringValue = "stringValue"
},
Result = false
}
} },
DefaultValue = false
};
Synopsis
Constructors
| RequiredCaseRuleProperty() | Required rule type, used to indicate whether a field is required. |
Properties
| Conditions | List of conditions for the required rule; |
| DefaultValue | The value of the rule (that is, whether the field is required) should none of the conditions evaluate to true. |
Constructors
RequiredCaseRuleProperty()
Required rule type, used to indicate whether a field is required.
public RequiredCaseRuleProperty()
Remarks
In the Amazon Connect admin website, case rules are known as case field conditions . For more information about case field conditions, see Add case field conditions to a case template .
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.Mixins.Preview.AWS.Cases.Mixins;
var emptyValue;
var requiredCaseRuleProperty = new RequiredCaseRuleProperty {
Conditions = new [] { new BooleanConditionProperty {
EqualTo = new BooleanOperandsProperty {
OperandOne = new OperandOneProperty {
FieldId = "fieldId"
},
OperandTwo = new OperandTwoProperty {
BooleanValue = false,
DoubleValue = 123,
EmptyValue = emptyValue,
StringValue = "stringValue"
},
Result = false
},
NotEqualTo = new BooleanOperandsProperty {
OperandOne = new OperandOneProperty {
FieldId = "fieldId"
},
OperandTwo = new OperandTwoProperty {
BooleanValue = false,
DoubleValue = 123,
EmptyValue = emptyValue,
StringValue = "stringValue"
},
Result = false
}
} },
DefaultValue = false
};
Properties
Conditions
List of conditions for the required rule;
public object? Conditions { get; set; }
Property Value
Remarks
the first condition to evaluate to true dictates the value of the rule.
Type union: either IResolvable or (either IResolvable or CfnCaseRulePropsMixin.IBooleanConditionProperty)[]
DefaultValue
The value of the rule (that is, whether the field is required) should none of the conditions evaluate to true.
public object? DefaultValue { get; set; }