search_rules
async
¶
search_rules(
instance_id: InstanceId,
*,
config_overrides: Optional[AsyncConnectClientConfig] = 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.
>>> await 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/async_connect.py
21933 21934 21935 21936 21937 21938 21939 21940 21941 21942 21943 21944 21945 21946 21947 21948 21949 21950 21951 21952 21953 21954 21955 21956 21957 21958 21959 21960 21961 21962 21963 21964 21965 21966 21967 21968 21969 21970 21971 21972 21973 21974 21975 21976 21977 21978 21979 21980 21981 21982 21983 21984 21985 21986 21987 21988 21989 21990 21991 21992 21993 21994 21995 21996 21997 21998 21999 22000 22001 22002 22003 22004 22005 22006 22007 22008 | |