Class Notification (7.16.0)

A Notification object is created from yourBucket object using . Use it to interact with Cloud Pub/Sub notifications.

SeeCloud Pub/Sub Notifications for Google Cloud Storage

Inheritance

ServiceObject<Notification,NotificationMetadata> >Notification

Package

@google-cloud/storage

Example

const{Storage}=require('@google-cloud/storage');conststorage=newStorage();constmyBucket=storage.bucket('my-bucket');constnotification=myBucket.notification('1');

Constructors

(constructor)(bucket, id)

constructor(bucket:Bucket,id:string);

Constructs a new instance of theNotification class

Parameters
NameDescription
bucketBucket
idstring

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-30 UTC.