Class CfnCaseRule
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.cases.CfnCaseRule
- All Implemented Interfaces:
IInspectable,ICaseRuleRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.125.0 (build fdbe357)",
date="2026-01-09T10:20:13.538Z")
@Stability(Stable)
public class CfnCaseRule
extends CfnResource
implements IInspectable, ICaseRuleRef, ITaggableV2
Creates a new case rule.
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 .
Example:
// 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;
CfnCaseRule cfnCaseRule = CfnCaseRule.Builder.create(this, "MyCfnCaseRule")
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBoolean condition for a rule.static interfaceBoolean operands for a condition.static final classA fluent builder forCfnCaseRule.static interfaceRepresents what rule type should take place, under what conditions.static interfaceA rule that controls field visibility based on conditions.static interfaceRepresents the left hand operand in the condition.static interfaceRepresents the right hand operand in the condition.static interfaceRequired rule type, used to indicate whether a field is required.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.cases.ICaseRuleRef
ICaseRuleRef.Jsii$Default, ICaseRuleRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCaseRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCaseRule(software.amazon.jsii.JsiiObjectRef objRef) CfnCaseRule(software.constructs.Construct scope, String id, CfnCaseRuleProps props) Create a newAWS::Cases::CaseRule. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForCaseRule(ICaseRuleRef resource) The Amazon Resource Name (ARN) of the case rule.Unique identifier of a case rule.Timestamp when the resource was created.Timestamp when the resource was created or last modified.A reference to a CaseRule resource.Tag Manager which manages the tags for this resource.Description of a case rule.Unique identifier of a Cases domain.getName()Name of the case rule.getRule()Represents what rule type should take place, under what conditions.getTags()An array of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnCaseRule.renderProperties(Map<String, Object> props) voidsetDescription(String value) Description of a case rule.voidsetDomainId(String value) Unique identifier of a Cases domain.voidName of the case rule.voidsetRule(IResolvable value) Represents what rule type should take place, under what conditions.voidRepresents what rule type should take place, under what conditions.voidAn array of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnCaseRule
protected CfnCaseRule(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCaseRule
protected CfnCaseRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCaseRule
@Stability(Stable) public CfnCaseRule(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnCaseRuleProps props) Create a newAWS::Cases::CaseRule.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForCaseRule
- Parameters:
resource- This parameter is required.
-
isCfnCaseRule
Checks whether the given object is a CfnCaseRule.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCaseRuleArn
The Amazon Resource Name (ARN) of the case rule. -
getAttrCaseRuleId
Unique identifier of a case rule. -
getAttrCreatedTime
Timestamp when the resource was created. -
getAttrLastModifiedTime
Timestamp when the resource was created or last modified. -
getCaseRuleRef
A reference to a CaseRule resource.- Specified by:
getCaseRuleRefin interfaceICaseRuleRef
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getName
Name of the case rule. -
setName
Name of the case rule. -
getRule
Represents what rule type should take place, under what conditions.Returns union: either
IResolvableorCfnCaseRule.CaseRuleDetailsProperty -
setRule
Represents what rule type should take place, under what conditions. -
setRule
Represents what rule type should take place, under what conditions. -
getDescription
Description of a case rule. -
setDescription
Description of a case rule. -
getDomainId
Unique identifier of a Cases domain. -
setDomainId
Unique identifier of a Cases domain. -
getTags
An array of key-value pairs to apply to this resource. -
setTags
An array of key-value pairs to apply to this resource.
-