feat: ローカル動作確認用のコードをコメントで追加
This commit is contained in:
parent
f1ce484d1d
commit
d5d5b719f7
@ -350,3 +350,27 @@ def lambda_handler(event, context):
|
||||
raise e
|
||||
|
||||
return batch_item_failures
|
||||
|
||||
|
||||
# 動作確認用のコード
|
||||
# if __name__ == '__main__':
|
||||
# lambda_handler({
|
||||
# "Records": [
|
||||
# {
|
||||
# "messageId": "19dd0b57-b21e-4ac1-bd88-01bbb068cb78",
|
||||
# "receiptHandle": "MessageReceiptHandle",
|
||||
# "body": "{\"receive_timing\": \"速報\",\"check_folder_prefix\": \"encise\",\"check_target_file_list\": \"en_quick_file_list.config\",\"notice_mail_title_template\": \"en_unreceive_notice_mail_title.config\",\"notice_mail_body_template\": \"en_unreceive_notice_mail_body.config\"\r\n}",
|
||||
# "attributes": {
|
||||
# "ApproximateReceiveCount": "1",
|
||||
# "SentTimestamp": "1523232000000",
|
||||
# "SenderId": "123456789012",
|
||||
# "ApproximateFirstReceiveTimestamp": "1523232000001"
|
||||
# },
|
||||
# "messageAttributes": {},
|
||||
# "md5OfBody": "{{{md5_of_body}}}",
|
||||
# "eventSource": "aws:sqs",
|
||||
# "eventSourceARN": "arn:aws:sqs:us-east-1:123456789012:MyQueue",
|
||||
# "awsRegion": "us-east-1"
|
||||
# }
|
||||
# ]
|
||||
# }, {})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user