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

************************************
update_campaign_communication_limits
************************************



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

  

  Updates the communication limits config for a campaign. This API is idempotent.

  

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


  **Request Syntax**
  ::

    response = client.update_campaign_communication_limits(
        id='string',
        communicationLimitsOverride={
            'allChannelSubtypes': {
                'communicationLimitsList': [
                    {
                        'maxCountPerRecipient': 123,
                        'frequency': 123,
                        'unit': 'DAY'
                    },
                ]
            },
            'instanceLimitsHandling': 'OPT_IN'|'OPT_OUT'
        }
    )
    
  :type id: string
  :param id: **[REQUIRED]** 

    Identifier representing a Campaign

    

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

    Communication limits config

    

  
    - **allChannelSubtypes** *(dict) --* 

      Communication limits

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

    
      - **communicationLimitsList** *(list) --* 

        List of communication limit

        

      
        - *(dict) --* 

          Communication Limit

          

        
          - **maxCountPerRecipient** *(integer) --* **[REQUIRED]** 

            Maximum number of contacts allowed for a given target within the given frequency.

            

          
          - **frequency** *(integer) --* **[REQUIRED]** 

            The number of days to consider with regards to this limit.

            

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

            The communication limit time unit.

            

          
        
    
    
    - **instanceLimitsHandling** *(string) --* 

      Instance limits handling

      

    
  
  
  :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`

  