!> Caution: Preview Feature This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to preview_features_enabled field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
Example Usage
Note Instead of using fully_qualified_name, you can reference objects managed outside Terraform by constructing a correct ID, consult identifiers guide.
import * as pulumi from "@pulumi/pulumi";
import * as snowflake from "@pulumi/snowflake";
const emailInt = new snowflake.EmailNotificationIntegration("email_int", {
name: "notification",
comment: "A notification integration.",
enabled: true,
allowedRecipients: ["john.doe@gmail.com"],
});
import pulumi
import pulumi_snowflake as snowflake
email_int = snowflake.EmailNotificationIntegration("email_int",
name="notification",
comment="A notification integration.",
enabled=True,
allowed_recipients=["john.doe@gmail.com"])
package main
import (
"github.com/pulumi/pulumi-snowflake/sdk/v2/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := snowflake.NewEmailNotificationIntegration(ctx, "email_int", &snowflake.EmailNotificationIntegrationArgs{
Name: pulumi.String("notification"),
Comment: pulumi.String("A notification integration."),
Enabled: pulumi.Bool(true),
AllowedRecipients: pulumi.StringArray{
pulumi.String("john.doe@gmail.com"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Snowflake = Pulumi.Snowflake;
return await Deployment.RunAsync(() =>
{
var emailInt = new Snowflake.EmailNotificationIntegration("email_int", new()
{
Name = "notification",
Comment = "A notification integration.",
Enabled = true,
AllowedRecipients = new[]
{
"john.doe@gmail.com",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.snowflake.EmailNotificationIntegration;
import com.pulumi.snowflake.EmailNotificationIntegrationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var emailInt = new EmailNotificationIntegration("emailInt", EmailNotificationIntegrationArgs.builder()
.name("notification")
.comment("A notification integration.")
.enabled(true)
.allowedRecipients("john.doe@gmail.com")
.build());
}
}
resources:
emailInt:
type: snowflake:EmailNotificationIntegration
name: email_int
properties:
name: notification
comment: A notification integration.
enabled: true
allowedRecipients:
- john.doe@gmail.com
Note If a field has a default value, it is shown next to the type in the schema.
Create EmailNotificationIntegration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EmailNotificationIntegration(name: string, args: EmailNotificationIntegrationArgs, opts?: CustomResourceOptions);@overload
def EmailNotificationIntegration(resource_name: str,
args: EmailNotificationIntegrationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EmailNotificationIntegration(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
allowed_recipients: Optional[Sequence[str]] = None,
comment: Optional[str] = None,
name: Optional[str] = None)func NewEmailNotificationIntegration(ctx *Context, name string, args EmailNotificationIntegrationArgs, opts ...ResourceOption) (*EmailNotificationIntegration, error)public EmailNotificationIntegration(string name, EmailNotificationIntegrationArgs args, CustomResourceOptions? opts = null)
public EmailNotificationIntegration(String name, EmailNotificationIntegrationArgs args)
public EmailNotificationIntegration(String name, EmailNotificationIntegrationArgs args, CustomResourceOptions options)
type: snowflake:EmailNotificationIntegration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EmailNotificationIntegrationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args EmailNotificationIntegrationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EmailNotificationIntegrationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EmailNotificationIntegrationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EmailNotificationIntegrationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var emailNotificationIntegrationResource = new Snowflake.EmailNotificationIntegration("emailNotificationIntegrationResource", new()
{
Enabled = false,
AllowedRecipients = new[]
{
"string",
},
Comment = "string",
Name = "string",
});
example, err := snowflake.NewEmailNotificationIntegration(ctx, "emailNotificationIntegrationResource", &snowflake.EmailNotificationIntegrationArgs{
Enabled: pulumi.Bool(false),
AllowedRecipients: pulumi.StringArray{
pulumi.String("string"),
},
Comment: pulumi.String("string"),
Name: pulumi.String("string"),
})
var emailNotificationIntegrationResource = new EmailNotificationIntegration("emailNotificationIntegrationResource", EmailNotificationIntegrationArgs.builder()
.enabled(false)
.allowedRecipients("string")
.comment("string")
.name("string")
.build());
email_notification_integration_resource = snowflake.EmailNotificationIntegration("emailNotificationIntegrationResource",
enabled=False,
allowed_recipients=["string"],
comment="string",
name="string")
const emailNotificationIntegrationResource = new snowflake.EmailNotificationIntegration("emailNotificationIntegrationResource", {
enabled: false,
allowedRecipients: ["string"],
comment: "string",
name: "string",
});
type: snowflake:EmailNotificationIntegration
properties:
allowedRecipients:
- string
comment: string
enabled: false
name: string
EmailNotificationIntegration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The EmailNotificationIntegration resource accepts the following input properties:
- Enabled bool
- Allowed
Recipients List<string> - List of email addresses that should receive notifications.
- Comment string
- A comment for the email integration.
- Name string
- Enabled bool
- Allowed
Recipients []string - List of email addresses that should receive notifications.
- Comment string
- A comment for the email integration.
- Name string
- enabled Boolean
- allowed
Recipients List<String> - List of email addresses that should receive notifications.
- comment String
- A comment for the email integration.
- name String
- enabled boolean
- allowed
Recipients string[] - List of email addresses that should receive notifications.
- comment string
- A comment for the email integration.
- name string
- enabled bool
- allowed_
recipients Sequence[str] - List of email addresses that should receive notifications.
- comment str
- A comment for the email integration.
- name str
- enabled Boolean
- allowed
Recipients List<String> - List of email addresses that should receive notifications.
- comment String
- A comment for the email integration.
- name String
Outputs
All input properties are implicitly available as output properties. Additionally, the EmailNotificationIntegration resource produces the following output properties:
- Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Id string
- The provider-assigned unique ID for this managed resource.
- Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Id string
- The provider-assigned unique ID for this managed resource.
- fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- id String
- The provider-assigned unique ID for this managed resource.
- fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- id string
- The provider-assigned unique ID for this managed resource.
- fully_
qualified_ strname - Fully qualified name of the resource. For more information, see object name resolution.
- id str
- The provider-assigned unique ID for this managed resource.
- fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing EmailNotificationIntegration Resource
Get an existing EmailNotificationIntegration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: EmailNotificationIntegrationState, opts?: CustomResourceOptions): EmailNotificationIntegration@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allowed_recipients: Optional[Sequence[str]] = None,
comment: Optional[str] = None,
enabled: Optional[bool] = None,
fully_qualified_name: Optional[str] = None,
name: Optional[str] = None) -> EmailNotificationIntegrationfunc GetEmailNotificationIntegration(ctx *Context, name string, id IDInput, state *EmailNotificationIntegrationState, opts ...ResourceOption) (*EmailNotificationIntegration, error)public static EmailNotificationIntegration Get(string name, Input<string> id, EmailNotificationIntegrationState? state, CustomResourceOptions? opts = null)public static EmailNotificationIntegration get(String name, Output<String> id, EmailNotificationIntegrationState state, CustomResourceOptions options)resources: _: type: snowflake:EmailNotificationIntegration get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Allowed
Recipients List<string> - List of email addresses that should receive notifications.
- Comment string
- A comment for the email integration.
- Enabled bool
- Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Name string
- Allowed
Recipients []string - List of email addresses that should receive notifications.
- Comment string
- A comment for the email integration.
- Enabled bool
- Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Name string
- allowed
Recipients List<String> - List of email addresses that should receive notifications.
- comment String
- A comment for the email integration.
- enabled Boolean
- fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- name String
- allowed
Recipients string[] - List of email addresses that should receive notifications.
- comment string
- A comment for the email integration.
- enabled boolean
- fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- name string
- allowed_
recipients Sequence[str] - List of email addresses that should receive notifications.
- comment str
- A comment for the email integration.
- enabled bool
- fully_
qualified_ strname - Fully qualified name of the resource. For more information, see object name resolution.
- name str
- allowed
Recipients List<String> - List of email addresses that should receive notifications.
- comment String
- A comment for the email integration.
- enabled Boolean
- fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- name String
Import
$ pulumi import snowflake:index/emailNotificationIntegration:EmailNotificationIntegration example name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflakeTerraform Provider.
