SecurityHub / Client / delete_connector

delete_connector

SecurityHub.Client.delete_connector(**kwargs)

Deletes a CSPM connector. When you delete a connector, Security Hub CSPM stops ingesting findings and resource data from the connected cloud provider environment.

See also: AWS API Documentation

Request Syntax

response = client.delete_connector(
    ConnectorId='string'
)
Parameters:

ConnectorId (string) –

[REQUIRED]

The unique identifier of the connector to delete.

Return type:

dict

Returns:

Response Syntax

{
    'EnablementStatus': 'ENABLED'|'PENDING_ENABLEMENT'|'PENDING_UPDATE'|'PENDING_DELETION'
}

Response Structure

  • (dict) –

    • EnablementStatus (string) –

      The enablement status of the connector after the delete request.

Exceptions

  • SecurityHub.Client.exceptions.AccessDeniedException

  • SecurityHub.Client.exceptions.InternalServerException

  • SecurityHub.Client.exceptions.InvalidAccessException

  • SecurityHub.Client.exceptions.ValidationException

  • SecurityHub.Client.exceptions.ThrottlingException

  • SecurityHub.Client.exceptions.ConflictException

  • SecurityHub.Client.exceptions.ResourceNotFoundException