list_rules
async
¶
list_rules(
instance_id: InstanceId,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
publish_status: Optional[RulePublishStatus] = None,
event_source_name: Optional[EventSourceName] = None,
max_results: Optional[MaxResult200] = None,
next_token: Optional[NextToken] = None,
) -> ListRulesResponse
List all rules for the specified Connect Customer instance.
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.
-
publish_status(Optional[RulePublishStatus], default:None) –The publish status of the rule.
-
event_source_name(Optional[EventSourceName], default:None) –The name of the event source.
-
max_results(Optional[MaxResult200], default:None) –The maximum number of results to return per page.
-
next_token(Optional[NextToken], 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.
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.
-
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.
Source code in docs_src/capo_connect/_services/async_connect.py
17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 | |