1. Registry
  2. Packages
  3. Files.com
  4. API Docs
  5. EventTarget
Viewing docs for Files.com v0.1.1
published on Thursday, Aug 20, 2026 by jschady
filescom logo
Viewing docs for Files.com v0.1.1
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).
    TargetType string
    Event Target type.
    ApplyToAllWorkspaces bool
    If true, this default-workspace target can receive events from all workspaces.
    DeliveryPolicy 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.
    WorkspaceId 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).
    TargetType string
    Event Target type.
    ApplyToAllWorkspaces bool
    If true, this default-workspace target can receive events from all workspaces.
    DeliveryPolicy 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.
    WorkspaceId 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_all_workspaces bool
    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).
    targetType String
    Event Target type.
    applyToAllWorkspaces Boolean
    If true, this default-workspace target can receive events from all workspaces.
    deliveryPolicy 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.
    workspaceId 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).
    targetType string
    Event Target type.
    applyToAllWorkspaces boolean
    If true, this default-workspace target can receive events from all workspaces.
    deliveryPolicy 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.
    workspaceId 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_all_workspaces bool
    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).
    targetType String
    Event Target type.
    applyToAllWorkspaces Boolean
    If true, this default-workspace target can receive events from all workspaces.
    deliveryPolicy 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.
    workspaceId 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:

    CreatedAt string
    Event Target create date/time.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    Event Target update date/time.
    CreatedAt string
    Event Target create date/time.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    Event Target update date/time.
    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.
    createdAt String
    Event Target create date/time.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    Event Target update date/time.
    createdAt string
    Event Target create date/time.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt 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.
    createdAt String
    Event Target create date/time.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    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) -> EventTarget
    func 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.
    The following state arguments are supported:
    ApplyToAllWorkspaces bool
    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).
    CreatedAt string
    Event Target create date/time.
    DeliveryPolicy 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.
    TargetType string
    Event Target type.
    UpdatedAt string
    Event Target update date/time.
    WorkspaceId int
    Workspace ID. 0 means the default workspace or site-wide.
    ApplyToAllWorkspaces bool
    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).
    CreatedAt string
    Event Target create date/time.
    DeliveryPolicy 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.
    TargetType string
    Event Target type.
    UpdatedAt string
    Event Target update date/time.
    WorkspaceId int
    Workspace ID. 0 means the default workspace or site-wide.
    apply_to_all_workspaces bool
    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.
    applyToAllWorkspaces Boolean
    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).
    createdAt String
    Event Target create date/time.
    deliveryPolicy 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.
    targetType String
    Event Target type.
    updatedAt String
    Event Target update date/time.
    workspaceId Integer
    Workspace ID. 0 means the default workspace or site-wide.
    applyToAllWorkspaces boolean
    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).
    createdAt string
    Event Target create date/time.
    deliveryPolicy 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.
    targetType string
    Event Target type.
    updatedAt string
    Event Target update date/time.
    workspaceId number
    Workspace ID. 0 means the default workspace or site-wide.
    apply_to_all_workspaces bool
    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.
    applyToAllWorkspaces Boolean
    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).
    createdAt String
    Event Target create date/time.
    deliveryPolicy 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.
    targetType String
    Event Target type.
    updatedAt String
    Event Target update date/time.
    workspaceId 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 filescom Terraform Provider.
    filescom logo
    Viewing docs for Files.com v0.1.1
    published on Thursday, Aug 20, 2026 by jschady

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial