Notification Channel
A notification. Uses Azure REST API version 2018-09-15. In version 1.x of the Azure Native provider, it used API version 2018-09-15.
Example Usage
NotificationChannels_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var notificationChannel = new AzureNative.DevTestLab.NotificationChannel("notificationChannel", new()
{
Description = "Integration configured for auto-shutdown",
EmailRecipient = "{email}",
Events = new[]
{
new AzureNative.DevTestLab.Inputs.EventArgs
{
EventName = AzureNative.DevTestLab.NotificationChannelEventType.AutoShutdown,
},
},
LabName = "{labName}",
Name = "{notificationChannelName}",
NotificationLocale = "en",
ResourceGroupName = "resourceGroupName",
WebHookUrl = "{webhookUrl}",
});
});
Content copied to clipboard
package main
import (
devtestlab "github.com/pulumi/pulumi-azure-native-sdk/devtestlab/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devtestlab.NewNotificationChannel(ctx, "notificationChannel", &devtestlab.NotificationChannelArgs{
Description: pulumi.String("Integration configured for auto-shutdown"),
EmailRecipient: pulumi.String("{email}"),
Events: devtestlab.EventArray{
&devtestlab.EventArgs{
EventName: pulumi.String(devtestlab.NotificationChannelEventTypeAutoShutdown),
},
},
LabName: pulumi.String("{labName}"),
Name: pulumi.String("{notificationChannelName}"),
NotificationLocale: pulumi.String("en"),
ResourceGroupName: pulumi.String("resourceGroupName"),
WebHookUrl: pulumi.String("{webhookUrl}"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.devtestlab.NotificationChannel;
import com.pulumi.azurenative.devtestlab.NotificationChannelArgs;
import com.pulumi.azurenative.devtestlab.inputs.EventArgs;
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 notificationChannel = new NotificationChannel("notificationChannel", NotificationChannelArgs.builder()
.description("Integration configured for auto-shutdown")
.emailRecipient("{email}")
.events(EventArgs.builder()
.eventName("AutoShutdown")
.build())
.labName("{labName}")
.name("{notificationChannelName}")
.notificationLocale("en")
.resourceGroupName("resourceGroupName")
.webHookUrl("{webhookUrl}")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:devtestlab:NotificationChannel {notificationChannelName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}
Content copied to clipboard
Properties
Link copied to clipboard
The creation date of the notification channel.
Link copied to clipboard
Description of notification.
Link copied to clipboard
The email recipient to send notifications to (can be a list of semi-colon separated email addresses).
Link copied to clipboard
The list of event for which this notification is enabled.
Link copied to clipboard
The locale to use when sending a notification (fallback for unsupported languages is EN).
Link copied to clipboard
The provisioning status of the resource.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The unique immutable identifier of a resource (Guid).
Link copied to clipboard
The webhook URL to send notifications to.