AWS SDK Version 3 for .NET
API Reference

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.

Note:

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

Syntax

C#
public abstract TestConnectionResponse TestConnection(
         TestConnectionRequest request
)

Parameters

request
Type: Amazon.Glue.Model.TestConnectionRequest

Container for the necessary parameters to execute the TestConnection service method.

Return Value


The response from the TestConnection service method, as returned by Glue.

Exceptions

ExceptionCondition
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.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also