You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def lambda_handler(event,context):
"""Main entry point for Property Approval lambda function
Parameters
----------
event : API Gateway Lambda Proxy Request
The event passed to the function.
context : AWS Lambda Context
The context for the Lambda function.
Returns
-------
Success message upon successful storage of the approval outcome into DynamoDB
"""
logger.info(event)
errors = None if 'workflowErrors' not inevent['detail']elseevent['detail'].pop('workflowErrors')
# Deserialize event into strongly typed object
awsEvent:AWSEvent= Marshaller.unmarshall(event, AWSEvent) # type: ignore
detail:PublicationEvaluationCompleted = awsEvent.detail # type: ignore
returnpublication_approved(detail, errors)def lambda_handler(event, context):
"""Main entry point for Property Approval lambda function
Parameters
----------
event : API Gateway Lambda Proxy Request
The event passed to the function.
context : AWS Lambda Context
The context for the Lambda function.
Returns
-------
Success message upon successful storage of the approval outcome into DynamoDB
"""
logger.info(event)
errors = None if 'workflowErrors' not inevent['detail']elseevent['detail'].pop('workflowErrors')
# Deserialize event into strongly typed object
awsEvent:AWSEvent= Marshaller.unmarshall(event, AWSEvent) # type: ignore
detail:PublicationEvaluationCompleted = awsEvent.detail # type: ignore
returnpublication_approved(detail, errors)
Possible Solution
No response
Steps to Reproduce
N/A
Debugging logs
No response
The text was updated successfully, but these errors were encountered:
Expected Behaviour
publication_approved method never access
errors
Current Behaviour
No issue, parameter is never used
Code snippet
Possible Solution
No response
Steps to Reproduce
N/A
Debugging logs
No response
The text was updated successfully, but these errors were encountered: