search_rules
¶
search_rules(
instance_id: InstanceId,
*,
config_overrides: Optional[ConnectClientConfig] = None,
max_results: Optional[MaxResult200] = None,
next_token: Optional[NextToken2500] = None,
search_criteria: Optional[RulesSearchCriteria] = None,
search_filter: Optional[RulesSearchFilter] = None,
) -> SearchRulesResponse
Searches rules in an Connect Customer instance, with optional filtering.
Parameters:
-
instance_id(InstanceId) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
max_results(Optional[MaxResult200], default:None) –The maximum number of results to return per page.
-
next_token(Optional[NextToken2500], default:None) –The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
-
search_criteria(Optional[RulesSearchCriteria], default:None) –The search criteria to be used to return rules.
-
search_filter(Optional[RulesSearchFilter], default:None) –Filters to be applied to search results, such as tag-based filters.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
SearchRules Searches for published rules in an Amazon Connect instance.
>>> client.search_rules(instance_id='12345678-1234-1234-1234-123456789012', max_results=10, search_criteria={'StringCondition': {'FieldName': 'PublishStatus', 'Value': 'PUBLISHED', 'ComparisonType': 'EXACT'}})
Source code in docs_src/capo_connect/_services/connect.py
21638 21639 21640 21641 21642 21643 21644 21645 21646 21647 21648 21649 21650 21651 21652 21653 21654 21655 21656 21657 21658 21659 21660 21661 21662 21663 21664 21665 21666 21667 21668 21669 21670 21671 21672 21673 21674 21675 21676 21677 21678 21679 21680 21681 21682 21683 21684 21685 21686 21687 21688 21689 21690 21691 21692 21693 21694 21695 21696 21697 21698 21699 21700 21701 21702 21703 21704 21705 21706 21707 21708 21709 21710 21711 21712 | |