:doc:`AppIntegrationsService <../../appintegrations>` / Client / update_application

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



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

  

  Updates and persists an Application resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateApplication>`_  


  **Request Syntax**
  ::

    response = client.update_application(
        Arn='string',
        Name='string',
        Description='string',
        ApplicationSourceConfig={
            'ExternalUrlConfig': {
                'AccessUrl': 'string',
                'ApprovedOrigins': [
                    'string',
                ]
            }
        },
        Subscriptions=[
            {
                'Event': 'string',
                'Description': 'string'
            },
        ],
        Publications=[
            {
                'Event': 'string',
                'Schema': 'string',
                'Description': 'string'
            },
        ],
        Permissions=[
            'string',
        ],
        IsService=True|False,
        InitializationTimeout=123,
        ApplicationConfig={
            'ContactHandling': {
                'Scope': 'CROSS_CONTACTS'|'PER_CONTACT'
            }
        },
        IframeConfig={
            'Allow': [
                'string',
            ],
            'Sandbox': [
                'string',
            ]
        },
        ApplicationType='STANDARD'|'SERVICE'|'MCP_SERVER'
    )
    
  :type Arn: string
  :param Arn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the Application.

    

  
  :type Name: string
  :param Name: 

    The name of the application.

    

  
  :type Description: string
  :param Description: 

    The description of the application.

    

  
  :type ApplicationSourceConfig: dict
  :param ApplicationSourceConfig: 

    The configuration for where the application should be loaded from.

    

  
    - **ExternalUrlConfig** *(dict) --* 

      The external URL source for the application.

      

    
      - **AccessUrl** *(string) --* **[REQUIRED]** 

        The URL to access the application.

        

      
      - **ApprovedOrigins** *(list) --* 

        Additional URLs to allow list if different than the access URL.

        

      
        - *(string) --* 

        
    
    
  
  :type Subscriptions: list
  :param Subscriptions: 

    The events that the application subscribes.

    

  
    - *(dict) --* 

      The configuration of an event that the application subscribes.

      

    
      - **Event** *(string) --* **[REQUIRED]** 

        The name of the subscription.

        

      
      - **Description** *(string) --* 

        The description of the subscription.

        

      
    

  :type Publications: list
  :param Publications: 

    The events that the application publishes.

    

  
    - *(dict) --* 

      The configuration of an event that the application publishes.

      

    
      - **Event** *(string) --* **[REQUIRED]** 

        The name of the publication.

        

      
      - **Schema** *(string) --* **[REQUIRED]** 

        The JSON schema of the publication event.

        

      
      - **Description** *(string) --* 

        The description of the publication.

        

      
    

  :type Permissions: list
  :param Permissions: 

    The configuration of events or requests that the application has access to.

    

  
    - *(string) --* 

      The permission of an event or request that the application has access to.

      

    

  :type IsService: boolean
  :param IsService: 

    Indicates whether the application is a service.

    

  
  :type InitializationTimeout: integer
  :param InitializationTimeout: 

    The maximum time in milliseconds allowed to establish a connection with the workspace.

    

  
  :type ApplicationConfig: dict
  :param ApplicationConfig: 

    The configuration settings for the application.

    

  
    - **ContactHandling** *(dict) --* 

      The contact handling configuration for the application.

      

    
      - **Scope** *(string) --* 

        Indicates whether the application refreshes for each contact or refreshes only with each new browser session.

        

      
    
  
  :type IframeConfig: dict
  :param IframeConfig: 

    The iframe configuration for the application.

    

  
    - **Allow** *(list) --* 

      The list of features that are allowed in the iframe.

      

    
      - *(string) --* 

        A permission for the iframe.

        

      
  
    - **Sandbox** *(list) --* 

      The list of sandbox attributes for the iframe.

      

    
      - *(string) --* 

        A permission for the iframe.

        

      
  
  
  :type ApplicationType: string
  :param ApplicationType: 

    The type of application.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`AppIntegrationsService.Client.exceptions.InternalServiceError`

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

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

  
  *   :py:class:`AppIntegrationsService.Client.exceptions.InvalidRequestException`

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

  
  *   :py:class:`AppIntegrationsService.Client.exceptions.UnsupportedOperationException`

  