:doc:`EventBridge <../../events>` / Client / update_event_bus

****************
update_event_bus
****************



.. py:method:: EventBridge.Client.update_event_bus(**kwargs)

  

  Updates the specified event bus.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/UpdateEventBus>`_  


  **Request Syntax**
  ::

    response = client.update_event_bus(
        Name='string',
        KmsKeyIdentifier='string',
        Description='string',
        DeadLetterConfig={
            'Arn': 'string'
        },
        LogConfig={
            'IncludeDetail': 'NONE'|'FULL',
            'Level': 'OFF'|'ERROR'|'INFO'|'TRACE'
        }
    )
    
  :type Name: string
  :param Name: 

    The name of the event bus.

    

  
  :type KmsKeyIdentifier: string
  :param KmsKeyIdentifier: 

    The identifier of the KMS customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt events on this event bus. The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN.

     

    If you do not specify a customer managed key identifier, EventBridge uses an Amazon Web Services owned key to encrypt events on the event bus.

     

    For more information, see `Identify and view keys <https://docs.aws.amazon.com/kms/latest/developerguide/viewing-keys.html>`__ in the *Key Management Service Developer Guide*.

     

    .. note::

      

      Schema discovery is not supported for event buses encrypted using a customer managed key. EventBridge returns an error if:

       

      
      * You call ``CreateDiscoverer`` on an event bus set to use a customer managed key for encryption.
       
      * You call ``UpdatedEventBus`` to set a customer managed key on an event bus with schema discovery enabled.
      

       

      To enable schema discovery on an event bus, choose to use an Amazon Web Services owned key. For more information, see `Encrypting events <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption-event-bus-cmkey.html>`__ in the *Amazon EventBridge User Guide*.

      

     

    .. warning::

       

      If you have specified that EventBridge use a customer managed key for encrypting the source event bus, we strongly recommend you also specify a customer managed key for any archives for the event bus as well.

       

      For more information, see `Encrypting archives <https://docs.aws.amazon.com/eventbridge/latest/userguide/encryption-archives.html>`__ in the *Amazon EventBridge User Guide*.

      

    

  
  :type Description: string
  :param Description: 

    The event bus description.

    

  
  :type DeadLetterConfig: dict
  :param DeadLetterConfig: 

    Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue (DLQ).

     

    For more information, see `Using dead-letter queues to process undelivered events <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-event-delivery.html#eb-rule-dlq>`__ in the *EventBridge User Guide*.

    

  
    - **Arn** *(string) --* 

      The ARN of the SQS queue specified as the target for the dead-letter queue.

      

    
  
  :type LogConfig: dict
  :param LogConfig: 

    The logging configuration settings for the event bus.

     

    For more information, see `Configuring logs for event buses <https://docs.aws.amazon.com/eb-event-bus-logs.html>`__ in the *EventBridge User Guide*.

    

  
    - **IncludeDetail** *(string) --* 

      Whether EventBridge include detailed event information in the records it generates. Detailed data can be useful for troubleshooting and debugging. This information includes details of the event itself, as well as target details.

       

      For more information, see `Including detail data in event bus logs <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-bus-logs.html#eb-event-logs-data>`__ in the *EventBridge User Guide*.

      

    
    - **Level** *(string) --* 

      The level of logging detail to include. This applies to all log destinations for the event bus.

       

      For more information, see `Specifying event bus log level <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-bus-logs.html#eb-event-bus-logs-level>`__ in the *EventBridge User Guide*.

      

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

    
    ::

      {
          'Arn': 'string',
          'Name': 'string',
          'KmsKeyIdentifier': 'string',
          'Description': 'string',
          'DeadLetterConfig': {
              'Arn': 'string'
          },
          'LogConfig': {
              'IncludeDetail': 'NONE'|'FULL',
              'Level': 'OFF'|'ERROR'|'INFO'|'TRACE'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Arn** *(string) --* 

        The event bus Amazon Resource Name (ARN).

        
      

      - **Name** *(string) --* 

        The event bus name.

        
      

      - **KmsKeyIdentifier** *(string) --* 

        The identifier of the KMS customer managed key for EventBridge to use to encrypt events on this event bus, if one has been specified.

         

        For more information, see `Data encryption in EventBridge <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption.html>`__ in the *Amazon EventBridge User Guide*.

        
      

      - **Description** *(string) --* 

        The event bus description.

        
      

      - **DeadLetterConfig** *(dict) --* 

        Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue (DLQ).

         

        For more information, see `Using dead-letter queues to process undelivered events <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-event-delivery.html#eb-rule-dlq>`__ in the *EventBridge User Guide*.

        
        

        - **Arn** *(string) --* 

          The ARN of the SQS queue specified as the target for the dead-letter queue.

          
    
      

      - **LogConfig** *(dict) --* 

        The logging configuration settings for the event bus.

         

        For more information, see `Configuring logs for event buses <https://docs.aws.amazon.com/eb-event-bus-logs.html>`__ in the *EventBridge User Guide*.

        
        

        - **IncludeDetail** *(string) --* 

          Whether EventBridge include detailed event information in the records it generates. Detailed data can be useful for troubleshooting and debugging. This information includes details of the event itself, as well as target details.

           

          For more information, see `Including detail data in event bus logs <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-bus-logs.html#eb-event-logs-data>`__ in the *EventBridge User Guide*.

          
        

        - **Level** *(string) --* 

          The level of logging detail to include. This applies to all log destinations for the event bus.

           

          For more information, see `Specifying event bus log level <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-bus-logs.html#eb-event-bus-logs-level>`__ in the *EventBridge User Guide*.

          
    
  
  **Exceptions**
  
  *   :py:class:`EventBridge.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`EventBridge.Client.exceptions.InternalException`

  
  *   :py:class:`EventBridge.Client.exceptions.ConcurrentModificationException`

  
  *   :py:class:`EventBridge.Client.exceptions.OperationDisabledException`

  