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

********************
send_activation_code
********************



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

  

  Sends an activation code to a contact channel. The contact can use this code to activate the contact channel in the console or with the ``ActivateChannel`` operation. Incident Manager can't engage a contact channel until it has been activated.

  

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


  **Request Syntax**
  ::

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

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

    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

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

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

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

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

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

  

  **Examples**

  The following send-activation-code example sends an activation code and message to the specified contact channel.
  ::

    response = client.send_activation_code(
        ContactChannelId='arn:aws:ssm-contacts:us-east-1:111122223333:contact-channel/akuam/8ddae2d1-12c8-4e45-b852-c8587266c400',
    )
    
    print(response)

  
  Expected Output:
  ::

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

  