SlackChannelProperty Struct
Represents a Slack channel with its unique identifier and optional display name.
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 slackChannelProperty: devopsagent.CfnAssociation.SlackChannelProperty = {
channelId: 'channelId',
// the properties below are optional
channelName: 'channelName',
};
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
// 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();
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"
};
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"),
}