Conversation Args
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:
channels:read (public channels)
channels:manage (public channels)
channels:join (adopting existing public channels)
groups:read (private channels)
groups:write (private channels) If using
user
tokens:channels:read (public channels)
channels:write (public channels)
groups:read (private channels)
groups:write (private channels) The Slack API methods used by the resource are:
conversations.unarchive If you get
missing_scope
errors while using this resource check the scopes against the documentation for the methods above.
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());
}
}
Content copied to clipboard
Import
slack_conversation
can be imported using the ID of the conversation/channel, e.g.
$ pulumi import slack:index/conversation:Conversation my_conversation C023X7QTFHQ
Content copied to clipboard
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)