:doc:`Inspector2 <../../inspector2>` / Client / update_code_security_integration

********************************
update_code_security_integration
********************************



.. py:method:: Inspector2.Client.update_code_security_integration(**kwargs)

  

  Updates an existing code security integration.

   

  After calling the ``CreateCodeSecurityIntegration`` operation, you complete authentication and authorization with your provider. Next you call the ``UpdateCodeSecurityIntegration`` operation to provide the ``details`` to complete the integration setup

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/UpdateCodeSecurityIntegration>`_  


  **Request Syntax**
  ::

    response = client.update_code_security_integration(
        integrationArn='string',
        details={
            'gitlabSelfManaged': {
                'authCode': 'string'
            },
            'github': {
                'code': 'string',
                'installationId': 'string'
            }
        }
    )
    
  :type integrationArn: string
  :param integrationArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the code security integration to update.

    

  
  :type details: dict
  :param details: **[REQUIRED]** 

    The updated integration details specific to the repository provider type.

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

  
    - **gitlabSelfManaged** *(dict) --* 

      Details specific to updating an integration with a self-managed GitLab instance.

      

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

        The authorization code received from the self-managed GitLab instance to update the integration.

        

      
    
    - **github** *(dict) --* 

      Details specific to updating an integration with GitHub.

      

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

        The authorization code received from GitHub to update the integration.

        

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

        The installation ID of the GitHub App associated with the integration.

        

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

    
    ::

      {
          'integrationArn': 'string',
          'status': 'PENDING'|'IN_PROGRESS'|'ACTIVE'|'INACTIVE'|'DISABLING'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **integrationArn** *(string) --* 

        The Amazon Resource Name (ARN) of the updated code security integration.

        
      

      - **status** *(string) --* 

        The current status of the updated code security integration.

        
  
  **Exceptions**
  
  *   :py:class:`Inspector2.Client.exceptions.ConflictException`

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

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

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

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

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

  