From 7b37038fa1bd38b7373642f7a9b227bf71847a8c Mon Sep 17 00:00:00 2001 From: Juan Pujol <30832+juanpujol@users.noreply.github.com> Date: Fri, 11 Oct 2024 17:52:25 -0300 Subject: [PATCH] docs: fix sst.aws.Bucket.subscribeQueue examples (#1218) Examples show `sst.aws.Bucket.subscribe(...)` instead of `sst.aws.Bucket.subscribeQueue(...)` https://sst.dev/docs/component/aws/bucket/#static-subscribequeue --- platform/src/components/aws/bucket.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/src/components/aws/bucket.ts b/platform/src/components/aws/bucket.ts index d0f101f66..cf842c94c 100644 --- a/platform/src/components/aws/bucket.ts +++ b/platform/src/components/aws/bucket.ts @@ -822,13 +822,13 @@ 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:*"] * }); * ``` @@ -836,7 +836,7 @@ export class Bucket extends Component implements Link.Linkable { * 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:*"] * });