SlackBidirectionalConfigurationProperty Struct
Optional bidirectional communication configuration.
Supply this configuration and set Enabled to true so you can interact with the agent directly from Slack
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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
};
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
enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{} #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
IAM role ARN that AWS DevOps Agent assumes to exchange messages with your Slack workspace on behalf of this association.