# SlackBidirectionalConfigurationProperty

Optional bidirectional communication configuration.

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

- 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 slackBidirectionalConfigurationProperty: devopsagent.CfnAssociation.SlackBidirectionalConfigurationProperty = {
  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_bidirectional_configuration_property = 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.*;

SlackBidirectionalConfigurationProperty slackBidirectionalConfigurationProperty = SlackBidirectionalConfigurationProperty.builder()
        .roleArn("roleArn")

        // the properties below are optional
        .enabled(false)
        .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 slackBidirectionalConfigurationProperty = 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"

slackBidirectionalConfigurationProperty := &SlackBidirectionalConfigurationProperty{
	RoleArn: jsii.String("roleArn"),

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

## Properties

- `enabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Whether bidirectional communication is enabled for this association.

  When set to true, you can mention the agent in a configured Slack channel and it responds in that channel. When omitted or set to false, the agent ignores mentions and only sends notifications

- `roleArn`: string (required) — IAM role ARN that AWS DevOps Agent assumes to exchange messages with your Slack workspace on behalf of this association.
