GlueClient.get_resource_policies
rboto-glue==0.4.0 · Service index · Types
Model summary (excerpt): Retrieves the resource policies set on individual resources by Resource Access Manager during cross-account permission grants. Also retrieves the Data Catalog resource policy. If you enabled metadata encryption in Data Catalog settings, and you do not have permission on the KMS key, the operation can't return the Data Catalog resource policy.
Install and imports
Signature
async def get_resource_policies(
*,
next_token: str | None = None,
max_results: int | None = None,
) -> GetResourcePoliciesOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
next_token |
No | A continuation token, if this is a continuation request. |
max_results |
No | The maximum size of a list to return. |
Output
GetResourcePoliciesOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
get_resource_policies_response_list |
list[GluePolicyOutput] | None |
Always present | GluePolicyOutput |
next_token |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.get_resource_policies(...) accepts the same arguments and returns AsyncIterator[GetResourcePoliciesOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: max_results.
No output stream.
Errors
Import from rboto_glue.exceptions:
GlueEncryptionError, InternalServiceError, InvalidInputError, OperationTimeoutError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.