Skip to content
v2.275.0

CfnCaseRuleProps Struct ​

Properties for defining a CfnCaseRule.

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',
  }],
};

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
Description of a case rule.
domainIdoptionalstringdomain_idoptionalstrdomainIdoptionalStringDomainIdoptionalstringDomainIdoptional*string#
Unique identifier of a Cases domain.
namestringnamestrnameStringNamestringName*stringrequired#
Name of the case rule.
Represents what rule type should take place, under what conditions.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
An array of key-value pairs to apply to this resource.