list_policy_grants
¶
list_policy_grants(
domain_identifier: DomainId,
entity_type: TargetEntityType,
entity_identifier: str,
policy_type: ManagedPolicyType,
*,
config_overrides: Optional[DataZoneClientConfig] = None,
max_results: Optional[MaxResultsForListDomains] = None,
next_token: Optional[PaginationToken] = None,
) -> ListPolicyGrantsOutput
Lists policy grants.
Parameters:
-
domain_identifier(DomainId) –The ID of the domain where you want to list policy grants.
-
entity_type(TargetEntityType) –The type of entity for which you want to list policy grants.
-
entity_identifier(str) –The ID of the entity for which you want to list policy grants.
-
policy_type(ManagedPolicyType) –The type of policy that you want to list.
-
max_results(Optional[MaxResultsForListDomains], default:None) –The maximum number of grants to return in a single call to
ListPolicyGrants. When the number of grants to be listed is greater than the value ofMaxResults, the response contains aNextTokenvalue that you can use in a subsequent call toListPolicyGrantsto list the next set of grants. -
next_token(Optional[PaginationToken], default:None) –When the number of grants is greater than the default value for the
MaxResultsparameter, or if you explicitly specify a value forMaxResultsthat is less than the number of grants, the response includes a pagination token namedNextToken. You can specify thisNextTokenvalue in a subsequent call toListPolicyGrantsto list the next set of grants.
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.
-
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
7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 | |