azure-native.app.DaprSubscription
Explore with Pulumi AI
Dapr PubSub Event Subscription. Azure REST API version: 2023-08-01-preview.
Other available API versions: 2023-11-02-preview, 2024-02-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,
"maxAwaitDurationMs": 0,
"maxMessagesCount": 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
The DaprSubscription resource accepts the following input properties:
- Environment
Name string - Name of the Managed Environment.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Bulk
Subscribe Pulumi.Azure Native. App. Inputs. Dapr Subscription Bulk Subscribe Options - Bulk subscription options
- Dead
Letter stringTopic - Deadletter topic name
- Metadata Dictionary<string, string>
- Subscription metadata
- Name string
- Name of the Dapr subscription.
- Pubsub
Name 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
- Environment
Name string - Name of the Managed Environment.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Bulk
Subscribe DaprSubscription Bulk Subscribe Options Args - Bulk subscription options
- Dead
Letter stringTopic - Deadletter topic name
- Metadata map[string]string
- Subscription metadata
- Name string
- Name of the Dapr subscription.
- Pubsub
Name string - Dapr PubSub component name
- Routes
Dapr
Subscription Routes Args - Subscription routes
- Scopes []string
- Application scopes to restrict the subscription to specific apps.
- Topic string
- Topic name
- environment
Name String - Name of the Managed Environment.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- bulk
Subscribe DaprSubscription Bulk Subscribe Options - Bulk subscription options
- dead
Letter StringTopic - Deadletter topic name
- metadata Map<String,String>
- Subscription metadata
- name String
- Name of the Dapr subscription.
- pubsub
Name String - Dapr PubSub component name
- routes
Dapr
Subscription Routes - Subscription routes
- scopes List<String>
- Application scopes to restrict the subscription to specific apps.
- topic String
- Topic name
- environment
Name string - Name of the Managed Environment.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- bulk
Subscribe DaprSubscription Bulk Subscribe Options - Bulk subscription options
- dead
Letter stringTopic - Deadletter topic name
- metadata {[key: string]: string}
- Subscription metadata
- name string
- Name of the Dapr subscription.
- pubsub
Name string - Dapr PubSub component name
- routes
Dapr
Subscription 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
Dapr
Subscription Routes Args - Subscription routes
- scopes Sequence[str]
- Application scopes to restrict the subscription to specific apps.
- topic str
- Topic name
- environment
Name String - Name of the Managed Environment.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- bulk
Subscribe Property Map - Bulk subscription options
- dead
Letter StringTopic - Deadletter topic name
- metadata Map<String>
- Subscription metadata
- name String
- Name of the Dapr subscription.
- pubsub
Name 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.
- System
Data 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.
- System
Data 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.
- system
Data 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.
- system
Data 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.
- system
Data 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
- 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 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
- max
Await IntegerDuration Ms - Maximum duration in milliseconds to wait before a bulk message is sent to the app.
- max
Messages IntegerCount - Maximum number of messages to deliver in a bulk message.
- enabled boolean
- Enable bulk subscription
- max
Await numberDuration Ms - Maximum duration in milliseconds to wait before a bulk message is sent to the app.
- max
Messages 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
- max
Await NumberDuration Ms - Maximum duration in milliseconds to wait before a bulk message is sent to the app.
- max
Messages NumberCount - Maximum number of messages to deliver in a bulk message.
DaprSubscriptionBulkSubscribeOptionsResponse, DaprSubscriptionBulkSubscribeOptionsResponseArgs
- 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 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
- max
Await IntegerDuration Ms - Maximum duration in milliseconds to wait before a bulk message is sent to the app.
- max
Messages IntegerCount - Maximum number of messages to deliver in a bulk message.
- enabled boolean
- Enable bulk subscription
- max
Await numberDuration Ms - Maximum duration in milliseconds to wait before a bulk message is sent to the app.
- max
Messages 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
- max
Await NumberDuration Ms - Maximum duration in milliseconds to wait before a bulk message is sent to the app.
- max
Messages 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
[]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
List<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
Dapr
Subscription 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[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 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
[]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
List<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
Dapr
Subscription 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[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 List<Property Map>
- The list of Dapr PubSub Event Subscription Route Rules.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified 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