:doc:`ManagedBlockchain <../../managedblockchain>` / Client / update_node

***********
update_node
***********



.. py:method:: ManagedBlockchain.Client.update_node(**kwargs)

  

  Updates a node configuration with new parameters.

   

  Applies only to Hyperledger Fabric.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/UpdateNode>`_  


  **Request Syntax**
  ::

    response = client.update_node(
        NetworkId='string',
        MemberId='string',
        NodeId='string',
        LogPublishingConfiguration={
            'Fabric': {
                'ChaincodeLogs': {
                    'Cloudwatch': {
                        'Enabled': True|False
                    }
                },
                'PeerLogs': {
                    'Cloudwatch': {
                        'Enabled': True|False
                    }
                }
            }
        }
    )
    
  :type NetworkId: string
  :param NetworkId: **[REQUIRED]** 

    The unique identifier of the network that the node is on.

    

  
  :type MemberId: string
  :param MemberId: 

    The unique identifier of the member that owns the node.

     

    Applies only to Hyperledger Fabric.

    

  
  :type NodeId: string
  :param NodeId: **[REQUIRED]** 

    The unique identifier of the node.

    

  
  :type LogPublishingConfiguration: dict
  :param LogPublishingConfiguration: 

    Configuration properties for publishing to Amazon CloudWatch Logs.

    

  
    - **Fabric** *(dict) --* 

      Configuration properties for logging events associated with a node that is owned by a member of a Managed Blockchain network using the Hyperledger Fabric framework.

      

    
      - **ChaincodeLogs** *(dict) --* 

        Configuration properties for logging events associated with chaincode execution on a peer node. Chaincode logs contain the results of instantiating, invoking, and querying the chaincode. A peer can run multiple instances of chaincode. When enabled, a log stream is created for all chaincodes, with an individual log stream for each chaincode.

        

      
        - **Cloudwatch** *(dict) --* 

          Parameters for publishing logs to Amazon CloudWatch Logs.

          

        
          - **Enabled** *(boolean) --* 

            Indicates whether logging is enabled.

            

          
        
      
      - **PeerLogs** *(dict) --* 

        Configuration properties for a peer node log. Peer node logs contain messages generated when your client submits transaction proposals to peer nodes, requests to join channels, enrolls an admin peer, and lists the chaincode instances on a peer node.

        

      
        - **Cloudwatch** *(dict) --* 

          Parameters for publishing logs to Amazon CloudWatch Logs.

          

        
          - **Enabled** *(boolean) --* 

            Indicates whether logging is enabled.

            

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`ManagedBlockchain.Client.exceptions.InvalidRequestException`

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

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

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

  
  *   :py:class:`ManagedBlockchain.Client.exceptions.InternalServiceErrorException`

  