snowflake.EmailNotificationIntegration

Explore with Pulumi AI

Import

 $ pulumi import snowflake:index/emailNotificationIntegration:EmailNotificationIntegration example name

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Snowflake = Pulumi.Snowflake;

return await Deployment.RunAsync(() => 
{
    var emailInt = new Snowflake.EmailNotificationIntegration("emailInt", new()
    {
        AllowedRecipients = new[]
        {
            "john.doe@gmail.com",
        },
        Comment = "A notification integration.",
        Enabled = true,
    });

});
package main

import (
	"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.NewEmailNotificationIntegration(ctx, "emailInt", &snowflake.EmailNotificationIntegrationArgs{
			AllowedRecipients: pulumi.StringArray{
				pulumi.String("john.doe@gmail.com"),
			},
			Comment: pulumi.String("A notification integration."),
			Enabled: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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()        
            .allowedRecipients("john.doe@gmail.com")
            .comment("A notification integration.")
            .enabled(true)
            .build());

    }
}
import pulumi
import pulumi_snowflake as snowflake

email_int = snowflake.EmailNotificationIntegration("emailInt",
    allowed_recipients=["john.doe@gmail.com"],
    comment="A notification integration.",
    enabled=True)
import * as pulumi from "@pulumi/pulumi";
import * as snowflake from "@pulumi/snowflake";

const emailInt = new snowflake.EmailNotificationIntegration("emailInt", {
    allowedRecipients: ["john.doe@gmail.com"],
    comment: "A notification integration.",
    enabled: true,
});
resources:
  emailInt:
    type: snowflake:EmailNotificationIntegration
    properties:
      allowedRecipients:
        - john.doe@gmail.com
      comment: A notification integration.
      enabled: true

Create EmailNotificationIntegration Resource

new EmailNotificationIntegration(name: string, args: EmailNotificationIntegrationArgs, opts?: CustomResourceOptions);
@overload
def EmailNotificationIntegration(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 allowed_recipients: Optional[Sequence[str]] = None,
                                 comment: Optional[str] = None,
                                 enabled: Optional[bool] = None,
                                 name: Optional[str] = None)
@overload
def EmailNotificationIntegration(resource_name: str,
                                 args: EmailNotificationIntegrationArgs,
                                 opts: Optional[ResourceOptions] = 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.

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.

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

The EmailNotificationIntegration resource accepts the following input properties:

AllowedRecipients List<string>

List of email addresses that should receive notifications.

Enabled bool
Comment string

A comment for the email integration.

Name string
AllowedRecipients []string

List of email addresses that should receive notifications.

Enabled bool
Comment string

A comment for the email integration.

Name string
allowedRecipients List<String>

List of email addresses that should receive notifications.

enabled Boolean
comment String

A comment for the email integration.

name String
allowedRecipients string[]

List of email addresses that should receive notifications.

enabled boolean
comment string

A comment for the email integration.

name string
allowed_recipients Sequence[str]

List of email addresses that should receive notifications.

enabled bool
comment str

A comment for the email integration.

name str
allowedRecipients List<String>

List of email addresses that should receive notifications.

enabled Boolean
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:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

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,
        name: Optional[str] = None) -> EmailNotificationIntegration
func 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)
Resource lookup is not supported in YAML
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.
The following state arguments are supported:
AllowedRecipients List<string>

List of email addresses that should receive notifications.

Comment string

A comment for the email integration.

Enabled bool
Name string
AllowedRecipients []string

List of email addresses that should receive notifications.

Comment string

A comment for the email integration.

Enabled bool
Name string
allowedRecipients List<String>

List of email addresses that should receive notifications.

comment String

A comment for the email integration.

enabled Boolean
name String
allowedRecipients string[]

List of email addresses that should receive notifications.

comment string

A comment for the email integration.

enabled boolean
name string
allowed_recipients Sequence[str]

List of email addresses that should receive notifications.

comment str

A comment for the email integration.

enabled bool
name str
allowedRecipients List<String>

List of email addresses that should receive notifications.

comment String

A comment for the email integration.

enabled Boolean
name String

Package Details

Repository
Snowflake pulumi/pulumi-snowflake
License
Apache-2.0
Notes

This Pulumi package is based on the snowflake Terraform Provider.