Sql Trigger Args
data class SqlTriggerArgs(val body: Output<String>? = null, val containerId: Output<String>? = null, val name: Output<String>? = null, val operation: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<SqlTriggerArgs>
Manages an SQL Trigger.
Example Usage
resources:
exampleSqlDatabase:
type: azure:cosmosdb:SqlDatabase
name: example
properties:
name: tfex-cosmos-db
resourceGroupName: ${example.resourceGroupName}
accountName: ${example.name}
throughput: 400
exampleSqlContainer:
type: azure:cosmosdb:SqlContainer
name: example
properties:
name: example-container
resourceGroupName: ${example.resourceGroupName}
accountName: ${example.name}
databaseName: ${exampleSqlDatabase.name}
partitionKeyPath: /id
exampleSqlTrigger:
type: azure:cosmosdb:SqlTrigger
name: example
properties:
name: test-trigger
containerId: ${exampleSqlContainer.id}
body: function trigger(){}
operation: Delete
type: Post
variables:
example:
fn::invoke:
function: azure:cosmosdb:getAccount
arguments:
name: tfex-cosmosdb-account
resourceGroupName: tfex-cosmosdb-account-rg
Content copied to clipboard
Import
SQL Triggers can be imported using the resource id
, e.g.
$ pulumi import azure:cosmosdb/sqlTrigger:SqlTrigger example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DocumentDB/databaseAccounts/account1/sqlDatabases/database1/containers/container1/triggers/trigger1
Content copied to clipboard