message: removed deprecated aws.serverless.lambda in favor aws.lambda.CallbackFunction for lambda functions
diff: @@ -43,25 +43,42 @@ const sfnRolePolicy = new aws.iam.RolePolicy("sfnRolePolicy", {
  },
  });
  -const helloFunction = new aws.serverless.Function(
  - "helloFunction",
  - { role: lambdaRole },
  - (event, context, callback) => {
  +const helloFunction = new aws.lambda.CallbackFunction(
  + "helloFunction", {
  + role: lambdaRole,
  + callback: (event, context, callback) => {
  callback(null, "Hello");
  - },
  -);
  + }
  +});
  -const worldFunction = new aws.serverless.Function(
  - "worldFunction",
  - {role: lambdaRole},
  - (event, context, callback) => {
  - callback(null, `${event} World!`);
  - },
  -);
  +// const helloFunction = new aws.serverless.Function(
  +// "helloFunction",
  +// { role: lambdaRole },
  +// (event, context, callback) => {
  +// callback(null, "Hello");
  +// },
  +// );
  +
  +const worldFunction = new aws.lambda.CallbackFunction(
  + "worldFunction", {
  + role: lambdaRole,
  + callback: (event, context, callback) => {
  + callback(null, `${event} World!`)
  + }
  + }
  +)
  +
  +// const worldFunction = new aws.serverless.Function(
  +// "worldFunction",
  +// { role: lambdaRole },
  +// (event, context, callback) => {
  +// callback(null, `${event} World!`);
  +// },
  +// );
  const stateMachine = new aws.sfn.StateMachine("stateMachine", {
  roleArn: sfnRole.arn,
  - definition: pulumi.all([helloFunction.lambda.arn, worldFunction.lambda.arn])
  + definition: pulumi.all([helloFunction.arn, worldFunction.arn])
  .apply(([helloArn, worldArn]) => {
  return JSON.stringify({
  "Comment": "A Hello World example of the Amazon States Language using two AWS Lambda Functions",
  