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
17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 | |