Skip to content

ConnectionFailure

Source code in docs_src/capo_context/types/connection_failure.py
class ConnectionFailure(TypedDict, closed=True):
    code: "capo_context.types.connection_failure_code.ConnectionFailureCode"
    """<p>A code that identifies why the connection failed. Codes include the following:</p> <ul> <li> <p> <code>GLUE_CONNECTION_UNAVAILABLE</code> - 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.</p> </li> </ul> <p>New codes can be added, so handle a code that you don't recognize. Use <code>code</code>, not <code>message</code>, to decide how to respond.</p>"""
    message: "capo_context.types.failure_message.FailureMessage"
    """<p>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.</p>"""

code instance-attribute

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.

message instance-attribute

message: FailureMessage

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.