1. Packages
  2. Azure Native v2
  3. API Docs
  4. databoxedge
  5. FileEventTrigger
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.databoxedge.FileEventTrigger

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Trigger details. Azure REST API version: 2022-03-01. Prior API version in Azure Native 1.x: 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",
        },
    });

});
Copy
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
	})
}
Copy
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());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const fileEventTrigger = new azure_native.databoxedge.FileEventTrigger("fileEventTrigger", {
    customContextTag: "CustomContextTags-1235346475",
    deviceName: "testedgedevice",
    kind: "FileEvent",
    name: "trigger1",
    resourceGroupName: "GroupForEdgeAutomation",
    sinkInfo: {
        roleId: "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/roles/role1",
    },
    sourceInfo: {
        shareId: "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/shares/share1",
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

file_event_trigger = azure_native.databoxedge.FileEventTrigger("fileEventTrigger",
    custom_context_tag="CustomContextTags-1235346475",
    device_name="testedgedevice",
    kind="FileEvent",
    name="trigger1",
    resource_group_name="GroupForEdgeAutomation",
    sink_info={
        "role_id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/roles/role1",
    },
    source_info={
        "share_id": "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/shares/share1",
    })
Copy
resources:
  fileEventTrigger:
    type: azure-native:databoxedge:FileEventTrigger
    properties:
      customContextTag: CustomContextTags-1235346475
      deviceName: testedgedevice
      kind: FileEvent
      name: trigger1
      resourceGroupName: GroupForEdgeAutomation
      sinkInfo:
        roleId: /subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/roles/role1
      sourceInfo:
        shareId: /subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/shares/share1
Copy

Create FileEventTrigger Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new FileEventTrigger(name: string, args: FileEventTriggerArgs, opts?: CustomResourceOptions);
@overload
def FileEventTrigger(resource_name: str,
                     args: FileEventTriggerArgs,
                     opts: Optional[ResourceOptions] = None)

@overload
def FileEventTrigger(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     device_name: Optional[str] = None,
                     resource_group_name: Optional[str] = None,
                     sink_info: Optional[RoleSinkInfoArgs] = None,
                     source_info: Optional[FileSourceInfoArgs] = None,
                     custom_context_tag: Optional[str] = None,
                     name: Optional[str] = None)
func NewFileEventTrigger(ctx *Context, name string, args FileEventTriggerArgs, opts ...ResourceOption) (*FileEventTrigger, error)
public FileEventTrigger(string name, FileEventTriggerArgs args, CustomResourceOptions? opts = null)
public FileEventTrigger(String name, FileEventTriggerArgs args)
public FileEventTrigger(String name, FileEventTriggerArgs args, CustomResourceOptions options)
type: azure-native:databoxedge:FileEventTrigger
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. FileEventTriggerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. FileEventTriggerArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. FileEventTriggerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. FileEventTriggerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. FileEventTriggerArgs
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 fileEventTriggerResource = new AzureNative.Databoxedge.FileEventTrigger("fileEventTriggerResource", new()
{
    DeviceName = "string",
    Kind = "string",
    ResourceGroupName = "string",
    SinkInfo = 
    {
        { "roleId", "string" },
    },
    SourceInfo = 
    {
        { "shareId", "string" },
    },
    CustomContextTag = "string",
    Name = "string",
});
Copy
example, err := databoxedge.NewFileEventTrigger(ctx, "fileEventTriggerResource", &databoxedge.FileEventTriggerArgs{
	DeviceName:        "string",
	Kind:              "string",
	ResourceGroupName: "string",
	SinkInfo: map[string]interface{}{
		"roleId": "string",
	},
	SourceInfo: map[string]interface{}{
		"shareId": "string",
	},
	CustomContextTag: "string",
	Name:             "string",
})
Copy
var fileEventTriggerResource = new FileEventTrigger("fileEventTriggerResource", FileEventTriggerArgs.builder()
    .deviceName("string")
    .kind("string")
    .resourceGroupName("string")
    .sinkInfo(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .sourceInfo(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .customContextTag("string")
    .name("string")
    .build());
Copy
file_event_trigger_resource = azure_native.databoxedge.FileEventTrigger("fileEventTriggerResource",
    device_name=string,
    kind=string,
    resource_group_name=string,
    sink_info={
        roleId: string,
    },
    source_info={
        shareId: string,
    },
    custom_context_tag=string,
    name=string)
Copy
const fileEventTriggerResource = new azure_native.databoxedge.FileEventTrigger("fileEventTriggerResource", {
    deviceName: "string",
    kind: "string",
    resourceGroupName: "string",
    sinkInfo: {
        roleId: "string",
    },
    sourceInfo: {
        shareId: "string",
    },
    customContextTag: "string",
    name: "string",
});
Copy
type: azure-native:databoxedge:FileEventTrigger
properties:
    customContextTag: string
    deviceName: string
    kind: string
    name: string
    resourceGroupName: string
    sinkInfo:
        roleId: string
    sourceInfo:
        shareId: string
Copy

FileEventTrigger Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The FileEventTrigger resource accepts the following input properties:

DeviceName
This property is required.
Changes to this property will trigger replacement.
string
Creates or updates a trigger
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The resource group name.
SinkInfo This property is required. Pulumi.AzureNative.DataBoxEdge.Inputs.RoleSinkInfo
Role sink info.
SourceInfo This property is required. Pulumi.AzureNative.DataBoxEdge.Inputs.FileSourceInfo
File event source details.
CustomContextTag string
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.
Name Changes to this property will trigger replacement. string
The trigger name.
DeviceName
This property is required.
Changes to this property will trigger replacement.
string
Creates or updates a trigger
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The resource group name.
SinkInfo This property is required. RoleSinkInfoArgs
Role sink info.
SourceInfo This property is required. FileSourceInfoArgs
File event source details.
CustomContextTag string
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.
Name Changes to this property will trigger replacement. string
The trigger name.
deviceName
This property is required.
Changes to this property will trigger replacement.
String
Creates or updates a trigger
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The resource group name.
sinkInfo This property is required. RoleSinkInfo
Role sink info.
sourceInfo This property is required. FileSourceInfo
File event source details.
customContextTag String
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.
name Changes to this property will trigger replacement. String
The trigger name.
deviceName
This property is required.
Changes to this property will trigger replacement.
string
Creates or updates a trigger
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The resource group name.
sinkInfo This property is required. RoleSinkInfo
Role sink info.
sourceInfo This property is required. FileSourceInfo
File event source details.
customContextTag string
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.
name Changes to this property will trigger replacement. string
The trigger name.
device_name
This property is required.
Changes to this property will trigger replacement.
str
Creates or updates a trigger
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The resource group name.
sink_info This property is required. RoleSinkInfoArgs
Role sink info.
source_info This property is required. FileSourceInfoArgs
File event source details.
custom_context_tag str
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.
name Changes to this property will trigger replacement. str
The trigger name.
deviceName
This property is required.
Changes to this property will trigger replacement.
String
Creates or updates a trigger
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The resource group name.
sinkInfo This property is required. Property Map
Role sink info.
sourceInfo This property is required. Property Map
File event source details.
customContextTag String
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.
name Changes to this property will trigger replacement. String
The trigger name.

Outputs

All input properties are implicitly available as output properties. Additionally, the FileEventTrigger resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
SystemData Pulumi.AzureNative.DataBoxEdge.Outputs.SystemDataResponse
Metadata pertaining to creation and last modification of Trigger
Type string
The hierarchical type of the object.
Id string
The provider-assigned unique ID for this managed resource.
SystemData SystemDataResponse
Metadata pertaining to creation and last modification of Trigger
Type string
The hierarchical type of the object.
id String
The provider-assigned unique ID for this managed resource.
systemData SystemDataResponse
Metadata pertaining to creation and last modification of Trigger
type String
The hierarchical type of the object.
id string
The provider-assigned unique ID for this managed resource.
systemData SystemDataResponse
Metadata pertaining to creation and last modification of Trigger
type string
The hierarchical type of the object.
id str
The provider-assigned unique ID for this managed resource.
system_data SystemDataResponse
Metadata pertaining to creation and last modification of Trigger
type str
The hierarchical type of the object.
id String
The provider-assigned unique ID for this managed resource.
systemData Property Map
Metadata pertaining to creation and last modification of Trigger
type String
The hierarchical type of the object.

Supporting Types

FileSourceInfo
, FileSourceInfoArgs

ShareId This property is required. string
File share ID.
ShareId This property is required. string
File share ID.
shareId This property is required. String
File share ID.
shareId This property is required. string
File share ID.
share_id This property is required. str
File share ID.
shareId This property is required. String
File share ID.

FileSourceInfoResponse
, FileSourceInfoResponseArgs

ShareId This property is required. string
File share ID.
ShareId This property is required. string
File share ID.
shareId This property is required. String
File share ID.
shareId This property is required. string
File share ID.
share_id This property is required. str
File share ID.
shareId This property is required. String
File share ID.

RoleSinkInfo
, RoleSinkInfoArgs

RoleId This property is required. string
Compute role ID.
RoleId This property is required. string
Compute role ID.
roleId This property is required. String
Compute role ID.
roleId This property is required. string
Compute role ID.
role_id This property is required. str
Compute role ID.
roleId This property is required. String
Compute role ID.

RoleSinkInfoResponse
, RoleSinkInfoResponseArgs

RoleId This property is required. string
Compute role ID.
RoleId This property is required. string
Compute role ID.
roleId This property is required. String
Compute role ID.
roleId This property is required. string
Compute role ID.
role_id This property is required. str
Compute role ID.
roleId This property is required. String
Compute role ID.

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
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_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
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:databoxedge:FileEventTrigger trigger1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/triggers/{name} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi