SecurityLake / Client / delete_aws_log_source

delete_aws_log_source#

SecurityLake.Client.delete_aws_log_source(**kwargs)#

Removes a natively supported Amazon Web Services 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(
    sources=[
        {
            'accounts': [
                'string',
            ],
            'regions': [
                'string',
            ],
            'sourceName': 'ROUTE53'|'VPC_FLOW'|'SH_FINDINGS'|'CLOUD_TRAIL_MGMT'|'LAMBDA_EXECUTION'|'S3_DATA'|'EKS_AUDIT'|'WAF',
            'sourceVersion': 'string'
        },
    ]
)
Parameters:

sources (list) –

[REQUIRED]

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

  • (dict) –

    To add a natively-supported Amazon Web Services service as a log source, use these parameters to specify the configuration settings for the log source.

    • 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.

    • sourceVersion (string) –

      The version for a Amazon Web Services source.

Return type:

dict

Returns:

Response Syntax

{
    'failed': [
        'string',
    ]
}

Response Structure

  • (dict) –

    • failed (list) –

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

      • (string) –

Exceptions