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
21859 21860 21861 21862 21863 21864 21865 21866 21867 21868 21869 21870 21871 21872 21873 21874 21875 21876 21877 21878 21879 21880 21881 21882 21883 21884 21885 21886 21887 21888 21889 21890 21891 21892 21893 21894 21895 21896 21897 21898 21899 21900 21901 21902 21903 21904 21905 21906 21907 21908 21909 21910 21911 21912 21913 21914 21915 21916 21917 21918 21919 21920 21921 21922 21923 21924 21925 21926 21927 21928 21929 21930 21931 21932 21933 | |