list_policy_grants
async
¶
list_policy_grants(
domain_identifier: DomainId,
entity_type: TargetEntityType,
entity_identifier: str,
policy_type: ManagedPolicyType,
*,
config_overrides: Optional[AsyncDataZoneClientConfig] = 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/async_data_zone.py
7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 | |