1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. cases
  5. CaseRule

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.44.0 published on Friday, Dec 19, 2025 by Pulumi
aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.44.0 published on Friday, Dec 19, 2025 by Pulumi

    A case rule. In the Amazon Connect admin website, case rules are known as case field conditions. Case rules are used to define the situations under which fields should have certain effects (such as required).

    Create CaseRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CaseRule(name: string, args: CaseRuleArgs, opts?: CustomResourceOptions);
    @overload
    def CaseRule(resource_name: str,
                 args: CaseRuleArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def CaseRule(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 rule: Optional[Union[CaseRuleDetails0PropertiesArgs, CaseRuleDetails1PropertiesArgs]] = None,
                 description: Optional[str] = None,
                 domain_id: Optional[str] = None,
                 name: Optional[str] = None,
                 tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewCaseRule(ctx *Context, name string, args CaseRuleArgs, opts ...ResourceOption) (*CaseRule, error)
    public CaseRule(string name, CaseRuleArgs args, CustomResourceOptions? opts = null)
    public CaseRule(String name, CaseRuleArgs args)
    public CaseRule(String name, CaseRuleArgs args, CustomResourceOptions options)
    
    type: aws-native:cases:CaseRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CaseRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CaseRuleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CaseRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CaseRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CaseRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CaseRule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CaseRule resource accepts the following input properties:

    Rule Pulumi.AwsNative.Cases.Inputs.CaseRuleDetails0Properties | Pulumi.AwsNative.Cases.Inputs.CaseRuleDetails1Properties
    Description string
    A description explaining the purpose and behavior of this case rule. Helps administrators understand when and why this rule applies to case fields.
    DomainId string
    The unique identifier of the Cases domain.
    Name string
    A descriptive name for the case rule. Must be unique within the domain and should clearly indicate the rule's purpose (e.g., 'Priority Field Required for Urgent Cases').
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    The tags that you attach to this case rule.
    Rule CaseRuleDetails0PropertiesArgs | CaseRuleDetails1PropertiesArgs
    Description string
    A description explaining the purpose and behavior of this case rule. Helps administrators understand when and why this rule applies to case fields.
    DomainId string
    The unique identifier of the Cases domain.
    Name string
    A descriptive name for the case rule. Must be unique within the domain and should clearly indicate the rule's purpose (e.g., 'Priority Field Required for Urgent Cases').
    Tags TagArgs
    The tags that you attach to this case rule.
    rule CaseRuleDetails0Properties | CaseRuleDetails1Properties
    description String
    A description explaining the purpose and behavior of this case rule. Helps administrators understand when and why this rule applies to case fields.
    domainId String
    The unique identifier of the Cases domain.
    name String
    A descriptive name for the case rule. Must be unique within the domain and should clearly indicate the rule's purpose (e.g., 'Priority Field Required for Urgent Cases').
    tags List<Tag>
    The tags that you attach to this case rule.
    rule CaseRuleDetails0Properties | CaseRuleDetails1Properties
    description string
    A description explaining the purpose and behavior of this case rule. Helps administrators understand when and why this rule applies to case fields.
    domainId string
    The unique identifier of the Cases domain.
    name string
    A descriptive name for the case rule. Must be unique within the domain and should clearly indicate the rule's purpose (e.g., 'Priority Field Required for Urgent Cases').
    tags Tag[]
    The tags that you attach to this case rule.
    rule CaseRuleDetails0PropertiesArgs | CaseRuleDetails1PropertiesArgs
    description str
    A description explaining the purpose and behavior of this case rule. Helps administrators understand when and why this rule applies to case fields.
    domain_id str
    The unique identifier of the Cases domain.
    name str
    A descriptive name for the case rule. Must be unique within the domain and should clearly indicate the rule's purpose (e.g., 'Priority Field Required for Urgent Cases').
    tags Sequence[TagArgs]
    The tags that you attach to this case rule.
    rule Property Map | Property Map
    description String
    A description explaining the purpose and behavior of this case rule. Helps administrators understand when and why this rule applies to case fields.
    domainId String
    The unique identifier of the Cases domain.
    name String
    A descriptive name for the case rule. Must be unique within the domain and should clearly indicate the rule's purpose (e.g., 'Priority Field Required for Urgent Cases').
    tags List<Property Map>
    The tags that you attach to this case rule.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CaseRule resource produces the following output properties:

    CaseRuleArn string
    The Amazon Resource Name (ARN) of a case rule.
    CaseRuleId string
    The unique identifier of a case rule.
    CreatedTime string
    The time at which the case rule was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedTime string
    The time at which the case rule was created or last modified.
    CaseRuleArn string
    The Amazon Resource Name (ARN) of a case rule.
    CaseRuleId string
    The unique identifier of a case rule.
    CreatedTime string
    The time at which the case rule was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedTime string
    The time at which the case rule was created or last modified.
    caseRuleArn String
    The Amazon Resource Name (ARN) of a case rule.
    caseRuleId String
    The unique identifier of a case rule.
    createdTime String
    The time at which the case rule was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime String
    The time at which the case rule was created or last modified.
    caseRuleArn string
    The Amazon Resource Name (ARN) of a case rule.
    caseRuleId string
    The unique identifier of a case rule.
    createdTime string
    The time at which the case rule was created.
    id string
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime string
    The time at which the case rule was created or last modified.
    case_rule_arn str
    The Amazon Resource Name (ARN) of a case rule.
    case_rule_id str
    The unique identifier of a case rule.
    created_time str
    The time at which the case rule was created.
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified_time str
    The time at which the case rule was created or last modified.
    caseRuleArn String
    The Amazon Resource Name (ARN) of a case rule.
    caseRuleId String
    The unique identifier of a case rule.
    createdTime String
    The time at which the case rule was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime String
    The time at which the case rule was created or last modified.

    Supporting Types

    CaseRuleBooleanCondition0Properties, CaseRuleBooleanCondition0PropertiesArgs

    A boolean condition for a rule.

    CaseRuleBooleanCondition1Properties, CaseRuleBooleanCondition1PropertiesArgs

    A boolean condition for a rule.

    CaseRuleBooleanOperands, CaseRuleBooleanOperandsArgs

    Boolean operands for a condition.
    operandOne Property Map
    operandTwo Property Map | Property Map | Property Map | Property Map
    result Boolean
    The value of the outer rule if the condition evaluates to true.

    CaseRuleDetails0Properties, CaseRuleDetails0PropertiesArgs

    Defines the rule behavior and conditions. Specifies the rule type and the conditions under which it applies. In the Amazon Connect admin website, this corresponds to case field conditions.

    CaseRuleDetails1Properties, CaseRuleDetails1PropertiesArgs

    Defines the rule behavior and conditions. Specifies the rule type and the conditions under which it applies. In the Amazon Connect admin website, this corresponds to case field conditions.

    CaseRuleHiddenCaseRule, CaseRuleHiddenCaseRuleArgs

    Hidden rule type, used to indicate whether a field is hidden
    Conditions List<Union<Pulumi.AwsNative.Cases.Inputs.CaseRuleBooleanCondition0Properties, Pulumi.AwsNative.Cases.Inputs.CaseRuleBooleanCondition1Properties>>
    List of conditions for the hidden rule; the first condition to evaluate to true dictates the value of the rule
    DefaultValue bool
    The value of the rule (i.e. whether the field is hidden) should none of the conditions evaluate to true
    Conditions []interface{}
    List of conditions for the hidden rule; the first condition to evaluate to true dictates the value of the rule
    DefaultValue bool
    The value of the rule (i.e. whether the field is hidden) should none of the conditions evaluate to true
    conditions List<Either<CaseRuleBooleanCondition0Properties,CaseRuleBooleanCondition1Properties>>
    List of conditions for the hidden rule; the first condition to evaluate to true dictates the value of the rule
    defaultValue Boolean
    The value of the rule (i.e. whether the field is hidden) should none of the conditions evaluate to true
    conditions (CaseRuleBooleanCondition0Properties | CaseRuleBooleanCondition1Properties)[]
    List of conditions for the hidden rule; the first condition to evaluate to true dictates the value of the rule
    defaultValue boolean
    The value of the rule (i.e. whether the field is hidden) should none of the conditions evaluate to true
    conditions Sequence[Union[CaseRuleBooleanCondition0Properties, CaseRuleBooleanCondition1Properties]]
    List of conditions for the hidden rule; the first condition to evaluate to true dictates the value of the rule
    default_value bool
    The value of the rule (i.e. whether the field is hidden) should none of the conditions evaluate to true
    conditions List<Property Map | Property Map>
    List of conditions for the hidden rule; the first condition to evaluate to true dictates the value of the rule
    defaultValue Boolean
    The value of the rule (i.e. whether the field is hidden) should none of the conditions evaluate to true

    CaseRuleOperandOneProperties, CaseRuleOperandOnePropertiesArgs

    The left hand operand in the condition.
    FieldId string
    The field ID this operand should take the value of.
    FieldId string
    The field ID this operand should take the value of.
    fieldId String
    The field ID this operand should take the value of.
    fieldId string
    The field ID this operand should take the value of.
    field_id str
    The field ID this operand should take the value of.
    fieldId String
    The field ID this operand should take the value of.

    CaseRuleOperandTwo0Properties, CaseRuleOperandTwo0PropertiesArgs

    The right hand operand in the condition.
    StringValue string
    A string value to compare against the field value in the condition evaluation.
    StringValue string
    A string value to compare against the field value in the condition evaluation.
    stringValue String
    A string value to compare against the field value in the condition evaluation.
    stringValue string
    A string value to compare against the field value in the condition evaluation.
    string_value str
    A string value to compare against the field value in the condition evaluation.
    stringValue String
    A string value to compare against the field value in the condition evaluation.

    CaseRuleOperandTwo1Properties, CaseRuleOperandTwo1PropertiesArgs

    The right hand operand in the condition.
    BooleanValue bool
    A boolean value to compare against the field value in the condition evaluation.
    BooleanValue bool
    A boolean value to compare against the field value in the condition evaluation.
    booleanValue Boolean
    A boolean value to compare against the field value in the condition evaluation.
    booleanValue boolean
    A boolean value to compare against the field value in the condition evaluation.
    boolean_value bool
    A boolean value to compare against the field value in the condition evaluation.
    booleanValue Boolean
    A boolean value to compare against the field value in the condition evaluation.

    CaseRuleOperandTwo2Properties, CaseRuleOperandTwo2PropertiesArgs

    The right hand operand in the condition.
    DoubleValue double
    A numeric value to compare against the field value in the condition evaluation.
    DoubleValue float64
    A numeric value to compare against the field value in the condition evaluation.
    doubleValue Double
    A numeric value to compare against the field value in the condition evaluation.
    doubleValue number
    A numeric value to compare against the field value in the condition evaluation.
    double_value float
    A numeric value to compare against the field value in the condition evaluation.
    doubleValue Number
    A numeric value to compare against the field value in the condition evaluation.

    CaseRuleOperandTwo3Properties, CaseRuleOperandTwo3PropertiesArgs

    The right hand operand in the condition.

    CaseRuleRequiredCaseRule, CaseRuleRequiredCaseRuleArgs

    A required rule type, used to indicate whether a field is required.
    Conditions List<Union<Pulumi.AwsNative.Cases.Inputs.CaseRuleBooleanCondition0Properties, Pulumi.AwsNative.Cases.Inputs.CaseRuleBooleanCondition1Properties>>
    An ordered list of boolean conditions that determine when the field should be required. Conditions are evaluated in order, and the first condition that evaluates to true determines whether the field is required, overriding the default value.
    DefaultValue bool
    The default required state for the field when none of the specified conditions are met. If true, the field is required by default; if false, the field is optional by default.
    Conditions []interface{}
    An ordered list of boolean conditions that determine when the field should be required. Conditions are evaluated in order, and the first condition that evaluates to true determines whether the field is required, overriding the default value.
    DefaultValue bool
    The default required state for the field when none of the specified conditions are met. If true, the field is required by default; if false, the field is optional by default.
    conditions List<Either<CaseRuleBooleanCondition0Properties,CaseRuleBooleanCondition1Properties>>
    An ordered list of boolean conditions that determine when the field should be required. Conditions are evaluated in order, and the first condition that evaluates to true determines whether the field is required, overriding the default value.
    defaultValue Boolean
    The default required state for the field when none of the specified conditions are met. If true, the field is required by default; if false, the field is optional by default.
    conditions (CaseRuleBooleanCondition0Properties | CaseRuleBooleanCondition1Properties)[]
    An ordered list of boolean conditions that determine when the field should be required. Conditions are evaluated in order, and the first condition that evaluates to true determines whether the field is required, overriding the default value.
    defaultValue boolean
    The default required state for the field when none of the specified conditions are met. If true, the field is required by default; if false, the field is optional by default.
    conditions Sequence[Union[CaseRuleBooleanCondition0Properties, CaseRuleBooleanCondition1Properties]]
    An ordered list of boolean conditions that determine when the field should be required. Conditions are evaluated in order, and the first condition that evaluates to true determines whether the field is required, overriding the default value.
    default_value bool
    The default required state for the field when none of the specified conditions are met. If true, the field is required by default; if false, the field is optional by default.
    conditions List<Property Map | Property Map>
    An ordered list of boolean conditions that determine when the field should be required. Conditions are evaluated in order, and the first condition that evaluates to true determines whether the field is required, overriding the default value.
    defaultValue Boolean
    The default required state for the field when none of the specified conditions are met. If true, the field is required by default; if false, the field is optional by default.

    Tag, TagArgs

    A set of tags to apply to the resource.
    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Cloud Control v1.44.0 published on Friday, Dec 19, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate