Customer Event Args
data class CustomerEventArgs(val customerEventName: Output<String>? = null, val eventName: Output<String>? = null, val receivers: Output<List<NotificationEventReceiverArgs>>? = null, val resourceGroupName: Output<String>? = null, val testBaseAccountName: Output<String>? = null) : ConvertibleToJava<CustomerEventArgs>
The Customer Notification Event resource. API Version: 2022-04-01-preview.
Example Usage
CustomerEventCreate
using System.Collections.Generic;
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",
});
});
Content copied to clipboard
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 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(
Map.ofEntries(
Map.entry("receiverType", "UserObjects"),
Map.entry("receiverValue", Map.of("userObjectReceiverValue", Map.of("userObjectIds",
"245245245245325",
"365365365363565")))
),
Map.ofEntries(
Map.entry("receiverType", "DistributionGroup"),
Map.entry("receiverValue", Map.of("distributionGroupListReceiverValue", Map.of("distributionGroups", "test@microsoft.com")))
))
.resourceGroupName("contoso-rg1")
.testBaseAccountName("contoso-testBaseAccount1")
.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:testbase:CustomerEvent WeeklySummary /subscriptions/subscription-id/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/customerEvents/WeeklySummary
Content copied to clipboard
Constructors
Link copied to clipboard
fun CustomerEventArgs(customerEventName: Output<String>? = null, eventName: Output<String>? = null, receivers: Output<List<NotificationEventReceiverArgs>>? = null, resourceGroupName: Output<String>? = null, testBaseAccountName: Output<String>? = null)