1. Packages
  2. Azure Native v1
  3. API Docs
  4. providerhub
  5. NotificationRegistration
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.providerhub.NotificationRegistration

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    The notification registration definition. API Version: 2020-11-20.

    Example Usage

    NotificationRegistrations_CreateOrUpdate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var notificationRegistration = new AzureNative.ProviderHub.NotificationRegistration("notificationRegistration", new()
        {
            NotificationRegistrationName = "fooNotificationRegistration",
            Properties = new AzureNative.ProviderHub.Inputs.NotificationRegistrationPropertiesArgs
            {
                IncludedEvents = new[]
                {
                    "*/write",
                    "Microsoft.Contoso/employees/delete",
                },
                MessageScope = "RegisteredSubscriptions",
                NotificationEndpoints = new[]
                {
                    new AzureNative.ProviderHub.Inputs.NotificationEndpointArgs
                    {
                        Locations = new[]
                        {
                            "",
                            "East US",
                        },
                        NotificationDestination = "/subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications",
                    },
                    new AzureNative.ProviderHub.Inputs.NotificationEndpointArgs
                    {
                        Locations = new[]
                        {
                            "North Europe",
                        },
                        NotificationDestination = "/subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-northeurope/providers/Microsoft.EventHub/namespaces/europe-mgmtexpint/eventhubs/armlinkednotifications",
                    },
                },
                NotificationMode = "EventHub",
            },
            ProviderNamespace = "Microsoft.Contoso",
        });
    
    });
    
    package main
    
    import (
    	providerhub "github.com/pulumi/pulumi-azure-native-sdk/providerhub"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := providerhub.NewNotificationRegistration(ctx, "notificationRegistration", &providerhub.NotificationRegistrationArgs{
    			NotificationRegistrationName: pulumi.String("fooNotificationRegistration"),
    			Properties: providerhub.NotificationRegistrationResponseProperties{
    				IncludedEvents: pulumi.StringArray{
    					pulumi.String("*/write"),
    					pulumi.String("Microsoft.Contoso/employees/delete"),
    				},
    				MessageScope: pulumi.String("RegisteredSubscriptions"),
    				NotificationEndpoints: providerhub.NotificationEndpointArray{
    					&providerhub.NotificationEndpointArgs{
    						Locations: pulumi.StringArray{
    							pulumi.String(""),
    							pulumi.String("East US"),
    						},
    						NotificationDestination: pulumi.String("/subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications"),
    					},
    					&providerhub.NotificationEndpointArgs{
    						Locations: pulumi.StringArray{
    							pulumi.String("North Europe"),
    						},
    						NotificationDestination: pulumi.String("/subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-northeurope/providers/Microsoft.EventHub/namespaces/europe-mgmtexpint/eventhubs/armlinkednotifications"),
    					},
    				},
    				NotificationMode: pulumi.String("EventHub"),
    			},
    			ProviderNamespace: pulumi.String("Microsoft.Contoso"),
    		})
    		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.providerhub.NotificationRegistration;
    import com.pulumi.azurenative.providerhub.NotificationRegistrationArgs;
    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 notificationRegistration = new NotificationRegistration("notificationRegistration", NotificationRegistrationArgs.builder()        
                .notificationRegistrationName("fooNotificationRegistration")
                .properties(Map.ofEntries(
                    Map.entry("includedEvents",                 
                        "*/write",
                        "Microsoft.Contoso/employees/delete"),
                    Map.entry("messageScope", "RegisteredSubscriptions"),
                    Map.entry("notificationEndpoints",                 
                        Map.ofEntries(
                            Map.entry("locations",                         
                                "",
                                "East US"),
                            Map.entry("notificationDestination", "/subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications")
                        ),
                        Map.ofEntries(
                            Map.entry("locations", "North Europe"),
                            Map.entry("notificationDestination", "/subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-northeurope/providers/Microsoft.EventHub/namespaces/europe-mgmtexpint/eventhubs/armlinkednotifications")
                        )),
                    Map.entry("notificationMode", "EventHub")
                ))
                .providerNamespace("Microsoft.Contoso")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    notification_registration = azure_native.providerhub.NotificationRegistration("notificationRegistration",
        notification_registration_name="fooNotificationRegistration",
        properties=azure_native.providerhub.NotificationRegistrationResponsePropertiesArgs(
            included_events=[
                "*/write",
                "Microsoft.Contoso/employees/delete",
            ],
            message_scope="RegisteredSubscriptions",
            notification_endpoints=[
                azure_native.providerhub.NotificationEndpointArgs(
                    locations=[
                        "",
                        "East US",
                    ],
                    notification_destination="/subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications",
                ),
                azure_native.providerhub.NotificationEndpointArgs(
                    locations=["North Europe"],
                    notification_destination="/subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-northeurope/providers/Microsoft.EventHub/namespaces/europe-mgmtexpint/eventhubs/armlinkednotifications",
                ),
            ],
            notification_mode="EventHub",
        ),
        provider_namespace="Microsoft.Contoso")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const notificationRegistration = new azure_native.providerhub.NotificationRegistration("notificationRegistration", {
        notificationRegistrationName: "fooNotificationRegistration",
        properties: {
            includedEvents: [
                "*/write",
                "Microsoft.Contoso/employees/delete",
            ],
            messageScope: "RegisteredSubscriptions",
            notificationEndpoints: [
                {
                    locations: [
                        "",
                        "East US",
                    ],
                    notificationDestination: "/subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications",
                },
                {
                    locations: ["North Europe"],
                    notificationDestination: "/subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-northeurope/providers/Microsoft.EventHub/namespaces/europe-mgmtexpint/eventhubs/armlinkednotifications",
                },
            ],
            notificationMode: "EventHub",
        },
        providerNamespace: "Microsoft.Contoso",
    });
    
    resources:
      notificationRegistration:
        type: azure-native:providerhub:NotificationRegistration
        properties:
          notificationRegistrationName: fooNotificationRegistration
          properties:
            includedEvents:
              - '*/write'
              - Microsoft.Contoso/employees/delete
            messageScope: RegisteredSubscriptions
            notificationEndpoints:
              - locations:
                  -
                  - East US
                notificationDestination: /subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications
              - locations:
                  - North Europe
                notificationDestination: /subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-northeurope/providers/Microsoft.EventHub/namespaces/europe-mgmtexpint/eventhubs/armlinkednotifications
            notificationMode: EventHub
          providerNamespace: Microsoft.Contoso
    

    Create NotificationRegistration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NotificationRegistration(name: string, args: NotificationRegistrationArgs, opts?: CustomResourceOptions);
    @overload
    def NotificationRegistration(resource_name: str,
                                 args: NotificationRegistrationArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def NotificationRegistration(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 provider_namespace: Optional[str] = None,
                                 notification_registration_name: Optional[str] = None,
                                 properties: Optional[NotificationRegistrationPropertiesArgs] = None)
    func NewNotificationRegistration(ctx *Context, name string, args NotificationRegistrationArgs, opts ...ResourceOption) (*NotificationRegistration, error)
    public NotificationRegistration(string name, NotificationRegistrationArgs args, CustomResourceOptions? opts = null)
    public NotificationRegistration(String name, NotificationRegistrationArgs args)
    public NotificationRegistration(String name, NotificationRegistrationArgs args, CustomResourceOptions options)
    
    type: azure-native:providerhub:NotificationRegistration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

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

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var notificationRegistrationResource = new AzureNative.Providerhub.NotificationRegistration("notificationRegistrationResource", new()
    {
        ProviderNamespace = "string",
        NotificationRegistrationName = "string",
        Properties = 
        {
            { "includedEvents", new[]
            {
                "string",
            } },
            { "messageScope", "string" },
            { "notificationEndpoints", new[]
            {
                
                {
                    { "locations", new[]
                    {
                        "string",
                    } },
                    { "notificationDestination", "string" },
                },
            } },
            { "notificationMode", "string" },
            { "provisioningState", "string" },
        },
    });
    
    example, err := providerhub.NewNotificationRegistration(ctx, "notificationRegistrationResource", &providerhub.NotificationRegistrationArgs{
    	ProviderNamespace:            "string",
    	NotificationRegistrationName: "string",
    	Properties: map[string]interface{}{
    		"includedEvents": []string{
    			"string",
    		},
    		"messageScope": "string",
    		"notificationEndpoints": []map[string]interface{}{
    			map[string]interface{}{
    				"locations": []string{
    					"string",
    				},
    				"notificationDestination": "string",
    			},
    		},
    		"notificationMode":  "string",
    		"provisioningState": "string",
    	},
    })
    
    var notificationRegistrationResource = new NotificationRegistration("notificationRegistrationResource", NotificationRegistrationArgs.builder()
        .providerNamespace("string")
        .notificationRegistrationName("string")
        .properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    notification_registration_resource = azure_native.providerhub.NotificationRegistration("notificationRegistrationResource",
        provider_namespace=string,
        notification_registration_name=string,
        properties={
            includedEvents: [string],
            messageScope: string,
            notificationEndpoints: [{
                locations: [string],
                notificationDestination: string,
            }],
            notificationMode: string,
            provisioningState: string,
        })
    
    const notificationRegistrationResource = new azure_native.providerhub.NotificationRegistration("notificationRegistrationResource", {
        providerNamespace: "string",
        notificationRegistrationName: "string",
        properties: {
            includedEvents: ["string"],
            messageScope: "string",
            notificationEndpoints: [{
                locations: ["string"],
                notificationDestination: "string",
            }],
            notificationMode: "string",
            provisioningState: "string",
        },
    });
    
    type: azure-native:providerhub:NotificationRegistration
    properties:
        notificationRegistrationName: string
        properties:
            includedEvents:
                - string
            messageScope: string
            notificationEndpoints:
                - locations:
                    - string
                  notificationDestination: string
            notificationMode: string
            provisioningState: string
        providerNamespace: string
    

    NotificationRegistration Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The NotificationRegistration resource accepts the following input properties:

    ProviderNamespace string
    The name of the resource provider hosted within ProviderHub.
    NotificationRegistrationName string
    The notification registration.
    Properties Pulumi.AzureNative.ProviderHub.Inputs.NotificationRegistrationProperties
    ProviderNamespace string
    The name of the resource provider hosted within ProviderHub.
    NotificationRegistrationName string
    The notification registration.
    Properties NotificationRegistrationPropertiesArgs
    providerNamespace String
    The name of the resource provider hosted within ProviderHub.
    notificationRegistrationName String
    The notification registration.
    properties NotificationRegistrationProperties
    providerNamespace string
    The name of the resource provider hosted within ProviderHub.
    notificationRegistrationName string
    The notification registration.
    properties NotificationRegistrationProperties
    provider_namespace str
    The name of the resource provider hosted within ProviderHub.
    notification_registration_name str
    The notification registration.
    properties NotificationRegistrationPropertiesArgs
    providerNamespace String
    The name of the resource provider hosted within ProviderHub.
    notificationRegistrationName String
    The notification registration.
    properties Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    MessageScope, MessageScopeArgs

    NotSpecified
    NotSpecified
    RegisteredSubscriptions
    RegisteredSubscriptions
    MessageScopeNotSpecified
    NotSpecified
    MessageScopeRegisteredSubscriptions
    RegisteredSubscriptions
    NotSpecified
    NotSpecified
    RegisteredSubscriptions
    RegisteredSubscriptions
    NotSpecified
    NotSpecified
    RegisteredSubscriptions
    RegisteredSubscriptions
    NOT_SPECIFIED
    NotSpecified
    REGISTERED_SUBSCRIPTIONS
    RegisteredSubscriptions
    "NotSpecified"
    NotSpecified
    "RegisteredSubscriptions"
    RegisteredSubscriptions

    NotificationEndpoint, NotificationEndpointArgs

    NotificationEndpointResponse, NotificationEndpointResponseArgs

    NotificationMode, NotificationModeArgs

    NotSpecified
    NotSpecified
    EventHub
    EventHub
    WebHook
    WebHook
    NotificationModeNotSpecified
    NotSpecified
    NotificationModeEventHub
    EventHub
    NotificationModeWebHook
    WebHook
    NotSpecified
    NotSpecified
    EventHub
    EventHub
    WebHook
    WebHook
    NotSpecified
    NotSpecified
    EventHub
    EventHub
    WebHook
    WebHook
    NOT_SPECIFIED
    NotSpecified
    EVENT_HUB
    EventHub
    WEB_HOOK
    WebHook
    "NotSpecified"
    NotSpecified
    "EventHub"
    EventHub
    "WebHook"
    WebHook

    NotificationRegistrationProperties, NotificationRegistrationPropertiesArgs

    NotificationRegistrationResponseProperties, NotificationRegistrationResponsePropertiesArgs

    ProvisioningState, ProvisioningStateArgs

    NotSpecified
    NotSpecified
    Accepted
    Accepted
    Running
    Running
    Creating
    Creating
    Created
    Created
    Deleting
    Deleting
    Deleted
    Deleted
    Canceled
    Canceled
    Failed
    Failed
    Succeeded
    Succeeded
    MovingResources
    MovingResources
    TransientFailure
    TransientFailure
    RolloutInProgress
    RolloutInProgress
    ProvisioningStateNotSpecified
    NotSpecified
    ProvisioningStateAccepted
    Accepted
    ProvisioningStateRunning
    Running
    ProvisioningStateCreating
    Creating
    ProvisioningStateCreated
    Created
    ProvisioningStateDeleting
    Deleting
    ProvisioningStateDeleted
    Deleted
    ProvisioningStateCanceled
    Canceled
    ProvisioningStateFailed
    Failed
    ProvisioningStateSucceeded
    Succeeded
    ProvisioningStateMovingResources
    MovingResources
    ProvisioningStateTransientFailure
    TransientFailure
    ProvisioningStateRolloutInProgress
    RolloutInProgress
    NotSpecified
    NotSpecified
    Accepted
    Accepted
    Running
    Running
    Creating
    Creating
    Created
    Created
    Deleting
    Deleting
    Deleted
    Deleted
    Canceled
    Canceled
    Failed
    Failed
    Succeeded
    Succeeded
    MovingResources
    MovingResources
    TransientFailure
    TransientFailure
    RolloutInProgress
    RolloutInProgress
    NotSpecified
    NotSpecified
    Accepted
    Accepted
    Running
    Running
    Creating
    Creating
    Created
    Created
    Deleting
    Deleting
    Deleted
    Deleted
    Canceled
    Canceled
    Failed
    Failed
    Succeeded
    Succeeded
    MovingResources
    MovingResources
    TransientFailure
    TransientFailure
    RolloutInProgress
    RolloutInProgress
    NOT_SPECIFIED
    NotSpecified
    ACCEPTED
    Accepted
    RUNNING
    Running
    CREATING
    Creating
    CREATED
    Created
    DELETING
    Deleting
    DELETED
    Deleted
    CANCELED
    Canceled
    FAILED
    Failed
    SUCCEEDED
    Succeeded
    MOVING_RESOURCES
    MovingResources
    TRANSIENT_FAILURE
    TransientFailure
    ROLLOUT_IN_PROGRESS
    RolloutInProgress
    "NotSpecified"
    NotSpecified
    "Accepted"
    Accepted
    "Running"
    Running
    "Creating"
    Creating
    "Created"
    Created
    "Deleting"
    Deleting
    "Deleted"
    Deleted
    "Canceled"
    Canceled
    "Failed"
    Failed
    "Succeeded"
    Succeeded
    "MovingResources"
    MovingResources
    "TransientFailure"
    TransientFailure
    "RolloutInProgress"
    RolloutInProgress

    Import

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

    $ pulumi import azure-native:providerhub:NotificationRegistration fooNotificationRegistration /subscriptions/ab7a8701-f7ef-471a-a2f4-d0ebbf494f77providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/notificationregistrations/fooNotificationRegistration 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi