import * as cloud from "@pulumi/cloud" ; import * as pulumi from "@pulumi/pulumi" ; const bucket = new cloud . Bucket ( "myBucket" ) ; bucket . onPut ( "myPutHandler" , async ( args ) => { console . log ( JSON . stringify ( args ) ) ; } ) ;