AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
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.
For .NET Core this operation is only available in asynchronous form. Please refer to TestConnectionAsync.
Namespace: Amazon.Glue
Assembly: AWSSDK.Glue.dll
Version: 3.x.y.z
public abstract TestConnectionResponse TestConnection( TestConnectionRequest request )
Container for the necessary parameters to execute the TestConnection service method.
Exception | Condition |
---|---|
AccessDeniedException | Access to a resource was denied. |
ConflictException | The CreatePartitions API 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. |
.NET Framework:
Supported in: 4.5 and newer, 3.5