CustomerEvent

class CustomerEvent : KotlinCustomResource

The Customer Notification Event resource. Uses Azure REST API version 2022-04-01-preview. In version 1.x of the Azure Native provider, it used API version 2022-04-01-preview. Other available API versions: 2023-11-01-preview.

Example Usage

CustomerEventCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var customerEvent = new AzureNative.TestBase.CustomerEvent("customerEvent", new()
{
CustomerEventName = "WeeklySummary",
EventName = "WeeklySummary",
Receivers = new[]
{
new AzureNative.TestBase.Inputs.NotificationEventReceiverArgs
{
ReceiverType = "UserObjects",
ReceiverValue = new AzureNative.TestBase.Inputs.NotificationReceiverValueArgs
{
UserObjectReceiverValue = new AzureNative.TestBase.Inputs.UserObjectReceiverValueArgs
{
UserObjectIds = new[]
{
"245245245245325",
"365365365363565",
},
},
},
},
new AzureNative.TestBase.Inputs.NotificationEventReceiverArgs
{
ReceiverType = "DistributionGroup",
ReceiverValue = new AzureNative.TestBase.Inputs.NotificationReceiverValueArgs
{
DistributionGroupListReceiverValue = new AzureNative.TestBase.Inputs.DistributionGroupListReceiverValueArgs
{
DistributionGroups = new[]
{
"test@microsoft.com",
},
},
},
},
},
ResourceGroupName = "contoso-rg1",
TestBaseAccountName = "contoso-testBaseAccount1",
});
});
package main
import (
testbase "github.com/pulumi/pulumi-azure-native-sdk/testbase/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := testbase.NewCustomerEvent(ctx, "customerEvent", &testbase.CustomerEventArgs{
CustomerEventName: pulumi.String("WeeklySummary"),
EventName: pulumi.String("WeeklySummary"),
Receivers: testbase.NotificationEventReceiverArray{
&testbase.NotificationEventReceiverArgs{
ReceiverType: pulumi.String("UserObjects"),
ReceiverValue: &testbase.NotificationReceiverValueArgs{
UserObjectReceiverValue: &testbase.UserObjectReceiverValueArgs{
UserObjectIds: pulumi.StringArray{
pulumi.String("245245245245325"),
pulumi.String("365365365363565"),
},
},
},
},
&testbase.NotificationEventReceiverArgs{
ReceiverType: pulumi.String("DistributionGroup"),
ReceiverValue: &testbase.NotificationReceiverValueArgs{
DistributionGroupListReceiverValue: &testbase.DistributionGroupListReceiverValueArgs{
DistributionGroups: pulumi.StringArray{
pulumi.String("test@microsoft.com"),
},
},
},
},
},
ResourceGroupName: pulumi.String("contoso-rg1"),
TestBaseAccountName: pulumi.String("contoso-testBaseAccount1"),
})
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.azurenative.testbase.CustomerEvent;
import com.pulumi.azurenative.testbase.CustomerEventArgs;
import com.pulumi.azurenative.testbase.inputs.NotificationEventReceiverArgs;
import com.pulumi.azurenative.testbase.inputs.NotificationReceiverValueArgs;
import com.pulumi.azurenative.testbase.inputs.UserObjectReceiverValueArgs;
import com.pulumi.azurenative.testbase.inputs.DistributionGroupListReceiverValueArgs;
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 customerEvent = new CustomerEvent("customerEvent", CustomerEventArgs.builder()
.customerEventName("WeeklySummary")
.eventName("WeeklySummary")
.receivers(
NotificationEventReceiverArgs.builder()
.receiverType("UserObjects")
.receiverValue(NotificationReceiverValueArgs.builder()
.userObjectReceiverValue(UserObjectReceiverValueArgs.builder()
.userObjectIds(
"245245245245325",
"365365365363565")
.build())
.build())
.build(),
NotificationEventReceiverArgs.builder()
.receiverType("DistributionGroup")
.receiverValue(NotificationReceiverValueArgs.builder()
.distributionGroupListReceiverValue(DistributionGroupListReceiverValueArgs.builder()
.distributionGroups("test@microsoft.com")
.build())
.build())
.build())
.resourceGroupName("contoso-rg1")
.testBaseAccountName("contoso-testBaseAccount1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:testbase:CustomerEvent WeeklySummary /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/customerEvents/{customerEventName}

Properties

Link copied to clipboard
val eventName: Output<String>

The name of the event subscribed to.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Resource name.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The notification event receivers.

Link copied to clipboard

The system metadata relating to this resource

Link copied to clipboard
val type: Output<String>

Resource type.

Link copied to clipboard
val urn: Output<String>