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
7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 | |