create_slack_channel_configuration
async
¶
create_slack_channel_configuration(
slack_team_id: SlackTeamId,
slack_channel_id: SlackChannelId,
iam_role_arn: Arn,
configuration_name: ConfigurationName,
*,
config_overrides: Optional[AsyncchatbotClientConfig] = None,
slack_channel_name: Optional[SlackChannelDisplayName] = None,
sns_topic_arns: Optional[SnsTopicArnList] = None,
logging_level: Optional[CustomerCwLogLevel] = None,
guardrail_policy_arns: Optional[GuardrailPolicyArnList] = None,
user_authorization_required: Optional[BooleanAccountPreference] = None,
tags: Optional[Tags] = None,
) -> CreateSlackChannelConfigurationResult
Creates an AWS Chatbot confugration for Slack.
Parameters:
-
slack_team_id(SlackTeamId) –The ID of the Slack workspace authorized with AWS Chatbot.
-
slack_channel_id(SlackChannelId) –The ID of the Slack channel.
To get this 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.
-
slack_channel_name(Optional[SlackChannelDisplayName], default:None) –The name of the Slack channel.
-
sns_topic_arns(Optional[SnsTopicArnList], default:None) –The Amazon Resource Names (ARNs) of the SNS topics that deliver notifications to AWS Chatbot.
-
iam_role_arn(Arn) –A user-defined role that AWS Chatbot assumes. This is not the service-linked role.
For more information, see IAM policies for AWS Chatbot in the AWS Chatbot Administrator Guide.
-
configuration_name(ConfigurationName) –The name of the configuration.
-
logging_level(Optional[CustomerCwLogLevel], default:None) –Logging levels include
ERROR,INFO, orNONE. -
guardrail_policy_arns(Optional[GuardrailPolicyArnList], default:None) –The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed
AdministratorAccesspolicy is applied by default if this is not set. -
user_authorization_required(Optional[BooleanAccountPreference], default:None) –Enables use of a user role requirement in your chat configuration.
-
tags(Optional[Tags], default:None) –A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.
Raises:
-
ConflictException–There was an issue processing your request.
-
CreateSlackChannelConfigurationException–We can’t process your request right now because of a server issue. Try again later.
-
InvalidParameterException–Your request input doesn't meet the constraints required by AWS Chatbot.
-
InvalidRequestException–Your request input doesn't meet the constraints required by AWS Chatbot.
-
LimitExceededException–You have exceeded a service limit for AWS Chatbot.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_chatbot/_services/async_chatbot.py
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 | |