published on Thursday, Aug 20, 2026 by jschady
published on Thursday, Aug 20, 2026 by jschady
An EventTarget is a delivery destination for EventRecords.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as filescom from "pulumi-filescom";
const exampleEventTarget = new filescom.EventTarget("example_event_target", {
name: "example",
workspaceId: 1,
applyToAllWorkspaces: true,
enabled: true,
config: "example",
deliveryPolicy: "example",
targetType: "example",
});
import pulumi
import pulumi_filescom as filescom
example_event_target = filescom.EventTarget("example_event_target",
name="example",
workspace_id=1,
apply_to_all_workspaces=True,
enabled=True,
config="example",
delivery_policy="example",
target_type="example")
package main
import (
"github.com/jschady/pulumi-filescom/sdk/go/filescom"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := filescom.NewEventTarget(ctx, "example_event_target", &filescom.EventTargetArgs{
Name: pulumi.String("example"),
WorkspaceId: pulumi.Int(1),
ApplyToAllWorkspaces: pulumi.Bool(true),
Enabled: pulumi.Bool(true),
Config: pulumi.Any("example"),
DeliveryPolicy: pulumi.Any("example"),
TargetType: pulumi.String("example"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Filescom = Jschady.Filescom;
return await Deployment.RunAsync(() =>
{
var exampleEventTarget = new Filescom.EventTarget("example_event_target", new()
{
Name = "example",
WorkspaceId = 1,
ApplyToAllWorkspaces = true,
Enabled = true,
Config = "example",
DeliveryPolicy = "example",
TargetType = "example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.filescom.EventTarget;
import com.pulumi.filescom.EventTargetArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 exampleEventTarget = new EventTarget("exampleEventTarget", EventTargetArgs.builder()
.name("example")
.workspaceId(1)
.applyToAllWorkspaces(true)
.enabled(true)
.config("example")
.deliveryPolicy("example")
.targetType("example")
.build());
}
}
resources:
exampleEventTarget:
type: filescom:EventTarget
name: example_event_target
properties:
name: example
workspaceId: 1
applyToAllWorkspaces: true
enabled: true
config: example
deliveryPolicy: example
targetType: example
pulumi {
required_providers {
filescom = {
source = "pulumi/filescom"
}
}
}
resource "filescom_eventtarget" "example_event_target" {
name = "example"
workspace_id = 1
apply_to_all_workspaces = true
enabled = true
config = "example"
delivery_policy = "example"
target_type = "example"
}
Create EventTarget Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EventTarget(name: string, args: EventTargetArgs, opts?: CustomResourceOptions);@overload
def EventTarget(resource_name: str,
args: EventTargetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EventTarget(resource_name: str,
opts: Optional[ResourceOptions] = None,
config: Optional[Any] = None,
target_type: Optional[str] = None,
apply_to_all_workspaces: Optional[bool] = None,
delivery_policy: Optional[Any] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
workspace_id: Optional[int] = None)func NewEventTarget(ctx *Context, name string, args EventTargetArgs, opts ...ResourceOption) (*EventTarget, error)public EventTarget(string name, EventTargetArgs args, CustomResourceOptions? opts = null)
public EventTarget(String name, EventTargetArgs args)
public EventTarget(String name, EventTargetArgs args, CustomResourceOptions options)
type: filescom:EventTarget
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "filescom_event_target" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args EventTargetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args EventTargetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EventTargetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EventTargetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EventTargetArgs
- 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 eventTargetResource = new Filescom.EventTarget("eventTargetResource", new()
{
Config = "any",
TargetType = "string",
ApplyToAllWorkspaces = false,
DeliveryPolicy = "any",
Enabled = false,
Name = "string",
WorkspaceId = 0,
});
example, err := filescom.NewEventTarget(ctx, "eventTargetResource", &filescom.EventTargetArgs{
Config: pulumi.Any("any"),
TargetType: pulumi.String("string"),
ApplyToAllWorkspaces: pulumi.Bool(false),
DeliveryPolicy: pulumi.Any("any"),
Enabled: pulumi.Bool(false),
Name: pulumi.String("string"),
WorkspaceId: pulumi.Int(0),
})
resource "filescom_event_target" "eventTargetResource" {
lifecycle {
create_before_destroy = true
}
config = "any"
target_type = "string"
apply_to_all_workspaces = false
delivery_policy = "any"
enabled = false
name = "string"
workspace_id = 0
}
var eventTargetResource = new EventTarget("eventTargetResource", EventTargetArgs.builder()
.config("any")
.targetType("string")
.applyToAllWorkspaces(false)
.deliveryPolicy("any")
.enabled(false)
.name("string")
.workspaceId(0)
.build());
event_target_resource = filescom.EventTarget("eventTargetResource",
config="any",
target_type="string",
apply_to_all_workspaces=False,
delivery_policy="any",
enabled=False,
name="string",
workspace_id=0)
const eventTargetResource = new filescom.EventTarget("eventTargetResource", {
config: "any",
targetType: "string",
applyToAllWorkspaces: false,
deliveryPolicy: "any",
enabled: false,
name: "string",
workspaceId: 0,
});
type: filescom:EventTarget
properties:
applyToAllWorkspaces: false
config: any
deliveryPolicy: any
enabled: false
name: string
targetType: string
workspaceId: 0
EventTarget 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 EventTarget resource accepts the following input properties:
- Config object
- Event Target configuration. Folder targets accept path and format (json or csv).
- Target
Type string - Event Target type.
- Apply
To boolAll Workspaces - If true, this default-workspace target can receive events from all workspaces.
- Delivery
Policy object - Event Target delivery policy. Email and folder targets support batchInterval in seconds, between 600 and 86400.
- Enabled bool
- Whether this Event Target can receive events.
- Name string
- Event Target name.
- Workspace
Id int - Workspace ID. 0 means the default workspace or site-wide.
- Config interface{}
- Event Target configuration. Folder targets accept path and format (json or csv).
- Target
Type string - Event Target type.
- Apply
To boolAll Workspaces - If true, this default-workspace target can receive events from all workspaces.
- Delivery
Policy interface{} - Event Target delivery policy. Email and folder targets support batchInterval in seconds, between 600 and 86400.
- Enabled bool
- Whether this Event Target can receive events.
- Name string
- Event Target name.
- Workspace
Id int - Workspace ID. 0 means the default workspace or site-wide.
- config any
- Event Target configuration. Folder targets accept path and format (json or csv).
- target_
type string - Event Target type.
- apply_
to_ boolall_ workspaces - If true, this default-workspace target can receive events from all workspaces.
- delivery_
policy any - Event Target delivery policy. Email and folder targets support batchInterval in seconds, between 600 and 86400.
- enabled bool
- Whether this Event Target can receive events.
- name string
- Event Target name.
- workspace_
id number - Workspace ID. 0 means the default workspace or site-wide.
- config Object
- Event Target configuration. Folder targets accept path and format (json or csv).
- target
Type String - Event Target type.
- apply
To BooleanAll Workspaces - If true, this default-workspace target can receive events from all workspaces.
- delivery
Policy Object - Event Target delivery policy. Email and folder targets support batchInterval in seconds, between 600 and 86400.
- enabled Boolean
- Whether this Event Target can receive events.
- name String
- Event Target name.
- workspace
Id Integer - Workspace ID. 0 means the default workspace or site-wide.
- config any
- Event Target configuration. Folder targets accept path and format (json or csv).
- target
Type string - Event Target type.
- apply
To booleanAll Workspaces - If true, this default-workspace target can receive events from all workspaces.
- delivery
Policy any - Event Target delivery policy. Email and folder targets support batchInterval in seconds, between 600 and 86400.
- enabled boolean
- Whether this Event Target can receive events.
- name string
- Event Target name.
- workspace
Id number - Workspace ID. 0 means the default workspace or site-wide.
- config Any
- Event Target configuration. Folder targets accept path and format (json or csv).
- target_
type str - Event Target type.
- apply_
to_ boolall_ workspaces - If true, this default-workspace target can receive events from all workspaces.
- delivery_
policy Any - Event Target delivery policy. Email and folder targets support batchInterval in seconds, between 600 and 86400.
- enabled bool
- Whether this Event Target can receive events.
- name str
- Event Target name.
- workspace_
id int - Workspace ID. 0 means the default workspace or site-wide.
- config Any
- Event Target configuration. Folder targets accept path and format (json or csv).
- target
Type String - Event Target type.
- apply
To BooleanAll Workspaces - If true, this default-workspace target can receive events from all workspaces.
- delivery
Policy Any - Event Target delivery policy. Email and folder targets support batchInterval in seconds, between 600 and 86400.
- enabled Boolean
- Whether this Event Target can receive events.
- name String
- Event Target name.
- workspace
Id Number - Workspace ID. 0 means the default workspace or site-wide.
Outputs
All input properties are implicitly available as output properties. Additionally, the EventTarget resource produces the following output properties:
- created_
at string - Event Target create date/time.
- id string
- The provider-assigned unique ID for this managed resource.
- updated_
at string - Event Target update date/time.
- created_
at str - Event Target create date/time.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - Event Target update date/time.
Look up Existing EventTarget Resource
Get an existing EventTarget resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: EventTargetState, opts?: CustomResourceOptions): EventTarget@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
apply_to_all_workspaces: Optional[bool] = None,
config: Optional[Any] = None,
created_at: Optional[str] = None,
delivery_policy: Optional[Any] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
target_type: Optional[str] = None,
updated_at: Optional[str] = None,
workspace_id: Optional[int] = None) -> EventTargetfunc GetEventTarget(ctx *Context, name string, id IDInput, state *EventTargetState, opts ...ResourceOption) (*EventTarget, error)public static EventTarget Get(string name, Input<string> id, EventTargetState? state, CustomResourceOptions? opts = null)public static EventTarget get(String name, Output<String> id, EventTargetState state, CustomResourceOptions options)resources: _: type: filescom:EventTarget get: id: ${id}import {
to = filescom_event_target.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Apply
To boolAll Workspaces - If true, this default-workspace target can receive events from all workspaces.
- Config object
- Event Target configuration. Folder targets accept path and format (json or csv).
- Created
At string - Event Target create date/time.
- Delivery
Policy object - Event Target delivery policy. Email and folder targets support batchInterval in seconds, between 600 and 86400.
- Enabled bool
- Whether this Event Target can receive events.
- Name string
- Event Target name.
- Target
Type string - Event Target type.
- Updated
At string - Event Target update date/time.
- Workspace
Id int - Workspace ID. 0 means the default workspace or site-wide.
- Apply
To boolAll Workspaces - If true, this default-workspace target can receive events from all workspaces.
- Config interface{}
- Event Target configuration. Folder targets accept path and format (json or csv).
- Created
At string - Event Target create date/time.
- Delivery
Policy interface{} - Event Target delivery policy. Email and folder targets support batchInterval in seconds, between 600 and 86400.
- Enabled bool
- Whether this Event Target can receive events.
- Name string
- Event Target name.
- Target
Type string - Event Target type.
- Updated
At string - Event Target update date/time.
- Workspace
Id int - Workspace ID. 0 means the default workspace or site-wide.
- apply_
to_ boolall_ workspaces - If true, this default-workspace target can receive events from all workspaces.
- config any
- Event Target configuration. Folder targets accept path and format (json or csv).
- created_
at string - Event Target create date/time.
- delivery_
policy any - Event Target delivery policy. Email and folder targets support batchInterval in seconds, between 600 and 86400.
- enabled bool
- Whether this Event Target can receive events.
- name string
- Event Target name.
- target_
type string - Event Target type.
- updated_
at string - Event Target update date/time.
- workspace_
id number - Workspace ID. 0 means the default workspace or site-wide.
- apply
To BooleanAll Workspaces - If true, this default-workspace target can receive events from all workspaces.
- config Object
- Event Target configuration. Folder targets accept path and format (json or csv).
- created
At String - Event Target create date/time.
- delivery
Policy Object - Event Target delivery policy. Email and folder targets support batchInterval in seconds, between 600 and 86400.
- enabled Boolean
- Whether this Event Target can receive events.
- name String
- Event Target name.
- target
Type String - Event Target type.
- updated
At String - Event Target update date/time.
- workspace
Id Integer - Workspace ID. 0 means the default workspace or site-wide.
- apply
To booleanAll Workspaces - If true, this default-workspace target can receive events from all workspaces.
- config any
- Event Target configuration. Folder targets accept path and format (json or csv).
- created
At string - Event Target create date/time.
- delivery
Policy any - Event Target delivery policy. Email and folder targets support batchInterval in seconds, between 600 and 86400.
- enabled boolean
- Whether this Event Target can receive events.
- name string
- Event Target name.
- target
Type string - Event Target type.
- updated
At string - Event Target update date/time.
- workspace
Id number - Workspace ID. 0 means the default workspace or site-wide.
- apply_
to_ boolall_ workspaces - If true, this default-workspace target can receive events from all workspaces.
- config Any
- Event Target configuration. Folder targets accept path and format (json or csv).
- created_
at str - Event Target create date/time.
- delivery_
policy Any - Event Target delivery policy. Email and folder targets support batchInterval in seconds, between 600 and 86400.
- enabled bool
- Whether this Event Target can receive events.
- name str
- Event Target name.
- target_
type str - Event Target type.
- updated_
at str - Event Target update date/time.
- workspace_
id int - Workspace ID. 0 means the default workspace or site-wide.
- apply
To BooleanAll Workspaces - If true, this default-workspace target can receive events from all workspaces.
- config Any
- Event Target configuration. Folder targets accept path and format (json or csv).
- created
At String - Event Target create date/time.
- delivery
Policy Any - Event Target delivery policy. Email and folder targets support batchInterval in seconds, between 600 and 86400.
- enabled Boolean
- Whether this Event Target can receive events.
- name String
- Event Target name.
- target
Type String - Event Target type.
- updated
At String - Event Target update date/time.
- workspace
Id Number - Workspace ID. 0 means the default workspace or site-wide.
Import
The pulumi import command can be used, for example:
Event Targets can be imported by specifying the id.
$ pulumi import filescom:index/eventTarget:EventTarget example_event_target 1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- filescom jschady/pulumi-filescom
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
filescomTerraform Provider.
published on Thursday, Aug 20, 2026 by jschady