CfnCaseRuleProps Struct
Properties for defining a CfnCaseRule.
| 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_cases as cases } from 'aws-cdk-lib';
declare const emptyValue: any;
const cfnCaseRuleProps: cases.CfnCaseRuleProps = {
name: 'name',
rule: {
hidden: {
conditions: [{
equalTo: {
operandOne: {
fieldId: 'fieldId',
},
operandTwo: {
booleanValue: false,
doubleValue: 123,
emptyValue: emptyValue,
stringValue: 'stringValue',
},
result: false,
},
notEqualTo: {
operandOne: {
fieldId: 'fieldId',
},
operandTwo: {
booleanValue: false,
doubleValue: 123,
emptyValue: emptyValue,
stringValue: 'stringValue',
},
result: false,
},
}],
defaultValue: false,
},
required: {
conditions: [{
equalTo: {
operandOne: {
fieldId: 'fieldId',
},
operandTwo: {
booleanValue: false,
doubleValue: 123,
emptyValue: emptyValue,
stringValue: 'stringValue',
},
result: false,
},
notEqualTo: {
operandOne: {
fieldId: 'fieldId',
},
operandTwo: {
booleanValue: false,
doubleValue: 123,
emptyValue: emptyValue,
stringValue: 'stringValue',
},
result: false,
},
}],
defaultValue: false,
},
},
// the properties below are optional
description: 'description',
domainId: 'domainId',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cases as cases
# empty_value: Any
cfn_case_rule_props = cases.CfnCaseRuleProps(
name="name",
rule=cases.CfnCaseRule.CaseRuleDetailsProperty(
hidden=cases.CfnCaseRule.HiddenCaseRuleProperty(
conditions=[cases.CfnCaseRule.BooleanConditionProperty(
equal_to=cases.CfnCaseRule.BooleanOperandsProperty(
operand_one=cases.CfnCaseRule.OperandOneProperty(
field_id="fieldId"
),
operand_two=cases.CfnCaseRule.OperandTwoProperty(
boolean_value=False,
double_value=123,
empty_value=empty_value,
string_value="stringValue"
),
result=False
),
not_equal_to=cases.CfnCaseRule.BooleanOperandsProperty(
operand_one=cases.CfnCaseRule.OperandOneProperty(
field_id="fieldId"
),
operand_two=cases.CfnCaseRule.OperandTwoProperty(
boolean_value=False,
double_value=123,
empty_value=empty_value,
string_value="stringValue"
),
result=False
)
)],
default_value=False
),
required=cases.CfnCaseRule.RequiredCaseRuleProperty(
conditions=[cases.CfnCaseRule.BooleanConditionProperty(
equal_to=cases.CfnCaseRule.BooleanOperandsProperty(
operand_one=cases.CfnCaseRule.OperandOneProperty(
field_id="fieldId"
),
operand_two=cases.CfnCaseRule.OperandTwoProperty(
boolean_value=False,
double_value=123,
empty_value=empty_value,
string_value="stringValue"
),
result=False
),
not_equal_to=cases.CfnCaseRule.BooleanOperandsProperty(
operand_one=cases.CfnCaseRule.OperandOneProperty(
field_id="fieldId"
),
operand_two=cases.CfnCaseRule.OperandTwoProperty(
boolean_value=False,
double_value=123,
empty_value=empty_value,
string_value="stringValue"
),
result=False
)
)],
default_value=False
)
),
# the properties below are optional
description="description",
domain_id="domainId",
tags=[CfnTag(
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.cases.*;
Object emptyValue;
CfnCaseRuleProps cfnCaseRuleProps = CfnCaseRuleProps.builder()
.name("name")
.rule(CaseRuleDetailsProperty.builder()
.hidden(HiddenCaseRuleProperty.builder()
.conditions(List.of(BooleanConditionProperty.builder()
.equalTo(BooleanOperandsProperty.builder()
.operandOne(OperandOneProperty.builder()
.fieldId("fieldId")
.build())
.operandTwo(OperandTwoProperty.builder()
.booleanValue(false)
.doubleValue(123)
.emptyValue(emptyValue)
.stringValue("stringValue")
.build())
.result(false)
.build())
.notEqualTo(BooleanOperandsProperty.builder()
.operandOne(OperandOneProperty.builder()
.fieldId("fieldId")
.build())
.operandTwo(OperandTwoProperty.builder()
.booleanValue(false)
.doubleValue(123)
.emptyValue(emptyValue)
.stringValue("stringValue")
.build())
.result(false)
.build())
.build()))
.defaultValue(false)
.build())
.required(RequiredCaseRuleProperty.builder()
.conditions(List.of(BooleanConditionProperty.builder()
.equalTo(BooleanOperandsProperty.builder()
.operandOne(OperandOneProperty.builder()
.fieldId("fieldId")
.build())
.operandTwo(OperandTwoProperty.builder()
.booleanValue(false)
.doubleValue(123)
.emptyValue(emptyValue)
.stringValue("stringValue")
.build())
.result(false)
.build())
.notEqualTo(BooleanOperandsProperty.builder()
.operandOne(OperandOneProperty.builder()
.fieldId("fieldId")
.build())
.operandTwo(OperandTwoProperty.builder()
.booleanValue(false)
.doubleValue(123)
.emptyValue(emptyValue)
.stringValue("stringValue")
.build())
.result(false)
.build())
.build()))
.defaultValue(false)
.build())
.build())
// the properties below are optional
.description("description")
.domainId("domainId")
.tags(List.of(CfnTag.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.Cases;
var emptyValue;
var cfnCaseRuleProps = new CfnCaseRuleProps {
Name = "name",
Rule = new CaseRuleDetailsProperty {
Hidden = new HiddenCaseRuleProperty {
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
},
Required = 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
}
},
// the properties below are optional
Description = "description",
DomainId = "domainId",
Tags = new [] { new CfnTag {
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"
var emptyValue interface{}
cfnCaseRuleProps := &CfnCaseRuleProps{
Name: jsii.String("name"),
Rule: &CaseRuleDetailsProperty{
Hidden: &HiddenCaseRuleProperty{
Conditions: []interface{}{
&BooleanConditionProperty{
EqualTo: &BooleanOperandsProperty{
OperandOne: &OperandOneProperty{
FieldId: jsii.String("fieldId"),
},
OperandTwo: &OperandTwoProperty{
BooleanValue: jsii.Boolean(false),
DoubleValue: jsii.Number(123),
EmptyValue: emptyValue,
StringValue: jsii.String("stringValue"),
},
Result: jsii.Boolean(false),
},
NotEqualTo: &BooleanOperandsProperty{
OperandOne: &OperandOneProperty{
FieldId: jsii.String("fieldId"),
},
OperandTwo: &OperandTwoProperty{
BooleanValue: jsii.Boolean(false),
DoubleValue: jsii.Number(123),
EmptyValue: emptyValue,
StringValue: jsii.String("stringValue"),
},
Result: jsii.Boolean(false),
},
},
},
DefaultValue: jsii.Boolean(false),
},
Required: &RequiredCaseRuleProperty{
Conditions: []interface{}{
&BooleanConditionProperty{
EqualTo: &BooleanOperandsProperty{
OperandOne: &OperandOneProperty{
FieldId: jsii.String("fieldId"),
},
OperandTwo: &OperandTwoProperty{
BooleanValue: jsii.Boolean(false),
DoubleValue: jsii.Number(123),
EmptyValue: emptyValue,
StringValue: jsii.String("stringValue"),
},
Result: jsii.Boolean(false),
},
NotEqualTo: &BooleanOperandsProperty{
OperandOne: &OperandOneProperty{
FieldId: jsii.String("fieldId"),
},
OperandTwo: &OperandTwoProperty{
BooleanValue: jsii.Boolean(false),
DoubleValue: jsii.Number(123),
EmptyValue: emptyValue,
StringValue: jsii.String("stringValue"),
},
Result: jsii.Boolean(false),
},
},
},
DefaultValue: jsii.Boolean(false),
},
},
// the properties below are optional
Description: jsii.String("description"),
DomainId: jsii.String("domainId"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #Description of a case rule.
domainIdoptionalstringdomain_idoptionalstrdomainIdoptionalStringDomainIdoptionalstringDomainIdoptional*string #Unique identifier of a Cases domain.
Name of the case rule.
ruleIResolvable | CfnCaseRule.ruletyping.Union[IResolvable, CaseRuleDetailsProperty]ruleIResolvableRuleIResolvableRuleinterface{} required #Represents what rule type should take place, under what conditions.