:doc:`Chatbot <../../chatbot>` / Client / create_slack_channel_configuration

**********************************
create_slack_channel_configuration
**********************************



.. py:method:: Chatbot.Client.create_slack_channel_configuration(**kwargs)

  

  Creates an AWS Chatbot confugration for Slack.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/chatbot-2017-10-11/CreateSlackChannelConfiguration>`_  


  **Request Syntax**
  ::

    response = client.create_slack_channel_configuration(
        SlackTeamId='string',
        SlackChannelId='string',
        SlackChannelName='string',
        SnsTopicArns=[
            'string',
        ],
        IamRoleArn='string',
        ConfigurationName='string',
        LoggingLevel='string',
        GuardrailPolicyArns=[
            'string',
        ],
        UserAuthorizationRequired=True|False,
        Tags=[
            {
                'TagKey': 'string',
                'TagValue': 'string'
            },
        ]
    )
    
  :type SlackTeamId: string
  :param SlackTeamId: **[REQUIRED]** 

    The ID of the Slack workspace authorized with AWS Chatbot.

    

  
  :type SlackChannelId: string
  :param SlackChannelId: **[REQUIRED]** 

    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.

    

  
  :type SlackChannelName: string
  :param SlackChannelName: 

    The name of the Slack channel.

    

  
  :type SnsTopicArns: list
  :param SnsTopicArns: 

    The Amazon Resource Names (ARNs) of the SNS topics that deliver notifications to AWS Chatbot.

    

  
    - *(string) --* 

    

  :type IamRoleArn: string
  :param IamRoleArn: **[REQUIRED]** 

    A user-defined role that AWS Chatbot assumes. This is not the service-linked role.

     

    For more information, see `IAM policies for AWS Chatbot <https://docs.aws.amazon.com/chatbot/latest/adminguide/chatbot-iam-policies.html>`__ in the *AWS Chatbot Administrator Guide*.

    

  
  :type ConfigurationName: string
  :param ConfigurationName: **[REQUIRED]** 

    The name of the configuration.

    

  
  :type LoggingLevel: string
  :param LoggingLevel: 

    Logging levels include ``ERROR``, ``INFO``, or ``NONE``.

    

  
  :type GuardrailPolicyArns: list
  :param GuardrailPolicyArns: 

    The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed ``AdministratorAccess`` policy is applied by default if this is not set.

    

  
    - *(string) --* 

    

  :type UserAuthorizationRequired: boolean
  :param UserAuthorizationRequired: 

    Enables use of a user role requirement in your chat configuration.

    

  
  :type Tags: list
  :param Tags: 

    A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.

    

  
    - *(dict) --* 

      A key-value pair. A tag consists of a tag key and a tag value. Tag keys and tag values are both required, but tag values can be empty (null) strings.

       

      .. warning::

         

        Do not include confidential or sensitive information in this field.

         

       

      For more information, see `User-Defined Tag Restrictions <https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html>`__ in the *AWS Billing and Cost Management User Guide*.

      

    
      - **TagKey** *(string) --* **[REQUIRED]** 

        The key of the tag.

        

      
      - **TagValue** *(string) --* **[REQUIRED]** 

        The value of the tag.

        

      
    

  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'ChannelConfiguration': {
              'SlackTeamName': 'string',
              'SlackTeamId': 'string',
              'SlackChannelId': 'string',
              'SlackChannelName': 'string',
              'ChatConfigurationArn': 'string',
              'IamRoleArn': 'string',
              'SnsTopicArns': [
                  'string',
              ],
              'ConfigurationName': 'string',
              'LoggingLevel': 'string',
              'GuardrailPolicyArns': [
                  'string',
              ],
              'UserAuthorizationRequired': True|False,
              'Tags': [
                  {
                      'TagKey': 'string',
                      'TagValue': 'string'
                  },
              ],
              'State': 'string',
              'StateReason': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ChannelConfiguration** *(dict) --* 

        The configuration for a Slack channel configured with AWS Chatbot.

        
        

        - **SlackTeamName** *(string) --* 

          Name of the Slack workspace.

          
        

        - **SlackTeamId** *(string) --* 

          The ID of the Slack workspace authorized with Amazon Chime.

          
        

        - **SlackChannelId** *(string) --* 

          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.

          
        

        - **SlackChannelName** *(string) --* 

          The name of the Slack channel.

          
        

        - **ChatConfigurationArn** *(string) --* 

          The Amazon Resource Name (ARN) of the SlackChannelConfiguration.

          
        

        - **IamRoleArn** *(string) --* 

          A user-defined role that AWS Chatbot assumes. This is not the service-linked role.

           

          For more information, see `IAM policies for AWS Chatbot <https://docs.aws.amazon.com/chatbot/latest/adminguide/chatbot-iam-policies.html>`__ in the *AWS Chatbot Administrator Guide*.

          
        

        - **SnsTopicArns** *(list) --* 

          The ARNs of the SNS topics that deliver notifications to AWS Chatbot.

          
          

          - *(string) --* 
      
        

        - **ConfigurationName** *(string) --* 

          The name of the configuration.

          
        

        - **LoggingLevel** *(string) --* 

          Logging levels include ``ERROR``, ``INFO``, or ``NONE``.

          
        

        - **GuardrailPolicyArns** *(list) --* 

          The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed ``AdministratorAccess`` policy is applied by default if this is not set.

          
          

          - *(string) --* 
      
        

        - **UserAuthorizationRequired** *(boolean) --* 

          Enables use of a user role requirement in your chat configuration.

          
        

        - **Tags** *(list) --* 

          A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.

          
          

          - *(dict) --* 

            A key-value pair. A tag consists of a tag key and a tag value. Tag keys and tag values are both required, but tag values can be empty (null) strings.

             

            .. warning::

               

              Do not include confidential or sensitive information in this field.

               

             

            For more information, see `User-Defined Tag Restrictions <https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html>`__ in the *AWS Billing and Cost Management User Guide*.

            
            

            - **TagKey** *(string) --* 

              The key of the tag.

              
            

            - **TagValue** *(string) --* 

              The value of the tag.

              
        
      
        

        - **State** *(string) --* 

          Either ``ENABLED`` or ``DISABLED``. The resource returns ``DISABLED`` if the organization's AWS Chatbot policy has explicitly denied that configuration. For example, if Amazon Chime is disabled.

          
        

        - **StateReason** *(string) --* 

          Provided if State is ``DISABLED``. Provides context as to why the resource is disabled.

          
    
  
  **Exceptions**
  
  *   :py:class:`Chatbot.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`Chatbot.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Chatbot.Client.exceptions.ConflictException`

  
  *   :py:class:`Chatbot.Client.exceptions.LimitExceededException`

  
  *   :py:class:`Chatbot.Client.exceptions.CreateSlackChannelConfigurationException`

  