list_rule_groups_namespaces
async
¶
list_rule_groups_namespaces(
workspace_id: WorkspaceId,
*,
config_overrides: Optional[AsyncampClientConfig] = None,
name: Optional[RuleGroupsNamespaceName] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[int] = None,
) -> ListRuleGroupsNamespacesResponse
Returns a list of rule groups namespaces in a workspace.
Parameters:
-
workspace_id(WorkspaceId) –The ID of the workspace containing the rule groups namespaces.
-
name(Optional[RuleGroupsNamespaceName], default:None) –Use this parameter to filter the rule groups namespaces that are returned. Only the namespaces with names that begin with the value that you specify are returned.
-
next_token(Optional[PaginationToken], default:None) –The token for the next set of items to return. You receive this token from a previous call, and use it to get the next page of results. The other parameters must be the same as the initial call.
For example, if your initial request has
maxResultsof 10, and there are 12 rule groups namespaces to return, then your initial request will return 10 and anextToken. Using the next token in a subsequent call will return the remaining 2 namespaces. -
max_results(Optional[int], default:None) –The maximum number of results to return. The default is 100.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–An unexpected error occurred during the processing of the request.
-
ResourceNotFoundException–The request references a resources that doesn't exist.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_amp/_services/async_amp.py
2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 | |