:doc:`ConnectCampaignServiceV2 <../../connectcampaignsv2>` / Client / update_campaign_source

**********************
update_campaign_source
**********************



.. py:method:: ConnectCampaignServiceV2.Client.update_campaign_source(**kwargs)

  

  Updates the campaign source with a campaign. This API is idempotent.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connectcampaignsv2-2024-04-23/UpdateCampaignSource>`_  


  **Request Syntax**
  ::

    response = client.update_campaign_source(
        id='string',
        source={
            'customerProfilesSegmentArn': 'string',
            'eventTrigger': {
                'customerProfilesDomainArn': 'string'
            }
        }
    )
    
  :type id: string
  :param id: **[REQUIRED]** 

    Identifier representing a Campaign

    

  
  :type source: dict
  :param source: **[REQUIRED]** 

    Source of the campaign

    .. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: ``customerProfilesSegmentArn``, ``eventTrigger``. 

  
    - **customerProfilesSegmentArn** *(string) --* 

      Amazon Resource Names(ARN)

      

    
    - **eventTrigger** *(dict) --* 

      Event trigger of the campaign

      

    
      - **customerProfilesDomainArn** *(string) --* 

        Amazon Resource Names(ARN)

        

      
    
  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`ConnectCampaignServiceV2.Client.exceptions.InternalServerException`

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

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

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

  
  *   :py:class:`ConnectCampaignServiceV2.Client.exceptions.InvalidCampaignStateException`

  
  *   :py:class:`ConnectCampaignServiceV2.Client.exceptions.AccessDeniedException`

  