azure-native-v2.databoxedge.FileEventTrigger
Explore with Pulumi AI
Trigger details. Azure REST API version: 2022-03-01. Prior API version in Azure Native 1.x: 2020-12-01.
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",
});
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",
})
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());
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)
const fileEventTriggerResource = new azure_native.databoxedge.FileEventTrigger("fileEventTriggerResource", {
deviceName: "string",
kind: "string",
resourceGroupName: "string",
sinkInfo: {
roleId: "string",
},
sourceInfo: {
shareId: "string",
},
customContextTag: "string",
name: "string",
});
type: azure-native:databoxedge:FileEventTrigger
properties:
customContextTag: string
deviceName: string
kind: string
name: string
resourceGroupName: string
sinkInfo:
roleId: string
sourceInfo:
shareId: string
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:
- Device
Name This property is required. Changes to this property will trigger replacement.
- Creates or updates a trigger
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name.
- Sink
Info This property is required. Pulumi.Azure Native. Data Box Edge. Inputs. Role Sink Info - Role sink info.
- Source
Info This property is required. Pulumi.Azure Native. Data Box Edge. Inputs. File Source Info - File event source details.
- Custom
Context stringTag - 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.
- The trigger name.
- Device
Name This property is required. Changes to this property will trigger replacement.
- Creates or updates a trigger
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name.
- Sink
Info This property is required. RoleSink Info Args - Role sink info.
- Source
Info This property is required. FileSource Info Args - File event source details.
- Custom
Context stringTag - 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.
- The trigger name.
- device
Name This property is required. Changes to this property will trigger replacement.
- Creates or updates a trigger
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name.
- sink
Info This property is required. RoleSink Info - Role sink info.
- source
Info This property is required. FileSource Info - File event source details.
- custom
Context StringTag - 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.
- The trigger name.
- device
Name This property is required. Changes to this property will trigger replacement.
- Creates or updates a trigger
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name.
- sink
Info This property is required. RoleSink Info - Role sink info.
- source
Info This property is required. FileSource Info - File event source details.
- custom
Context stringTag - 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.
- The trigger name.
- device_
name This property is required. Changes to this property will trigger replacement.
- Creates or updates a trigger
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The resource group name.
- sink_
info This property is required. RoleSink Info Args - Role sink info.
- source_
info This property is required. FileSource Info Args - File event source details.
- custom_
context_ strtag - 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.
- The trigger name.
- device
Name This property is required. Changes to this property will trigger replacement.
- Creates or updates a trigger
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The resource group name.
- sink
Info This property is required. Property Map - Role sink info.
- source
Info This property is required. Property Map - File event source details.
- custom
Context StringTag - 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.
- 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.
- System
Data Pulumi.Azure Native. Data Box Edge. Outputs. System Data Response - 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.
- System
Data SystemData Response - 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.
- system
Data SystemData Response - 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.
- system
Data SystemData Response - 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 SystemData Response - 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.
- system
Data Property Map - Metadata pertaining to creation and last modification of Trigger
- type String
- The hierarchical type of the object.
Supporting Types
FileSourceInfo, FileSourceInfoArgs
This property is required. string- File share ID.
This property is required. string- File share ID.
This property is required. String- File share ID.
This property is required. string- File share ID.
This property is required. str- File share ID.
This property is required. String- File share ID.
FileSourceInfoResponse, FileSourceInfoResponseArgs
This property is required. string- File share ID.
This property is required. string- File share ID.
This property is required. String- File share ID.
This property is required. string- File share ID.
This property is required. str- File share ID.
This property is required. String- File share ID.
RoleSinkInfo, RoleSinkInfoArgs
- Role
Id This property is required. string - Compute role ID.
- Role
Id This property is required. string - Compute role ID.
- role
Id This property is required. String - Compute role ID.
- role
Id This property is required. string - Compute role ID.
- role_
id This property is required. str - Compute role ID.
- role
Id This property is required. String - Compute role ID.
RoleSinkInfoResponse, RoleSinkInfoResponseArgs
- Role
Id This property is required. string - Compute role ID.
- Role
Id This property is required. string - Compute role ID.
- role
Id This property is required. String - Compute role ID.
- role
Id This property is required. string - Compute role ID.
- role_
id This property is required. str - Compute role ID.
- role
Id This property is required. String - Compute role ID.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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}
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