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
22156 22157 22158 22159 22160 22161 22162 22163 22164 22165 22166 22167 22168 22169 22170 22171 22172 22173 22174 22175 22176 22177 22178 22179 22180 22181 22182 22183 22184 22185 22186 22187 22188 22189 22190 22191 22192 22193 22194 22195 22196 22197 22198 22199 22200 22201 22202 22203 22204 22205 22206 22207 22208 22209 22210 22211 22212 22213 22214 22215 22216 22217 22218 22219 22220 22221 22222 22223 22224 22225 22226 22227 22228 22229 22230 22231 | |