Before writing a CREATE NOTIFICATION INTEGRATION statement:
- Read
references/parameters.mdto review all available parameters and their defaults. - For each parameter, decide whether the user's request implies a non-default value.
- Include only the parameters that differ from the default or that the user explicitly requested — do not bloat the DDL with unnecessary clauses.
- Never use
CREATE OR REPLACE— always useCREATE NOTIFICATION INTEGRATION IF NOT EXISTS. - Select the correct TYPE variant based on context: use
TYPE = EMAILfor email notifications,TYPE = WEBHOOKfor webhook integrations, andTYPE = QUEUEwith the appropriateNOTIFICATION_PROVIDER(AWS_SNS, AZURE_EVENT_GRID, or GCP_PUBSUB) for cloud message-queue integrations. - Note that
OR REPLACEandIF NOT EXISTSare mutually exclusive — always preferIF NOT EXISTS. - For QUEUE types, always include
DIRECTION = OUTBOUNDand the provider-specific ARN or endpoint parameters. - For WEBHOOK types, include
WEBHOOK_SECRETwhenever the URL requires authentication credentials.