Skip to content
v2.278.0

HiddenCaseRuleProperty Struct ​

A rule that controls field visibility based on conditions.

Fields can be shown or hidden dynamically based on values in other fields.

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 hiddenCaseRuleProperty: cases.CfnCaseRule.HiddenCaseRuleProperty = {
  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,
};
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_cases as cases

# empty_value: Any

hidden_case_rule_property = 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
)
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;

HiddenCaseRuleProperty hiddenCaseRuleProperty = 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();
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 hiddenCaseRuleProperty = 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
};
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{}

hiddenCaseRuleProperty := &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),
}

Properties ​

conditionsIResolvable | IResolvable | CfnCaseRule.BooleanConditionProperty[]conditionstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, BooleanConditionProperty]]]conditionsIResolvableConditionsIResolvableConditionsinterface{} required #
A list of conditions that determine field visibility.
defaultValueboolean | IResolvabledefault_valuetyping.Union[bool, IResolvable]defaultValueBooleanDefaultValueboolDefaultValueinterface{} required #
Whether the field is hidden when no conditions match.