Microsoft.App managedEnvironments/daprSubscriptions 2024-10-02-preview
Bicep 資源定義
managedEnvironments/daprSubscriptions 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.App/managedEnvironments/daprSubscriptions 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.App/managedEnvironments/daprSubscriptions@2024-10-02-preview' = {
parent: resourceSymbolicName
name: 'string'
properties: {
bulkSubscribe: {
enabled: bool
maxAwaitDurationMs: int
maxMessagesCount: int
}
deadLetterTopic: 'string'
metadata: {
{customized property}: 'string'
}
pubsubName: 'string'
routes: {
default: 'string'
rules: [
{
match: 'string'
path: 'string'
}
]
}
scopes: [
'string'
]
topic: 'string'
}
}
屬性值
DaprSubscriptionBulkSubscribeOptions
名字 |
描述 |
價值 |
啟用 |
啟用大量訂用帳戶 |
bool |
maxAwaitDurationMs |
傳送大量訊息至應用程式之前,以毫秒為單位的持續時間上限。 |
int |
maxMessagesCount |
大量訊息中要傳遞的訊息數目上限。 |
int |
DaprSubscriptionProperties
DaprSubscriptionRouteRule
名字 |
描述 |
價值 |
火柴 |
用來比對事件的選擇性 CEL 表達式。 如果未指定相符專案,則會將路由視為預設值。 規則會依照指定的順序進行測試,因此應該從最不具體的順序加以定義。 預設路由應該會顯示在清單中最後一個。 |
字串 |
路徑 |
符合此規則的事件路徑 |
字串 |
DaprSubscriptionRoutes
Microsoft.App/managedEnvironments/daprSubscriptions
ARM 樣本資源定義
managedEnvironments/daprSubscriptions 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.App/managedEnvironments/daprSubscriptions 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.App/managedEnvironments/daprSubscriptions",
"apiVersion": "2024-10-02-preview",
"name": "string",
"properties": {
"bulkSubscribe": {
"enabled": "bool",
"maxAwaitDurationMs": "int",
"maxMessagesCount": "int"
},
"deadLetterTopic": "string",
"metadata": {
"{customized property}": "string"
},
"pubsubName": "string",
"routes": {
"default": "string",
"rules": [
{
"match": "string",
"path": "string"
}
]
},
"scopes": [ "string" ],
"topic": "string"
}
}
屬性值
DaprSubscriptionBulkSubscribeOptions
名字 |
描述 |
價值 |
啟用 |
啟用大量訂用帳戶 |
bool |
maxAwaitDurationMs |
傳送大量訊息至應用程式之前,以毫秒為單位的持續時間上限。 |
int |
maxMessagesCount |
大量訊息中要傳遞的訊息數目上限。 |
int |
DaprSubscriptionProperties
DaprSubscriptionRouteRule
名字 |
描述 |
價值 |
火柴 |
用來比對事件的選擇性 CEL 表達式。 如果未指定相符專案,則會將路由視為預設值。 規則會依照指定的順序進行測試,因此應該從最不具體的順序加以定義。 預設路由應該會顯示在清單中最後一個。 |
字串 |
路徑 |
符合此規則的事件路徑 |
字串 |
DaprSubscriptionRoutes
Microsoft.App/managedEnvironments/daprSubscriptions
名字 |
描述 |
價值 |
apiVersion |
API 版本 |
'2024-10-02-preview' |
名字 |
資源名稱 |
字串 (必要) |
性能 |
Dapr PubSub 事件訂用帳戶資源特定屬性 |
DaprSubscriptionProperties |
類型 |
資源類型 |
'Microsoft.App/managedEnvironments/daprSubscriptions' |
managedEnvironments/daprSubscriptions 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.App/managedEnvironments/daprSubscriptions 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.App/managedEnvironments/daprSubscriptions@2024-10-02-preview"
name = "string"
body = jsonencode({
properties = {
bulkSubscribe = {
enabled = bool
maxAwaitDurationMs = int
maxMessagesCount = int
}
deadLetterTopic = "string"
metadata = {
{customized property} = "string"
}
pubsubName = "string"
routes = {
default = "string"
rules = [
{
match = "string"
path = "string"
}
]
}
scopes = [
"string"
]
topic = "string"
}
})
}
屬性值
DaprSubscriptionBulkSubscribeOptions
名字 |
描述 |
價值 |
啟用 |
啟用大量訂用帳戶 |
bool |
maxAwaitDurationMs |
傳送大量訊息至應用程式之前,以毫秒為單位的持續時間上限。 |
int |
maxMessagesCount |
大量訊息中要傳遞的訊息數目上限。 |
int |
DaprSubscriptionProperties
DaprSubscriptionRouteRule
名字 |
描述 |
價值 |
火柴 |
用來比對事件的選擇性 CEL 表達式。 如果未指定相符專案,則會將路由視為預設值。 規則會依照指定的順序進行測試,因此應該從最不具體的順序加以定義。 預設路由應該會顯示在清單中最後一個。 |
字串 |
路徑 |
符合此規則的事件路徑 |
字串 |
DaprSubscriptionRoutes
Microsoft.App/managedEnvironments/daprSubscriptions