CREATE NOTIFICATION INTEGRATION(出站到 Google Pub/Sub 主题)¶
Creates a new notification integration in the account or replaces an existing integration for sending a message to a Google Pub/Sub topic.
Note
Currently, this feature is limited to Snowflake accounts hosted on Google Cloud (GC).
语法
必填参数
nameString that specifies the identifier (i.e. name) for the integration; must be unique in your account.
In addition, the identifier must start with an alphabetic character and cannot contain spaces or special characters unless the entire identifier string is enclosed in double quotes (for example,
"My object"). Identifiers enclosed in double quotes are also case-sensitive.For more information, see Identifier requirements.
ENABLED = { TRUE | FALSE }Specifies whether to initiate operation of the integration or suspend it.
TRUEenables the integration.FALSEdisables the integration for maintenance. Any integration between Snowflake and a third-party service fails to work.
The value is case-insensitive.
The default is
TRUE.
TYPE = QUEUESpecifies that this is an integration between Snowflake and a third-party cloud message-queuing service.
DIRECTION = OUTBOUNDSpecifies that Snowflake produces the notification sent to the cloud messaging service.
NOTIFICATION_PROVIDER = GCP_PUBSUB将 Google Cloud Pub/Sub 指定为第三方云消息队列服务。
GCP_PUBSUB_TOPIC_NAME = 'topic_id'Identification of the Pub/Sub topic to which Snowflake pushes notifications.
可选参数
COMMENT = 'string_literal'String (literal) that specifies a comment for the integration.
Default: No value
访问控制要求
A role used to execute this operation must have the following privileges at a minimum:
| 权限 | 对象 | 备注 |
|---|---|---|
| CREATE INTEGRATION | 账户 | Only the ACCOUNTADMIN role has this privilege by default. The privilege can be granted to additional roles as needed. |
For instructions on creating a custom role with a specified set of privileges, see Creating custom roles.
For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.
使用说明
-
推送通知支持对多个管道使用相同的出站通知集成。
-
关于元数据:
Attention
Customers should ensure that no personal data (other than for a User object), sensitive data, export-controlled data, or other regulated data is entered as metadata when using the Snowflake service. For more information, see Metadata fields in Snowflake.
- The OR REPLACE and IF NOT EXISTS clauses are mutually exclusive. They can’t both be used in the same statement.
-
CREATE OR REPLACE <object> statements are atomic. That is, when an object is replaced, the old object is deleted and the new object is created in a single transaction.
- 云提供商的政府区域不允许向或从其他商业区域发送事件通知。
示例
请参阅以下主题: