:doc:`SSMContacts <../../ssm-contacts>` / Client / activate_contact_channel

************************
activate_contact_channel
************************



.. py:method:: SSMContacts.Client.activate_contact_channel(**kwargs)

  

  Activates a contact's contact channel. Incident Manager can't engage a contact until the contact channel has been activated.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ssm-contacts-2021-05-03/ActivateContactChannel>`_  


  **Request Syntax**
  ::

    response = client.activate_contact_channel(
        ContactChannelId='string',
        ActivationCode='string'
    )
    
  :type ContactChannelId: string
  :param ContactChannelId: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the contact channel.

    

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

    The code sent to the contact channel when it was created in the contact.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`SSMContacts.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`SSMContacts.Client.exceptions.InternalServerException`

  
  *   :py:class:`SSMContacts.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`SSMContacts.Client.exceptions.ThrottlingException`

  
  *   :py:class:`SSMContacts.Client.exceptions.ValidationException`

  

  **Examples**

  The following activate-contact-channel example activates a contact channel and makes it usable as part of an incident.
  ::

    response = client.activate_contact_channel(
        ActivationCode='466136',
        ContactChannelId='arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/fc7405c4-46b2-48b7-87b2-93e2f225b90d',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResponseMetadata': {
            '...': '...',
        },
    }

  