list_rules
¶
list_rules(
domain_identifier: DomainId,
target_type: RuleTargetType,
target_identifier: str,
*,
config_overrides: Optional[DataZoneClientConfig] = 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/data_zone.py
16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 | |