CustomerEventArgs

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. Uses Azure REST API version 2023-11-01-preview. In version 2.x of the Azure Native provider, it used API version 2022-04-01-preview. Other available API versions: 2022-04-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native testbase [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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}

Constructors

Link copied to clipboard
constructor(customerEventName: Output<String>? = null, eventName: Output<String>? = null, receivers: Output<List<NotificationEventReceiverArgs>>? = null, resourceGroupName: Output<String>? = null, testBaseAccountName: Output<String>? = null)

Properties

Link copied to clipboard
val customerEventName: Output<String>? = null

The resource name of the Test Base Customer event.

Link copied to clipboard
val eventName: Output<String>? = null

The name of the event subscribed to.

Link copied to clipboard

The notification event receivers.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val testBaseAccountName: Output<String>? = null

The resource name of the Test Base Account.

Functions

Link copied to clipboard
open override fun toJava(): CustomerEventArgs