test_connection
async
¶
test_connection(
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
connection_name: Optional[NameString] = None,
catalog_id: Optional[CatalogIdString] = None,
test_connection_input: Optional[TestConnectionInput] = None,
) -> TestConnectionResponse
Tests a connection to a service to validate the service credentials that you provide.
You can either provide an existing connection name or a TestConnectionInput for testing a non-existing connection input. Providing both at the same time will cause an error.
If the action is successful, the service sends back an HTTP 200 response.
Parameters:
-
connection_name(Optional[NameString], default:None) –Optional. The name of the connection to test. If only name is provided, the operation will get the connection and use that for testing.
-
catalog_id(Optional[CatalogIdString], default:None) –The catalog ID where the connection resides.
-
test_connection_input(Optional[TestConnectionInput], default:None) –A structure that is used to specify testing a connection to a service.
Raises:
-
AccessDeniedException–Access to a resource was denied.
-
ConflictException–The
CreatePartitionsAPI was called on a table that has indexes enabled. -
EntityNotFoundException–A specified entity does not exist
-
FederationSourceException–A federation source failed.
-
GlueEncryptionException–An encryption operation failed.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
ResourceNumberLimitExceededException–A resource numerical limit was exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/async_glue.py
19199 19200 19201 19202 19203 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228 19229 19230 19231 19232 19233 19234 19235 19236 19237 19238 19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 19267 19268 19269 19270 19271 | |