MCPcopy Create free account
hub / github.com/awsdocs/aws-doc-sdk-examples / pack_message

Function pack_message

python/example_code/sqs/message_wrapper.py:196–203  ·  view source on GitHub ↗
(msg_path, msg_body, msg_line)

Source from the content-addressed store, hash-verified

194 """
195
196 def pack_message(msg_path, msg_body, msg_line):
197 return {
198 "body": msg_body,
199 "attributes": {
200 "path": {"StringValue": msg_path, "DataType": "String"},
201 "line": {"StringValue": str(msg_line), "DataType": "String"},
202 },
203 }
204
205 def unpack_message(msg):
206 return (

Callers 1

usage_demoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected