Conversation

Manages a Slack channel

Required scopes

This resource requires the following scopes: If using bot tokens:

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.slack.Conversation;
import com.pulumi.slack.ConversationArgs;
import java.util.List;
import java.util.ArrayList;
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 test = new Conversation("test", ConversationArgs.builder()
.isPrivate(true)
.permanentMembers()
.topic("The topic for my channel")
.build());
}
}

Import

slack_conversation can be imported using the ID of the conversation/channel, e.g.

$ pulumi import slack:index/conversation:Conversation my_conversation C023X7QTFHQ

Properties

Link copied to clipboard
val actionOnDestroy: Output<String>?

Either of none or archive

Link copied to clipboard

indicate whether the members should be kick of the channel when removed from permanent_members. When set to none the user are never kicked, this prevent a side effect on public channels where user that joined the channel are kicked.

Link copied to clipboard
Link copied to clipboard
val created: Output<Int>

is a unix timestamp.

Link copied to clipboard
val creator: Output<String>

is the user ID of the member that created this channel.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val isArchived: Output<Boolean>?

indicates a conversation is archived. Frozen in time.

Link copied to clipboard
val isExtShared: Output<Boolean>

represents this conversation as being part of a Shared Channel with a remote organization.

Link copied to clipboard
val isGeneral: Output<Boolean>

will be true if this channel is the "general" channel that includes all regular team members.

Link copied to clipboard
val isOrgShared: Output<Boolean>

explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.

Link copied to clipboard
val isPrivate: Output<Boolean>

create a private channel instead of a public one.

Link copied to clipboard
val isShared: Output<Boolean>

means the conversation is in some way shared between multiple workspaces.

Link copied to clipboard
val name: Output<String>

name of the public or private channel.

Link copied to clipboard

user IDs to add to the channel.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val purpose: Output<String>?

purpose of the channel.

Link copied to clipboard
val topic: Output<String>?

topic for the channel.

Link copied to clipboard
val urn: Output<String>