

# ConnectionFailure

Details of why a connection is `FAILED`. Use `code` to decide how to respond. `message` is a human-readable description that you shouldn't parse. Both members are always present together.

## Contents
<a name="API_ConnectionFailure_Contents"></a>

 ** code **   <a name="context-Type-ConnectionFailure-code"></a>
A code that identifies why the connection failed. Codes include the following:  
+  `GLUE_CONNECTION_UNAVAILABLE` - The AWS Glue connection failed AWS Glue validation or no longer exists, or AWS Context couldn't provision catalog synchronization. Check the AWS Glue connection in the AWS Glue console, and then create the connection again.
New codes can be added, so handle a code that you don't recognize. Use `code`, not `message`, to decide how to respond.  
Type: String  
Valid Values: `GLUE_CONNECTION_UNAVAILABLE`   
Required: Yes

 ** message **   <a name="context-Type-ConnectionFailure-message"></a>
The failure message. For an AWS Glue connection that failed validation, this is the StatusReason from AWS Glue. Otherwise, it is a message from AWS Context.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 1024.  
Required: Yes

## See Also
<a name="API_ConnectionFailure_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/context-2022-07-26/ConnectionFailure) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/ConnectionFailure) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/ConnectionFailure) 