SecurityLake / Client / delete_aws_log_source



Removes a natively supported Amazon Web Service as an Amazon Security Lake source. You can remove a source for one or more Regions. When you remove the source, Security Lake stops collecting data from that source in the specified Regions and accounts, and subscribers can no longer consume new data from the source. However, subscribers can still consume data that Security Lake collected from the source before removal.

You can choose any source type in any Amazon Web Services Region for either accounts that are part of a trusted organization or standalone accounts.

See also: AWS API Documentation

Request Syntax

response = client.delete_aws_log_source(
            'accounts': [
            'regions': [
            'sourceVersion': 'string'

sources (list) –


Specify the natively-supported Amazon Web Services service to remove as a source in Security Lake.

  • (dict) –

    The Security Lake logs source configuration file describes the information needed to generate Security Lake logs.

    • accounts (list) –

      Specify the Amazon Web Services account information where you want to enable Security Lake.

      • (string) –

    • regions (list) – [REQUIRED]

      Specify the Regions where you want to enable Security Lake.

      • (string) –

    • sourceName (string) – [REQUIRED]

      The name for a Amazon Web Services source. This must be a Regionally unique value.

    • sourceVersion (string) –

      The version for a Amazon Web Services source. This must be a Regionally unique value.

Return type:



Response Syntax

    'failed': [

Response Structure

  • (dict) –

    • failed (list) –

      Deletion of the Amazon Web Services sources failed as the account is not a part of the organization.

      • (string) –


  • SecurityLake.Client.exceptions.BadRequestException

  • SecurityLake.Client.exceptions.ResourceNotFoundException

  • SecurityLake.Client.exceptions.InternalServerException

  • SecurityLake.Client.exceptions.AccessDeniedException

  • SecurityLake.Client.exceptions.ConflictException

  • SecurityLake.Client.exceptions.ThrottlingException