azure-native.testbase.CustomerEvent

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",
    });

});

Coming soon!

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());

    }
}
import pulumi
import pulumi_azure_native as azure_native

customer_event = azure_native.testbase.CustomerEvent("customerEvent",
    customer_event_name="WeeklySummary",
    event_name="WeeklySummary",
    receivers=[
        {
            "receiverType": "UserObjects",
            "receiverValue": {
                "userObjectReceiverValue": azure_native.testbase.UserObjectReceiverValueArgs(
                    user_object_ids=[
                        "245245245245325",
                        "365365365363565",
                    ],
                ),
            },
        },
        {
            "receiverType": "DistributionGroup",
            "receiverValue": {
                "distributionGroupListReceiverValue": azure_native.testbase.DistributionGroupListReceiverValueArgs(
                    distribution_groups=["test@microsoft.com"],
                ),
            },
        },
    ],
    resource_group_name="contoso-rg1",
    test_base_account_name="contoso-testBaseAccount1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const customerEvent = new azure_native.testbase.CustomerEvent("customerEvent", {
    customerEventName: "WeeklySummary",
    eventName: "WeeklySummary",
    receivers: [
        {
            receiverType: "UserObjects",
            receiverValue: {
                userObjectReceiverValue: {
                    userObjectIds: [
                        "245245245245325",
                        "365365365363565",
                    ],
                },
            },
        },
        {
            receiverType: "DistributionGroup",
            receiverValue: {
                distributionGroupListReceiverValue: {
                    distributionGroups: ["test@microsoft.com"],
                },
            },
        },
    ],
    resourceGroupName: "contoso-rg1",
    testBaseAccountName: "contoso-testBaseAccount1",
});
resources:
  customerEvent:
    type: azure-native:testbase:CustomerEvent
    properties:
      customerEventName: WeeklySummary
      eventName: WeeklySummary
      receivers:
        - receiverType: UserObjects
          receiverValue:
            userObjectReceiverValue:
              userObjectIds:
                - '245245245245325'
                - '365365365363565'
        - receiverType: DistributionGroup
          receiverValue:
            distributionGroupListReceiverValue:
              distributionGroups:
                - test@microsoft.com
      resourceGroupName: contoso-rg1
      testBaseAccountName: contoso-testBaseAccount1

Create CustomerEvent Resource

new CustomerEvent(name: string, args: CustomerEventArgs, opts?: CustomResourceOptions);
@overload
def CustomerEvent(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  customer_event_name: Optional[str] = None,
                  event_name: Optional[str] = None,
                  receivers: Optional[Sequence[NotificationEventReceiverArgs]] = None,
                  resource_group_name: Optional[str] = None,
                  test_base_account_name: Optional[str] = None)
@overload
def CustomerEvent(resource_name: str,
                  args: CustomerEventArgs,
                  opts: Optional[ResourceOptions] = None)
func NewCustomerEvent(ctx *Context, name string, args CustomerEventArgs, opts ...ResourceOption) (*CustomerEvent, error)
public CustomerEvent(string name, CustomerEventArgs args, CustomResourceOptions? opts = null)
public CustomerEvent(String name, CustomerEventArgs args)
public CustomerEvent(String name, CustomerEventArgs args, CustomResourceOptions options)
type: azure-native:testbase:CustomerEvent
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args CustomerEventArgs
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 CustomerEventArgs
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 CustomerEventArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CustomerEventArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CustomerEventArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

CustomerEvent 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 CustomerEvent resource accepts the following input properties:

EventName string

The name of the event subscribed to.

Receivers List<Pulumi.AzureNative.TestBase.Inputs.NotificationEventReceiverArgs>

The notification event receivers.

ResourceGroupName string

The name of the resource group that contains the resource.

TestBaseAccountName string

The resource name of the Test Base Account.

CustomerEventName string

The resource name of the Test Base Customer event.

EventName string

The name of the event subscribed to.

Receivers []NotificationEventReceiverArgs

The notification event receivers.

ResourceGroupName string

The name of the resource group that contains the resource.

TestBaseAccountName string

The resource name of the Test Base Account.

CustomerEventName string

The resource name of the Test Base Customer event.

eventName String

The name of the event subscribed to.

receivers List<NotificationEventReceiverArgs>

The notification event receivers.

resourceGroupName String

The name of the resource group that contains the resource.

testBaseAccountName String

The resource name of the Test Base Account.

customerEventName String

The resource name of the Test Base Customer event.

eventName string

The name of the event subscribed to.

receivers NotificationEventReceiverArgs[]

The notification event receivers.

resourceGroupName string

The name of the resource group that contains the resource.

testBaseAccountName string

The resource name of the Test Base Account.

customerEventName string

The resource name of the Test Base Customer event.

event_name str

The name of the event subscribed to.

receivers Sequence[NotificationEventReceiverArgs]

The notification event receivers.

resource_group_name str

The name of the resource group that contains the resource.

test_base_account_name str

The resource name of the Test Base Account.

customer_event_name str

The resource name of the Test Base Customer event.

eventName String

The name of the event subscribed to.

receivers List<Property Map>

The notification event receivers.

resourceGroupName String

The name of the resource group that contains the resource.

testBaseAccountName String

The resource name of the Test Base Account.

customerEventName String

The resource name of the Test Base Customer event.

Outputs

All input properties are implicitly available as output properties. Additionally, the CustomerEvent resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name.

SystemData Pulumi.AzureNative.TestBase.Outputs.SystemDataResponse

The system metadata relating to this resource

Type string

Resource type.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name.

SystemData SystemDataResponse

The system metadata relating to this resource

Type string

Resource type.

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name.

systemData SystemDataResponse

The system metadata relating to this resource

type String

Resource type.

id string

The provider-assigned unique ID for this managed resource.

name string

Resource name.

systemData SystemDataResponse

The system metadata relating to this resource

type string

Resource type.

id str

The provider-assigned unique ID for this managed resource.

name str

Resource name.

system_data SystemDataResponse

The system metadata relating to this resource

type str

Resource type.

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name.

systemData Property Map

The system metadata relating to this resource

type String

Resource type.

Supporting Types

DistributionGroupListReceiverValue

DistributionGroups List<string>

The list of distribution groups.

DistributionGroups []string

The list of distribution groups.

distributionGroups List<String>

The list of distribution groups.

distributionGroups string[]

The list of distribution groups.

distribution_groups Sequence[str]

The list of distribution groups.

distributionGroups List<String>

The list of distribution groups.

DistributionGroupListReceiverValueResponse

DistributionGroups List<string>

The list of distribution groups.

DistributionGroups []string

The list of distribution groups.

distributionGroups List<String>

The list of distribution groups.

distributionGroups string[]

The list of distribution groups.

distribution_groups Sequence[str]

The list of distribution groups.

distributionGroups List<String>

The list of distribution groups.

NotificationEventReceiver

ReceiverType string

The type of the notification event receiver.

ReceiverValue Pulumi.AzureNative.TestBase.Inputs.NotificationReceiverValue

The notification event receiver value.

ReceiverType string

The type of the notification event receiver.

ReceiverValue NotificationReceiverValue

The notification event receiver value.

receiverType String

The type of the notification event receiver.

receiverValue NotificationReceiverValue

The notification event receiver value.

receiverType string

The type of the notification event receiver.

receiverValue NotificationReceiverValue

The notification event receiver value.

receiver_type str

The type of the notification event receiver.

receiver_value NotificationReceiverValue

The notification event receiver value.

receiverType String

The type of the notification event receiver.

receiverValue Property Map

The notification event receiver value.

NotificationEventReceiverResponse

ReceiverType string

The type of the notification event receiver.

ReceiverValue Pulumi.AzureNative.TestBase.Inputs.NotificationReceiverValueResponse

The notification event receiver value.

ReceiverType string

The type of the notification event receiver.

ReceiverValue NotificationReceiverValueResponse

The notification event receiver value.

receiverType String

The type of the notification event receiver.

receiverValue NotificationReceiverValueResponse

The notification event receiver value.

receiverType string

The type of the notification event receiver.

receiverValue NotificationReceiverValueResponse

The notification event receiver value.

receiver_type str

The type of the notification event receiver.

receiver_value NotificationReceiverValueResponse

The notification event receiver value.

receiverType String

The type of the notification event receiver.

receiverValue Property Map

The notification event receiver value.

NotificationReceiverValue

distributionGroupListReceiverValue Property Map

The user object receiver value.

subscriptionReceiverValue Property Map

The user object receiver value.

userObjectReceiverValue Property Map

The user object receiver value.

NotificationReceiverValueResponse

distributionGroupListReceiverValue Property Map

The user object receiver value.

subscriptionReceiverValue Property Map

The user object receiver value.

userObjectReceiverValue Property Map

The user object receiver value.

SubscriptionReceiverValue

Role string

The role of the notification receiver.

SubscriptionId string

The subscription id of the notification receiver.

SubscriptionName string

The subscription name of the notification receiver.

Role string

The role of the notification receiver.

SubscriptionId string

The subscription id of the notification receiver.

SubscriptionName string

The subscription name of the notification receiver.

role String

The role of the notification receiver.

subscriptionId String

The subscription id of the notification receiver.

subscriptionName String

The subscription name of the notification receiver.

role string

The role of the notification receiver.

subscriptionId string

The subscription id of the notification receiver.

subscriptionName string

The subscription name of the notification receiver.

role str

The role of the notification receiver.

subscription_id str

The subscription id of the notification receiver.

subscription_name str

The subscription name of the notification receiver.

role String

The role of the notification receiver.

subscriptionId String

The subscription id of the notification receiver.

subscriptionName String

The subscription name of the notification receiver.

SubscriptionReceiverValueResponse

Role string

The role of the notification receiver.

SubscriptionId string

The subscription id of the notification receiver.

SubscriptionName string

The subscription name of the notification receiver.

Role string

The role of the notification receiver.

SubscriptionId string

The subscription id of the notification receiver.

SubscriptionName string

The subscription name of the notification receiver.

role String

The role of the notification receiver.

subscriptionId String

The subscription id of the notification receiver.

subscriptionName String

The subscription name of the notification receiver.

role string

The role of the notification receiver.

subscriptionId string

The subscription id of the notification receiver.

subscriptionName string

The subscription name of the notification receiver.

role str

The role of the notification receiver.

subscription_id str

The subscription id of the notification receiver.

subscription_name str

The subscription name of the notification receiver.

role String

The role of the notification receiver.

subscriptionId String

The subscription id of the notification receiver.

subscriptionName String

The subscription name of the notification receiver.

SystemDataResponse

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The type of identity that last modified the resource.

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The type of identity that last modified the resource.

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The type of identity that last modified the resource.

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

createdAt string

The timestamp of resource creation (UTC).

createdBy string

The identity that created the resource.

createdByType string

The type of identity that created the resource.

lastModifiedAt string

The type of identity that last modified the resource.

lastModifiedBy string

The identity that last modified the resource.

lastModifiedByType string

The type of identity that last modified the resource.

created_at str

The timestamp of resource creation (UTC).

created_by str

The identity that created the resource.

created_by_type str

The type of identity that created the resource.

last_modified_at str

The type of identity that last modified the resource.

last_modified_by str

The identity that last modified the resource.

last_modified_by_type str

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The type of identity that last modified the resource.

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

UserObjectReceiverValue

UserObjectIds List<string>

user object ids.

UserObjectIds []string

user object ids.

userObjectIds List<String>

user object ids.

userObjectIds string[]

user object ids.

user_object_ids Sequence[str]

user object ids.

userObjectIds List<String>

user object ids.

UserObjectReceiverValueResponse

UserObjectIds List<string>

user object ids.

UserObjectIds []string

user object ids.

userObjectIds List<String>

user object ids.

userObjectIds string[]

user object ids.

user_object_ids Sequence[str]

user object ids.

userObjectIds List<String>

user object ids.

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 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0