update_application

update_application(**kwargs)

Updates an application and creates a new version.

See also: AWS API Documentation

Request Syntax

response = client.update_application(
    applicationId='string',
    currentApplicationVersion=123,
    definition={
        'content': 'string',
        's3Location': 'string'
    },
    description='string'
)
Parameters
  • applicationId (string) --

    [REQUIRED]

    The unique identifier of the application you want to update.

  • currentApplicationVersion (integer) --

    [REQUIRED]

    The current version of the application to update.

  • definition (dict) --

    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.

  • description (string) -- The description of the application to update.
Return type

dict

Returns

Response Syntax

{
    'applicationVersion': 123
}

Response Structure

  • (dict) --

    • applicationVersion (integer) --

      The new version of the application.

Exceptions

  • MainframeModernization.Client.exceptions.ValidationException
  • MainframeModernization.Client.exceptions.ConflictException
  • MainframeModernization.Client.exceptions.InternalServerException
  • MainframeModernization.Client.exceptions.AccessDeniedException
  • MainframeModernization.Client.exceptions.ThrottlingException
  • MainframeModernization.Client.exceptions.ResourceNotFoundException