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
19920 19921 19922 19923 19924 19925 19926 19927 19928 19929 19930 19931 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 19946 19947 19948 19949 19950 19951 19952 19953 19954 19955 19956 19957 19958 19959 19960 19961 19962 19963 19964 19965 19966 19967 19968 19969 19970 19971 19972 19973 19974 19975 19976 19977 19978 19979 19980 19981 19982 19983 19984 19985 19986 19987 19988 19989 19990 19991 19992 | |