Skip to content

Commit

Permalink
docs(s3): let sample code can work, after copy and paste (#15762)
Browse files Browse the repository at this point in the history
docs(s3): let sample code can work, after copy and paste.
----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
neilkuan committed Jul 29, 2021
1 parent d227e48 commit 8f97d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-s3/README.md
Expand Up @@ -211,7 +211,7 @@ The following example will subscribe an SNS topic to be notified of all `s3:Obje
```ts
import * as s3n from '@aws-cdk/aws-s3-notifications';

const myTopic = new sns.Topic(this, 'MyTopic');
const topic = new sns.Topic(this, 'MyTopic');
bucket.addEventNotification(s3.EventType.OBJECT_CREATED, new s3n.SnsDestination(topic));
```

Expand Down

0 comments on commit 8f97d97

Please sign in to comment.