1. Packages
  2. Slack Provider
  3. API Docs
  4. Conversation
Slack v0.4.11 published on Wednesday, Feb 12, 2025 by Pulumi

slack.Conversation

Explore with Pulumi AI

Manages a Slack channel

Required scopes

This resource requires the following scopes:

If using bot tokens:

If using user tokens:

The Slack API methods used by the resource are:

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
resources:
  test:
    type: slack:Conversation
    properties:
      name: my-channel
      topic: The topic for my channel
      permanentMembers: []
      isPrivate: true
Copy
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",
});
Copy
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")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
resources:
  nonadmin:
    type: slack:Conversation
    properties:
      name: my-channel01
      topic: The channel won't be archived on destroy
      permanentMembers: []
      isPrivate: true
      actionOnDestroy: none
Copy
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",
});
Copy
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")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
resources:
  adopted:
    type: slack:Conversation
    properties:
      name: my-channel02
      topic: Adopt existing, don't kick members
      permanentMembers: []
      adoptExistingChannel: true
      actionOnUpdatePermanentMembers: none
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. ConversationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. ConversationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ConversationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
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());
Copy
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")
Copy
const conversationResource = new slack.Conversation("conversationResource", {
    isPrivate: false,
    actionOnDestroy: "string",
    actionOnUpdatePermanentMembers: "string",
    adoptExistingChannel: false,
    isArchived: false,
    name: "string",
    permanentMembers: ["string"],
    purpose: "string",
    topic: "string",
});
Copy
type: slack:Conversation
properties:
    actionOnDestroy: string
    actionOnUpdatePermanentMembers: string
    adoptExistingChannel: false
    isArchived: false
    isPrivate: false
    name: string
    permanentMembers:
        - string
    purpose: string
    topic: string
Copy

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 This property is required. bool
create a private channel instead of a public one.
ActionOnDestroy string
indicates whether the conversation should be archived or left behind on destroy. Valid values are archive | none. Note that when set to none the conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
ActionOnUpdatePermanentMembers string
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.
AdoptExistingChannel bool
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 This property is required. bool
create a private channel instead of a public one.
ActionOnDestroy string
indicates whether the conversation should be archived or left behind on destroy. Valid values are archive | none. Note that when set to none the conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
ActionOnUpdatePermanentMembers string
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.
AdoptExistingChannel bool
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 This property is required. Boolean
create a private channel instead of a public one.
actionOnDestroy String
indicates whether the conversation should be archived or left behind on destroy. Valid values are archive | none. Note that when set to none the conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
actionOnUpdatePermanentMembers String
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.
adoptExistingChannel Boolean
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 This property is required. boolean
create a private channel instead of a public one.
actionOnDestroy string
indicates whether the conversation should be archived or left behind on destroy. Valid values are archive | none. Note that when set to none the conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
actionOnUpdatePermanentMembers string
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.
adoptExistingChannel boolean
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 This property is required. bool
create a private channel instead of a public one.
action_on_destroy str
indicates whether the conversation should be archived or left behind on destroy. Valid values are archive | none. Note that when set to none the 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_update_permanent_members str
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.
adopt_existing_channel bool
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 This property is required. Boolean
create a private channel instead of a public one.
actionOnDestroy String
indicates whether the conversation should be archived or left behind on destroy. Valid values are archive | none. Note that when set to none the conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
actionOnUpdatePermanentMembers String
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.
adoptExistingChannel Boolean
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.
IsExtShared 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.
IsOrgShared bool
explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.
IsShared 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.
IsExtShared 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.
IsOrgShared bool
explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.
IsShared 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.
isExtShared 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.
isOrgShared Boolean
explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.
isShared 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.
isExtShared 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.
isOrgShared boolean
explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.
isShared 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.
is_ext_shared 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.
is_org_shared bool
explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.
is_shared 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.
isExtShared 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.
isOrgShared Boolean
explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.
isShared 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) -> Conversation
func 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
ActionOnDestroy string
indicates whether the conversation should be archived or left behind on destroy. Valid values are archive | none. Note that when set to none the conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
ActionOnUpdatePermanentMembers string
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.
AdoptExistingChannel bool
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.
IsExtShared 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.
IsOrgShared 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.
IsShared 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.
ActionOnDestroy string
indicates whether the conversation should be archived or left behind on destroy. Valid values are archive | none. Note that when set to none the conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
ActionOnUpdatePermanentMembers string
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.
AdoptExistingChannel bool
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.
IsExtShared 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.
IsOrgShared 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.
IsShared 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.
actionOnDestroy String
indicates whether the conversation should be archived or left behind on destroy. Valid values are archive | none. Note that when set to none the conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
actionOnUpdatePermanentMembers String
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.
adoptExistingChannel Boolean
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.
isExtShared 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.
isOrgShared 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.
isShared 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.
actionOnDestroy string
indicates whether the conversation should be archived or left behind on destroy. Valid values are archive | none. Note that when set to none the conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
actionOnUpdatePermanentMembers string
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.
adoptExistingChannel boolean
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.
isExtShared 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.
isOrgShared 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.
isShared 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_destroy str
indicates whether the conversation should be archived or left behind on destroy. Valid values are archive | none. Note that when set to none the 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_update_permanent_members str
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.
adopt_existing_channel bool
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.
is_ext_shared 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.
is_org_shared 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.
is_shared 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.
actionOnDestroy String
indicates whether the conversation should be archived or left behind on destroy. Valid values are archive | none. Note that when set to none the conversation will be left as it is and as a result any subsequent runs of pulumi up with the same name will fail.
actionOnUpdatePermanentMembers String
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.
adoptExistingChannel Boolean
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.
isExtShared 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.
isOrgShared 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.
isShared 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
Copy

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 slack Terraform Provider.