TriggerArgs

data class TriggerArgs constructor(val accountName: Output<String>? = null, val kind: Output<Either<String, TriggerKind>>? = null, val resourceGroupName: Output<String>? = null, val shareSubscriptionName: Output<String>? = null, val triggerName: Output<String>? = null) : ConvertibleToJava<TriggerArgs>

A Trigger data transfer object. API Version: 2020-09-01.

Example Usage

Triggers_Create

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var trigger = new AzureNative.DataShare.Trigger("trigger", new()
{
AccountName = "Account1",
Kind = "ScheduleBased",
ResourceGroupName = "SampleResourceGroup",
ShareSubscriptionName = "ShareSubscription1",
TriggerName = "Trigger1",
});
});
package main
import (
datashare "github.com/pulumi/pulumi-azure-native/sdk/go/azure/datashare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datashare.NewTrigger(ctx, "trigger", &datashare.TriggerArgs{
AccountName: pulumi.String("Account1"),
Kind: pulumi.String("ScheduleBased"),
ResourceGroupName: pulumi.String("SampleResourceGroup"),
ShareSubscriptionName: pulumi.String("ShareSubscription1"),
TriggerName: pulumi.String("Trigger1"),
})
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.datashare.Trigger;
import com.pulumi.azurenative.datashare.TriggerArgs;
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 trigger = new Trigger("trigger", TriggerArgs.builder()
.accountName("Account1")
.kind("ScheduleBased")
.resourceGroupName("SampleResourceGroup")
.shareSubscriptionName("ShareSubscription1")
.triggerName("Trigger1")
.build());
}
}

Import

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

$ pulumi import azure-native:datashare:Trigger Trigger1 /subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shareSubscriptions/ShareSubscription1/triggers/Trigger1

Constructors

Link copied to clipboard
fun TriggerArgs(accountName: Output<String>? = null, kind: Output<Either<String, TriggerKind>>? = null, resourceGroupName: Output<String>? = null, shareSubscriptionName: Output<String>? = null, triggerName: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): TriggerArgs

Properties

Link copied to clipboard
val accountName: Output<String>? = null

The name of the share account.

Link copied to clipboard
val kind: Output<Either<String, TriggerKind>>? = null

Kind of synchronization on trigger.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The resource group name.

Link copied to clipboard
val shareSubscriptionName: Output<String>? = null

The name of the share subscription which will hold the data set sink.

Link copied to clipboard
val triggerName: Output<String>? = null

The name of the trigger.