get_user_defined_functions
async
¶
get_user_defined_functions(
pattern: NameString,
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
catalog_id: Optional[CatalogIdString] = None,
database_name: Optional[NameString] = None,
function_type: Optional[FunctionType] = None,
next_token: Optional[Token] = None,
max_results: Optional[CatalogGetterPageSize] = None,
) -> GetUserDefinedFunctionsResponse
Retrieves multiple function definitions from the Data Catalog.
Parameters:
-
catalog_id(Optional[CatalogIdString], default:None) –The ID of the Data Catalog where the functions to be retrieved are located. If none is provided, the Amazon Web Services account ID is used by default.
-
database_name(Optional[NameString], default:None) –The name of the catalog database where the functions are located. If none is provided, functions from all the databases across the catalog will be returned.
-
pattern(NameString) –An optional function-name pattern string that filters the function definitions returned.
-
function_type(Optional[FunctionType], default:None) –An optional function-type pattern string that filters the function definitions returned from Amazon Redshift Federated Permissions Catalog.
Specify a value of
REGULAR_FUNCTIONorSTORED_PROCEDURE. TheSTORED_PROCEDUREfunction type is only compatible with Amazon Redshift Federated Permissions Catalog. -
next_token(Optional[Token], default:None) –A continuation token, if this is a continuation call.
-
max_results(Optional[CatalogGetterPageSize], default:None) –The maximum number of functions to return in one response.
Raises:
-
EntityNotFoundException–A specified entity does not exist
-
GlueEncryptionException–An encryption operation failed.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/async_glue.py
13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 | |