Inspector2 / Client / update_code_security_integration
update_code_security_integration¶
- Inspector2.Client.update_code_security_integration(**kwargs)¶
- Updates an existing code security integration. - After calling the - CreateCodeSecurityIntegrationoperation, you complete authentication and authorization with your provider. Next you call the- UpdateCodeSecurityIntegrationoperation to provide the- detailsto complete the integration setup- See also: AWS API Documentation - Request Syntax- response = client.update_code_security_integration( integrationArn='string', details={ 'gitlabSelfManaged': { 'authCode': 'string' }, 'github': { 'code': 'string', 'installationId': 'string' } } ) - Parameters:
- integrationArn (string) – - [REQUIRED] - The Amazon Resource Name (ARN) of the code security integration to update. 
- details (dict) – - [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. 
 
 
 
- Return type:
- 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