SecurityLake / Client / list_log_sources

list_log_sources#

SecurityLake.Client.list_log_sources(**kwargs)#

Retrieves the log sources in the current Amazon Web Services Region.

See also: AWS API Documentation

Request Syntax

response = client.list_log_sources(
    inputOrder=[
        'REGION'|'SOURCE_TYPE'|'MEMBER',
    ],
    listAllDimensions={
        'string': {
            'string': [
                'string',
            ]
        }
    },
    listSingleDimension=[
        'string',
    ],
    listTwoDimensions={
        'string': [
            'string',
        ]
    },
    maxResults=123,
    nextToken='string'
)
Parameters:
  • inputOrder (list) –

    Lists the log sources in input order, namely Region, source type, and member account.

    • (string) –

  • listAllDimensions (dict) –

    List the view of log sources for enabled Amazon Security Lake accounts for specific Amazon Web Services sources from specific accounts and specific Regions.

    • (string) –

      • (dict) –

        • (string) –

          • (list) –

            • (string) –

  • listSingleDimension (list) –

    List the view of log sources for enabled Security Lake accounts for all Amazon Web Services sources from specific accounts or specific Regions.

    • (string) –

  • listTwoDimensions (dict) –

    Lists the view of log sources for enabled Security Lake accounts for specific Amazon Web Services sources from specific accounts or specific Regions.

    • (string) –

      • (list) –

        • (string) –

  • maxResults (integer) – The maximum number of accounts for which the log sources are displayed.

  • nextToken (string) – If nextToken is returned, there are more results available. You can repeat the call using the returned token to retrieve the next page.

Return type:

dict

Returns:

Response Syntax

{
    'nextToken': 'string',
    'regionSourceTypesAccountsList': [
        {
            'string': {
                'string': [
                    'string',
                ]
            }
        },
    ]
}

Response Structure

  • (dict) –

    • nextToken (string) –

      If nextToken is returned, there are more results available. You can repeat the call using the returned token to retrieve the next page.

    • regionSourceTypesAccountsList (list) –

      Lists the log sources by Regions for enabled Security Lake accounts.

      • (dict) –

        • (string) –

          • (dict) –

            • (string) –

              • (list) –

                • (string) –

Exceptions

  • SecurityLake.Client.exceptions.InternalServerException

  • SecurityLake.Client.exceptions.ValidationException

  • SecurityLake.Client.exceptions.AccessDeniedException

  • SecurityLake.Client.exceptions.ResourceNotFoundException

  • SecurityLake.Client.exceptions.AccountNotFoundException