slack.Conversation
Explore with Pulumi AI
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.create
- conversations.join
- conversations.setTopic
- conversations.setPurpose
- conversations.info
- conversations.members
- conversations.kick
- conversations.invite
- conversations.rename
- conversations.archive
- conversations.unarchive
If you get missing_scope errors while using this resource check the scopes against
the documentation for the methods above.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as slack from "@pulumi/slack";
const test = new slack.Conversation("test", {
    name: "my-channel",
    topic: "The topic for my channel",
    permanentMembers: [],
    isPrivate: true,
});
import pulumi
import pulumi_slack as slack
test = slack.Conversation("test",
    name="my-channel",
    topic="The topic for my channel",
    permanent_members=[],
    is_private=True)
package main
import (
	"github.com/pulumi/pulumi-slack/sdk/go/slack"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := slack.NewConversation(ctx, "test", &slack.ConversationArgs{
			Name:             pulumi.String("my-channel"),
			Topic:            pulumi.String("The topic for my channel"),
			PermanentMembers: pulumi.StringArray{},
			IsPrivate:        pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Slack = Pulumi.Slack;
return await Deployment.RunAsync(() => 
{
    var test = new Slack.Conversation("test", new()
    {
        Name = "my-channel",
        Topic = "The topic for my channel",
        PermanentMembers = new[] {},
        IsPrivate = true,
    });
});
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()
            .name("my-channel")
            .topic("The topic for my channel")
            .permanentMembers()
            .isPrivate(true)
            .build());
    }
}
resources:
  test:
    type: slack:Conversation
    properties:
      name: my-channel
      topic: The topic for my channel
      permanentMembers: []
      isPrivate: true
import * as pulumi from "@pulumi/pulumi";
import * as slack from "@pulumi/slack";
const nonadmin = new slack.Conversation("nonadmin", {
    name: "my-channel01",
    topic: "The channel won't be archived on destroy",
    permanentMembers: [],
    isPrivate: true,
    actionOnDestroy: "none",
});
import pulumi
import pulumi_slack as slack
nonadmin = slack.Conversation("nonadmin",
    name="my-channel01",
    topic="The channel won't be archived on destroy",
    permanent_members=[],
    is_private=True,
    action_on_destroy="none")
package main
import (
	"github.com/pulumi/pulumi-slack/sdk/go/slack"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := slack.NewConversation(ctx, "nonadmin", &slack.ConversationArgs{
			Name:             pulumi.String("my-channel01"),
			Topic:            pulumi.String("The channel won't be archived on destroy"),
			PermanentMembers: pulumi.StringArray{},
			IsPrivate:        pulumi.Bool(true),
			ActionOnDestroy:  pulumi.String("none"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Slack = Pulumi.Slack;
return await Deployment.RunAsync(() => 
{
    var nonadmin = new Slack.Conversation("nonadmin", new()
    {
        Name = "my-channel01",
        Topic = "The channel won't be archived on destroy",
        PermanentMembers = new[] {},
        IsPrivate = true,
        ActionOnDestroy = "none",
    });
});
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 nonadmin = new Conversation("nonadmin", ConversationArgs.builder()
            .name("my-channel01")
            .topic("The channel won't be archived on destroy")
            .permanentMembers()
            .isPrivate(true)
            .actionOnDestroy("none")
            .build());
    }
}
resources:
  nonadmin:
    type: slack:Conversation
    properties:
      name: my-channel01
      topic: The channel won't be archived on destroy
      permanentMembers: []
      isPrivate: true
      actionOnDestroy: none
import * as pulumi from "@pulumi/pulumi";
import * as slack from "@pulumi/slack";
const adopted = new slack.Conversation("adopted", {
    name: "my-channel02",
    topic: "Adopt existing, don't kick members",
    permanentMembers: [],
    adoptExistingChannel: true,
    actionOnUpdatePermanentMembers: "none",
});
import pulumi
import pulumi_slack as slack
adopted = slack.Conversation("adopted",
    name="my-channel02",
    topic="Adopt existing, don't kick members",
    permanent_members=[],
    adopt_existing_channel=True,
    action_on_update_permanent_members="none")
package main
import (
	"github.com/pulumi/pulumi-slack/sdk/go/slack"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := slack.NewConversation(ctx, "adopted", &slack.ConversationArgs{
			Name:                           pulumi.String("my-channel02"),
			Topic:                          pulumi.String("Adopt existing, don't kick members"),
			PermanentMembers:               pulumi.StringArray{},
			AdoptExistingChannel:           pulumi.Bool(true),
			ActionOnUpdatePermanentMembers: pulumi.String("none"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Slack = Pulumi.Slack;
return await Deployment.RunAsync(() => 
{
    var adopted = new Slack.Conversation("adopted", new()
    {
        Name = "my-channel02",
        Topic = "Adopt existing, don't kick members",
        PermanentMembers = new[] {},
        AdoptExistingChannel = true,
        ActionOnUpdatePermanentMembers = "none",
    });
});
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 adopted = new Conversation("adopted", ConversationArgs.builder()
            .name("my-channel02")
            .topic("Adopt existing, don't kick members")
            .permanentMembers()
            .adoptExistingChannel(true)
            .actionOnUpdatePermanentMembers("none")
            .build());
    }
}
resources:
  adopted:
    type: slack:Conversation
    properties:
      name: my-channel02
      topic: Adopt existing, don't kick members
      permanentMembers: []
      adoptExistingChannel: true
      actionOnUpdatePermanentMembers: none
Create Conversation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Conversation(name: string, args: ConversationArgs, opts?: CustomResourceOptions);@overload
def Conversation(resource_name: str,
                 args: ConversationArgs,
                 opts: Optional[ResourceOptions] = None)
@overload
def Conversation(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 is_private: Optional[bool] = None,
                 action_on_destroy: Optional[str] = None,
                 action_on_update_permanent_members: Optional[str] = None,
                 adopt_existing_channel: Optional[bool] = None,
                 is_archived: Optional[bool] = None,
                 name: Optional[str] = None,
                 permanent_members: Optional[Sequence[str]] = None,
                 purpose: Optional[str] = None,
                 topic: Optional[str] = None)func NewConversation(ctx *Context, name string, args ConversationArgs, opts ...ResourceOption) (*Conversation, error)public Conversation(string name, ConversationArgs args, CustomResourceOptions? opts = null)
public Conversation(String name, ConversationArgs args)
public Conversation(String name, ConversationArgs args, CustomResourceOptions options)
type: slack:Conversation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ConversationArgs
- 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 ConversationArgs
- 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 ConversationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConversationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConversationArgs
- 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 conversationResource = new Slack.Conversation("conversationResource", new()
{
    IsPrivate = false,
    ActionOnDestroy = "string",
    ActionOnUpdatePermanentMembers = "string",
    AdoptExistingChannel = false,
    IsArchived = false,
    Name = "string",
    PermanentMembers = new[]
    {
        "string",
    },
    Purpose = "string",
    Topic = "string",
});
example, err := slack.NewConversation(ctx, "conversationResource", &slack.ConversationArgs{
	IsPrivate:                      pulumi.Bool(false),
	ActionOnDestroy:                pulumi.String("string"),
	ActionOnUpdatePermanentMembers: pulumi.String("string"),
	AdoptExistingChannel:           pulumi.Bool(false),
	IsArchived:                     pulumi.Bool(false),
	Name:                           pulumi.String("string"),
	PermanentMembers: pulumi.StringArray{
		pulumi.String("string"),
	},
	Purpose: pulumi.String("string"),
	Topic:   pulumi.String("string"),
})
var conversationResource = new Conversation("conversationResource", ConversationArgs.builder()
    .isPrivate(false)
    .actionOnDestroy("string")
    .actionOnUpdatePermanentMembers("string")
    .adoptExistingChannel(false)
    .isArchived(false)
    .name("string")
    .permanentMembers("string")
    .purpose("string")
    .topic("string")
    .build());
conversation_resource = slack.Conversation("conversationResource",
    is_private=False,
    action_on_destroy="string",
    action_on_update_permanent_members="string",
    adopt_existing_channel=False,
    is_archived=False,
    name="string",
    permanent_members=["string"],
    purpose="string",
    topic="string")
const conversationResource = new slack.Conversation("conversationResource", {
    isPrivate: false,
    actionOnDestroy: "string",
    actionOnUpdatePermanentMembers: "string",
    adoptExistingChannel: false,
    isArchived: false,
    name: "string",
    permanentMembers: ["string"],
    purpose: "string",
    topic: "string",
});
type: slack:Conversation
properties:
    actionOnDestroy: string
    actionOnUpdatePermanentMembers: string
    adoptExistingChannel: false
    isArchived: false
    isPrivate: false
    name: string
    permanentMembers:
        - string
    purpose: string
    topic: string
Conversation 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 Conversation resource accepts the following input properties:
- IsPrivate bool
- create a private channel instead of a public one.
- ActionOn stringDestroy 
- indicates whether the
conversation should be archived or left behind on destroy. Valid values are
archive | none. Note that when set tononethe conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
- ActionOn stringUpdate Permanent Members 
- indicate
whether the members should be kick of the channel when removed from
permanent_members. When set tononethe user are never kicked, this prevent a side effect on public channels where user that joined the channel are kicked.
- AdoptExisting boolChannel 
- IsArchived bool
- indicates a conversation is archived. Frozen in time.
- Name string
- name of the public or private channel.
- PermanentMembers List<string>
- user IDs to add to the channel.
- Purpose string
- purpose of the channel.
- Topic string
- topic for the channel.
- IsPrivate bool
- create a private channel instead of a public one.
- ActionOn stringDestroy 
- indicates whether the
conversation should be archived or left behind on destroy. Valid values are
archive | none. Note that when set tononethe conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
- ActionOn stringUpdate Permanent Members 
- indicate
whether the members should be kick of the channel when removed from
permanent_members. When set tononethe user are never kicked, this prevent a side effect on public channels where user that joined the channel are kicked.
- AdoptExisting boolChannel 
- IsArchived bool
- indicates a conversation is archived. Frozen in time.
- Name string
- name of the public or private channel.
- PermanentMembers []string
- user IDs to add to the channel.
- Purpose string
- purpose of the channel.
- Topic string
- topic for the channel.
- isPrivate Boolean
- create a private channel instead of a public one.
- actionOn StringDestroy 
- indicates whether the
conversation should be archived or left behind on destroy. Valid values are
archive | none. Note that when set tononethe conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
- actionOn StringUpdate Permanent Members 
- indicate
whether the members should be kick of the channel when removed from
permanent_members. When set tononethe user are never kicked, this prevent a side effect on public channels where user that joined the channel are kicked.
- adoptExisting BooleanChannel 
- isArchived Boolean
- indicates a conversation is archived. Frozen in time.
- name String
- name of the public or private channel.
- permanentMembers List<String>
- user IDs to add to the channel.
- purpose String
- purpose of the channel.
- topic String
- topic for the channel.
- isPrivate boolean
- create a private channel instead of a public one.
- actionOn stringDestroy 
- indicates whether the
conversation should be archived or left behind on destroy. Valid values are
archive | none. Note that when set tononethe conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
- actionOn stringUpdate Permanent Members 
- indicate
whether the members should be kick of the channel when removed from
permanent_members. When set tononethe user are never kicked, this prevent a side effect on public channels where user that joined the channel are kicked.
- adoptExisting booleanChannel 
- isArchived boolean
- indicates a conversation is archived. Frozen in time.
- name string
- name of the public or private channel.
- permanentMembers string[]
- user IDs to add to the channel.
- purpose string
- purpose of the channel.
- topic string
- topic for the channel.
- is_private bool
- create a private channel instead of a public one.
- action_on_ strdestroy 
- indicates whether the
conversation should be archived or left behind on destroy. Valid values are
archive | none. Note that when set tononethe conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
- action_on_ strupdate_ permanent_ members 
- indicate
whether the members should be kick of the channel when removed from
permanent_members. When set tononethe user are never kicked, this prevent a side effect on public channels where user that joined the channel are kicked.
- adopt_existing_ boolchannel 
- is_archived bool
- indicates a conversation is archived. Frozen in time.
- name str
- name of the public or private channel.
- permanent_members Sequence[str]
- user IDs to add to the channel.
- purpose str
- purpose of the channel.
- topic str
- topic for the channel.
- isPrivate Boolean
- create a private channel instead of a public one.
- actionOn StringDestroy 
- indicates whether the
conversation should be archived or left behind on destroy. Valid values are
archive | none. Note that when set tononethe conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
- actionOn StringUpdate Permanent Members 
- indicate
whether the members should be kick of the channel when removed from
permanent_members. When set tononethe user are never kicked, this prevent a side effect on public channels where user that joined the channel are kicked.
- adoptExisting BooleanChannel 
- isArchived Boolean
- indicates a conversation is archived. Frozen in time.
- name String
- name of the public or private channel.
- permanentMembers List<String>
- user IDs to add to the channel.
- purpose String
- purpose of the channel.
- topic String
- topic for the channel.
Outputs
All input properties are implicitly available as output properties. Additionally, the Conversation resource produces the following output properties:
- Created int
- is a unix timestamp.
- Creator string
- is the user ID of the member that created this channel.
- Id string
- The provider-assigned unique ID for this managed resource.
- bool
- represents this conversation as being part of a Shared Channel with a remote organization.
- IsGeneral bool
- will be true if this channel is the "general" channel that includes all regular team members.
- bool
- explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.
- bool
- means the conversation is in some way shared between multiple workspaces.
- Created int
- is a unix timestamp.
- Creator string
- is the user ID of the member that created this channel.
- Id string
- The provider-assigned unique ID for this managed resource.
- bool
- represents this conversation as being part of a Shared Channel with a remote organization.
- IsGeneral bool
- will be true if this channel is the "general" channel that includes all regular team members.
- bool
- explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.
- bool
- means the conversation is in some way shared between multiple workspaces.
- created Integer
- is a unix timestamp.
- creator String
- is the user ID of the member that created this channel.
- id String
- The provider-assigned unique ID for this managed resource.
- Boolean
- represents this conversation as being part of a Shared Channel with a remote organization.
- isGeneral Boolean
- will be true if this channel is the "general" channel that includes all regular team members.
- Boolean
- explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.
- Boolean
- means the conversation is in some way shared between multiple workspaces.
- created number
- is a unix timestamp.
- creator string
- is the user ID of the member that created this channel.
- id string
- The provider-assigned unique ID for this managed resource.
- boolean
- represents this conversation as being part of a Shared Channel with a remote organization.
- isGeneral boolean
- will be true if this channel is the "general" channel that includes all regular team members.
- boolean
- explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.
- boolean
- means the conversation is in some way shared between multiple workspaces.
- created int
- is a unix timestamp.
- creator str
- is the user ID of the member that created this channel.
- id str
- The provider-assigned unique ID for this managed resource.
- bool
- represents this conversation as being part of a Shared Channel with a remote organization.
- is_general bool
- will be true if this channel is the "general" channel that includes all regular team members.
- bool
- explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.
- bool
- means the conversation is in some way shared between multiple workspaces.
- created Number
- is a unix timestamp.
- creator String
- is the user ID of the member that created this channel.
- id String
- The provider-assigned unique ID for this managed resource.
- Boolean
- represents this conversation as being part of a Shared Channel with a remote organization.
- isGeneral Boolean
- will be true if this channel is the "general" channel that includes all regular team members.
- Boolean
- explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.
- Boolean
- means the conversation is in some way shared between multiple workspaces.
Look up Existing Conversation Resource
Get an existing Conversation 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?: ConversationState, opts?: CustomResourceOptions): Conversation@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        action_on_destroy: Optional[str] = None,
        action_on_update_permanent_members: Optional[str] = None,
        adopt_existing_channel: Optional[bool] = None,
        created: Optional[int] = None,
        creator: Optional[str] = None,
        is_archived: Optional[bool] = None,
        is_ext_shared: Optional[bool] = None,
        is_general: Optional[bool] = None,
        is_org_shared: Optional[bool] = None,
        is_private: Optional[bool] = None,
        is_shared: Optional[bool] = None,
        name: Optional[str] = None,
        permanent_members: Optional[Sequence[str]] = None,
        purpose: Optional[str] = None,
        topic: Optional[str] = None) -> Conversationfunc GetConversation(ctx *Context, name string, id IDInput, state *ConversationState, opts ...ResourceOption) (*Conversation, error)public static Conversation Get(string name, Input<string> id, ConversationState? state, CustomResourceOptions? opts = null)public static Conversation get(String name, Output<String> id, ConversationState state, CustomResourceOptions options)resources:  _:    type: slack:Conversation    get:      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.
- ActionOn stringDestroy 
- indicates whether the
conversation should be archived or left behind on destroy. Valid values are
archive | none. Note that when set tononethe conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
- ActionOn stringUpdate Permanent Members 
- indicate
whether the members should be kick of the channel when removed from
permanent_members. When set tononethe user are never kicked, this prevent a side effect on public channels where user that joined the channel are kicked.
- AdoptExisting boolChannel 
- Created int
- is a unix timestamp.
- Creator string
- is the user ID of the member that created this channel.
- IsArchived bool
- indicates a conversation is archived. Frozen in time.
- bool
- represents this conversation as being part of a Shared Channel with a remote organization.
- IsGeneral bool
- will be true if this channel is the "general" channel that includes all regular team members.
- bool
- explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.
- IsPrivate bool
- create a private channel instead of a public one.
- bool
- means the conversation is in some way shared between multiple workspaces.
- Name string
- name of the public or private channel.
- PermanentMembers List<string>
- user IDs to add to the channel.
- Purpose string
- purpose of the channel.
- Topic string
- topic for the channel.
- ActionOn stringDestroy 
- indicates whether the
conversation should be archived or left behind on destroy. Valid values are
archive | none. Note that when set tononethe conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
- ActionOn stringUpdate Permanent Members 
- indicate
whether the members should be kick of the channel when removed from
permanent_members. When set tononethe user are never kicked, this prevent a side effect on public channels where user that joined the channel are kicked.
- AdoptExisting boolChannel 
- Created int
- is a unix timestamp.
- Creator string
- is the user ID of the member that created this channel.
- IsArchived bool
- indicates a conversation is archived. Frozen in time.
- bool
- represents this conversation as being part of a Shared Channel with a remote organization.
- IsGeneral bool
- will be true if this channel is the "general" channel that includes all regular team members.
- bool
- explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.
- IsPrivate bool
- create a private channel instead of a public one.
- bool
- means the conversation is in some way shared between multiple workspaces.
- Name string
- name of the public or private channel.
- PermanentMembers []string
- user IDs to add to the channel.
- Purpose string
- purpose of the channel.
- Topic string
- topic for the channel.
- actionOn StringDestroy 
- indicates whether the
conversation should be archived or left behind on destroy. Valid values are
archive | none. Note that when set tononethe conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
- actionOn StringUpdate Permanent Members 
- indicate
whether the members should be kick of the channel when removed from
permanent_members. When set tononethe user are never kicked, this prevent a side effect on public channels where user that joined the channel are kicked.
- adoptExisting BooleanChannel 
- created Integer
- is a unix timestamp.
- creator String
- is the user ID of the member that created this channel.
- isArchived Boolean
- indicates a conversation is archived. Frozen in time.
- Boolean
- represents this conversation as being part of a Shared Channel with a remote organization.
- isGeneral Boolean
- will be true if this channel is the "general" channel that includes all regular team members.
- Boolean
- explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.
- isPrivate Boolean
- create a private channel instead of a public one.
- Boolean
- means the conversation is in some way shared between multiple workspaces.
- name String
- name of the public or private channel.
- permanentMembers List<String>
- user IDs to add to the channel.
- purpose String
- purpose of the channel.
- topic String
- topic for the channel.
- actionOn stringDestroy 
- indicates whether the
conversation should be archived or left behind on destroy. Valid values are
archive | none. Note that when set tononethe conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
- actionOn stringUpdate Permanent Members 
- indicate
whether the members should be kick of the channel when removed from
permanent_members. When set tononethe user are never kicked, this prevent a side effect on public channels where user that joined the channel are kicked.
- adoptExisting booleanChannel 
- created number
- is a unix timestamp.
- creator string
- is the user ID of the member that created this channel.
- isArchived boolean
- indicates a conversation is archived. Frozen in time.
- boolean
- represents this conversation as being part of a Shared Channel with a remote organization.
- isGeneral boolean
- will be true if this channel is the "general" channel that includes all regular team members.
- boolean
- explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.
- isPrivate boolean
- create a private channel instead of a public one.
- boolean
- means the conversation is in some way shared between multiple workspaces.
- name string
- name of the public or private channel.
- permanentMembers string[]
- user IDs to add to the channel.
- purpose string
- purpose of the channel.
- topic string
- topic for the channel.
- action_on_ strdestroy 
- indicates whether the
conversation should be archived or left behind on destroy. Valid values are
archive | none. Note that when set tononethe conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
- action_on_ strupdate_ permanent_ members 
- indicate
whether the members should be kick of the channel when removed from
permanent_members. When set tononethe user are never kicked, this prevent a side effect on public channels where user that joined the channel are kicked.
- adopt_existing_ boolchannel 
- created int
- is a unix timestamp.
- creator str
- is the user ID of the member that created this channel.
- is_archived bool
- indicates a conversation is archived. Frozen in time.
- bool
- represents this conversation as being part of a Shared Channel with a remote organization.
- is_general bool
- will be true if this channel is the "general" channel that includes all regular team members.
- bool
- explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.
- is_private bool
- create a private channel instead of a public one.
- bool
- means the conversation is in some way shared between multiple workspaces.
- name str
- name of the public or private channel.
- permanent_members Sequence[str]
- user IDs to add to the channel.
- purpose str
- purpose of the channel.
- topic str
- topic for the channel.
- actionOn StringDestroy 
- indicates whether the
conversation should be archived or left behind on destroy. Valid values are
archive | none. Note that when set tononethe conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
- actionOn StringUpdate Permanent Members 
- indicate
whether the members should be kick of the channel when removed from
permanent_members. When set tononethe user are never kicked, this prevent a side effect on public channels where user that joined the channel are kicked.
- adoptExisting BooleanChannel 
- created Number
- is a unix timestamp.
- creator String
- is the user ID of the member that created this channel.
- isArchived Boolean
- indicates a conversation is archived. Frozen in time.
- Boolean
- represents this conversation as being part of a Shared Channel with a remote organization.
- isGeneral Boolean
- will be true if this channel is the "general" channel that includes all regular team members.
- Boolean
- explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.
- isPrivate Boolean
- create a private channel instead of a public one.
- Boolean
- means the conversation is in some way shared between multiple workspaces.
- name String
- name of the public or private channel.
- permanentMembers List<String>
- user IDs to add to the channel.
- purpose String
- purpose of the channel.
- topic String
- topic for the channel.
Import
slack_conversation can be imported using the ID of the conversation/channel, e.g.
$ pulumi import slack:index/conversation:Conversation my_conversation C023X7QTFHQ
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- slack pulumi/pulumi-slack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the slackTerraform Provider.