:doc:`LakeFormation <../../lakeformation>` / Client / start_transaction

*****************
start_transaction
*****************



.. py:method:: LakeFormation.Client.start_transaction(**kwargs)

  

  Starts a new transaction and returns its transaction ID. Transaction IDs are opaque objects that you can use to identify a transaction.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/StartTransaction>`_  


  **Request Syntax**
  ::

    response = client.start_transaction(
        TransactionType='READ_AND_WRITE'|'READ_ONLY'
    )
    
  :type TransactionType: string
  :param TransactionType: 

    Indicates whether this transaction should be read only or read and write. Writes made using a read-only transaction ID will be rejected. Read-only transactions do not need to be committed.

    

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

    
    ::

      {
          'TransactionId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **TransactionId** *(string) --* 

        An opaque identifier for the transaction.

        
  
  **Exceptions**
  
  *   :py:class:`LakeFormation.Client.exceptions.InternalServiceException`

  
  *   :py:class:`LakeFormation.Client.exceptions.OperationTimeoutException`

  