ConnectCases / Client / batch_get_case_rule

batch_get_case_rule#

ConnectCases.Client.batch_get_case_rule(**kwargs)#

Gets a batch of case rules. 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.

See also: AWS API Documentation

Request Syntax

response = client.batch_get_case_rule(
    caseRules=[
        {
            'id': 'string'
        },
    ],
    domainId='string'
)
Parameters:
  • caseRules (list) –

    [REQUIRED]

    List of case rule identifiers.

    • (dict) –

      Object containing case rule identifier information.

      • id (string) – [REQUIRED]

        Unique identifier of a case rule.

  • domainId (string) –

    [REQUIRED]

    Unique identifier of a Cases domain.

Return type:

dict

Returns:

Response Syntax

{
    'caseRules': [
        {
            'caseRuleArn': 'string',
            'caseRuleId': 'string',
            'createdTime': datetime(2015, 1, 1),
            'deleted': True|False,
            'description': 'string',
            'lastModifiedTime': datetime(2015, 1, 1),
            'name': 'string',
            'rule': {
                'required': {
                    'conditions': [
                        {
                            'equalTo': {
                                'operandOne': {
                                    'fieldId': 'string'
                                },
                                'operandTwo': {
                                    'booleanValue': True|False,
                                    'doubleValue': 123.0,
                                    'emptyValue': {},
                                    'stringValue': 'string'
                                },
                                'result': True|False
                            },
                            'notEqualTo': {
                                'operandOne': {
                                    'fieldId': 'string'
                                },
                                'operandTwo': {
                                    'booleanValue': True|False,
                                    'doubleValue': 123.0,
                                    'emptyValue': {},
                                    'stringValue': 'string'
                                },
                                'result': True|False
                            }
                        },
                    ],
                    'defaultValue': True|False
                }
            },
            'tags': {
                'string': 'string'
            }
        },
    ],
    'errors': [
        {
            'errorCode': 'string',
            'id': 'string',
            'message': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • caseRules (list) –

      List of detailed case rule information.

      • (dict) –

        Detailed case rule information. 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.

        • caseRuleArn (string) –

          The Amazon Resource Name (ARN) of the case rule.

        • caseRuleId (string) –

          Unique identifier of a case rule.

        • createdTime (datetime) –

          Timestamp when the resource was created.

        • deleted (boolean) –

          Indicates whether the resource has been deleted.

        • description (string) –

          Description of a case rule.

        • lastModifiedTime (datetime) –

          Timestamp when the resource was created or last modified.

        • name (string) –

          Name of the case rule.

        • rule (dict) –

          Represents what rule type should take place, under what conditions.

          Note

          This is a Tagged Union structure. Only one of the following top level keys will be set: required. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

          'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
          
          • required (dict) –

            Required rule type, used to indicate whether a field is required.

            • conditions (list) –

              List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.

              • (dict) –

                Boolean condition for a 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.

                Note

                This is a Tagged Union structure. Only one of the following top level keys will be set: equalTo, notEqualTo. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

                'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
                
                • equalTo (dict) –

                  Tests that operandOne is equal to operandTwo.

                  • operandOne (dict) –

                    Represents the left hand operand in the condition.

                    Note

                    This is a Tagged Union structure. Only one of the following top level keys will be set: fieldId. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

                    'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
                    
                    • fieldId (string) –

                      The field ID that this operand should take the value of.

                  • operandTwo (dict) –

                    Represents the right hand operand in the condition.

                    Note

                    This is a Tagged Union structure. Only one of the following top level keys will be set: booleanValue, doubleValue, emptyValue, stringValue. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

                    'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
                    
                    • booleanValue (boolean) –

                      Boolean value type.

                    • doubleValue (float) –

                      Double value type.

                    • emptyValue (dict) –

                      Empty value type.

                    • stringValue (string) –

                      String value type.

                  • result (boolean) –

                    The value of the outer rule if the condition evaluates to true.

                • notEqualTo (dict) –

                  Tests that operandOne is not equal to operandTwo.

                  • operandOne (dict) –

                    Represents the left hand operand in the condition.

                    Note

                    This is a Tagged Union structure. Only one of the following top level keys will be set: fieldId. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

                    'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
                    
                    • fieldId (string) –

                      The field ID that this operand should take the value of.

                  • operandTwo (dict) –

                    Represents the right hand operand in the condition.

                    Note

                    This is a Tagged Union structure. Only one of the following top level keys will be set: booleanValue, doubleValue, emptyValue, stringValue. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

                    'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
                    
                    • booleanValue (boolean) –

                      Boolean value type.

                    • doubleValue (float) –

                      Double value type.

                    • emptyValue (dict) –

                      Empty value type.

                    • stringValue (string) –

                      String value type.

                  • result (boolean) –

                    The value of the outer rule if the condition evaluates to true.

            • defaultValue (boolean) –

              The value of the rule (that is, whether the field is required) should none of the conditions evaluate to true.

        • tags (dict) –

          A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource.

          • (string) –

            • (string) –

    • errors (list) –

      List of case rule errors.

      • (dict) –

        Error for batch describe case rules API failure. 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.

        • errorCode (string) –

          Error code from getting a case rule.

        • id (string) –

          The case rule identifier that caused the error.

        • message (string) –

          Error message from getting a case rule.

Exceptions