# SlackConfigurationProperty

Configuration for Slack workspace integration.

Defines the workspace ID, workspace name, and transmission targets that specify which Slack channels receive notifications.

- Source: Generated at build time
- Type last changed: v2.274.0 · 20 Oct 2026

## 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 slackConfigurationProperty: devopsagent.CfnAssociation.SlackConfigurationProperty = {
  transmissionTarget: {
    incidentResponseTarget: {
      channelId: 'channelId',

      // the properties below are optional
      channelName: 'channelName',
    },
  },
  workspaceId: 'workspaceId',
  workspaceName: 'workspaceName',

  // the properties below are optional
  bidirectional: {
    roleArn: 'roleArn',

    // the properties below are optional
    enabled: false,
  },
};
```

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_configuration_property = devopsagent.CfnAssociation.SlackConfigurationProperty(
    transmission_target=devopsagent.CfnAssociation.SlackTransmissionTargetProperty(
        incident_response_target=devopsagent.CfnAssociation.SlackChannelProperty(
            channel_id="channelId",

            # the properties below are optional
            channel_name="channelName"
        )
    ),
    workspace_id="workspaceId",
    workspace_name="workspaceName",

    # the properties below are optional
    bidirectional=devopsagent.CfnAssociation.SlackBidirectionalConfigurationProperty(
        role_arn="roleArn",

        # the properties below are optional
        enabled=False
    )
)
```

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.*;

SlackConfigurationProperty slackConfigurationProperty = SlackConfigurationProperty.builder()
        .transmissionTarget(SlackTransmissionTargetProperty.builder()
                .incidentResponseTarget(SlackChannelProperty.builder()
                        .channelId("channelId")

                        // the properties below are optional
                        .channelName("channelName")
                        .build())
                .build())
        .workspaceId("workspaceId")
        .workspaceName("workspaceName")

        // the properties below are optional
        .bidirectional(SlackBidirectionalConfigurationProperty.builder()
                .roleArn("roleArn")

                // the properties below are optional
                .enabled(false)
                .build())
        .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 slackConfigurationProperty = new SlackConfigurationProperty {
    TransmissionTarget = new SlackTransmissionTargetProperty {
        IncidentResponseTarget = new SlackChannelProperty {
            ChannelId = "channelId",

            // the properties below are optional
            ChannelName = "channelName"
        }
    },
    WorkspaceId = "workspaceId",
    WorkspaceName = "workspaceName",

    // the properties below are optional
    Bidirectional = new SlackBidirectionalConfigurationProperty {
        RoleArn = "roleArn",

        // the properties below are optional
        Enabled = false
    }
};
```

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"

slackConfigurationProperty := &SlackConfigurationProperty{
	TransmissionTarget: &SlackTransmissionTargetProperty{
		IncidentResponseTarget: &SlackChannelProperty{
			ChannelId: jsii.String("channelId"),

			// the properties below are optional
			ChannelName: jsii.String("channelName"),
		},
	},
	WorkspaceId: jsii.String("workspaceId"),
	WorkspaceName: jsii.String("workspaceName"),

	// the properties below are optional
	Bidirectional: &SlackBidirectionalConfigurationProperty{
		RoleArn: jsii.String("roleArn"),

		// the properties below are optional
		Enabled: jsii.Boolean(false),
	},
}
```

## Properties

- `bidirectional`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAssociation.SlackBidirectionalConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_devopsagent.CfnAssociation.SlackBidirectionalConfigurationProperty.html) — Optional bidirectional communication configuration.

  Supply this configuration and set Enabled to true so you can interact with the agent directly from Slack

- `transmissionTarget`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAssociation.SlackTransmissionTargetProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_devopsagent.CfnAssociation.SlackTransmissionTargetProperty.html) (required) — Transmission targets for agent notifications.

- `workspaceId`: string (required) — Associated Slack workspace ID.

- `workspaceName`: string (required) — Associated Slack workspace name.
