# SlackChannelProperty

Represents a Slack channel with its unique identifier and optional display name.

- Source: Generated at build time
- Type last changed: v2.232.0 · 5 Dec 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_devopsagent as devopsagent } from 'aws-cdk-lib';
const slackChannelProperty: devopsagent.CfnAssociation.SlackChannelProperty = {
  channelId: 'channelId',

  // the properties below are optional
  channelName: 'channelName',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_devopsagent as devopsagent

slack_channel_property = devopsagent.CfnAssociation.SlackChannelProperty(
    channel_id="channelId",

    # the properties below are optional
    channel_name="channelName"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.devopsagent.*;

SlackChannelProperty slackChannelProperty = SlackChannelProperty.builder()
        .channelId("channelId")

        // the properties below are optional
        .channelName("channelName")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DevOpsAgent;

var slackChannelProperty = new SlackChannelProperty {
    ChannelId = "channelId",

    // the properties below are optional
    ChannelName = "channelName"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

slackChannelProperty := &SlackChannelProperty{
	ChannelId: jsii.String("channelId"),

	// the properties below are optional
	ChannelName: jsii.String("channelName"),
}
```

## Properties

- `channelId`: string (required) — Slack channel ID.

- `channelName`: string — Slack channel name.
