Skip to content

Commit

Permalink
tweaks to code and fix name (s3_not)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry Kindall committed May 23, 2020
1 parent 6a6df9e commit 1735903
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc_source/resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ import aws_cdk.aws_s3_notifications as s3_nots
handler = lambda_.Function(self, "Handler", ...)
bucket = s3.Bucket(self, "Bucket")
bucket.add_object_created_notification(s3_not.LambdaDestination(handler))
bucket.add_object_created_notification(s3_nots.LambdaDestination(handler))
```

------
Expand All @@ -1099,11 +1099,11 @@ bucket.addObjectCreatedNotification(new LambdaDestination(handler));
```
using lambda = Amazon.CDK.AWS.Lambda;
using s3 = Amazon.CDK.AWS.S3;
using s3_not = Amazon.CDK.AWS.S3.Notifications;
using s3Nots = Amazon.CDK.AWS.S3.Notifications;
var handler = new lambda.Function(this, "Handler", new lambda.FunctionProps { .. });
var bucket = new s3.Bucket(this, "Bucket");
bucket.AddObjectCreatedNotification(new s3_not.LambdaDestination(handler));
bucket.AddObjectCreatedNotification(new s3Nots.LambdaDestination(handler));
```

------
Expand Down

0 comments on commit 1735903

Please sign in to comment.