Class DynamoDBCompositeHandler
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.handlers.CompositeHandler
-
- com.amazonaws.athena.connectors.dynamodb.DynamoDBCompositeHandler
-
- All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestStreamHandler
public class DynamoDBCompositeHandler extends CompositeHandler
Boilerplate composite handler that allows us to use a single Lambda function for both Metadata and Data. In this case we just compose DynamoDBMetadataHandler and DynamoDBRecordHandler.
-
-
Constructor Summary
Constructors Constructor Description DynamoDBCompositeHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExceptionhandleDynamoDBException(Exception e)Transforms DynamoDB exceptions into AthenaConnectorException with appropriate error code.ExceptionhandleException(Exception e)-
Methods inherited from class com.amazonaws.athena.connector.lambda.handlers.CompositeHandler
handleRequest, handleRequest
-
-
-
-
Method Detail
-
handleException
public Exception handleException(Exception e)
- Overrides:
handleExceptionin classCompositeHandler
-
handleDynamoDBException
public static Exception handleDynamoDBException(Exception e)
Transforms DynamoDB exceptions into AthenaConnectorException with appropriate error code. Returns other exceptions unchanged.- Parameters:
e- The exception to handle- Returns:
- The transformed exception or original exception
-
-