published on Thursday, Aug 20, 2026 by jschady
published on Thursday, Aug 20, 2026 by jschady
A Message is a part of Files.com’s project management features and represents a message posted by a user to a project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as filescom from "pulumi-filescom";
const exampleMessage = new filescom.Message("example_message", {
userId: 1,
projectId: 1,
subject: "Files.com Account Upgrade",
body: "We should upgrade our Files.com account!",
});
import pulumi
import pulumi_filescom as filescom
example_message = filescom.Message("example_message",
user_id=1,
project_id=1,
subject="Files.com Account Upgrade",
body="We should upgrade our Files.com account!")
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.NewMessage(ctx, "example_message", &filescom.MessageArgs{
UserId: pulumi.Int(1),
ProjectId: pulumi.Int(1),
Subject: pulumi.String("Files.com Account Upgrade"),
Body: pulumi.String("We should upgrade our Files.com account!"),
})
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 exampleMessage = new Filescom.Message("example_message", new()
{
UserId = 1,
ProjectId = 1,
Subject = "Files.com Account Upgrade",
Body = "We should upgrade our Files.com account!",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.filescom.Message;
import com.pulumi.filescom.MessageArgs;
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 exampleMessage = new Message("exampleMessage", MessageArgs.builder()
.userId(1)
.projectId(1)
.subject("Files.com Account Upgrade")
.body("We should upgrade our Files.com account!")
.build());
}
}
resources:
exampleMessage:
type: filescom:Message
name: example_message
properties:
userId: 1
projectId: 1
subject: Files.com Account Upgrade
body: We should upgrade our Files.com account!
pulumi {
required_providers {
filescom = {
source = "pulumi/filescom"
}
}
}
resource "filescom_message" "example_message" {
user_id = 1
project_id = 1
subject = "Files.com Account Upgrade"
body = "We should upgrade our Files.com account!"
}
Create Message Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Message(name: string, args: MessageArgs, opts?: CustomResourceOptions);@overload
def Message(resource_name: str,
args: MessageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Message(resource_name: str,
opts: Optional[ResourceOptions] = None,
body: Optional[str] = None,
project_id: Optional[int] = None,
subject: Optional[str] = None,
user_id: Optional[int] = None)func NewMessage(ctx *Context, name string, args MessageArgs, opts ...ResourceOption) (*Message, error)public Message(string name, MessageArgs args, CustomResourceOptions? opts = null)
public Message(String name, MessageArgs args)
public Message(String name, MessageArgs args, CustomResourceOptions options)
type: filescom:Message
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "filescom_message" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args MessageArgs
- 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 MessageArgs
- 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 MessageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MessageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MessageArgs
- 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 messageResource = new Filescom.Message("messageResource", new()
{
Body = "string",
ProjectId = 0,
Subject = "string",
UserId = 0,
});
example, err := filescom.NewMessage(ctx, "messageResource", &filescom.MessageArgs{
Body: pulumi.String("string"),
ProjectId: pulumi.Int(0),
Subject: pulumi.String("string"),
UserId: pulumi.Int(0),
})
resource "filescom_message" "messageResource" {
lifecycle {
create_before_destroy = true
}
body = "string"
project_id = 0
subject = "string"
user_id = 0
}
var messageResource = new Message("messageResource", MessageArgs.builder()
.body("string")
.projectId(0)
.subject("string")
.userId(0)
.build());
message_resource = filescom.Message("messageResource",
body="string",
project_id=0,
subject="string",
user_id=0)
const messageResource = new filescom.Message("messageResource", {
body: "string",
projectId: 0,
subject: "string",
userId: 0,
});
type: filescom:Message
properties:
body: string
projectId: 0
subject: string
userId: 0
Message 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 Message resource accepts the following input properties:
- Body string
- Message body.
- Project
Id int - NOTE: This field is write-only and its value will not be updated in state as part of read operations. Project to which the message should be attached.
- Subject string
- Message subject.
- User
Id int - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
User ID. Provide a value of
0to operate the current session's user.
- Body string
- Message body.
- Project
Id int - NOTE: This field is write-only and its value will not be updated in state as part of read operations. Project to which the message should be attached.
- Subject string
- Message subject.
- User
Id int - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
User ID. Provide a value of
0to operate the current session's user.
- body string
- Message body.
- project_
id number - NOTE: This field is write-only and its value will not be updated in state as part of read operations. Project to which the message should be attached.
- subject string
- Message subject.
- user_
id number - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
User ID. Provide a value of
0to operate the current session's user.
- body String
- Message body.
- project
Id Integer - NOTE: This field is write-only and its value will not be updated in state as part of read operations. Project to which the message should be attached.
- subject String
- Message subject.
- user
Id Integer - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
User ID. Provide a value of
0to operate the current session's user.
- body string
- Message body.
- project
Id number - NOTE: This field is write-only and its value will not be updated in state as part of read operations. Project to which the message should be attached.
- subject string
- Message subject.
- user
Id number - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
User ID. Provide a value of
0to operate the current session's user.
- body str
- Message body.
- project_
id int - NOTE: This field is write-only and its value will not be updated in state as part of read operations. Project to which the message should be attached.
- subject str
- Message subject.
- user_
id int - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
User ID. Provide a value of
0to operate the current session's user.
- body String
- Message body.
- project
Id Number - NOTE: This field is write-only and its value will not be updated in state as part of read operations. Project to which the message should be attached.
- subject String
- Message subject.
- user
Id Number - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
User ID. Provide a value of
0to operate the current session's user.
Outputs
All input properties are implicitly available as output properties. Additionally, the Message resource produces the following output properties:
Look up Existing Message Resource
Get an existing Message 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?: MessageState, opts?: CustomResourceOptions): Message@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
body: Optional[str] = None,
comments: Optional[Any] = None,
project_id: Optional[int] = None,
subject: Optional[str] = None,
user_id: Optional[int] = None) -> Messagefunc GetMessage(ctx *Context, name string, id IDInput, state *MessageState, opts ...ResourceOption) (*Message, error)public static Message Get(string name, Input<string> id, MessageState? state, CustomResourceOptions? opts = null)public static Message get(String name, Output<String> id, MessageState state, CustomResourceOptions options)resources: _: type: filescom:Message get: id: ${id}import {
to = filescom_message.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.
- Body string
- Message body.
- Comments object
- Comments.
- Project
Id int - NOTE: This field is write-only and its value will not be updated in state as part of read operations. Project to which the message should be attached.
- Subject string
- Message subject.
- User
Id int - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
User ID. Provide a value of
0to operate the current session's user.
- Body string
- Message body.
- Comments interface{}
- Comments.
- Project
Id int - NOTE: This field is write-only and its value will not be updated in state as part of read operations. Project to which the message should be attached.
- Subject string
- Message subject.
- User
Id int - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
User ID. Provide a value of
0to operate the current session's user.
- body string
- Message body.
- comments any
- Comments.
- project_
id number - NOTE: This field is write-only and its value will not be updated in state as part of read operations. Project to which the message should be attached.
- subject string
- Message subject.
- user_
id number - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
User ID. Provide a value of
0to operate the current session's user.
- body String
- Message body.
- comments Object
- Comments.
- project
Id Integer - NOTE: This field is write-only and its value will not be updated in state as part of read operations. Project to which the message should be attached.
- subject String
- Message subject.
- user
Id Integer - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
User ID. Provide a value of
0to operate the current session's user.
- body string
- Message body.
- comments any
- Comments.
- project
Id number - NOTE: This field is write-only and its value will not be updated in state as part of read operations. Project to which the message should be attached.
- subject string
- Message subject.
- user
Id number - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
User ID. Provide a value of
0to operate the current session's user.
- body str
- Message body.
- comments Any
- Comments.
- project_
id int - NOTE: This field is write-only and its value will not be updated in state as part of read operations. Project to which the message should be attached.
- subject str
- Message subject.
- user_
id int - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
User ID. Provide a value of
0to operate the current session's user.
- body String
- Message body.
- comments Any
- Comments.
- project
Id Number - NOTE: This field is write-only and its value will not be updated in state as part of read operations. Project to which the message should be attached.
- subject String
- Message subject.
- user
Id Number - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
User ID. Provide a value of
0to operate the current session's user.
Import
The pulumi import command can be used, for example:
Messages can be imported by specifying the id.
$ pulumi import filescom:index/message:Message example_message 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