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

**********************
update_contact_channel
**********************



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

  

  Updates a contact's contact channel.

  

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


  **Request Syntax**
  ::

    response = client.update_contact_channel(
        ContactChannelId='string',
        Name='string',
        DeliveryAddress={
            'SimpleAddress': 'string'
        }
    )
    
  :type ContactChannelId: string
  :param ContactChannelId: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the contact channel you want to update.

    

  
  :type Name: string
  :param Name: 

    The name of the contact channel.

    

  
  :type DeliveryAddress: dict
  :param DeliveryAddress: 

    The details that Incident Manager uses when trying to engage the contact channel.

    

  
    - **SimpleAddress** *(string) --* 

      The format is dependent on the type of the contact channel. The following are the expected formats:

       

      
      * SMS - '+' followed by the country code and phone number
       
      * VOICE - '+' followed by the country code and phone number
       
      * EMAIL - any standard email format
      

      

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

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

  
  *   :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 update-contact-channel example updates the name and delivery address of a contact channel.
  ::

    response = client.update_contact_channel(
        ContactChannelId='arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/49f3c24d-5f9f-4638-ae25-3f49e04229ad',
        DeliveryAddress={
            'SimpleAddress': '+15005550198',
        },
        Name='akuas voice channel',
    )
    
    print(response)

  
  Expected Output:
  ::

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

  