ConversationArgs

data class ConversationArgs(val actionOnDestroy: Output<String>? = null, val actionOnUpdatePermanentMembers: Output<String>? = null, val adoptExistingChannel: Output<Boolean>? = null, val isArchived: Output<Boolean>? = null, val isPrivate: Output<Boolean>? = null, val name: Output<String>? = null, val permanentMembers: Output<List<String>>? = null, val purpose: Output<String>? = null, val topic: Output<String>? = null) : ConvertibleToJava<ConversationArgs>

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

Constructors

Link copied to clipboard
fun ConversationArgs(actionOnDestroy: Output<String>? = null, actionOnUpdatePermanentMembers: Output<String>? = null, adoptExistingChannel: Output<Boolean>? = null, isArchived: Output<Boolean>? = null, isPrivate: Output<Boolean>? = null, name: Output<String>? = null, permanentMembers: Output<List<String>>? = null, purpose: Output<String>? = null, topic: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ConversationArgs

Properties

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

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
val adoptExistingChannel: Output<Boolean>? = null
Link copied to clipboard
val isArchived: Output<Boolean>? = null

indicates a conversation is archived. Frozen in time.

Link copied to clipboard
val isPrivate: Output<Boolean>? = null

create a private channel instead of a public one.

Link copied to clipboard
val name: Output<String>? = null

name of the public or private channel.

Link copied to clipboard
val permanentMembers: Output<List<String>>? = null

user IDs to add to the channel.

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

purpose of the channel.

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

topic for the channel.