1. Registry
  2. Packages
  3. Files.com
  4. API Docs
  5. MessageCommentReaction
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

    A MessageCommentReaction is a reaction emoji made by a user on a message comment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as filescom from "pulumi-filescom";
    
    const exampleMessageCommentReaction = new filescom.MessageCommentReaction("example_message_comment_reaction", {
        userId: 1,
        emoji: "emoji",
    });
    
    import pulumi
    import pulumi_filescom as filescom
    
    example_message_comment_reaction = filescom.MessageCommentReaction("example_message_comment_reaction",
        user_id=1,
        emoji="emoji")
    
    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.NewMessageCommentReaction(ctx, "example_message_comment_reaction", &filescom.MessageCommentReactionArgs{
    			UserId: pulumi.Int(1),
    			Emoji:  pulumi.String("emoji"),
    		})
    		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 exampleMessageCommentReaction = new Filescom.MessageCommentReaction("example_message_comment_reaction", new()
        {
            UserId = 1,
            Emoji = "emoji",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.filescom.MessageCommentReaction;
    import com.pulumi.filescom.MessageCommentReactionArgs;
    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 exampleMessageCommentReaction = new MessageCommentReaction("exampleMessageCommentReaction", MessageCommentReactionArgs.builder()
                .userId(1)
                .emoji("emoji")
                .build());
    
        }
    }
    
    resources:
      exampleMessageCommentReaction:
        type: filescom:MessageCommentReaction
        name: example_message_comment_reaction
        properties:
          userId: 1
          emoji: emoji
    
    pulumi {
      required_providers {
        filescom = {
          source = "pulumi/filescom"
        }
      }
    }
    
    resource "filescom_messagecommentreaction" "example_message_comment_reaction" {
      user_id = 1
      emoji   = "emoji"
    }
    

    Create MessageCommentReaction Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MessageCommentReaction(name: string, args: MessageCommentReactionArgs, opts?: CustomResourceOptions);
    @overload
    def MessageCommentReaction(resource_name: str,
                               args: MessageCommentReactionArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def MessageCommentReaction(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               emoji: Optional[str] = None,
                               user_id: Optional[int] = None)
    func NewMessageCommentReaction(ctx *Context, name string, args MessageCommentReactionArgs, opts ...ResourceOption) (*MessageCommentReaction, error)
    public MessageCommentReaction(string name, MessageCommentReactionArgs args, CustomResourceOptions? opts = null)
    public MessageCommentReaction(String name, MessageCommentReactionArgs args)
    public MessageCommentReaction(String name, MessageCommentReactionArgs args, CustomResourceOptions options)
    
    type: filescom:MessageCommentReaction
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "filescom_message_comment_reaction" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args MessageCommentReactionArgs
    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 MessageCommentReactionArgs
    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 MessageCommentReactionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MessageCommentReactionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MessageCommentReactionArgs
    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 messageCommentReactionResource = new Filescom.MessageCommentReaction("messageCommentReactionResource", new()
    {
        Emoji = "string",
        UserId = 0,
    });
    
    example, err := filescom.NewMessageCommentReaction(ctx, "messageCommentReactionResource", &filescom.MessageCommentReactionArgs{
    	Emoji:  pulumi.String("string"),
    	UserId: pulumi.Int(0),
    })
    
    resource "filescom_message_comment_reaction" "messageCommentReactionResource" {
      lifecycle {
        create_before_destroy = true
      }
      emoji   = "string"
      user_id = 0
    }
    
    var messageCommentReactionResource = new MessageCommentReaction("messageCommentReactionResource", MessageCommentReactionArgs.builder()
        .emoji("string")
        .userId(0)
        .build());
    
    message_comment_reaction_resource = filescom.MessageCommentReaction("messageCommentReactionResource",
        emoji="string",
        user_id=0)
    
    const messageCommentReactionResource = new filescom.MessageCommentReaction("messageCommentReactionResource", {
        emoji: "string",
        userId: 0,
    });
    
    type: filescom:MessageCommentReaction
    properties:
        emoji: string
        userId: 0
    

    MessageCommentReaction 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 MessageCommentReaction resource accepts the following input properties:

    Emoji string
    Emoji used in the reaction.
    UserId int
    User ID. Provide a value of 0 to operate the current session's user.
    Emoji string
    Emoji used in the reaction.
    UserId int
    User ID. Provide a value of 0 to operate the current session's user.
    emoji string
    Emoji used in the reaction.
    user_id number
    User ID. Provide a value of 0 to operate the current session's user.
    emoji String
    Emoji used in the reaction.
    userId Integer
    User ID. Provide a value of 0 to operate the current session's user.
    emoji string
    Emoji used in the reaction.
    userId number
    User ID. Provide a value of 0 to operate the current session's user.
    emoji str
    Emoji used in the reaction.
    user_id int
    User ID. Provide a value of 0 to operate the current session's user.
    emoji String
    Emoji used in the reaction.
    userId Number
    User ID. Provide a value of 0 to operate the current session's user.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MessageCommentReaction resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing MessageCommentReaction Resource

    Get an existing MessageCommentReaction 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?: MessageCommentReactionState, opts?: CustomResourceOptions): MessageCommentReaction
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            emoji: Optional[str] = None,
            user_id: Optional[int] = None) -> MessageCommentReaction
    func GetMessageCommentReaction(ctx *Context, name string, id IDInput, state *MessageCommentReactionState, opts ...ResourceOption) (*MessageCommentReaction, error)
    public static MessageCommentReaction Get(string name, Input<string> id, MessageCommentReactionState? state, CustomResourceOptions? opts = null)
    public static MessageCommentReaction get(String name, Output<String> id, MessageCommentReactionState state, CustomResourceOptions options)
    resources:  _:    type: filescom:MessageCommentReaction    get:      id: ${id}
    import {
      to = filescom_message_comment_reaction.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:
    Emoji string
    Emoji used in the reaction.
    UserId int
    User ID. Provide a value of 0 to operate the current session's user.
    Emoji string
    Emoji used in the reaction.
    UserId int
    User ID. Provide a value of 0 to operate the current session's user.
    emoji string
    Emoji used in the reaction.
    user_id number
    User ID. Provide a value of 0 to operate the current session's user.
    emoji String
    Emoji used in the reaction.
    userId Integer
    User ID. Provide a value of 0 to operate the current session's user.
    emoji string
    Emoji used in the reaction.
    userId number
    User ID. Provide a value of 0 to operate the current session's user.
    emoji str
    Emoji used in the reaction.
    user_id int
    User ID. Provide a value of 0 to operate the current session's user.
    emoji String
    Emoji used in the reaction.
    userId Number
    User ID. Provide a value of 0 to operate the current session's user.

    Import

    The pulumi import command can be used, for example:

    Message Comment Reactions can be imported by specifying the id.

    $ pulumi import filescom:index/messageCommentReaction:MessageCommentReaction example_message_comment_reaction 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