File Event Trigger Args
data class FileEventTriggerArgs(val customContextTag: Output<String>? = null, val deviceName: Output<String>? = null, val kind: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sinkInfo: Output<RoleSinkInfoArgs>? = null, val sourceInfo: Output<FileSourceInfoArgs>? = null) : ConvertibleToJava<FileEventTriggerArgs>
Trigger details. Uses Azure REST API version 2022-03-01. In version 1.x of the Azure Native provider, it used API version 2020-12-01.
Example Usage
TriggerPut
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var fileEventTrigger = new AzureNative.DataBoxEdge.FileEventTrigger("fileEventTrigger", new()
{
CustomContextTag = "CustomContextTags-1235346475",
DeviceName = "testedgedevice",
Kind = "FileEvent",
Name = "trigger1",
ResourceGroupName = "GroupForEdgeAutomation",
SinkInfo = new AzureNative.DataBoxEdge.Inputs.RoleSinkInfoArgs
{
RoleId = "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/roles/role1",
},
SourceInfo = new AzureNative.DataBoxEdge.Inputs.FileSourceInfoArgs
{
ShareId = "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/shares/share1",
},
});
});
Content copied to clipboard
package main
import (
databoxedge "github.com/pulumi/pulumi-azure-native-sdk/databoxedge/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databoxedge.NewFileEventTrigger(ctx, "fileEventTrigger", &databoxedge.FileEventTriggerArgs{
CustomContextTag: pulumi.String("CustomContextTags-1235346475"),
DeviceName: pulumi.String("testedgedevice"),
Kind: pulumi.String("FileEvent"),
Name: pulumi.String("trigger1"),
ResourceGroupName: pulumi.String("GroupForEdgeAutomation"),
SinkInfo: &databoxedge.RoleSinkInfoArgs{
RoleId: pulumi.String("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/roles/role1"),
},
SourceInfo: &databoxedge.FileSourceInfoArgs{
ShareId: pulumi.String("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/shares/share1"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.databoxedge.FileEventTrigger;
import com.pulumi.azurenative.databoxedge.FileEventTriggerArgs;
import com.pulumi.azurenative.databoxedge.inputs.RoleSinkInfoArgs;
import com.pulumi.azurenative.databoxedge.inputs.FileSourceInfoArgs;
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 fileEventTrigger = new FileEventTrigger("fileEventTrigger", FileEventTriggerArgs.builder()
.customContextTag("CustomContextTags-1235346475")
.deviceName("testedgedevice")
.kind("FileEvent")
.name("trigger1")
.resourceGroupName("GroupForEdgeAutomation")
.sinkInfo(RoleSinkInfoArgs.builder()
.roleId("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/roles/role1")
.build())
.sourceInfo(FileSourceInfoArgs.builder()
.shareId("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/shares/share1")
.build())
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:databoxedge:FileEventTrigger trigger1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/triggers/{name}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(customContextTag: Output<String>? = null, deviceName: Output<String>? = null, kind: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, sinkInfo: Output<RoleSinkInfoArgs>? = null, sourceInfo: Output<FileSourceInfoArgs>? = null)
Properties
Link copied to clipboard
A custom context tag typically used to correlate the trigger against its usage. For example, if a periodic timer trigger is intended for certain specific IoT modules in the device, the tag can be the name or the image URL of the module.
Link copied to clipboard
Creates or updates a trigger
Link copied to clipboard
The resource group name.
Link copied to clipboard
Role sink info.
Link copied to clipboard
File event source details.