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
17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 | |