list_rules
async
¶
list_rules(
domain_identifier: DomainId,
target_type: RuleTargetType,
target_identifier: str,
*,
config_overrides: Optional[AsyncDataZoneClientConfig] = None,
rule_type: Optional[RuleType] = None,
action: Optional[RuleAction] = None,
project_ids: Optional[ProjectIds] = None,
asset_types: Optional[AssetTypeIdentifiers] = None,
data_product: Optional[bool] = None,
include_cascaded: Optional[bool] = None,
max_results: Optional[int] = None,
next_token: Optional[PaginationToken] = None,
) -> ListRulesOutput
Lists existing rules. In Amazon DataZone, a rule is a formal agreement that enforces specific requirements across user workflows (e.g., publishing assets to the catalog, requesting subscriptions, creating projects) within the Amazon DataZone data portal. These rules help maintain consistency, ensure compliance, and uphold governance standards in data management processes. For instance, a metadata enforcement rule can specify the required information for creating a subscription request or publishing a data asset to the catalog, ensuring alignment with organizational standards.
Parameters:
-
domain_identifier(DomainId) –The ID of the domain in which the rules are to be listed.
-
target_type(RuleTargetType) –The target type of the rule.
-
target_identifier(str) –The target ID of the rule.
-
rule_type(Optional[RuleType], default:None) –The type of the rule.
-
action(Optional[RuleAction], default:None) –The action of the rule.
-
project_ids(Optional[ProjectIds], default:None) –The IDs of projects in which rules are to be listed.
-
asset_types(Optional[AssetTypeIdentifiers], default:None) –The asset types of the rule.
-
data_product(Optional[bool], default:None) –The data product of the rule.
-
include_cascaded(Optional[bool], default:None) –Specifies whether to include cascading rules in the results.
-
max_results(Optional[int], default:None) –The maximum number of rules to return in a single call to
ListRules. When the number of rules to be listed is greater than the value ofMaxResults, the response contains aNextTokenvalue that you can use in a subsequent call toListRulesto list the next set of rules. -
next_token(Optional[PaginationToken], default:None) –When the number of rules is greater than the default value for the
MaxResultsparameter, or if you explicitly specify a value forMaxResultsthat is less than the number of rules, the response includes a pagination token namedNextToken. You can specify thisNextTokenvalue in a subsequent call toListRulesto list the next set of rules.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ThrottlingException–The request was denied due to request throttling.
-
UnauthorizedException–You do not have permission to perform this action.
-
InternalServerException–The request has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The specified resource cannot be found.
-
ValidationException–The input fails to satisfy the constraints specified by the Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_datazone/_services/async_data_zone.py
16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 | |