:doc:`RDSDataService <../../rds-data>` / Client / commit_transaction

******************
commit_transaction
******************



.. py:method:: RDSDataService.Client.commit_transaction(**kwargs)

  

  Ends a SQL transaction started with the ``BeginTransaction`` operation and commits the changes.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/CommitTransaction>`_  


  **Request Syntax**
  ::

    response = client.commit_transaction(
        resourceArn='string',
        secretArn='string',
        transactionId='string'
    )
    
  :type resourceArn: string
  :param resourceArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.

    

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

    The name or ARN of the secret that enables access to the DB cluster.

    

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

    The identifier of the transaction to end and commit.

    

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

    
    ::

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

    

    - *(dict) --* 

      The response elements represent the output of a commit transaction request.

      
      

      - **transactionStatus** *(string) --* 

        The status of the commit operation.

        
  
  **Exceptions**
  
  *   :py:class:`RDSDataService.Client.exceptions.SecretsErrorException`

  
  *   :py:class:`RDSDataService.Client.exceptions.HttpEndpointNotEnabledException`

  
  *   :py:class:`RDSDataService.Client.exceptions.DatabaseErrorException`

  
  *   :py:class:`RDSDataService.Client.exceptions.DatabaseUnavailableException`

  
  *   :py:class:`RDSDataService.Client.exceptions.TransactionNotFoundException`

  
  *   :py:class:`RDSDataService.Client.exceptions.InvalidSecretException`

  
  *   :py:class:`RDSDataService.Client.exceptions.InvalidResourceStateException`

  
  *   :py:class:`RDSDataService.Client.exceptions.ServiceUnavailableError`

  
  *   :py:class:`RDSDataService.Client.exceptions.ForbiddenException`

  
  *   :py:class:`RDSDataService.Client.exceptions.DatabaseNotFoundException`

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

  
  *   :py:class:`RDSDataService.Client.exceptions.BadRequestException`

  
  *   :py:class:`RDSDataService.Client.exceptions.StatementTimeoutException`

  
  *   :py:class:`RDSDataService.Client.exceptions.InternalServerErrorException`

  
  *   :py:class:`RDSDataService.Client.exceptions.NotFoundException`

  