published on Thursday, Aug 20, 2026 by jschady
published on Thursday, Aug 20, 2026 by jschady
A MessageReaction is a reaction emoji made by a user on a message.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as filescom from "pulumi-filescom";
const exampleMessageReaction = new filescom.MessageReaction("example_message_reaction", {
userId: 1,
emoji: "emoji",
});
import pulumi
import pulumi_filescom as filescom
example_message_reaction = filescom.MessageReaction("example_message_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.NewMessageReaction(ctx, "example_message_reaction", &filescom.MessageReactionArgs{
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 exampleMessageReaction = new Filescom.MessageReaction("example_message_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.MessageReaction;
import com.pulumi.filescom.MessageReactionArgs;
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 exampleMessageReaction = new MessageReaction("exampleMessageReaction", MessageReactionArgs.builder()
.userId(1)
.emoji("emoji")
.build());
}
}
resources:
exampleMessageReaction:
type: filescom:MessageReaction
name: example_message_reaction
properties:
userId: 1
emoji: emoji
pulumi {
required_providers {
filescom = {
source = "pulumi/filescom"
}
}
}
resource "filescom_messagereaction" "example_message_reaction" {
user_id = 1
emoji = "emoji"
}
Create MessageReaction Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MessageReaction(name: string, args: MessageReactionArgs, opts?: CustomResourceOptions);@overload
def MessageReaction(resource_name: str,
args: MessageReactionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MessageReaction(resource_name: str,
opts: Optional[ResourceOptions] = None,
emoji: Optional[str] = None,
user_id: Optional[int] = None)func NewMessageReaction(ctx *Context, name string, args MessageReactionArgs, opts ...ResourceOption) (*MessageReaction, error)public MessageReaction(string name, MessageReactionArgs args, CustomResourceOptions? opts = null)
public MessageReaction(String name, MessageReactionArgs args)
public MessageReaction(String name, MessageReactionArgs args, CustomResourceOptions options)
type: filescom:MessageReaction
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "filescom_message_reaction" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args MessageReactionArgs
- 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 MessageReactionArgs
- 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 MessageReactionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MessageReactionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MessageReactionArgs
- 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 messageReactionResource = new Filescom.MessageReaction("messageReactionResource", new()
{
Emoji = "string",
UserId = 0,
});
example, err := filescom.NewMessageReaction(ctx, "messageReactionResource", &filescom.MessageReactionArgs{
Emoji: pulumi.String("string"),
UserId: pulumi.Int(0),
})
resource "filescom_message_reaction" "messageReactionResource" {
lifecycle {
create_before_destroy = true
}
emoji = "string"
user_id = 0
}
var messageReactionResource = new MessageReaction("messageReactionResource", MessageReactionArgs.builder()
.emoji("string")
.userId(0)
.build());
message_reaction_resource = filescom.MessageReaction("messageReactionResource",
emoji="string",
user_id=0)
const messageReactionResource = new filescom.MessageReaction("messageReactionResource", {
emoji: "string",
userId: 0,
});
type: filescom:MessageReaction
properties:
emoji: string
userId: 0
MessageReaction 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 MessageReaction resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the MessageReaction 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 MessageReaction Resource
Get an existing MessageReaction 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?: MessageReactionState, opts?: CustomResourceOptions): MessageReaction@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
emoji: Optional[str] = None,
user_id: Optional[int] = None) -> MessageReactionfunc GetMessageReaction(ctx *Context, name string, id IDInput, state *MessageReactionState, opts ...ResourceOption) (*MessageReaction, error)public static MessageReaction Get(string name, Input<string> id, MessageReactionState? state, CustomResourceOptions? opts = null)public static MessageReaction get(String name, Output<String> id, MessageReactionState state, CustomResourceOptions options)resources: _: type: filescom:MessageReaction get: id: ${id}import {
to = filescom_message_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.
Import
The pulumi import command can be used, for example:
Message Reactions can be imported by specifying the id.
$ pulumi import filescom:index/messageReaction:MessageReaction example_message_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
filescomTerraform Provider.
published on Thursday, Aug 20, 2026 by jschady