@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:40.218Z") public class CfnSlackChannelConfiguration extends CfnResource implements IInspectable
You can use the AWS::SupportApp::SlackChannelConfiguration
resource to specify your AWS account when you configure the AWS Support App . This resource includes the following information:
For more information, see the following topics in the AWS Support User Guide :
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.supportapp.*; CfnSlackChannelConfiguration cfnSlackChannelConfiguration = CfnSlackChannelConfiguration.Builder.create(this, "MyCfnSlackChannelConfiguration") .channelId("channelId") .channelRoleArn("channelRoleArn") .notifyOnCaseSeverity("notifyOnCaseSeverity") .teamId("teamId") // the properties below are optional .channelName("channelName") .notifyOnAddCorrespondenceToCase(false) .notifyOnCreateOrReopenCase(false) .notifyOnResolveCase(false) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnSlackChannelConfiguration.Builder
A fluent builder for
CfnSlackChannelConfiguration . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnSlackChannelConfiguration(Construct scope,
java.lang.String id,
CfnSlackChannelConfigurationProps props)
Create a new `AWS::SupportApp::SlackChannelConfiguration`.
|
protected |
CfnSlackChannelConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnSlackChannelConfiguration(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getChannelId()
The channel ID in Slack.
|
java.lang.String |
getChannelName()
The channel name in Slack.
|
java.lang.String |
getChannelRoleArn()
The Amazon Resource Name (ARN) of the IAM role for this Slack channel configuration.
|
java.lang.Object |
getNotifyOnAddCorrespondenceToCase()
Whether to get notified when a correspondence is added to your support cases.
|
java.lang.String |
getNotifyOnCaseSeverity()
The case severity for your support cases that you want to receive notifications.
|
java.lang.Object |
getNotifyOnCreateOrReopenCase()
Whether to get notified when your support cases are created or reopened.
|
java.lang.Object |
getNotifyOnResolveCase()
Whether to get notified when your support cases are resolved.
|
java.lang.String |
getTeamId()
The team ID in Slack.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setChannelId(java.lang.String value)
The channel ID in Slack.
|
void |
setChannelName(java.lang.String value)
The channel name in Slack.
|
void |
setChannelRoleArn(java.lang.String value)
The Amazon Resource Name (ARN) of the IAM role for this Slack channel configuration.
|
void |
setNotifyOnAddCorrespondenceToCase(java.lang.Boolean value)
Whether to get notified when a correspondence is added to your support cases.
|
void |
setNotifyOnAddCorrespondenceToCase(IResolvable value)
Whether to get notified when a correspondence is added to your support cases.
|
void |
setNotifyOnCaseSeverity(java.lang.String value)
The case severity for your support cases that you want to receive notifications.
|
void |
setNotifyOnCreateOrReopenCase(java.lang.Boolean value)
Whether to get notified when your support cases are created or reopened.
|
void |
setNotifyOnCreateOrReopenCase(IResolvable value)
Whether to get notified when your support cases are created or reopened.
|
void |
setNotifyOnResolveCase(java.lang.Boolean value)
Whether to get notified when your support cases are resolved.
|
void |
setNotifyOnResolveCase(IResolvable value)
Whether to get notified when your support cases are resolved.
|
void |
setTeamId(java.lang.String value)
The team ID in Slack.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnSlackChannelConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnSlackChannelConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnSlackChannelConfiguration(Construct scope, java.lang.String id, CfnSlackChannelConfigurationProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getChannelId()
This ID identifies a channel within a Slack workspace.
public void setChannelId(java.lang.String value)
This ID identifies a channel within a Slack workspace.
public java.lang.String getChannelRoleArn()
The AWS Support App uses this role to perform AWS Support and Service Quotas actions on your behalf.
public void setChannelRoleArn(java.lang.String value)
The AWS Support App uses this role to perform AWS Support and Service Quotas actions on your behalf.
public java.lang.String getNotifyOnCaseSeverity()
You can specify none
, all
, or high
.
public void setNotifyOnCaseSeverity(java.lang.String value)
You can specify none
, all
, or high
.
public java.lang.String getTeamId()
This ID uniquely identifies a Slack workspace.
public void setTeamId(java.lang.String value)
This ID uniquely identifies a Slack workspace.
public java.lang.String getChannelName()
This is the channel where you invite the AWS Support App .
public void setChannelName(java.lang.String value)
This is the channel where you invite the AWS Support App .
public java.lang.Object getNotifyOnAddCorrespondenceToCase()
public void setNotifyOnAddCorrespondenceToCase(java.lang.Boolean value)
public void setNotifyOnAddCorrespondenceToCase(IResolvable value)
public java.lang.Object getNotifyOnCreateOrReopenCase()
public void setNotifyOnCreateOrReopenCase(java.lang.Boolean value)
public void setNotifyOnCreateOrReopenCase(IResolvable value)
public java.lang.Object getNotifyOnResolveCase()
public void setNotifyOnResolveCase(java.lang.Boolean value)
public void setNotifyOnResolveCase(IResolvable value)