Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
docs: fix sst.aws.Bucket.subscribeQueue examples (#1218)
Browse files Browse the repository at this point in the history
Examples show `sst.aws.Bucket.subscribe(...)` instead of `sst.aws.Bucket.subscribeQueue(...)`

https://sst.dev/docs/component/aws/bucket/#static-subscribequeue
  • Loading branch information
juanpujol authored Oct 11, 2024
1 parent 27eda0e commit 7b37038
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions platform/src/components/aws/bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -822,21 +822,21 @@ export class Bucket extends Component implements Link.Linkable {
* You can subscribe to the bucket with the queue.
*
* ```js title="sst.config.ts"
* sst.aws.Bucket.subscribe(bucketArn, queueArn);
* sst.aws.Bucket.subscribeQueue(bucketArn, queueArn);
* ```
*
* Subscribe to specific S3 events.
*
* ```js title="sst.config.ts"
* sst.aws.Bucket.subscribe(bucketArn, queueArn, {
* sst.aws.Bucket.subscribeQueue(bucketArn, queueArn, {
* events: ["s3:ObjectCreated:*", "s3:ObjectRemoved:*"]
* });
* ```
*
* Subscribe to specific S3 events from a specific folder.
*
* ```js title="sst.config.ts" {2}
* sst.aws.Bucket.subscribe(bucketArn, queueArn, {
* sst.aws.Bucket.subscribeQueue(bucketArn, queueArn, {
* filterPrefix: "images/",
* events: ["s3:ObjectCreated:*", "s3:ObjectRemoved:*"]
* });
Expand Down

0 comments on commit 7b37038

Please sign in to comment.