snowflake.core.notification_integration.NotificationIntegrationResource | Snowflake Documentation (original) (raw)
class snowflake.core.notification_integration.NotificationIntegrationResource(name: str, collection: NotificationIntegrationCollection)¶
Bases: ObjectReferenceMixin
[NotificationIntegrationCollection]
Represents a reference to a Snowflake Notification Integration resource.
With this notification integration reference you can delete, and fetch information about them.
Attributes
root¶
The Root object this reference belongs to.
Methods
drop(if_exists: bool | None = None) → None¶
Drop this notification integration.
Parameters:
if_exists (bool , optional) – Check the existence of this notification integration before dropping it. Default is None
, which is equivalent to False
.
Examples
Deleting a notification integration using its reference:
Deleting a notification integration using its reference if it exists:
ni_reference.drop(if_exists=True)
drop_async(if_exists: bool | None = None) → PollingOperation[None]¶
An asynchronous version of drop().
Refer to PollingOperation for more information on asynchronous execution and the return type.
fetch() → NotificationIntegration¶
Fetch the details of a notification integration.
Examples
Fetching a notification integration reference to print its name, whether it’s enabled and some information about its hook:
my_ni = ni_reference.fetch() print(my_ni.name, my_ni.enabled, repr(my_ni.notification_hook))
fetch_async() → PollingOperation[NotificationIntegration]¶
An asynchronous version of fetch().
Refer to PollingOperation for more information on asynchronous execution and the return type.