1. Packages
  2. Azure Native
  3. API Docs
  4. testbase
  5. CustomerEvent
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.9.0 published on Wednesday, Sep 27, 2023 by Pulumi

azure-native.testbase.CustomerEvent

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.9.0 published on Wednesday, Sep 27, 2023 by Pulumi

    The Customer Notification Event resource. Azure REST API version: 2022-04-01-preview. Prior API version in Azure Native 1.x: 2022-04-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 (
    	"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.NotificationEventReceiverArgs{
    				{
    					ReceiverType: pulumi.String("UserObjects"),
    					ReceiverValue: {
    						UserObjectReceiverValue: {
    							UserObjectIds: pulumi.StringArray{
    								pulumi.String("245245245245325"),
    								pulumi.String("365365365363565"),
    							},
    						},
    					},
    				},
    				{
    					ReceiverType: pulumi.String("DistributionGroup"),
    					ReceiverValue: {
    						DistributionGroupListReceiverValue: {
    							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 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.NotificationEventReceiver>

    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<NotificationEventReceiver>

    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 NotificationEventReceiver[]

    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, DistributionGroupListReceiverValueArgs

    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, DistributionGroupListReceiverValueResponseArgs

    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, NotificationEventReceiverArgs

    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, NotificationEventReceiverResponseArgs

    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, NotificationReceiverValueArgs

    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, NotificationReceiverValueResponseArgs

    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, SubscriptionReceiverValueArgs

    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, SubscriptionReceiverValueResponseArgs

    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, SystemDataResponseArgs

    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, UserObjectReceiverValueArgs

    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, UserObjectReceiverValueResponseArgs

    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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/customerEvents/{customerEventName} 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.9.0 published on Wednesday, Sep 27, 2023 by Pulumi