Class CfnSlackChannelConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.supportapp.CfnSlackChannelConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSlackChannelConfiguration>
- Enclosing class:
CfnSlackChannelConfiguration
@Stability(Stable)
public static final class CfnSlackChannelConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSlackChannelConfiguration>
A fluent builder for
CfnSlackChannelConfiguration
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The channel ID in Slack.channelName
(String channelName) The channel name in Slack.channelRoleArn
(String channelRoleArn) The Amazon Resource Name (ARN) of the IAM role for this Slack channel configuration.notifyOnAddCorrespondenceToCase
(Boolean notifyOnAddCorrespondenceToCase) Whether to get notified when a correspondence is added to your support cases.notifyOnAddCorrespondenceToCase
(IResolvable notifyOnAddCorrespondenceToCase) Whether to get notified when a correspondence is added to your support cases.notifyOnCaseSeverity
(String notifyOnCaseSeverity) The case severity for your support cases that you want to receive notifications.notifyOnCreateOrReopenCase
(Boolean notifyOnCreateOrReopenCase) Whether to get notified when your support cases are created or reopened.notifyOnCreateOrReopenCase
(IResolvable notifyOnCreateOrReopenCase) Whether to get notified when your support cases are created or reopened.notifyOnResolveCase
(Boolean notifyOnResolveCase) Whether to get notified when your support cases are resolved.notifyOnResolveCase
(IResolvable notifyOnResolveCase) Whether to get notified when your support cases are resolved.The team ID in Slack.
-
Method Details
-
create
@Stability(Stable) public static CfnSlackChannelConfiguration.Builder create(Construct scope, String id) - Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnSlackChannelConfiguration.Builder
.
-
channelId
The channel ID in Slack.This ID identifies a channel within a Slack workspace.
- Parameters:
channelId
- The channel ID in Slack. This parameter is required.- Returns:
this
-
channelRoleArn
@Stability(Stable) public CfnSlackChannelConfiguration.Builder channelRoleArn(String channelRoleArn) The Amazon Resource Name (ARN) of the IAM role for this Slack channel configuration.The AWS Support App uses this role to perform AWS Support and Service Quotas actions on your behalf.
- Parameters:
channelRoleArn
- The Amazon Resource Name (ARN) of the IAM role for this Slack channel configuration. This parameter is required.- Returns:
this
-
notifyOnCaseSeverity
@Stability(Stable) public CfnSlackChannelConfiguration.Builder notifyOnCaseSeverity(String notifyOnCaseSeverity) The case severity for your support cases that you want to receive notifications.You can specify
none
,all
, orhigh
.- Parameters:
notifyOnCaseSeverity
- The case severity for your support cases that you want to receive notifications. This parameter is required.- Returns:
this
-
teamId
The team ID in Slack.This ID uniquely identifies a Slack workspace.
- Parameters:
teamId
- The team ID in Slack. This parameter is required.- Returns:
this
-
channelName
The channel name in Slack.This is the channel where you invite the AWS Support App .
- Parameters:
channelName
- The channel name in Slack. This parameter is required.- Returns:
this
-
notifyOnAddCorrespondenceToCase
@Stability(Stable) public CfnSlackChannelConfiguration.Builder notifyOnAddCorrespondenceToCase(Boolean notifyOnAddCorrespondenceToCase) Whether to get notified when a correspondence is added to your support cases.- Parameters:
notifyOnAddCorrespondenceToCase
- Whether to get notified when a correspondence is added to your support cases. This parameter is required.- Returns:
this
-
notifyOnAddCorrespondenceToCase
@Stability(Stable) public CfnSlackChannelConfiguration.Builder notifyOnAddCorrespondenceToCase(IResolvable notifyOnAddCorrespondenceToCase) Whether to get notified when a correspondence is added to your support cases.- Parameters:
notifyOnAddCorrespondenceToCase
- Whether to get notified when a correspondence is added to your support cases. This parameter is required.- Returns:
this
-
notifyOnCreateOrReopenCase
@Stability(Stable) public CfnSlackChannelConfiguration.Builder notifyOnCreateOrReopenCase(Boolean notifyOnCreateOrReopenCase) Whether to get notified when your support cases are created or reopened.- Parameters:
notifyOnCreateOrReopenCase
- Whether to get notified when your support cases are created or reopened. This parameter is required.- Returns:
this
-
notifyOnCreateOrReopenCase
@Stability(Stable) public CfnSlackChannelConfiguration.Builder notifyOnCreateOrReopenCase(IResolvable notifyOnCreateOrReopenCase) Whether to get notified when your support cases are created or reopened.- Parameters:
notifyOnCreateOrReopenCase
- Whether to get notified when your support cases are created or reopened. This parameter is required.- Returns:
this
-
notifyOnResolveCase
@Stability(Stable) public CfnSlackChannelConfiguration.Builder notifyOnResolveCase(Boolean notifyOnResolveCase) Whether to get notified when your support cases are resolved.- Parameters:
notifyOnResolveCase
- Whether to get notified when your support cases are resolved. This parameter is required.- Returns:
this
-
notifyOnResolveCase
@Stability(Stable) public CfnSlackChannelConfiguration.Builder notifyOnResolveCase(IResolvable notifyOnResolveCase) Whether to get notified when your support cases are resolved.- Parameters:
notifyOnResolveCase
- Whether to get notified when your support cases are resolved. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSlackChannelConfiguration>
- Returns:
- a newly built instance of
CfnSlackChannelConfiguration
.
-