1. Packages
  2. Azure Native
  3. API Docs
  4. app
  5. DaprSubscription
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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.app.DaprSubscription

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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    Dapr PubSub Event Subscription. Azure REST API version: 2023-08-01-preview.

    Other available API versions: 2023-11-02-preview, 2024-02-02-preview, 2024-08-02-preview, 2024-10-02-preview.

    Example Usage

    Create or update dapr subscription with bulk subscribe configuration and scopes

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var daprSubscription = new AzureNative.App.DaprSubscription("daprSubscription", new()
        {
            BulkSubscribe = new AzureNative.App.Inputs.DaprSubscriptionBulkSubscribeOptionsArgs
            {
                Enabled = true,
                MaxAwaitDurationMs = 500,
                MaxMessagesCount = 123,
            },
            EnvironmentName = "myenvironment",
            Name = "mysubscription",
            PubsubName = "mypubsubcomponent",
            ResourceGroupName = "examplerg",
            Routes = new AzureNative.App.Inputs.DaprSubscriptionRoutesArgs
            {
                Default = "/products",
            },
            Scopes = new[]
            {
                "warehouseapp",
                "customersupportapp",
            },
            Topic = "inventory",
        });
    
    });
    
    package main
    
    import (
    	app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := app.NewDaprSubscription(ctx, "daprSubscription", &app.DaprSubscriptionArgs{
    			BulkSubscribe: &app.DaprSubscriptionBulkSubscribeOptionsArgs{
    				Enabled:            pulumi.Bool(true),
    				MaxAwaitDurationMs: pulumi.Int(500),
    				MaxMessagesCount:   pulumi.Int(123),
    			},
    			EnvironmentName:   pulumi.String("myenvironment"),
    			Name:              pulumi.String("mysubscription"),
    			PubsubName:        pulumi.String("mypubsubcomponent"),
    			ResourceGroupName: pulumi.String("examplerg"),
    			Routes: &app.DaprSubscriptionRoutesArgs{
    				Default: pulumi.String("/products"),
    			},
    			Scopes: pulumi.StringArray{
    				pulumi.String("warehouseapp"),
    				pulumi.String("customersupportapp"),
    			},
    			Topic: pulumi.String("inventory"),
    		})
    		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.app.DaprSubscription;
    import com.pulumi.azurenative.app.DaprSubscriptionArgs;
    import com.pulumi.azurenative.app.inputs.DaprSubscriptionBulkSubscribeOptionsArgs;
    import com.pulumi.azurenative.app.inputs.DaprSubscriptionRoutesArgs;
    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 daprSubscription = new DaprSubscription("daprSubscription", DaprSubscriptionArgs.builder()
                .bulkSubscribe(DaprSubscriptionBulkSubscribeOptionsArgs.builder()
                    .enabled(true)
                    .maxAwaitDurationMs(500)
                    .maxMessagesCount(123)
                    .build())
                .environmentName("myenvironment")
                .name("mysubscription")
                .pubsubName("mypubsubcomponent")
                .resourceGroupName("examplerg")
                .routes(DaprSubscriptionRoutesArgs.builder()
                    .default_("/products")
                    .build())
                .scopes(            
                    "warehouseapp",
                    "customersupportapp")
                .topic("inventory")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    dapr_subscription = azure_native.app.DaprSubscription("daprSubscription",
        bulk_subscribe={
            "enabled": True,
            "max_await_duration_ms": 500,
            "max_messages_count": 123,
        },
        environment_name="myenvironment",
        name="mysubscription",
        pubsub_name="mypubsubcomponent",
        resource_group_name="examplerg",
        routes={
            "default": "/products",
        },
        scopes=[
            "warehouseapp",
            "customersupportapp",
        ],
        topic="inventory")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const daprSubscription = new azure_native.app.DaprSubscription("daprSubscription", {
        bulkSubscribe: {
            enabled: true,
            maxAwaitDurationMs: 500,
            maxMessagesCount: 123,
        },
        environmentName: "myenvironment",
        name: "mysubscription",
        pubsubName: "mypubsubcomponent",
        resourceGroupName: "examplerg",
        routes: {
            "default": "/products",
        },
        scopes: [
            "warehouseapp",
            "customersupportapp",
        ],
        topic: "inventory",
    });
    
    resources:
      daprSubscription:
        type: azure-native:app:DaprSubscription
        properties:
          bulkSubscribe:
            enabled: true
            maxAwaitDurationMs: 500
            maxMessagesCount: 123
          environmentName: myenvironment
          name: mysubscription
          pubsubName: mypubsubcomponent
          resourceGroupName: examplerg
          routes:
            default: /products
          scopes:
            - warehouseapp
            - customersupportapp
          topic: inventory
    

    Create or update dapr subscription with default route only

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var daprSubscription = new AzureNative.App.DaprSubscription("daprSubscription", new()
        {
            EnvironmentName = "myenvironment",
            Name = "mysubscription",
            PubsubName = "mypubsubcomponent",
            ResourceGroupName = "examplerg",
            Routes = new AzureNative.App.Inputs.DaprSubscriptionRoutesArgs
            {
                Default = "/products",
            },
            Topic = "inventory",
        });
    
    });
    
    package main
    
    import (
    	app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := app.NewDaprSubscription(ctx, "daprSubscription", &app.DaprSubscriptionArgs{
    			EnvironmentName:   pulumi.String("myenvironment"),
    			Name:              pulumi.String("mysubscription"),
    			PubsubName:        pulumi.String("mypubsubcomponent"),
    			ResourceGroupName: pulumi.String("examplerg"),
    			Routes: &app.DaprSubscriptionRoutesArgs{
    				Default: pulumi.String("/products"),
    			},
    			Topic: pulumi.String("inventory"),
    		})
    		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.app.DaprSubscription;
    import com.pulumi.azurenative.app.DaprSubscriptionArgs;
    import com.pulumi.azurenative.app.inputs.DaprSubscriptionRoutesArgs;
    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 daprSubscription = new DaprSubscription("daprSubscription", DaprSubscriptionArgs.builder()
                .environmentName("myenvironment")
                .name("mysubscription")
                .pubsubName("mypubsubcomponent")
                .resourceGroupName("examplerg")
                .routes(DaprSubscriptionRoutesArgs.builder()
                    .default_("/products")
                    .build())
                .topic("inventory")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    dapr_subscription = azure_native.app.DaprSubscription("daprSubscription",
        environment_name="myenvironment",
        name="mysubscription",
        pubsub_name="mypubsubcomponent",
        resource_group_name="examplerg",
        routes={
            "default": "/products",
        },
        topic="inventory")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const daprSubscription = new azure_native.app.DaprSubscription("daprSubscription", {
        environmentName: "myenvironment",
        name: "mysubscription",
        pubsubName: "mypubsubcomponent",
        resourceGroupName: "examplerg",
        routes: {
            "default": "/products",
        },
        topic: "inventory",
    });
    
    resources:
      daprSubscription:
        type: azure-native:app:DaprSubscription
        properties:
          environmentName: myenvironment
          name: mysubscription
          pubsubName: mypubsubcomponent
          resourceGroupName: examplerg
          routes:
            default: /products
          topic: inventory
    

    Create or update dapr subscription with route rules and metadata

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var daprSubscription = new AzureNative.App.DaprSubscription("daprSubscription", new()
        {
            EnvironmentName = "myenvironment",
            Metadata = 
            {
                { "foo", "bar" },
                { "hello", "world" },
            },
            Name = "mysubscription",
            PubsubName = "mypubsubcomponent",
            ResourceGroupName = "examplerg",
            Routes = new AzureNative.App.Inputs.DaprSubscriptionRoutesArgs
            {
                Default = "/products",
                Rules = new[]
                {
                    new AzureNative.App.Inputs.DaprSubscriptionRouteRuleArgs
                    {
                        Match = "event.type == 'widget'",
                        Path = "/widgets",
                    },
                    new AzureNative.App.Inputs.DaprSubscriptionRouteRuleArgs
                    {
                        Match = "event.type == 'gadget'",
                        Path = "/gadgets",
                    },
                },
            },
            Topic = "inventory",
        });
    
    });
    
    package main
    
    import (
    	app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := app.NewDaprSubscription(ctx, "daprSubscription", &app.DaprSubscriptionArgs{
    			EnvironmentName: pulumi.String("myenvironment"),
    			Metadata: pulumi.StringMap{
    				"foo":   pulumi.String("bar"),
    				"hello": pulumi.String("world"),
    			},
    			Name:              pulumi.String("mysubscription"),
    			PubsubName:        pulumi.String("mypubsubcomponent"),
    			ResourceGroupName: pulumi.String("examplerg"),
    			Routes: &app.DaprSubscriptionRoutesArgs{
    				Default: pulumi.String("/products"),
    				Rules: app.DaprSubscriptionRouteRuleArray{
    					&app.DaprSubscriptionRouteRuleArgs{
    						Match: pulumi.String("event.type == 'widget'"),
    						Path:  pulumi.String("/widgets"),
    					},
    					&app.DaprSubscriptionRouteRuleArgs{
    						Match: pulumi.String("event.type == 'gadget'"),
    						Path:  pulumi.String("/gadgets"),
    					},
    				},
    			},
    			Topic: pulumi.String("inventory"),
    		})
    		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.app.DaprSubscription;
    import com.pulumi.azurenative.app.DaprSubscriptionArgs;
    import com.pulumi.azurenative.app.inputs.DaprSubscriptionRoutesArgs;
    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 daprSubscription = new DaprSubscription("daprSubscription", DaprSubscriptionArgs.builder()
                .environmentName("myenvironment")
                .metadata(Map.ofEntries(
                    Map.entry("foo", "bar"),
                    Map.entry("hello", "world")
                ))
                .name("mysubscription")
                .pubsubName("mypubsubcomponent")
                .resourceGroupName("examplerg")
                .routes(DaprSubscriptionRoutesArgs.builder()
                    .default_("/products")
                    .rules(                
                        DaprSubscriptionRouteRuleArgs.builder()
                            .match("event.type == 'widget'")
                            .path("/widgets")
                            .build(),
                        DaprSubscriptionRouteRuleArgs.builder()
                            .match("event.type == 'gadget'")
                            .path("/gadgets")
                            .build())
                    .build())
                .topic("inventory")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    dapr_subscription = azure_native.app.DaprSubscription("daprSubscription",
        environment_name="myenvironment",
        metadata={
            "foo": "bar",
            "hello": "world",
        },
        name="mysubscription",
        pubsub_name="mypubsubcomponent",
        resource_group_name="examplerg",
        routes={
            "default": "/products",
            "rules": [
                {
                    "match": "event.type == 'widget'",
                    "path": "/widgets",
                },
                {
                    "match": "event.type == 'gadget'",
                    "path": "/gadgets",
                },
            ],
        },
        topic="inventory")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const daprSubscription = new azure_native.app.DaprSubscription("daprSubscription", {
        environmentName: "myenvironment",
        metadata: {
            foo: "bar",
            hello: "world",
        },
        name: "mysubscription",
        pubsubName: "mypubsubcomponent",
        resourceGroupName: "examplerg",
        routes: {
            "default": "/products",
            rules: [
                {
                    match: "event.type == 'widget'",
                    path: "/widgets",
                },
                {
                    match: "event.type == 'gadget'",
                    path: "/gadgets",
                },
            ],
        },
        topic: "inventory",
    });
    
    resources:
      daprSubscription:
        type: azure-native:app:DaprSubscription
        properties:
          environmentName: myenvironment
          metadata:
            foo: bar
            hello: world
          name: mysubscription
          pubsubName: mypubsubcomponent
          resourceGroupName: examplerg
          routes:
            default: /products
            rules:
              - match: event.type == 'widget'
                path: /widgets
              - match: event.type == 'gadget'
                path: /gadgets
          topic: inventory
    

    Create DaprSubscription Resource

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

    Constructor syntax

    new DaprSubscription(name: string, args: DaprSubscriptionArgs, opts?: CustomResourceOptions);
    @overload
    def DaprSubscription(resource_name: str,
                         args: DaprSubscriptionArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def DaprSubscription(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         environment_name: Optional[str] = None,
                         resource_group_name: Optional[str] = None,
                         bulk_subscribe: Optional[DaprSubscriptionBulkSubscribeOptionsArgs] = None,
                         dead_letter_topic: Optional[str] = None,
                         metadata: Optional[Mapping[str, str]] = None,
                         name: Optional[str] = None,
                         pubsub_name: Optional[str] = None,
                         routes: Optional[DaprSubscriptionRoutesArgs] = None,
                         scopes: Optional[Sequence[str]] = None,
                         topic: Optional[str] = None)
    func NewDaprSubscription(ctx *Context, name string, args DaprSubscriptionArgs, opts ...ResourceOption) (*DaprSubscription, error)
    public DaprSubscription(string name, DaprSubscriptionArgs args, CustomResourceOptions? opts = null)
    public DaprSubscription(String name, DaprSubscriptionArgs args)
    public DaprSubscription(String name, DaprSubscriptionArgs args, CustomResourceOptions options)
    
    type: azure-native:app:DaprSubscription
    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 DaprSubscriptionArgs
    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 DaprSubscriptionArgs
    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 DaprSubscriptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DaprSubscriptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DaprSubscriptionArgs
    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 daprSubscriptionResource = new AzureNative.App.DaprSubscription("daprSubscriptionResource", new()
    {
        EnvironmentName = "string",
        ResourceGroupName = "string",
        BulkSubscribe = new AzureNative.App.Inputs.DaprSubscriptionBulkSubscribeOptionsArgs
        {
            Enabled = false,
            MaxAwaitDurationMs = 0,
            MaxMessagesCount = 0,
        },
        DeadLetterTopic = "string",
        Metadata = 
        {
            { "string", "string" },
        },
        Name = "string",
        PubsubName = "string",
        Routes = new AzureNative.App.Inputs.DaprSubscriptionRoutesArgs
        {
            Default = "string",
            Rules = new[]
            {
                new AzureNative.App.Inputs.DaprSubscriptionRouteRuleArgs
                {
                    Match = "string",
                    Path = "string",
                },
            },
        },
        Scopes = new[]
        {
            "string",
        },
        Topic = "string",
    });
    
    example, err := app.NewDaprSubscription(ctx, "daprSubscriptionResource", &app.DaprSubscriptionArgs{
    	EnvironmentName:   pulumi.String("string"),
    	ResourceGroupName: pulumi.String("string"),
    	BulkSubscribe: &app.DaprSubscriptionBulkSubscribeOptionsArgs{
    		Enabled:            pulumi.Bool(false),
    		MaxAwaitDurationMs: pulumi.Int(0),
    		MaxMessagesCount:   pulumi.Int(0),
    	},
    	DeadLetterTopic: pulumi.String("string"),
    	Metadata: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name:       pulumi.String("string"),
    	PubsubName: pulumi.String("string"),
    	Routes: &app.DaprSubscriptionRoutesArgs{
    		Default: pulumi.String("string"),
    		Rules: app.DaprSubscriptionRouteRuleArray{
    			&app.DaprSubscriptionRouteRuleArgs{
    				Match: pulumi.String("string"),
    				Path:  pulumi.String("string"),
    			},
    		},
    	},
    	Scopes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Topic: pulumi.String("string"),
    })
    
    var daprSubscriptionResource = new DaprSubscription("daprSubscriptionResource", DaprSubscriptionArgs.builder()
        .environmentName("string")
        .resourceGroupName("string")
        .bulkSubscribe(DaprSubscriptionBulkSubscribeOptionsArgs.builder()
            .enabled(false)
            .maxAwaitDurationMs(0)
            .maxMessagesCount(0)
            .build())
        .deadLetterTopic("string")
        .metadata(Map.of("string", "string"))
        .name("string")
        .pubsubName("string")
        .routes(DaprSubscriptionRoutesArgs.builder()
            .default_("string")
            .rules(DaprSubscriptionRouteRuleArgs.builder()
                .match("string")
                .path("string")
                .build())
            .build())
        .scopes("string")
        .topic("string")
        .build());
    
    dapr_subscription_resource = azure_native.app.DaprSubscription("daprSubscriptionResource",
        environment_name="string",
        resource_group_name="string",
        bulk_subscribe={
            "enabled": False,
            "max_await_duration_ms": 0,
            "max_messages_count": 0,
        },
        dead_letter_topic="string",
        metadata={
            "string": "string",
        },
        name="string",
        pubsub_name="string",
        routes={
            "default": "string",
            "rules": [{
                "match": "string",
                "path": "string",
            }],
        },
        scopes=["string"],
        topic="string")
    
    const daprSubscriptionResource = new azure_native.app.DaprSubscription("daprSubscriptionResource", {
        environmentName: "string",
        resourceGroupName: "string",
        bulkSubscribe: {
            enabled: false,
            maxAwaitDurationMs: 0,
            maxMessagesCount: 0,
        },
        deadLetterTopic: "string",
        metadata: {
            string: "string",
        },
        name: "string",
        pubsubName: "string",
        routes: {
            "default": "string",
            rules: [{
                match: "string",
                path: "string",
            }],
        },
        scopes: ["string"],
        topic: "string",
    });
    
    type: azure-native:app:DaprSubscription
    properties:
        bulkSubscribe:
            enabled: false
            maxAwaitDurationMs: 0
            maxMessagesCount: 0
        deadLetterTopic: string
        environmentName: string
        metadata:
            string: string
        name: string
        pubsubName: string
        resourceGroupName: string
        routes:
            default: string
            rules:
                - match: string
                  path: string
        scopes:
            - string
        topic: string
    

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

    EnvironmentName string
    Name of the Managed Environment.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    BulkSubscribe Pulumi.AzureNative.App.Inputs.DaprSubscriptionBulkSubscribeOptions
    Bulk subscription options
    DeadLetterTopic string
    Deadletter topic name
    Metadata Dictionary<string, string>
    Subscription metadata
    Name string
    Name of the Dapr subscription.
    PubsubName string
    Dapr PubSub component name
    Routes Pulumi.AzureNative.App.Inputs.DaprSubscriptionRoutes
    Subscription routes
    Scopes List<string>
    Application scopes to restrict the subscription to specific apps.
    Topic string
    Topic name
    EnvironmentName string
    Name of the Managed Environment.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    BulkSubscribe DaprSubscriptionBulkSubscribeOptionsArgs
    Bulk subscription options
    DeadLetterTopic string
    Deadletter topic name
    Metadata map[string]string
    Subscription metadata
    Name string
    Name of the Dapr subscription.
    PubsubName string
    Dapr PubSub component name
    Routes DaprSubscriptionRoutesArgs
    Subscription routes
    Scopes []string
    Application scopes to restrict the subscription to specific apps.
    Topic string
    Topic name
    environmentName String
    Name of the Managed Environment.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    bulkSubscribe DaprSubscriptionBulkSubscribeOptions
    Bulk subscription options
    deadLetterTopic String
    Deadletter topic name
    metadata Map<String,String>
    Subscription metadata
    name String
    Name of the Dapr subscription.
    pubsubName String
    Dapr PubSub component name
    routes DaprSubscriptionRoutes
    Subscription routes
    scopes List<String>
    Application scopes to restrict the subscription to specific apps.
    topic String
    Topic name
    environmentName string
    Name of the Managed Environment.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    bulkSubscribe DaprSubscriptionBulkSubscribeOptions
    Bulk subscription options
    deadLetterTopic string
    Deadletter topic name
    metadata {[key: string]: string}
    Subscription metadata
    name string
    Name of the Dapr subscription.
    pubsubName string
    Dapr PubSub component name
    routes DaprSubscriptionRoutes
    Subscription routes
    scopes string[]
    Application scopes to restrict the subscription to specific apps.
    topic string
    Topic name
    environment_name str
    Name of the Managed Environment.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    bulk_subscribe DaprSubscriptionBulkSubscribeOptionsArgs
    Bulk subscription options
    dead_letter_topic str
    Deadletter topic name
    metadata Mapping[str, str]
    Subscription metadata
    name str
    Name of the Dapr subscription.
    pubsub_name str
    Dapr PubSub component name
    routes DaprSubscriptionRoutesArgs
    Subscription routes
    scopes Sequence[str]
    Application scopes to restrict the subscription to specific apps.
    topic str
    Topic name
    environmentName String
    Name of the Managed Environment.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    bulkSubscribe Property Map
    Bulk subscription options
    deadLetterTopic String
    Deadletter topic name
    metadata Map<String>
    Subscription metadata
    name String
    Name of the Dapr subscription.
    pubsubName String
    Dapr PubSub component name
    routes Property Map
    Subscription routes
    scopes List<String>
    Application scopes to restrict the subscription to specific apps.
    topic String
    Topic name

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    SystemData Pulumi.AzureNative.App.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    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.
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    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.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    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.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    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.
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    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.
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    DaprSubscriptionBulkSubscribeOptions, DaprSubscriptionBulkSubscribeOptionsArgs

    Enabled bool
    Enable bulk subscription
    MaxAwaitDurationMs int
    Maximum duration in milliseconds to wait before a bulk message is sent to the app.
    MaxMessagesCount int
    Maximum number of messages to deliver in a bulk message.
    Enabled bool
    Enable bulk subscription
    MaxAwaitDurationMs int
    Maximum duration in milliseconds to wait before a bulk message is sent to the app.
    MaxMessagesCount int
    Maximum number of messages to deliver in a bulk message.
    enabled Boolean
    Enable bulk subscription
    maxAwaitDurationMs Integer
    Maximum duration in milliseconds to wait before a bulk message is sent to the app.
    maxMessagesCount Integer
    Maximum number of messages to deliver in a bulk message.
    enabled boolean
    Enable bulk subscription
    maxAwaitDurationMs number
    Maximum duration in milliseconds to wait before a bulk message is sent to the app.
    maxMessagesCount number
    Maximum number of messages to deliver in a bulk message.
    enabled bool
    Enable bulk subscription
    max_await_duration_ms int
    Maximum duration in milliseconds to wait before a bulk message is sent to the app.
    max_messages_count int
    Maximum number of messages to deliver in a bulk message.
    enabled Boolean
    Enable bulk subscription
    maxAwaitDurationMs Number
    Maximum duration in milliseconds to wait before a bulk message is sent to the app.
    maxMessagesCount Number
    Maximum number of messages to deliver in a bulk message.

    DaprSubscriptionBulkSubscribeOptionsResponse, DaprSubscriptionBulkSubscribeOptionsResponseArgs

    Enabled bool
    Enable bulk subscription
    MaxAwaitDurationMs int
    Maximum duration in milliseconds to wait before a bulk message is sent to the app.
    MaxMessagesCount int
    Maximum number of messages to deliver in a bulk message.
    Enabled bool
    Enable bulk subscription
    MaxAwaitDurationMs int
    Maximum duration in milliseconds to wait before a bulk message is sent to the app.
    MaxMessagesCount int
    Maximum number of messages to deliver in a bulk message.
    enabled Boolean
    Enable bulk subscription
    maxAwaitDurationMs Integer
    Maximum duration in milliseconds to wait before a bulk message is sent to the app.
    maxMessagesCount Integer
    Maximum number of messages to deliver in a bulk message.
    enabled boolean
    Enable bulk subscription
    maxAwaitDurationMs number
    Maximum duration in milliseconds to wait before a bulk message is sent to the app.
    maxMessagesCount number
    Maximum number of messages to deliver in a bulk message.
    enabled bool
    Enable bulk subscription
    max_await_duration_ms int
    Maximum duration in milliseconds to wait before a bulk message is sent to the app.
    max_messages_count int
    Maximum number of messages to deliver in a bulk message.
    enabled Boolean
    Enable bulk subscription
    maxAwaitDurationMs Number
    Maximum duration in milliseconds to wait before a bulk message is sent to the app.
    maxMessagesCount Number
    Maximum number of messages to deliver in a bulk message.

    DaprSubscriptionRouteRule, DaprSubscriptionRouteRuleArgs

    Match string
    The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
    Path string
    The path for events that match this rule
    Match string
    The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
    Path string
    The path for events that match this rule
    match String
    The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
    path String
    The path for events that match this rule
    match string
    The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
    path string
    The path for events that match this rule
    match str
    The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
    path str
    The path for events that match this rule
    match String
    The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
    path String
    The path for events that match this rule

    DaprSubscriptionRouteRuleResponse, DaprSubscriptionRouteRuleResponseArgs

    Match string
    The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
    Path string
    The path for events that match this rule
    Match string
    The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
    Path string
    The path for events that match this rule
    match String
    The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
    path String
    The path for events that match this rule
    match string
    The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
    path string
    The path for events that match this rule
    match str
    The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
    path str
    The path for events that match this rule
    match String
    The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
    path String
    The path for events that match this rule

    DaprSubscriptionRoutes, DaprSubscriptionRoutesArgs

    Default string
    The default path to deliver events that do not match any of the rules.
    Rules List<Pulumi.AzureNative.App.Inputs.DaprSubscriptionRouteRule>
    The list of Dapr PubSub Event Subscription Route Rules.
    Default string
    The default path to deliver events that do not match any of the rules.
    Rules []DaprSubscriptionRouteRule
    The list of Dapr PubSub Event Subscription Route Rules.
    default_ String
    The default path to deliver events that do not match any of the rules.
    rules List<DaprSubscriptionRouteRule>
    The list of Dapr PubSub Event Subscription Route Rules.
    default string
    The default path to deliver events that do not match any of the rules.
    rules DaprSubscriptionRouteRule[]
    The list of Dapr PubSub Event Subscription Route Rules.
    default str
    The default path to deliver events that do not match any of the rules.
    rules Sequence[DaprSubscriptionRouteRule]
    The list of Dapr PubSub Event Subscription Route Rules.
    default String
    The default path to deliver events that do not match any of the rules.
    rules List<Property Map>
    The list of Dapr PubSub Event Subscription Route Rules.

    DaprSubscriptionRoutesResponse, DaprSubscriptionRoutesResponseArgs

    Default string
    The default path to deliver events that do not match any of the rules.
    Rules List<Pulumi.AzureNative.App.Inputs.DaprSubscriptionRouteRuleResponse>
    The list of Dapr PubSub Event Subscription Route Rules.
    Default string
    The default path to deliver events that do not match any of the rules.
    Rules []DaprSubscriptionRouteRuleResponse
    The list of Dapr PubSub Event Subscription Route Rules.
    default_ String
    The default path to deliver events that do not match any of the rules.
    rules List<DaprSubscriptionRouteRuleResponse>
    The list of Dapr PubSub Event Subscription Route Rules.
    default string
    The default path to deliver events that do not match any of the rules.
    rules DaprSubscriptionRouteRuleResponse[]
    The list of Dapr PubSub Event Subscription Route Rules.
    default str
    The default path to deliver events that do not match any of the rules.
    rules Sequence[DaprSubscriptionRouteRuleResponse]
    The list of Dapr PubSub Event Subscription Route Rules.
    default String
    The default path to deliver events that do not match any of the rules.
    rules List<Property Map>
    The list of Dapr PubSub Event Subscription Route Rules.

    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 timestamp of resource last modification (UTC)
    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 timestamp of resource last modification (UTC)
    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 timestamp of resource last modification (UTC)
    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 timestamp of resource last modification (UTC)
    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 timestamp of resource last modification (UTC)
    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 timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

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

    $ pulumi import azure-native:app:DaprSubscription mysubscription /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprSubscriptions/{name} 
    

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

    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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi