azure-native.app.DaprSubscription
Explore with Pulumi AI
Dapr PubSub Event Subscription.
Uses 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 * 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",
});
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")
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 * 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",
});
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")
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 * 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",
});
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")
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.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- BulkSubscribe Pulumi.Azure Native. App. Inputs. Dapr Subscription Bulk Subscribe Options 
- Bulk subscription options
- DeadLetter stringTopic 
- Deadletter topic name
- Metadata Dictionary<string, string>
- Subscription metadata
- Name string
- Name of the Dapr subscription.
- PubsubName string
- Dapr PubSub component name
- Routes
Pulumi.Azure Native. App. Inputs. Dapr Subscription Routes 
- 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.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- BulkSubscribe DaprSubscription Bulk Subscribe Options Args 
- Bulk subscription options
- DeadLetter stringTopic 
- Deadletter topic name
- Metadata map[string]string
- Subscription metadata
- Name string
- Name of the Dapr subscription.
- PubsubName string
- Dapr PubSub component name
- Routes
DaprSubscription Routes Args 
- Subscription routes
- Scopes []string
- Application scopes to restrict the subscription to specific apps.
- Topic string
- Topic name
- environmentName String
- Name of the Managed Environment.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- bulkSubscribe DaprSubscription Bulk Subscribe Options 
- Bulk subscription options
- deadLetter StringTopic 
- Deadletter topic name
- metadata Map<String,String>
- Subscription metadata
- name String
- Name of the Dapr subscription.
- pubsubName String
- Dapr PubSub component name
- routes
DaprSubscription Routes 
- 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.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- bulkSubscribe DaprSubscription Bulk Subscribe Options 
- Bulk subscription options
- deadLetter stringTopic 
- Deadletter topic name
- metadata {[key: string]: string}
- Subscription metadata
- name string
- Name of the Dapr subscription.
- pubsubName string
- Dapr PubSub component name
- routes
DaprSubscription Routes 
- 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_ strname 
- The name of the resource group. The name is case insensitive.
- bulk_subscribe DaprSubscription Bulk Subscribe Options Args 
- Bulk subscription options
- dead_letter_ strtopic 
- Deadletter topic name
- metadata Mapping[str, str]
- Subscription metadata
- name str
- Name of the Dapr subscription.
- pubsub_name str
- Dapr PubSub component name
- routes
DaprSubscription Routes Args 
- 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.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- bulkSubscribe Property Map
- Bulk subscription options
- deadLetter StringTopic 
- 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.Azure Native. App. Outputs. System Data Response 
- 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 SystemData Response 
- 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 SystemData Response 
- 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 SystemData Response 
- 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 SystemData Response 
- 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
- MaxAwait intDuration Ms 
- Maximum duration in milliseconds to wait before a bulk message is sent to the app.
- MaxMessages intCount 
- Maximum number of messages to deliver in a bulk message.
- Enabled bool
- Enable bulk subscription
- MaxAwait intDuration Ms 
- Maximum duration in milliseconds to wait before a bulk message is sent to the app.
- MaxMessages intCount 
- Maximum number of messages to deliver in a bulk message.
- enabled Boolean
- Enable bulk subscription
- maxAwait IntegerDuration Ms 
- Maximum duration in milliseconds to wait before a bulk message is sent to the app.
- maxMessages IntegerCount 
- Maximum number of messages to deliver in a bulk message.
- enabled boolean
- Enable bulk subscription
- maxAwait numberDuration Ms 
- Maximum duration in milliseconds to wait before a bulk message is sent to the app.
- maxMessages numberCount 
- Maximum number of messages to deliver in a bulk message.
- enabled bool
- Enable bulk subscription
- max_await_ intduration_ ms 
- Maximum duration in milliseconds to wait before a bulk message is sent to the app.
- max_messages_ intcount 
- Maximum number of messages to deliver in a bulk message.
- enabled Boolean
- Enable bulk subscription
- maxAwait NumberDuration Ms 
- Maximum duration in milliseconds to wait before a bulk message is sent to the app.
- maxMessages NumberCount 
- Maximum number of messages to deliver in a bulk message.
DaprSubscriptionBulkSubscribeOptionsResponse, DaprSubscriptionBulkSubscribeOptionsResponseArgs            
- Enabled bool
- Enable bulk subscription
- MaxAwait intDuration Ms 
- Maximum duration in milliseconds to wait before a bulk message is sent to the app.
- MaxMessages intCount 
- Maximum number of messages to deliver in a bulk message.
- Enabled bool
- Enable bulk subscription
- MaxAwait intDuration Ms 
- Maximum duration in milliseconds to wait before a bulk message is sent to the app.
- MaxMessages intCount 
- Maximum number of messages to deliver in a bulk message.
- enabled Boolean
- Enable bulk subscription
- maxAwait IntegerDuration Ms 
- Maximum duration in milliseconds to wait before a bulk message is sent to the app.
- maxMessages IntegerCount 
- Maximum number of messages to deliver in a bulk message.
- enabled boolean
- Enable bulk subscription
- maxAwait numberDuration Ms 
- Maximum duration in milliseconds to wait before a bulk message is sent to the app.
- maxMessages numberCount 
- Maximum number of messages to deliver in a bulk message.
- enabled bool
- Enable bulk subscription
- max_await_ intduration_ ms 
- Maximum duration in milliseconds to wait before a bulk message is sent to the app.
- max_messages_ intcount 
- Maximum number of messages to deliver in a bulk message.
- enabled Boolean
- Enable bulk subscription
- maxAwait NumberDuration Ms 
- Maximum duration in milliseconds to wait before a bulk message is sent to the app.
- maxMessages NumberCount 
- 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.Azure Native. App. Inputs. Dapr Subscription Route Rule> 
- 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
[]DaprSubscription Route Rule 
- 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<DaprSubscription Route Rule> 
- 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
DaprSubscription Route Rule[] 
- 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[DaprSubscription Route Rule] 
- 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.Azure Native. App. Inputs. Dapr Subscription Route Rule Response> 
- 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
[]DaprSubscription Route Rule Response 
- 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<DaprSubscription Route Rule Response> 
- 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
DaprSubscription Route Rule Response[] 
- 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[DaprSubscription Route Rule Response] 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- 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_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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