published on Thursday, Aug 20, 2026 by jschady
published on Thursday, Aug 20, 2026 by jschady
A MessageComment is a comment made by a user on a message.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as filescom from "pulumi-filescom";
const exampleMessageComment = new filescom.MessageComment("example_message_comment", {
userId: 1,
body: "What a great idea, thank you!",
});
import pulumi
import pulumi_filescom as filescom
example_message_comment = filescom.MessageComment("example_message_comment",
user_id=1,
body="What a great idea, thank you!")
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.NewMessageComment(ctx, "example_message_comment", &filescom.MessageCommentArgs{
UserId: pulumi.Int(1),
Body: pulumi.String("What a great idea, thank you!"),
})
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 exampleMessageComment = new Filescom.MessageComment("example_message_comment", new()
{
UserId = 1,
Body = "What a great idea, thank you!",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.filescom.MessageComment;
import com.pulumi.filescom.MessageCommentArgs;
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 exampleMessageComment = new MessageComment("exampleMessageComment", MessageCommentArgs.builder()
.userId(1)
.body("What a great idea, thank you!")
.build());
}
}
resources:
exampleMessageComment:
type: filescom:MessageComment
name: example_message_comment
properties:
userId: 1
body: What a great idea, thank you!
pulumi {
required_providers {
filescom = {
source = "pulumi/filescom"
}
}
}
resource "filescom_messagecomment" "example_message_comment" {
user_id = 1
body = "What a great idea, thank you!"
}
Create MessageComment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MessageComment(name: string, args: MessageCommentArgs, opts?: CustomResourceOptions);@overload
def MessageComment(resource_name: str,
args: MessageCommentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MessageComment(resource_name: str,
opts: Optional[ResourceOptions] = None,
body: Optional[str] = None,
user_id: Optional[int] = None)func NewMessageComment(ctx *Context, name string, args MessageCommentArgs, opts ...ResourceOption) (*MessageComment, error)public MessageComment(string name, MessageCommentArgs args, CustomResourceOptions? opts = null)
public MessageComment(String name, MessageCommentArgs args)
public MessageComment(String name, MessageCommentArgs args, CustomResourceOptions options)
type: filescom:MessageComment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "filescom_message_comment" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args MessageCommentArgs
- 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 MessageCommentArgs
- 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 MessageCommentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MessageCommentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MessageCommentArgs
- 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 messageCommentResource = new Filescom.MessageComment("messageCommentResource", new()
{
Body = "string",
UserId = 0,
});
example, err := filescom.NewMessageComment(ctx, "messageCommentResource", &filescom.MessageCommentArgs{
Body: pulumi.String("string"),
UserId: pulumi.Int(0),
})
resource "filescom_message_comment" "messageCommentResource" {
lifecycle {
create_before_destroy = true
}
body = "string"
user_id = 0
}
var messageCommentResource = new MessageComment("messageCommentResource", MessageCommentArgs.builder()
.body("string")
.userId(0)
.build());
message_comment_resource = filescom.MessageComment("messageCommentResource",
body="string",
user_id=0)
const messageCommentResource = new filescom.MessageComment("messageCommentResource", {
body: "string",
userId: 0,
});
type: filescom:MessageComment
properties:
body: string
userId: 0
MessageComment 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 MessageComment resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the MessageComment resource produces the following output properties:
Look up Existing MessageComment Resource
Get an existing MessageComment 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?: MessageCommentState, opts?: CustomResourceOptions): MessageComment@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
body: Optional[str] = None,
reactions: Optional[Any] = None,
user_id: Optional[int] = None) -> MessageCommentfunc GetMessageComment(ctx *Context, name string, id IDInput, state *MessageCommentState, opts ...ResourceOption) (*MessageComment, error)public static MessageComment Get(string name, Input<string> id, MessageCommentState? state, CustomResourceOptions? opts = null)public static MessageComment get(String name, Output<String> id, MessageCommentState state, CustomResourceOptions options)resources: _: type: filescom:MessageComment get: id: ${id}import {
to = filescom_message_comment.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.
Import
The pulumi import command can be used, for example:
Message Comments can be imported by specifying the id.
$ pulumi import filescom:index/messageComment:MessageComment example_message_comment 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