Class CfnSlackChannelConfiguration
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.chatbot.CfnSlackChannelConfiguration
- All Implemented Interfaces:
IInspectable
,ITaggableV2
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-11T15:55:54.314Z")
@Stability(Stable)
public class CfnSlackChannelConfiguration
extends CfnResource
implements IInspectable, ITaggableV2
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 Configure a Slack client 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")) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .userRoleRequired(false) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnSlackChannelConfiguration
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnSlackChannelConfiguration
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnSlackChannelConfiguration
(software.amazon.jsii.JsiiObjectRef objRef) CfnSlackChannelConfiguration
(software.constructs.Construct scope, String id, CfnSlackChannelConfigurationProps props) -
Method Summary
Modifier and TypeMethodDescriptionAmazon Resource Name (ARN) of the configuration.Tag Manager which manages the tags for this resource.The 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 .getTags()
The tags to add to the configuration.Enables use of a user role requirement in your chat configuration.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setConfigurationName
(String value) The name of the configuration.void
setGuardrailPolicies
(List<String> value) The list of IAM policy ARNs that are applied as channel guardrails.void
setIamRoleArn
(String value) The ARN of the IAM role that defines the permissions for AWS Chatbot .void
setLoggingLevel
(String value) Specifies the logging level for this configuration.void
setSlackChannelId
(String value) The ID of the Slack channel.void
setSlackWorkspaceId
(String value) The ID of the Slack workspace authorized with AWS Chatbot .void
setSnsTopicArns
(List<String> value) The ARNs of the SNS topics that deliver notifications to AWS Chatbot .void
The tags to add to the configuration.void
setUserRoleRequired
(Boolean value) Enables use of a user role requirement in your chat configuration.void
setUserRoleRequired
(IResolvable value) Enables use of a user role requirement in your chat configuration.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnSlackChannelConfigurationProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
Amazon Resource Name (ARN) of the configuration. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in 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 . -
setIamRoleArn
The ARN of the IAM role that defines the permissions for AWS Chatbot . -
getSlackChannelId
The ID of the Slack channel. -
setSlackChannelId
The ID of the Slack channel. -
getSlackWorkspaceId
The ID of the Slack workspace authorized with AWS Chatbot . -
setSlackWorkspaceId
The ID of the Slack workspace authorized with AWS Chatbot . -
getGuardrailPolicies
The list of IAM policy ARNs that are applied as channel guardrails. -
setGuardrailPolicies
The list of IAM policy ARNs that are applied as channel guardrails. -
getLoggingLevel
Specifies the logging level for this configuration.This property affects the log entries pushed to Amazon CloudWatch Logs.
-
setLoggingLevel
Specifies the logging level for this configuration.This property affects the log entries pushed to Amazon CloudWatch Logs.
-
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 . -
getTags
The tags to add to the configuration. -
setTags
The tags to add to the configuration. -
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.
-