# ISlackChannelConfiguration

Represents a Slack channel configuration.

Extends: [IResource](/cdk/api/v2/docs/aws-cdk-lib.IResource.html), [IGrantable](/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IGrantable.html), [INotificationRuleTarget](/cdk/api/v2/docs/aws-cdk-lib.aws_codestarnotifications.INotificationRuleTarget.html), ISlackChannelConfigurationRef
Implemented by: [SlackChannelConfiguration](/cdk/api/v2/docs/aws-cdk-lib.aws_chatbot.SlackChannelConfiguration.html)
Obtainable from: [SlackChannelConfiguration.fromSlackChannelConfigurationArn](/cdk/api/v2/docs/aws-cdk-lib.aws_chatbot.SlackChannelConfiguration.html#fromslackchannelconfigurationarn)

- Source: [`aws-chatbot/lib/slack-channel-configuration.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-chatbot/lib/slack-channel-configuration.ts#L130)
- Type last changed: v2.236.0 · 23 Jan 2026

## Properties

- `env`: [ResourceEnvironment](/cdk/api/v2/docs/aws-cdk-lib.interfaces.ResourceEnvironment.html) — The environment this resource belongs to.

  For resources that are created and managed in a Stack (those created by
  creating new class instances like `new Role()`, `new Bucket()`, etc.), this
  is always the same as the environment of the stack they belong to.

  For referenced resources (those obtained from referencing methods like
  `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
  different than the stack they were imported into.

- `grantPrincipal`: [IPrincipal](/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IPrincipal.html) — The principal to grant permissions to.

- `node`: [Node](/cdk/api/v2/docs/constructs.Node.html) — The tree node.

- `role`: [IRole](/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) — The permission role of Slack channel configuration.

  **Default:** A role will be created.

- `slackChannelConfigurationArn`: string — The ARN of the Slack channel configuration In the form of arn:aws:chatbot:{region}:{account}:chat-configuration/slack-channel/{slackChannelName}.

- `slackChannelConfigurationName`: string — The name of Slack channel configuration.

- `slackChannelConfigurationRef`: [SlackChannelConfigurationReference](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_chatbot.SlackChannelConfigurationReference.html) — A reference to a SlackChannelConfiguration resource.

- `stack`: [Stack](/cdk/api/v2/docs/aws-cdk-lib.Stack.html) — The stack in which this resource is defined.

## Methods

- `addToRolePolicy(statement: PolicyStatement): void` — Adds a statement to the IAM role.

- `applyRemovalPolicy(policy: RemovalPolicy): void` — Apply the given removal policy to this resource.

  The Removal Policy controls what happens to this resource when it stops
  being managed by CloudFormation, either because you've removed it from the
  CDK application or because you've made a change that requires the resource
  to be replaced.

  The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
  account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).

- `bindAsNotificationRuleTarget(scope: Construct): NotificationRuleTargetConfig` — Returns a target configuration for notification rule.

- `metric(metricName: string, props?: MetricOptions): Metric` — Return the given named metric for this SlackChannelConfiguration.

- `with(...mixins: IMixin[]): IConstruct` — Applies one or more mixins to this construct.

  Mixins are applied in order. The list of constructs is captured at the
  start of the call, so constructs added by a mixin will not be visited.

  **Parameters**

  - `mixins` — The mixins to apply.

  **Returns:** This construct for chaining
