Interface ISlackChannelConfiguration
- All Superinterfaces:
software.constructs.IConstruct
,software.constructs.IDependable
,IGrantable
,INotificationRuleTarget
,IResource
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
ISlackChannelConfiguration.Jsii$Default
- All Known Implementing Classes:
ISlackChannelConfiguration.Jsii$Proxy
,SlackChannelConfiguration
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-04T00:39:28.784Z")
@Stability(Stable)
public interface ISlackChannelConfiguration
extends software.amazon.jsii.JsiiSerializable, IResource, IGrantable, INotificationRuleTarget
Represents a Slack channel configuration.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forISlackChannelConfiguration
.static final class
A proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToRolePolicy
(PolicyStatement statement) Adds a statement to the IAM role.default IRole
getRole()
The permission role of Slack channel configuration.The ARN of the Slack channel configuration In the form of arn:aws:chatbot:{region}:{account}:chat-configuration/slack-channel/{slackChannelName}.The name of Slack channel configuration.Return the given named metric for this SlackChannelConfiguration.metric
(String metricName, MetricOptions props) Return the given named metric for this SlackChannelConfiguration.Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.services.iam.IGrantable
getGrantPrincipal
Methods inherited from interface software.amazon.awscdk.services.codestarnotifications.INotificationRuleTarget
bindAsNotificationRuleTarget
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSlackChannelConfigurationArn
The ARN of the Slack channel configuration In the form of arn:aws:chatbot:{region}:{account}:chat-configuration/slack-channel/{slackChannelName}. -
getSlackChannelConfigurationName
The name of Slack channel configuration. -
getRole
The permission role of Slack channel configuration.Default: - A role will be created.
-
addToRolePolicy
Adds a statement to the IAM role.- Parameters:
statement
- This parameter is required.
-
metric
@Stability(Stable) @NotNull Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this SlackChannelConfiguration.- Parameters:
metricName
- This parameter is required.props
-
-
metric
Return the given named metric for this SlackChannelConfiguration.- Parameters:
metricName
- This parameter is required.
-