Class CfnSlackChannelConfiguration
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::Chatbot::SlackChannelConfiguration.
The AWS::Chatbot::SlackChannelConfiguration resource configures a Slack channel to allow users to use AWS Chatbot with AWS CloudFormation templates.
This resource requires some setup to be done in the AWS Chatbot console. To provide the required Slack workspace ID, you must perform the initial authorization flow with Slack in the AWS Chatbot console, then copy and paste the workspace ID from the console. For more details, see steps 1-4 in Setting Up AWS Chatbot with Slack in the AWS Chatbot 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.chatbot.*;
CfnSlackChannelConfiguration cfnSlackChannelConfiguration = CfnSlackChannelConfiguration.Builder.create(this, "MyCfnSlackChannelConfiguration")
.configurationName("configurationName")
.iamRoleArn("iamRoleArn")
.slackChannelId("slackChannelId")
.slackWorkspaceId("slackWorkspaceId")
// the properties below are optional
.guardrailPolicies(List.of("guardrailPolicies"))
.loggingLevel("loggingLevel")
.snsTopicArns(List.of("snsTopicArns"))
.userRoleRequired(false)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnSlackChannelConfiguration.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnSlackChannelConfiguration(Construct scope, String id, CfnSlackChannelConfigurationProps props) Create a newAWS::Chatbot::SlackChannelConfiguration.protectedCfnSlackChannelConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnSlackChannelConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe name of the configuration.The list of IAM policy ARNs that are applied as channel guardrails.The ARN of the IAM role that defines the permissions for AWS Chatbot .Specifies the logging level for this configuration.The ID of the Slack channel.The ID of the Slack workspace authorized with AWS Chatbot .The ARNs of the SNS topics that deliver notifications to AWS Chatbot .Enables use of a user role requirement in your chat configuration.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetConfigurationName(String value) The name of the configuration.voidsetGuardrailPolicies(List<String> value) The list of IAM policy ARNs that are applied as channel guardrails.voidsetIamRoleArn(String value) The ARN of the IAM role that defines the permissions for AWS Chatbot .voidsetLoggingLevel(String value) Specifies the logging level for this configuration.voidsetSlackChannelId(String value) The ID of the Slack channel.voidsetSlackWorkspaceId(String value) The ID of the Slack workspace authorized with AWS Chatbot .voidsetSnsTopicArns(List<String> value) The ARNs of the SNS topics that deliver notifications to AWS Chatbot .voidsetUserRoleRequired(Boolean value) Enables use of a user role requirement in your chat configuration.voidsetUserRoleRequired(IResolvable value) Enables use of a user role requirement in your chat configuration.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnSlackChannelConfiguration
protected CfnSlackChannelConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSlackChannelConfiguration
protected CfnSlackChannelConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSlackChannelConfiguration
@Stability(Stable) public CfnSlackChannelConfiguration(@NotNull Construct scope, @NotNull String id, @NotNull CfnSlackChannelConfigurationProps props) Create a newAWS::Chatbot::SlackChannelConfiguration.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getConfigurationName
The name of the configuration. -
setConfigurationName
The name of the configuration. -
getIamRoleArn
The ARN of the IAM role that defines the permissions for AWS Chatbot .This is a user-defined role that AWS Chatbot will assume. This is not the service-linked role. For more information, see IAM Policies for AWS Chatbot .
-
setIamRoleArn
The ARN of the IAM role that defines the permissions for AWS Chatbot .This is a user-defined role that AWS Chatbot will assume. This is not the service-linked role. For more information, see IAM Policies for AWS Chatbot .
-
getSlackChannelId
The ID of the Slack channel.To get the ID, open Slack, right click on the channel name in the left pane, then choose Copy Link. The channel ID is the 9-character string at the end of the URL. For example,
ABCBBLZZZ. -
setSlackChannelId
The ID of the Slack channel.To get the ID, open Slack, right click on the channel name in the left pane, then choose Copy Link. The channel ID is the 9-character string at the end of the URL. For example,
ABCBBLZZZ. -
getSlackWorkspaceId
The ID of the Slack workspace authorized with AWS Chatbot .To get the workspace ID, you must perform the initial authorization flow with Slack in the AWS Chatbot console. Then you can copy and paste the workspace ID from the console. For more details, see steps 1-4 in Setting Up AWS Chatbot with Slack in the AWS Chatbot User Guide .
-
setSlackWorkspaceId
The ID of the Slack workspace authorized with AWS Chatbot .To get the workspace ID, you must perform the initial authorization flow with Slack in the AWS Chatbot console. Then you can copy and paste the workspace ID from the console. For more details, see steps 1-4 in Setting Up AWS Chatbot with Slack in the AWS Chatbot User Guide .
-
getGuardrailPolicies
The list of IAM policy ARNs that are applied as channel guardrails.The AWS managed 'AdministratorAccess' policy is applied as a default if this is not set.
-
setGuardrailPolicies
The list of IAM policy ARNs that are applied as channel guardrails.The AWS managed 'AdministratorAccess' policy is applied as a default if this is not set.
-
getLoggingLevel
Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs.Logging levels include
ERROR,INFO, orNONE. -
setLoggingLevel
Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs.Logging levels include
ERROR,INFO, orNONE. -
getSnsTopicArns
The ARNs of the SNS topics that deliver notifications to AWS Chatbot . -
setSnsTopicArns
The ARNs of the SNS topics that deliver notifications to AWS Chatbot . -
getUserRoleRequired
Enables use of a user role requirement in your chat configuration. -
setUserRoleRequired
Enables use of a user role requirement in your chat configuration. -
setUserRoleRequired
Enables use of a user role requirement in your chat configuration.
-