:doc:`MainframeModernization <../../m2>` / Client / update_application

******************
update_application
******************



.. py:method:: MainframeModernization.Client.update_application(**kwargs)

  

  Updates an application and creates a new version.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/UpdateApplication>`_  


  **Request Syntax**
  ::

    response = client.update_application(
        applicationId='string',
        currentApplicationVersion=123,
        definition={
            'content': 'string',
            's3Location': 'string'
        },
        description='string'
    )
    
  :type applicationId: string
  :param applicationId: **[REQUIRED]** 

    The unique identifier of the application you want to update.

    

  
  :type currentApplicationVersion: integer
  :param currentApplicationVersion: **[REQUIRED]** 

    The current version of the application to update.

    

  
  :type definition: dict
  :param definition: 

    The application definition for this application. You can specify either inline JSON or an S3 bucket location.

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

  
    - **content** *(string) --* 

      The content of the application definition. This is a JSON object that contains the resource configuration/definitions that identify an application.

      

    
    - **s3Location** *(string) --* 

      The S3 bucket that contains the application definition.

      

    
  
  :type description: string
  :param description: 

    The description of the application to update.

    

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

    
    ::

      {
          'applicationVersion': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **applicationVersion** *(integer) --* 

        The new version of the application.

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

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

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

  
  *   :py:class:`MainframeModernization.Client.exceptions.ConflictException`

  
  *   :py:class:`MainframeModernization.Client.exceptions.ValidationException`

  
  *   :py:class:`MainframeModernization.Client.exceptions.InternalServerException`

  