auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
// Extract a subset of the HTTP POST body (in event.body),
// saving that as the payload to send to S3
const { name, title } = event.body
this.payload = {
name,
title,
}
auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
// Before sending data to your bucket, you'll need to add the required
// bucket policy: https://docs.pipedream.com/destinations/s3/#s3-bucket-policy
$send.s3({
payload: steps.transform.payload,
bucket: "my-s3-bucket",
prefix: "pipedream/",
})