discord.ForumChannel
Explore with Pulumi AI
A resource to create a forum channel.
Create ForumChannel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ForumChannel(name: string, args: ForumChannelArgs, opts?: CustomResourceOptions);
@overload
def ForumChannel(resource_name: str,
args: ForumChannelArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ForumChannel(resource_name: str,
opts: Optional[ResourceOptions] = None,
server_id: Optional[str] = None,
category: Optional[str] = None,
name: Optional[str] = None,
nsfw: Optional[bool] = None,
position: Optional[float] = None,
sync_perms_with_category: Optional[bool] = None,
topic: Optional[str] = None,
type: Optional[str] = None)
func NewForumChannel(ctx *Context, name string, args ForumChannelArgs, opts ...ResourceOption) (*ForumChannel, error)
public ForumChannel(string name, ForumChannelArgs args, CustomResourceOptions? opts = null)
public ForumChannel(String name, ForumChannelArgs args)
public ForumChannel(String name, ForumChannelArgs args, CustomResourceOptions options)
type: discord:ForumChannel
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 ForumChannelArgs
- 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 ForumChannelArgs
- 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 ForumChannelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ForumChannelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ForumChannelArgs
- 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 forumChannelResource = new Discord.ForumChannel("forumChannelResource", new()
{
ServerId = "string",
Category = "string",
Name = "string",
Nsfw = false,
Position = 0,
SyncPermsWithCategory = false,
Topic = "string",
Type = "string",
});
example, err := discord.NewForumChannel(ctx, "forumChannelResource", &discord.ForumChannelArgs{
ServerId: pulumi.String("string"),
Category: pulumi.String("string"),
Name: pulumi.String("string"),
Nsfw: pulumi.Bool(false),
Position: pulumi.Float64(0),
SyncPermsWithCategory: pulumi.Bool(false),
Topic: pulumi.String("string"),
Type: pulumi.String("string"),
})
var forumChannelResource = new ForumChannel("forumChannelResource", ForumChannelArgs.builder()
.serverId("string")
.category("string")
.name("string")
.nsfw(false)
.position(0.0)
.syncPermsWithCategory(false)
.topic("string")
.type("string")
.build());
forum_channel_resource = discord.ForumChannel("forumChannelResource",
server_id="string",
category="string",
name="string",
nsfw=False,
position=0,
sync_perms_with_category=False,
topic="string",
type="string")
const forumChannelResource = new discord.ForumChannel("forumChannelResource", {
serverId: "string",
category: "string",
name: "string",
nsfw: false,
position: 0,
syncPermsWithCategory: false,
topic: "string",
type: "string",
});
type: discord:ForumChannel
properties:
category: string
name: string
nsfw: false
position: 0
serverId: string
syncPermsWithCategory: false
topic: string
type: string
ForumChannel 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 ForumChannel resource accepts the following input properties:
- Server
Id string - ID of server this channel is in.
- Category string
- ID of category to place this channel in.
- Name string
- Name of the channel.
- Nsfw bool
- Whether the channel is NSFW.
- Position double
- Position of the channel,
0
-indexed. - Sync
Perms boolWith Category - Whether channel permissions should be synced with the category this channel is in.
- Topic string
- Topic of the channel.
- Type string
- The type of the channel. This is only for internal use and should never be provided.
- Server
Id string - ID of server this channel is in.
- Category string
- ID of category to place this channel in.
- Name string
- Name of the channel.
- Nsfw bool
- Whether the channel is NSFW.
- Position float64
- Position of the channel,
0
-indexed. - Sync
Perms boolWith Category - Whether channel permissions should be synced with the category this channel is in.
- Topic string
- Topic of the channel.
- Type string
- The type of the channel. This is only for internal use and should never be provided.
- server
Id String - ID of server this channel is in.
- category String
- ID of category to place this channel in.
- name String
- Name of the channel.
- nsfw Boolean
- Whether the channel is NSFW.
- position Double
- Position of the channel,
0
-indexed. - sync
Perms BooleanWith Category - Whether channel permissions should be synced with the category this channel is in.
- topic String
- Topic of the channel.
- type String
- The type of the channel. This is only for internal use and should never be provided.
- server
Id string - ID of server this channel is in.
- category string
- ID of category to place this channel in.
- name string
- Name of the channel.
- nsfw boolean
- Whether the channel is NSFW.
- position number
- Position of the channel,
0
-indexed. - sync
Perms booleanWith Category - Whether channel permissions should be synced with the category this channel is in.
- topic string
- Topic of the channel.
- type string
- The type of the channel. This is only for internal use and should never be provided.
- server_
id str - ID of server this channel is in.
- category str
- ID of category to place this channel in.
- name str
- Name of the channel.
- nsfw bool
- Whether the channel is NSFW.
- position float
- Position of the channel,
0
-indexed. - sync_
perms_ boolwith_ category - Whether channel permissions should be synced with the category this channel is in.
- topic str
- Topic of the channel.
- type str
- The type of the channel. This is only for internal use and should never be provided.
- server
Id String - ID of server this channel is in.
- category String
- ID of category to place this channel in.
- name String
- Name of the channel.
- nsfw Boolean
- Whether the channel is NSFW.
- position Number
- Position of the channel,
0
-indexed. - sync
Perms BooleanWith Category - Whether channel permissions should be synced with the category this channel is in.
- topic String
- Topic of the channel.
- type String
- The type of the channel. This is only for internal use and should never be provided.
Outputs
All input properties are implicitly available as output properties. Additionally, the ForumChannel resource produces the following output properties:
- channel_
id str - The ID of the channel.
- id str
- The provider-assigned unique ID for this managed resource.
Look up Existing ForumChannel Resource
Get an existing ForumChannel 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?: ForumChannelState, opts?: CustomResourceOptions): ForumChannel
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
category: Optional[str] = None,
channel_id: Optional[str] = None,
name: Optional[str] = None,
nsfw: Optional[bool] = None,
position: Optional[float] = None,
server_id: Optional[str] = None,
sync_perms_with_category: Optional[bool] = None,
topic: Optional[str] = None,
type: Optional[str] = None) -> ForumChannel
func GetForumChannel(ctx *Context, name string, id IDInput, state *ForumChannelState, opts ...ResourceOption) (*ForumChannel, error)
public static ForumChannel Get(string name, Input<string> id, ForumChannelState? state, CustomResourceOptions? opts = null)
public static ForumChannel get(String name, Output<String> id, ForumChannelState state, CustomResourceOptions options)
resources: _: type: discord:ForumChannel 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.
- Category string
- ID of category to place this channel in.
- Channel
Id string - The ID of the channel.
- Name string
- Name of the channel.
- Nsfw bool
- Whether the channel is NSFW.
- Position double
- Position of the channel,
0
-indexed. - Server
Id string - ID of server this channel is in.
- Sync
Perms boolWith Category - Whether channel permissions should be synced with the category this channel is in.
- Topic string
- Topic of the channel.
- Type string
- The type of the channel. This is only for internal use and should never be provided.
- Category string
- ID of category to place this channel in.
- Channel
Id string - The ID of the channel.
- Name string
- Name of the channel.
- Nsfw bool
- Whether the channel is NSFW.
- Position float64
- Position of the channel,
0
-indexed. - Server
Id string - ID of server this channel is in.
- Sync
Perms boolWith Category - Whether channel permissions should be synced with the category this channel is in.
- Topic string
- Topic of the channel.
- Type string
- The type of the channel. This is only for internal use and should never be provided.
- category String
- ID of category to place this channel in.
- channel
Id String - The ID of the channel.
- name String
- Name of the channel.
- nsfw Boolean
- Whether the channel is NSFW.
- position Double
- Position of the channel,
0
-indexed. - server
Id String - ID of server this channel is in.
- sync
Perms BooleanWith Category - Whether channel permissions should be synced with the category this channel is in.
- topic String
- Topic of the channel.
- type String
- The type of the channel. This is only for internal use and should never be provided.
- category string
- ID of category to place this channel in.
- channel
Id string - The ID of the channel.
- name string
- Name of the channel.
- nsfw boolean
- Whether the channel is NSFW.
- position number
- Position of the channel,
0
-indexed. - server
Id string - ID of server this channel is in.
- sync
Perms booleanWith Category - Whether channel permissions should be synced with the category this channel is in.
- topic string
- Topic of the channel.
- type string
- The type of the channel. This is only for internal use and should never be provided.
- category str
- ID of category to place this channel in.
- channel_
id str - The ID of the channel.
- name str
- Name of the channel.
- nsfw bool
- Whether the channel is NSFW.
- position float
- Position of the channel,
0
-indexed. - server_
id str - ID of server this channel is in.
- sync_
perms_ boolwith_ category - Whether channel permissions should be synced with the category this channel is in.
- topic str
- Topic of the channel.
- type str
- The type of the channel. This is only for internal use and should never be provided.
- category String
- ID of category to place this channel in.
- channel
Id String - The ID of the channel.
- name String
- Name of the channel.
- nsfw Boolean
- Whether the channel is NSFW.
- position Number
- Position of the channel,
0
-indexed. - server
Id String - ID of server this channel is in.
- sync
Perms BooleanWith Category - Whether channel permissions should be synced with the category this channel is in.
- topic String
- Topic of the channel.
- type String
- The type of the channel. This is only for internal use and should never be provided.
Package Details
- Repository
- discord lucky3028/terraform-provider-discord
- License
- Notes
- This Pulumi package is based on the
discord
Terraform Provider.